|
|
|
@ -3,10 +3,13 @@ package com.hyp.web.controller.manager;
|
|
|
|
|
import cn.hutool.core.convert.Convert;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
import com.hyp.common.core.domain.model.LoginUser;
|
|
|
|
|
import com.hyp.common.enums.ApplyStatusEnum;
|
|
|
|
|
import com.hyp.common.utils.SecurityUtils;
|
|
|
|
|
import com.hyp.common.utils.StringUtils;
|
|
|
|
|
import com.hyp.system.domain.RewApplyInfoList;
|
|
|
|
|
import com.hyp.system.domain.RewScoreInfo;
|
|
|
|
|
import com.hyp.system.domain.dto.ScoreInfoSaveDTO;
|
|
|
|
|
import com.hyp.system.service.RewApplyInfoListService;
|
|
|
|
|
import com.hyp.system.service.RewScoreInfoService;
|
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
@ -32,6 +35,10 @@ public class ScoreInfoManager {
|
|
|
|
|
@Resource
|
|
|
|
|
private RewScoreInfoService scoreInfoService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private RewApplyInfoListService applyInfoListService;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* 保存
|
|
|
|
@ -70,4 +77,19 @@ public class ScoreInfoManager {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* 评分提交
|
|
|
|
|
* @param applyId
|
|
|
|
|
* @return boolean
|
|
|
|
|
*/
|
|
|
|
|
public boolean submit(String applyId){
|
|
|
|
|
return applyInfoListService.lambdaUpdate()
|
|
|
|
|
.eq(RewApplyInfoList::getApplyId, applyId)
|
|
|
|
|
.set(RewApplyInfoList::getApplyStatus, ApplyStatusEnum.END.getType())
|
|
|
|
|
.set(RewApplyInfoList::getUpdateTime, new Date())
|
|
|
|
|
.update();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|