新增实验实训查询右侧案例接口

master
xiaoCJ 5 months ago
parent 72814ac003
commit 30412b6c56

@ -184,6 +184,18 @@ public class CaseController {
return new ResultEntity<PageInfo<CaseInfo>>(pageInfo);
}
@PostMapping("/getCaseInfoByChapterId")
@ApiOperation("根据章节查询案例")
@AnonymousAccess
private ResultEntity<List<CaseInfo>> getCaseInfoByChapterId(@RequestParam String type) {
CaseInfoExample example = new CaseInfoExample();
example.createCriteria().andManageMoneyMattersTypeEqualTo(type);
List<CaseInfo> caseInfoList = caseInfoMapper.selectByExampleWithBLOBs(example);
return new ResultEntity<>(caseInfoList);
}
@PostMapping("/insertKnowledge")
@ApiOperation("知识点新增")
@AnonymousAccess

Loading…
Cancel
Save