diff --git a/blade-service/blade-demo/src/main/java/org/springblade/demo/controller/NoticeController.java b/blade-service/blade-demo/src/main/java/org/springblade/demo/controller/NoticeController.java index 97e950992..78535bf08 100644 --- a/blade-service/blade-demo/src/main/java/org/springblade/demo/controller/NoticeController.java +++ b/blade-service/blade-demo/src/main/java/org/springblade/demo/controller/NoticeController.java @@ -49,7 +49,7 @@ public class NoticeController extends BladeController implements CacheNames { * 详情 */ @GetMapping("/detail") - @ApiOperation(value = "详情", notes = "传入notice", position = 2) + @ApiOperation(value = "详情", notes = "传入notice", position = 1) public R detail(Notice notice) { Notice detail = noticeService.getOne(Condition.getQueryWrapper(notice)); return R.data(detail); @@ -63,7 +63,7 @@ public class NoticeController extends BladeController implements CacheNames { @ApiImplicitParam(name = "category", value = "公告类型", paramType = "query", dataType = "integer"), @ApiImplicitParam(name = "title", value = "公告标题", paramType = "query", dataType = "string") }) - @ApiOperation(value = "分页", notes = "传入notice", position = 3) + @ApiOperation(value = "分页", notes = "传入notice", position = 2) public R> list(@ApiIgnore @RequestParam Map notice, Query query) { IPage pages = noticeService.page(Condition.getPage(query), Condition.getQueryWrapper(notice, Notice.class)); return R.data(pages); @@ -73,7 +73,7 @@ public class NoticeController extends BladeController implements CacheNames { * 新增 */ @PostMapping("/save") - @ApiOperation(value = "新增", notes = "传入notice", position = 4) + @ApiOperation(value = "新增", notes = "传入notice", position = 3) public R save(@RequestBody Notice notice) { return R.status(noticeService.save(notice)); } @@ -82,7 +82,7 @@ public class NoticeController extends BladeController implements CacheNames { * 修改 */ @PostMapping("/update") - @ApiOperation(value = "修改", notes = "传入notice", position = 5) + @ApiOperation(value = "修改", notes = "传入notice", position = 4) public R update(@RequestBody Notice notice) { return R.status(noticeService.updateById(notice)); } @@ -91,7 +91,7 @@ public class NoticeController extends BladeController implements CacheNames { * 新增或修改 */ @PostMapping("/submit") - @ApiOperation(value = "新增或修改", notes = "传入notice", position = 6) + @ApiOperation(value = "新增或修改", notes = "传入notice", position = 5) public R submit(@RequestBody Notice notice) { return R.status(noticeService.saveOrUpdate(notice)); } @@ -100,9 +100,9 @@ public class NoticeController extends BladeController implements CacheNames { * 删除 */ @PostMapping("/remove") - @ApiOperation(value = "逻辑删除", notes = "传入notice", position = 7) + @ApiOperation(value = "逻辑删除", notes = "传入notice", position = 6) public R remove(@ApiParam(value = "主键集合") @RequestParam String ids) { - boolean temp = noticeService.deleteLogic(Func.toIntList(ids)); + boolean temp = noticeService.deleteLogic(Func.toLongList(ids)); return R.status(temp); }