增加案例题需求

master
yz 8 months ago
parent e47ddde221
commit 643fa12b28

@ -0,0 +1,19 @@
package com.sztzjy.resource_center.controller.api;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@Api(tags = "课程方面API")
@RequestMapping("api/sys/CaseApi")
public class CaseApi {
//案例题新增 SysCaseQuestion
//案例题列表查询 schoolId keyword index size systemOwner
//案例题详情查询 caseId
//案例题删除 caseId
//案例题编辑 SysCaseQuestion
//案例题步骤信息查询 caseId
//案例题信息查询 caseId
}

@ -49,9 +49,12 @@ public class CourseApi {
@PostMapping("selectThreeCatalogListByTwoId") @PostMapping("selectThreeCatalogListByTwoId")
@ApiOperation("根据二级目录ID查寻所有三级目录信息") @ApiOperation("根据二级目录ID查寻所有三级目录信息")
@AnonymousAccess @AnonymousAccess
public List<SysThreeCatalog> selectChapterByCourseId(@RequestParam String twoId) { public List<SysThreeCatalog> selectChapterByCourseId(@RequestParam String twoId,@RequestParam String schoolId) {
SysThreeCatalogExample example = new SysThreeCatalogExample(); SysThreeCatalogExample example = new SysThreeCatalogExample();
example.createCriteria().andTwoIdEqualTo(twoId); ArrayList<String> list = new ArrayList<>();
list.add(schoolId);
list.add(Constant.ADMIN);
example.createCriteria().andTwoIdEqualTo(twoId).andCreatorIn(list);
example.setOrderByClause("sort asc"); example.setOrderByClause("sort asc");
List<SysThreeCatalog> sysThreeCatalogs = threeCatalogMapper.selectByExample(example); List<SysThreeCatalog> sysThreeCatalogs = threeCatalogMapper.selectByExample(example);
return sysThreeCatalogs; return sysThreeCatalogs;
@ -136,4 +139,5 @@ public class CourseApi {
return false; return false;
} }
} }
} }

Loading…
Cancel
Save