|
|
|
@ -54,6 +54,9 @@ public class CaseController {
|
|
|
|
|
private CaseCashFlowMapper caseCashFlowMapper;
|
|
|
|
|
@Autowired
|
|
|
|
|
private CaseFinancialRatiosMapper caseFinancialRatiosMapper;
|
|
|
|
|
@Autowired
|
|
|
|
|
private StuTrainingMapper stuTrainingMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/insertCase")
|
|
|
|
|
@ApiOperation("新增/编辑案例,学生端新增传isAnswer为学生答案+userId")
|
|
|
|
@ -259,7 +262,7 @@ public class CaseController {
|
|
|
|
|
@ApiOperation("根据类型查询案例")
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
private ResultEntity<List<CaseInfo>> getCaseInfoByType(@RequestParam String type,
|
|
|
|
|
@ApiParam("实验实训传客户案例") @RequestParam String module) {
|
|
|
|
|
@ApiParam("实验实训传客户案例") @RequestParam String module) {
|
|
|
|
|
CaseInfoExample example = new CaseInfoExample();
|
|
|
|
|
CaseInfoExample.Criteria criteria = example.createCriteria();
|
|
|
|
|
if (type.contains("财务分析")) {
|
|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|