|
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.qmth.boot.api.annotation.Aac;
|
|
|
import com.qmth.boot.api.annotation.BOOL;
|
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
|
+import com.qmth.sop.business.bean.result.SysNoticeResult;
|
|
|
import com.qmth.sop.business.entity.SysNotice;
|
|
|
import com.qmth.sop.business.service.SysNoticeService;
|
|
|
import com.qmth.sop.common.contant.SystemConstant;
|
|
@@ -42,7 +43,7 @@ public class SysNoticeController {
|
|
|
|
|
|
@ApiOperation(value = "公告表查询接口")
|
|
|
@RequestMapping(value = "/query", method = RequestMethod.POST)
|
|
|
- @ApiResponses({@ApiResponse(code = 200, message = "公告表查询结果", response = SysNotice.class)})
|
|
|
+ @ApiResponses({@ApiResponse(code = 200, message = "公告表查询结果", response = SysNoticeResult.class)})
|
|
|
public Result query(
|
|
|
@ApiParam(value = "模糊查询条件", required = false) @RequestParam(required = false) String query,
|
|
|
@ApiParam(value = "发布状态", required = false) @RequestParam(required = false) NoticeStatusEnum status,
|
|
@@ -51,7 +52,7 @@ public class SysNoticeController {
|
|
|
@ApiParam(value = "发布时间结束", required = false) @RequestParam(required = false) Long endTime,
|
|
|
@ApiParam(value = "分页页码", required = true) @RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
|
|
|
@ApiParam(value = "分页数", required = true) @RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) {
|
|
|
- IPage<SysNotice> resultIPage = sysNoticeService.query(new Page<>(pageNumber, pageSize),query,status,type,startTime,endTime);
|
|
|
+ IPage<SysNoticeResult> resultIPage = sysNoticeService.query(new Page<>(pageNumber, pageSize),query,status,type,startTime,endTime);
|
|
|
|
|
|
return ResultUtil.ok(resultIPage);
|
|
|
}
|