| | |
| | | Page page = new Page(unionReportDto.getPageNum(), unionReportDto.getPageSize()); |
| | | QueryWrapper<UnionReport> unionOutdoorLaborDynamicQueryWrapper = new QueryWrapper<>(); |
| | | if (unionReportDto.getIsApplets().equals(1)){ |
| | | unionOutdoorLaborDynamicQueryWrapper.eq("create_user_id",unionReportDto.getCreateUserId()).eq("type",2); |
| | | unionOutdoorLaborDynamicQueryWrapper.eq("create_user_id",unionReportDto.getCreateUserId()); |
| | | if (unionReportDto.getType()!=null) |
| | | unionOutdoorLaborDynamicQueryWrapper.eq("type",unionReportDto.getType()); |
| | | if (unionReportDto.getStatus()!=null) |
| | | unionOutdoorLaborDynamicQueryWrapper.eq("status",unionReportDto.getStatus()); |
| | | }else if(unionReportDto.getIsApplets().equals(3)){ |
| | | unionOutdoorLaborDynamicQueryWrapper.eq("create_union_user_id",unionReportDto.getCreateUnionUserId()).eq("type",2); |
| | | unionOutdoorLaborDynamicQueryWrapper.eq("create_union_user_id",unionReportDto.getCreateUnionUserId()).eq("type",unionReportDto.getType()); |
| | | if (unionReportDto.getStatus()!=null) |
| | | unionOutdoorLaborDynamicQueryWrapper.eq("status",unionReportDto.getStatus()); |
| | | if (unionReportDto.getType()!=null) |
| | | unionOutdoorLaborDynamicQueryWrapper.eq("type",unionReportDto.getType()); |
| | | } |
| | | Page pageResult = baseMapper.selectPage(page, unionOutdoorLaborDynamicQueryWrapper); |
| | | pageResult.setTotal(pageResult.getRecords().size()); |