diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/ext/acs/service/impl/AcsToWmsServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/wms/ext/acs/service/impl/AcsToWmsServiceImpl.java index 1fc5d929d..ec0aa3239 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/ext/acs/service/impl/AcsToWmsServiceImpl.java +++ b/lms/nladmin-system/src/main/java/org/nl/wms/ext/acs/service/impl/AcsToWmsServiceImpl.java @@ -3314,7 +3314,12 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { if (boxinfo == null) { throw new BadRequestException("未查询到该木箱对应的木箱信息"); } - boxinfo.setBox_weight(weight); + + if(ObjectUtil.isEmpty(boxinfo.getBox_weight()) || Double.parseDouble(boxinfo.getBox_weight()) == 0){ + boxinfo.setBox_weight(weight); + }else { + log.info("当前木箱已有重量【"+boxinfo.getBox_weight()+"】,上传重量为【"+weight+"】"); + } bstIvtBoxinfoMapper.updateById(boxinfo); JSONObject result = new JSONObject();