|
|
|
@ -323,9 +323,13 @@ public class CaseController {
|
|
|
|
|
@PostMapping("countLearnTime")
|
|
|
|
|
@ApiOperation("统计实训学习时长")
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
public void countLearnTime(@RequestParam String trainingId,
|
|
|
|
|
public void countLearnTime(@RequestParam(required = false) String trainingId,
|
|
|
|
|
@ApiParam("时间,单位分钟") BigDecimal minuter) {
|
|
|
|
|
if(trainingId==null){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
StuTrainingWithBLOBs stuTrainingWithBLOBs = stuTrainingMapper.selectByPrimaryKey(trainingId);
|
|
|
|
|
if(stuTrainingWithBLOBs!=null){
|
|
|
|
|
if (stuTrainingWithBLOBs.getTrainingTime()==null){
|
|
|
|
|
stuTrainingWithBLOBs.setTrainingTime(minuter);
|
|
|
|
|
}else {
|
|
|
|
@ -333,13 +337,20 @@ public class CaseController {
|
|
|
|
|
}
|
|
|
|
|
stuTrainingMapper.updateByPrimaryKeyWithBLOBs(stuTrainingWithBLOBs);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("countCaseTime")
|
|
|
|
|
@ApiOperation("统计综合规划编辑建议书时间")
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
public void countCaseTime(@RequestParam String stuClientId,
|
|
|
|
|
public void countCaseTime(@RequestParam(required = false) String stuClientId,
|
|
|
|
|
@ApiParam("时间,单位分钟") BigDecimal minuter) {
|
|
|
|
|
if(stuClientId==null){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
SynthesisPlanClient synthesisPlanClient = synthesisPlanClientMapper.selectByPrimaryKey(stuClientId);
|
|
|
|
|
if(synthesisPlanClient==null){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (synthesisPlanClient.getSubmitStatus().equals("已审核")||synthesisPlanClient.getSubmitStatus().equals("未审核")){
|
|
|
|
|
return;
|
|
|
|
|
} else {
|
|
|
|
|