| | |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | |
| | | @ApiOperation(value = "分页", notes = "白蚁普查分页") |
| | | public R list(@ApiIgnore TbResGeneralInvestigation param, Query query) { |
| | | QueryWrapper queryWrapper = new QueryWrapper(); |
| | | queryWrapper.eq("\"check_state\"", param.getCheckState()); |
| | | return R.data(tbResGeneralInvestigationService.page(Condition.getPage(query),queryWrapper)); |
| | | if (null != param.getCheckState()) |
| | | queryWrapper.eq("\"check_state\"", param.getCheckState()); |
| | | if (!StringUtil.isBlank(param.getResName())) |
| | | queryWrapper.like("\"res_name\"", "%" + param.getCheckState() + "%"); |
| | | return R.data(tbResGeneralInvestigationService.page(Condition.getPage(query), queryWrapper)); |
| | | } |
| | | |
| | | @ApiOperation(value = "白蚁普查-添加或者修改", notes = "白蚁普查-添加或者修改") |