From 3d4d8e97543d6e5b4b2a84855e3cd08df1e6aaf4 Mon Sep 17 00:00:00 2001 From: jiazx0107@163.com <jiazx0107@163.com> Date: 星期三, 20 九月 2023 16:12:04 +0800 Subject: [PATCH] 提交仓内抓拍和后台配置 --- igds-api-phone/src/main/java/com/ld/igds/phone35/service/impl/Phone35ServiceImpl5204.java | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/igds-api-phone/src/main/java/com/ld/igds/phone35/service/impl/Phone35ServiceImpl5204.java b/igds-api-phone/src/main/java/com/ld/igds/phone35/service/impl/Phone35ServiceImpl5204.java index 9d7a64b..5a7fa74 100644 --- a/igds-api-phone/src/main/java/com/ld/igds/phone35/service/impl/Phone35ServiceImpl5204.java +++ b/igds-api-phone/src/main/java/com/ld/igds/phone35/service/impl/Phone35ServiceImpl5204.java @@ -75,7 +75,7 @@ param.setProgress(InoutConstant.PROGRESS_RECORD); List<InoutRecord> list = hPhoneService.listInoutRecord(param); - if(null == list || list.isEmpty()){ + if (null == list || list.isEmpty()) { return PhoneRespUtil.success(dto, req); } @@ -88,6 +88,9 @@ BeanUtils.copyProperties(record, inoutData); inoutData.setDepotName(phone35Util.getDepotName(phone35AuthUser.getCompanyId(), record.getDepotId())); inoutData.setFoodVarietyName(FoodVariety.getMsg(record.getFoodVariety())); + if (inoutData.getRecordWeight() == null) { + inoutData.setRecordWeight(0.0); + } sum += inoutData.getRecordWeight(); listDto.add(inoutData); } -- Gitblit v1.9.3