fix: 修复一级需求部门任务创建时score字段未设置的问题
This commit is contained in:
parent
d011ba6f66
commit
fea9627f7a
@ -192,7 +192,10 @@ public class TaskService {
|
|||||||
if (!canSkipTaskType) {
|
if (!canSkipTaskType) {
|
||||||
throw new BusinessException(ResultCode.PARAM_ERROR, "请选择任务类型");
|
throw new BusinessException(ResultCode.PARAM_ERROR, "请选择任务类型");
|
||||||
} else {
|
} else {
|
||||||
log.info("一级需求部门任务,允许不填写任务类型");
|
// 一级需求部门任务,暂时不填写任务类型,积分设为0(后续由需求部门成员填写明细时再计算)
|
||||||
|
task.setScore(BigDecimal.ZERO);
|
||||||
|
task.setEstimatedHours(BigDecimal.ZERO);
|
||||||
|
log.info("一级需求部门任务,允许不填写任务类型,积分暂时设为0");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user