|
|
|
@ -54,6 +54,9 @@ public class CaseController {
|
|
|
|
|
private CaseCashFlowMapper caseCashFlowMapper;
|
|
|
|
|
@Autowired
|
|
|
|
|
private CaseFinancialRatiosMapper caseFinancialRatiosMapper;
|
|
|
|
|
@Autowired
|
|
|
|
|
private StuTrainingMapper stuTrainingMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/insertCase")
|
|
|
|
|
@ApiOperation("新增/编辑案例,学生端新增传isAnswer为学生答案+userId")
|
|
|
|
@ -318,4 +321,14 @@ public class CaseController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("countLearnTime")
|
|
|
|
|
@ApiOperation("统计实训学习时长")
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
public void countLearnTime(@RequestParam String trainingId,
|
|
|
|
|
@ApiParam("时间,单位分钟") BigDecimal minuter) {
|
|
|
|
|
StuTrainingWithBLOBs stuTrainingWithBLOBs = stuTrainingMapper.selectByPrimaryKey(trainingId);
|
|
|
|
|
stuTrainingWithBLOBs.setTrainingTime(minuter);
|
|
|
|
|
stuTrainingMapper.updateByPrimaryKeyWithBLOBs(stuTrainingWithBLOBs);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|