Commit 37e92b6d9ed3d788f79429ddaae4f494f8ff30ce

Authored by liquanyu
1 parent 9b3ac4d4df

工位

Showing 1 changed file with 9 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/worker/MaterDeliverWorker.java View file @ 37e92b6
... ... @@ -316,7 +316,15 @@
316 316 //System.out.println("查询调价n:"+babyModelQuery.convertToQuery().convertToMongoQuery());
317 317 List<BabyModel> babyModelList = babyService.queryBabyWithQuery(babyModelQuery);
318 318 if (CollectionUtils.isNotEmpty(babyModelList)) {
319   - childbirthManagerQueryModel.setLivingNumber(babyModelList.size());
  319 + List<BabyModel> livelList = new ArrayList<>();
  320 + for (BabyModel babyModel : babyModelList)
  321 + {
  322 + if (!StringUtils.isNotEmpty(babyModel.getSource()))
  323 + {
  324 + livelList.add(babyModel);
  325 + }
  326 + }
  327 + childbirthManagerQueryModel.setLivingNumber(livelList.size());
320 328 } else {
321 329 if (childbirthManagerQueryModel.getTireNumber() == null) {
322 330 childbirthManagerQueryModel.setLivingNumber(null);