|
|
|
@ -323,24 +323,35 @@ 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.getTrainingTime() == null) {
|
|
|
|
|
stuTrainingWithBLOBs.setTrainingTime(minuter);
|
|
|
|
|
} else {
|
|
|
|
|
stuTrainingWithBLOBs.setTrainingTime(stuTrainingWithBLOBs.getTrainingTime().add(minuter));
|
|
|
|
|
if(stuTrainingWithBLOBs!=null){
|
|
|
|
|
if (stuTrainingWithBLOBs.getTrainingTime()==null){
|
|
|
|
|
stuTrainingWithBLOBs.setTrainingTime(minuter);
|
|
|
|
|
}else {
|
|
|
|
|
stuTrainingWithBLOBs.setTrainingTime(stuTrainingWithBLOBs.getTrainingTime().add(minuter));
|
|
|
|
|
}
|
|
|
|
|
stuTrainingMapper.updateByPrimaryKeyWithBLOBs(stuTrainingWithBLOBs);
|
|
|
|
|
}
|
|
|
|
|
stuTrainingMapper.updateByPrimaryKeyWithBLOBs(stuTrainingWithBLOBs);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("countCaseTime")
|
|
|
|
|
@ApiOperation("统计综合规划编辑建议书时间")
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
public void countCaseTime(@RequestParam String stuClientId,
|
|
|
|
|
@ApiParam("时间,单位分钟") BigDecimal minuter) {
|
|
|
|
|
public void countCaseTime(@RequestParam(required = false) String stuClientId,
|
|
|
|
|
@ApiParam("时间,单位分钟") BigDecimal minuter) {
|
|
|
|
|
if(stuClientId==null){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
SynthesisPlanClient synthesisPlanClient = synthesisPlanClientMapper.selectByPrimaryKey(stuClientId);
|
|
|
|
|
if (synthesisPlanClient.getSubmitStatus().equals("已审核") || synthesisPlanClient.getSubmitStatus().equals("未审核")) {
|
|
|
|
|
if(synthesisPlanClient==null){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (synthesisPlanClient.getSubmitStatus().equals("已审核")||synthesisPlanClient.getSubmitStatus().equals("未审核")){
|
|
|
|
|
return;
|
|
|
|
|
} else {
|
|
|
|
|
if (synthesisPlanClient.getUseTime() == null) {
|
|
|
|
|