|
@@ -143,7 +143,8 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
|
if (!CollectionUtils.isEmpty(warehouseInOutInfoAllList)) {
|
|
|
Float netWeight = 0f;
|
|
|
for (WarehouseInOutInfo warehouse : warehouseInOutInfoAllList) {
|
|
|
- netWeight = netWeight + warehouse.getNetWeight();
|
|
|
+ //潮粮累计纯重,干粮累计净重
|
|
|
+ netWeight = netWeight + (warehouse.getPureWeight()!=null?warehouse.getPureWeight():warehouse.getNetWeight());
|
|
|
}
|
|
|
warehouseNumView.setGoodsName(warehouseInOutInfoAllList.get(0).getGoodsName());
|
|
|
warehouseNumView.setInNetWeight(String.valueOf(netWeight));
|
|
@@ -179,7 +180,8 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
|
.eq("status_flag", "3").eq("position_id", warehousePositionInfo.getId()).eq("in_out_flag", "1").eq("goods_name_key", warehouseInOutInfo.getGoodsNameKey()));
|
|
|
if (!CollectionUtils.isEmpty(warehouseInOutInfoAllList)) {
|
|
|
for (WarehouseInOutInfo warehouse : warehouseInOutInfoAllList) {
|
|
|
- netWeight = netWeight + warehouse.getNetWeight();
|
|
|
+ //潮粮累计纯重,干粮累计净重
|
|
|
+ netWeight = netWeight + (warehouse.getPureWeight()!=null?warehouse.getPureWeight():warehouse.getNetWeight());
|
|
|
}
|
|
|
if (StringUtils.isEmpty(outNetWeight)) {
|
|
|
outNetWeight = "0";
|
|
@@ -240,7 +242,8 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
|
if (!CollectionUtils.isEmpty(warehouseInOutInfoAllList)) {
|
|
|
Float netWeight = 0f;
|
|
|
for (WarehouseInOutInfo warehouse : warehouseInOutInfoAllList) {
|
|
|
- netWeight = netWeight + warehouse.getNetWeight();
|
|
|
+ //潮粮累计纯重,干粮累计净重
|
|
|
+ netWeight = netWeight + (warehouse.getPureWeight()!=null?warehouse.getPureWeight():warehouse.getNetWeight());
|
|
|
}
|
|
|
warehouseNumView.setGoodsName(warehouseInOutInfoAllList.get(0).getGoodsName());
|
|
|
warehouseNumView.setInNetWeight(String.valueOf(netWeight));
|
|
@@ -267,7 +270,8 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
|
.eq("status_flag", "3").eq("base_id", warehouseBaseInfo.getId()).eq("in_out_flag", "1").eq("goods_name_key", warehouseInOutInfo.getGoodsNameKey()));
|
|
|
if (!CollectionUtils.isEmpty(warehouseInOutInfoAllList)) {
|
|
|
for (WarehouseInOutInfo warehouse : warehouseInOutInfoAllList) {
|
|
|
- netWeight = netWeight + warehouse.getNetWeight();
|
|
|
+ //潮粮累计纯重,干粮累计净重
|
|
|
+ netWeight = netWeight + (warehouse.getPureWeight()!=null?warehouse.getPureWeight():warehouse.getNetWeight());
|
|
|
}
|
|
|
if (StringUtils.isEmpty(outNetWeight)) {
|
|
|
outNetWeight = "0";
|