| | |
| | | QueryWrapper<Rectify> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("city_code", cityCode) |
| | | .eq("is_delete", Constants.NOT_DELETE) |
| | | .likeRight("complete_time", time); |
| | | .likeRight("create_time", time); |
| | | |
| | | Page<Rectify> rectifyPage = new Page<>(page, size); |
| | | rectifyMapper.selectPage(rectifyPage, queryWrapper); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<Rectify> exportRectifyByCityCode(Map<String, Object> params) { |
| | | //获取请求参数 |
| | | Integer cityCode = Integer.parseInt(params.get("cityCode").toString()); |
| | | String time = params.get("time").toString(); |
| | | |
| | | QueryWrapper<Rectify> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("city_code", cityCode) |
| | | .eq("is_delete", Constants.NOT_DELETE) |
| | | .likeRight("create_time", time); |
| | | List<Rectify> rectifies = rectifyMapper.selectList(queryWrapper); |
| | | return rectifies; |
| | | } |
| | | |
| | | @Override |
| | | public int updateRectify(Rectify rectify) { |
| | | UpdateWrapper<Rectify> wrapper = new UpdateWrapper<>(); |
| | | wrapper.eq("id", rectify.getId()); |