|
@@ -95,42 +95,12 @@ public class GeoHazardMineController extends BaseController {
|
|
|
/**
|
|
|
* app推送报警信息记录分页显示(全部信息)
|
|
|
*/
|
|
|
- @RequestMapping(value = "allList", method = RequestMethod.POST)
|
|
|
+ @RequestMapping(value = "/list", method = RequestMethod.POST)
|
|
|
@ApiOperation("app推送报警信息记录分页显示(全部信息)")
|
|
|
- public AjaxResult allList(@RequestBody MsgAppPushVo msgAppPushVo) {
|
|
|
+ public AjaxResult list(@RequestBody MsgAppPushVo msgAppPushVo) {
|
|
|
QueryWrapper<MsgAppPush> queryWrapper = new QueryWrapper<MsgAppPush>();
|
|
|
IPage<MsgAppPush> page = msgAppPushService.page(new Page<>(msgAppPushVo.getPageNum(), msgAppPushVo.getPageSize()), queryWrapper);
|
|
|
return AjaxResult.success(page);
|
|
|
}
|
|
|
- /**
|
|
|
- * app推送报警信息记录分页显示(未读信息)
|
|
|
- */
|
|
|
- @RequestMapping(value = "unReadList", method = RequestMethod.POST)
|
|
|
- @ApiOperation("app推送报警信息记录分页显示(未读信息)")
|
|
|
- public AjaxResult unReadList(@RequestBody MsgAppPushVo msgAppPushVo) {
|
|
|
- LambdaQueryWrapper<MsgAppPush> queryWrapper = new LambdaQueryWrapper<MsgAppPush>();
|
|
|
- if (!ObjectUtils.isEmpty(msgAppPushVo.getStatus())) {
|
|
|
- queryWrapper.eq(MsgAppPush::getStatus, 0);
|
|
|
- }
|
|
|
- IPage<MsgAppPush> page = msgAppPushService.page(new Page<>(msgAppPushVo.getPageNum(), msgAppPushVo.getPageSize()), queryWrapper);
|
|
|
- return AjaxResult.success(page);
|
|
|
- }
|
|
|
- /**
|
|
|
- * app推送报警信息记录分页显示(已读信息)
|
|
|
- */
|
|
|
- @RequestMapping(value = "readList", method = RequestMethod.POST)
|
|
|
- @ApiOperation("app推送报警信息记录分页显示(已读信息)")
|
|
|
- @ApiImplicitParams(value = {
|
|
|
- @ApiImplicitParam(paramType = "query", name = "caseMonth", value = "分析年份"),
|
|
|
- @ApiImplicitParam(paramType = "query", name = "current", value = "当前页数"),
|
|
|
- })
|
|
|
- public AjaxResult readList(@RequestBody MsgAppPushVo msgAppPushVo) {
|
|
|
- LambdaQueryWrapper<MsgAppPush> queryWrapper = new LambdaQueryWrapper<MsgAppPush>();
|
|
|
- if (!ObjectUtils.isEmpty(msgAppPushVo.getStatus())) {
|
|
|
- queryWrapper.eq(MsgAppPush::getStatus, 1);
|
|
|
- }
|
|
|
- IPage<MsgAppPush> page = msgAppPushService.page(new Page<>(msgAppPushVo.getPageNum(), msgAppPushVo.getPageSize()), queryWrapper);
|
|
|
- return AjaxResult.success(page);
|
|
|
- }
|
|
|
}
|
|
|
|