|
|
@@ -33,6 +33,7 @@ public class FsUserCourseTrainingCampController {
|
|
|
|
|
|
private final IFsUserCourseTrainingCampService fsUserCourseTrainingCampService;
|
|
|
private final TokenService tokenService;
|
|
|
+
|
|
|
/**
|
|
|
* 查询训练营列表
|
|
|
*/
|
|
|
@@ -42,8 +43,7 @@ public class FsUserCourseTrainingCampController {
|
|
|
@RequestParam(required = false) String userId,
|
|
|
@RequestParam String scs,
|
|
|
@RequestParam(required = false, defaultValue = "1") Integer pageNum,
|
|
|
- @RequestParam(required = false, defaultValue = "10") Integer pageSize)
|
|
|
- {
|
|
|
+ @RequestParam(required = false, defaultValue = "10") Integer pageSize) {
|
|
|
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
params.put("trainingCampName", trainingCampName);
|
|
|
@@ -55,4 +55,16 @@ public class FsUserCourseTrainingCampController {
|
|
|
return AjaxResult.success(new PageInfo<>(list));
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/getCampListLikeName")
|
|
|
+ public R getCampListLikeName(@RequestParam(required = false) String name,
|
|
|
+ @RequestParam(required = false, defaultValue = "1") Integer pageNum,
|
|
|
+ @RequestParam(required = false, defaultValue = "10") Integer pageSize) {
|
|
|
+ Map<String, Object> params = new HashMap<>();
|
|
|
+ params.put("name", name);
|
|
|
+
|
|
|
+ PageHelper.startPage(pageNum, pageSize);
|
|
|
+ List<OptionsVO> campList = fsUserCourseTrainingCampService.selectCampListByMap(params);
|
|
|
+ return R.ok().put("data", new PageInfo<>(campList));
|
|
|
+
|
|
|
+ }
|
|
|
}
|