feat(department): 更新领域部门类型检查逻辑
parent
4c8123b84a
commit
0d2ff8cd77
|
|
@ -78,7 +78,12 @@ public class ProjectTaskGroupUserAddExe {
|
|||
}
|
||||
Integer code = projectTaskDO.getExecuteStatus();
|
||||
if (new Date().compareTo(projectTaskDO.getExecutedStartDate()) >= 0) {
|
||||
code = ProjectTaskExecuteStatusEnum.EXECUTING.getCode();
|
||||
if(new Date().compareTo(projectTaskDO.getExecutedEndDate())>=0){
|
||||
code = ProjectTaskExecuteStatusEnum.FINISHED.getCode();
|
||||
}else{
|
||||
code = ProjectTaskExecuteStatusEnum.EXECUTING.getCode();
|
||||
}
|
||||
|
||||
}else{
|
||||
code = ProjectTaskExecuteStatusEnum.WAIT_PERFECT.getCode();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ package com.zcloud.domain.persistence.repository.impl;
|
|||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.jjb.saas.framework.repository.common.PageHelper;
|
||||
|
|
@ -49,7 +50,7 @@ public class DomainDepartmentRepositoryImpl extends BaseRepositoryImpl<DomainDep
|
|||
}
|
||||
List<DomainDepartmentDO> list = list(queryWrapper);
|
||||
if (CollUtil.isNotEmpty(list)) {
|
||||
throw new RuntimeException("该领域类型已存在");
|
||||
throw new BizException("该领域类型已存在");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue