fix:更新空木箱重量会校验重量是否为0
This commit is contained in:
@@ -3314,7 +3314,12 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
|||||||
if (boxinfo == null) {
|
if (boxinfo == null) {
|
||||||
throw new BadRequestException("未查询到该木箱对应的木箱信息");
|
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);
|
bstIvtBoxinfoMapper.updateById(boxinfo);
|
||||||
|
|
||||||
JSONObject result = new JSONObject();
|
JSONObject result = new JSONObject();
|
||||||
|
|||||||
Reference in New Issue
Block a user