新增任务接收人时,新增某些字段初始化。

This commit is contained in:
Renpc-kilig 2021-11-17 17:41:55 +08:00
parent a2cfcd625d
commit 510495e1ab
2 changed files with 4 additions and 5 deletions

View File

@ -464,6 +464,10 @@ public class DistributeServiceImpl extends DefaultBaseService implements IDistri
if(null != business) { if(null != business) {
receiverUserVO.setBusiness(business); receiverUserVO.setBusiness(business);
} }
receiverUserVO.setIsReceive(0);
receiverUserVO.setIsSupervision(0);
receiverUserVO.setIsWarning(0);
receiverUserVO.setCheckStatus("未审核");
receiverUserVO.setReceiveType("下派"); receiverUserVO.setReceiveType("下派");
receiverUserVO.setTaskType("正常"); receiverUserVO.setTaskType("正常");
receiverUserVO.setExecuteStatus("未完成"); receiverUserVO.setExecuteStatus("未完成");

View File

@ -318,15 +318,10 @@ public class ReceiverUserServiceImpl extends DefaultBaseService implements IRece
// 系统当前时间 // 系统当前时间
String nowDateStr = df.format(new Date()); String nowDateStr = df.format(new Date());
for(ReceiverUserDTO receiverUserDTO: receiverUserDTOList) { for(ReceiverUserDTO receiverUserDTO: receiverUserDTOList) {
// 判断当前任务是否选择了任务模板
// 如果选择了模板则判断任务类型
// 单次任务和多次任务根据给定的截止日期 // 单次任务和多次任务根据给定的截止日期
// 循环任务根据默认时限为最后时限 // 循环任务根据默认时限为最后时限
// 例如每天则为当天24点前 // 例如每天则为当天24点前
// 例如每周则为本周周日24点前 // 例如每周则为本周周日24点前
if(StringUtils.isEmpty(receiverUserDTO.getTaskTemplate())) {
}
String[] deadLineTime = receiverUserDTO.getDistributeDeadline().split(","); String[] deadLineTime = receiverUserDTO.getDistributeDeadline().split(",");
if(1 == deadLineTime.length) { if(1 == deadLineTime.length) {
setTaskType(nowDateStr, deadLineTime[0], receiverUserDTO); setTaskType(nowDateStr, deadLineTime[0], receiverUserDTO);