|
|
@@ -198,26 +198,46 @@ public class BusinessQcQualityInspectionServiceImpl extends ServiceImpl<Business
|
|
198
|
198
|
|
|
199
|
199
|
if (StringUtils.isNotEmpty(pageParam.getCityName())) {
|
|
200
|
200
|
//进行条件查询
|
|
|
201
|
+<<<<<<< HEAD
|
|
|
202
|
+ //收集合格总数
|
|
|
203
|
+ ReserveQualityCityPageVO passVo = businessQcQualityInspectionMapper.selectCityPassByCityName(pageParam.getCityName());
|
|
|
204
|
+ //不收集
|
|
|
205
|
+ ReserveQualityCityPageVO noPassVo = businessQcQualityInspectionMapper.selectCityNoPassByCityName(pageParam.getCityName());
|
|
|
206
|
+
|
|
|
207
|
+ if (StringUtils.isEmpty(passVo.getCityId())) {
|
|
|
208
|
+ noPassVo.setPassNum(passVo.getPassNum());
|
|
|
209
|
+ list.add(noPassVo);
|
|
|
210
|
+ } else {
|
|
|
211
|
+ passVo.setNoPassNum(noPassVo.getNoPassNum());
|
|
|
212
|
+ list.add(passVo);
|
|
|
213
|
+ }
|
|
|
214
|
+=======
|
|
201
|
215
|
List<ReserveQualityCityPageVO> voList = businessQcQualityInspectionMapper.selectCitys(pageParam.getCityName());
|
|
202
|
216
|
list.addAll(voList);
|
|
|
217
|
+>>>>>>> dev
|
|
203
|
218
|
|
|
204
|
219
|
} else {
|
|
205
|
220
|
//非条件查询
|
|
206
|
221
|
List<String> cityIdList = reserveQualityCityPageVOList.stream().map(ReserveQualityCityPageVO::getCityId).collect(Collectors.toList());
|
|
207
|
|
- for (String cityId : cityIdList) {
|
|
208
|
|
-
|
|
209
|
|
- com.unis.basic.info.modular.unitInfo.entity.BasicEnum basicEnum = enumMapper.selectById(cityId);
|
|
210
|
|
- //收集合格总数
|
|
211
|
|
- ReserveQualityCityPageVO passVo = businessQcQualityInspectionMapper.selectCityPass(cityId);
|
|
212
|
|
- //不收集
|
|
213
|
|
- ReserveQualityCityPageVO noPassVo = businessQcQualityInspectionMapper.selectCityNoPass(cityId);
|
|
214
|
|
-
|
|
215
|
|
- noPassVo.setPassNum(passVo.getPassNum());
|
|
216
|
|
- noPassVo.setCityId(cityId);
|
|
217
|
|
- noPassVo.setCityName(basicEnum.getDictLabel());
|
|
218
|
|
- list.add(noPassVo);
|
|
|
222
|
+ if (CollectionUtil.isNotEmpty(cityIdList)) {
|
|
|
223
|
+ for (String cityId : cityIdList) {
|
|
|
224
|
+
|
|
|
225
|
+ com.unis.basic.info.modular.unitInfo.entity.BasicEnum basicEnum = enumMapper.selectById(cityId);
|
|
|
226
|
+ //收集合格总数
|
|
|
227
|
+ ReserveQualityCityPageVO passVo = businessQcQualityInspectionMapper.selectCityPass(cityId);
|
|
|
228
|
+ //不收集
|
|
|
229
|
+ ReserveQualityCityPageVO noPassVo = businessQcQualityInspectionMapper.selectCityNoPass(cityId);
|
|
|
230
|
+
|
|
|
231
|
+ noPassVo.setPassNum(passVo.getPassNum());
|
|
|
232
|
+ noPassVo.setCityId(cityId);
|
|
|
233
|
+ if (ObjectUtil.isNotEmpty(basicEnum)) {
|
|
|
234
|
+ noPassVo.setCityName(basicEnum.getDictLabel());
|
|
|
235
|
+ }
|
|
|
236
|
+ list.add(noPassVo);
|
|
|
237
|
+ }
|
|
219
|
238
|
}
|
|
220
|
239
|
|
|
|
240
|
+
|
|
221
|
241
|
}
|
|
222
|
242
|
}
|
|
223
|
243
|
page.setTotal(list.size());
|