|
|
|
@ -333,4 +333,22 @@ public class CaseController {
|
|
|
|
|
stuTrainingMapper.updateByPrimaryKeyWithBLOBs(stuTrainingWithBLOBs);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("countCaseTime")
|
|
|
|
|
@ApiOperation("统计综合规划编辑建议书时间")
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
public void countCaseTime(@RequestParam String stuClientId,
|
|
|
|
|
@ApiParam("时间,单位分钟") BigDecimal minuter) {
|
|
|
|
|
SynthesisPlanClient synthesisPlanClient = synthesisPlanClientMapper.selectByPrimaryKey(stuClientId);
|
|
|
|
|
if (synthesisPlanClient.getSubmitStatus().equals("已审核")||synthesisPlanClient.getSubmitStatus().equals("未审核")){
|
|
|
|
|
return;
|
|
|
|
|
}else {
|
|
|
|
|
if (synthesisPlanClient.getUseTime()==null){
|
|
|
|
|
synthesisPlanClient.setUseTime(minuter);
|
|
|
|
|
}else {
|
|
|
|
|
synthesisPlanClient.setUseTime(synthesisPlanClient.getUseTime().add(minuter));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
synthesisPlanClientMapper.updateByPrimaryKey(synthesisPlanClient);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|