|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.yingji.service.impl;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
@ -28,13 +29,21 @@ public class FireServiceImpl extends ServiceImpl<FireMapper, Fire> implements Fi
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public Page<Fire> page(Page<Fire> page, FireFindRequest fire) {
|
|
|
|
|
log.error("==================119入参开始=====================");
|
|
|
|
|
log.error("==================119每页显示条数: " + page.getSize() + "页数: " + page.getCurrent() + "=====================");
|
|
|
|
|
log.error(JSONUtil.toJsonStr(fire));
|
|
|
|
|
log.error("==================119入参结束=====================");
|
|
|
|
|
QueryWrapper<Fire> wrapper = new QueryWrapper<>();
|
|
|
|
|
wrapper.like(StrUtil.isNotEmpty(fire.getAjbh()), "ajbh", fire.getAjbh())
|
|
|
|
|
.ge(fire.getStartTime() != null, "create_time", fire.getStartTime())
|
|
|
|
|
.le(fire.getEndTime() != null, "create_time", fire.getEndTime())
|
|
|
|
|
.like(StrUtil.isNotEmpty(fire.getAjms()), "ajms", fire.getAjms())
|
|
|
|
|
.like(StrUtil.isNotEmpty(fire.getAfdz()), "afdz", fire.getAfdz());
|
|
|
|
|
return this.page(page, wrapper);
|
|
|
|
|
Page<Fire> firePage = this.page(page, wrapper);
|
|
|
|
|
log.error("==================119响应开始=====================");
|
|
|
|
|
log.error(JSONUtil.toJsonStr(firePage));
|
|
|
|
|
log.error("==================119响应结束=====================");
|
|
|
|
|
return firePage;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|