|
|
|
|
@ -37,6 +37,9 @@ import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
|
|
|
|
|
|
import static org.springblade.desk.basic.pojo.vo.PlanAssignSteerModifyVO.RESULT_PASS; |
|
|
|
|
import static org.springblade.desk.basic.pojo.vo.PlanAssignSteerModifyVO.RESULT_REJECT; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* [分派控制调整] 服务实现类 |
|
|
|
|
* |
|
|
|
|
@ -322,12 +325,12 @@ public class PlanAssignSteerModifyServiceImpl extends BaseServiceImpl<PlanAssign |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 校验审批结果
|
|
|
|
|
if (result == null || (!PlanAssignSteerModify.ApprovalStatus.PASS.equals(result) && !PlanAssignSteerModify.ApprovalStatus.REJECT.equals(result))) { |
|
|
|
|
if (result == null || (!RESULT_PASS.equals(result) && !RESULT_REJECT.equals(result))) { |
|
|
|
|
throw new RuntimeException("审批结果错误,1-通过,2-驳回"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 审批不通过时,意见必填
|
|
|
|
|
if (PlanAssignSteerModify.ApprovalStatus.REJECT.equals(result) && Func.isEmpty(remark)) { |
|
|
|
|
if (RESULT_REJECT.equals(result) && StrUtil.isEmpty(remark)) { |
|
|
|
|
throw new RuntimeException("审批不通过时,必须填写审批意见"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|