|
@@ -99,6 +99,10 @@ public class GroupBudgetReviewController {
|
|
groupBudgetReview.setRejectReason(rejectReason);
|
|
groupBudgetReview.setRejectReason(rejectReason);
|
|
}
|
|
}
|
|
groupBudgetReview.setStatus(checkType);
|
|
groupBudgetReview.setStatus(checkType);
|
|
|
|
+ if(!groupBudgetReviewService.updateById(groupBudgetReview)){
|
|
|
|
+ httpRespMsg.setError("验证失败");
|
|
|
|
+ return httpRespMsg;
|
|
|
|
+ }
|
|
if(checkType==1){
|
|
if(checkType==1){
|
|
//审核通过计算到任务分组的项目人天
|
|
//审核通过计算到任务分组的项目人天
|
|
Integer groupId = groupBudgetReview.getGroupId();
|
|
Integer groupId = groupBudgetReview.getGroupId();
|
|
@@ -108,9 +112,12 @@ public class GroupBudgetReviewController {
|
|
bigDecimal=bigDecimal.add(new BigDecimal(groupBudgetReview.getChangeManDay()==null?0:groupBudgetReview.getChangeManDay()));
|
|
bigDecimal=bigDecimal.add(new BigDecimal(groupBudgetReview.getChangeManDay()==null?0:groupBudgetReview.getChangeManDay()));
|
|
taskGroup.setManDay(bigDecimal.intValue());
|
|
taskGroup.setManDay(bigDecimal.intValue());
|
|
taskGroupMapper.updateById(taskGroup);
|
|
taskGroupMapper.updateById(taskGroup);
|
|
- }
|
|
|
|
- if(!groupBudgetReviewService.updateById(groupBudgetReview)){
|
|
|
|
- httpRespMsg.setError("验证失败");
|
|
|
|
|
|
+ //项目人天按照分组工时增加
|
|
|
|
+ Project project = projectMapper.selectById(taskGroup.getProjectId());
|
|
|
|
+ Integer day = project.getManDay();
|
|
|
|
+ day=day+groupBudgetReview.getChangeManDay();
|
|
|
|
+ project.setManDay(day);
|
|
|
|
+ projectMapper.updateById(project);
|
|
}
|
|
}
|
|
return httpRespMsg;
|
|
return httpRespMsg;
|
|
}
|
|
}
|