rev:分切计划重量、包装毛重毛重 保留2位小数
This commit is contained in:
@@ -2,6 +2,7 @@ package org.nl.b_lms.pdm.subpackagerelation.service.impl;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import cn.hutool.core.util.NumberUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
@@ -374,7 +375,7 @@ public class PdmBiSubpackagerelationServiceImpl extends ServiceImpl<PdmBiSubpack
|
||||
private void updateBoxGroup(Integer maxBoxGroup, List<String> entityList, BstIvtBoxinfo boxDao, String totalWeight) {
|
||||
UpdateWrapper<PdmBiSubpackagerelation> updateWrapper = new UpdateWrapper<>();
|
||||
//理论毛重
|
||||
updateWrapper.set("box_weight", totalWeight);
|
||||
updateWrapper.set("box_weight", NumberUtil.round(totalWeight, 2).toString());
|
||||
updateWrapper.set("package_box_sn", boxDao.getBox_no());
|
||||
updateWrapper.set("quanlity_in_box", entityList.size());
|
||||
updateWrapper.set("box_type", boxDao.getMaterial_code());
|
||||
|
||||
@@ -2341,7 +2341,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
String subVolume = param.getString("sub_volume");
|
||||
String weight = param.getString("weight1");
|
||||
LambdaUpdateWrapper<PdmBiSlittingproductionplan> updateWrapper = new UpdateWrapper<PdmBiSlittingproductionplan>().lambda();
|
||||
updateWrapper.set(PdmBiSlittingproductionplan::getWeight, weight)
|
||||
updateWrapper.set(PdmBiSlittingproductionplan::getWeight, NumberUtil.round(weight, 2).toString())
|
||||
.eq(PdmBiSlittingproductionplan::getContainer_name, subVolume);
|
||||
boolean update = slittingproductionplanService.update(updateWrapper);
|
||||
if (update) {
|
||||
@@ -2369,7 +2369,10 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
String isUncap = "1";
|
||||
JSONObject vehicle_info = WQLObject.getWQLObject("md_pb_storagevehicleext").query("storagevehicle_code = '" + material_barcode + "'").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(vehicle_info)) {
|
||||
throw new BadRequestException("未查询到载具号【" + vehicle_code + "】对应的载具信息!");
|
||||
vehicle_info = WQLObject.getWQLObject("md_pb_storagevehicleext").query("storagevehicle_code = '" + vehicle_code + "'").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(vehicle_info)){
|
||||
throw new BadRequestException("未查询到载具号【" + vehicle_code + "】对应的载具信息!");
|
||||
}
|
||||
}
|
||||
material_barcode = vehicle_info.getString("pcsn");
|
||||
// 查询木箱信息
|
||||
|
||||
Reference in New Issue
Block a user