Browse Source

1.干线运单bug修复

visual
zhenghaoyu 6 months ago
parent
commit
03fef6afa2
  1. 1
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineAdvanceDetailMapper.xml
  2. 15
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseWaybillServiceImpl.java

1
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineAdvanceDetailMapper.xml

@ -281,6 +281,7 @@
left join logpm_distribution_loadscan ldl on ldl.order_package_code = ltad.order_package_code and ldl.scan_status != 1 and ldl.is_deleted = 0
left join logpm_distribution_delivery_list lddl on lddl.id = ldl.delivery_id
where 1=1
and ltad.is_deleted = 0
<if test="param.orderCode != null and param.orderCode != '' ">
and ltad.order_code like concat(#{param.orderCode},'%')
</if>

15
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseWaybillServiceImpl.java

@ -1,6 +1,7 @@
package com.logpm.warehouse.service.impl;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.NumberUtil;
import cn.hutool.core.util.ObjectUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
@ -924,7 +925,7 @@ public class WarehouseWaybillServiceImpl extends BaseServiceImpl<WarehouseWaybil
map.put("查询单号", warehouseWaybillEntity.getWaybillNo());
map.put("起运地", warehouseWaybillEntity.getDepartureWarehouseName());
map.put("到达站", warehouseWaybillEntity.getDestinationWarehouseName());
map.put("到达站", warehouseWaybillEntity.getDestination());
map.put("客户车次号", "客户车次号: " + warehouseWaybillEntity.getCustomerTrain());
@ -980,9 +981,12 @@ public class WarehouseWaybillServiceImpl extends BaseServiceImpl<WarehouseWaybil
t.put("件数", warehouseWayBillDetail.getNum());
sumNumber = sumNumber + warehouseWayBillDetail.getNum();
t.put("包装", "");
t.put("重量", warehouseWayBillDetail.getWeight());
BigDecimal weight = warehouseWayBillDetail.getWeight();
BigDecimal volume = warehouseWayBillDetail.getVolume();
t.put("重量", NumberUtil.equals(weight, BigDecimal.ZERO)?"":weight.toString());
sumWEIGHT = sumWEIGHT.add(warehouseWayBillDetail.getWeight());
t.put("体积", warehouseWayBillDetail.getVolume());
t.put("体积", NumberUtil.equals(volume, BigDecimal.ZERO)?"":volume.toString());
sumVOLUME = sumVOLUME.add(warehouseWayBillDetail.getVolume());
ls.add(t);
}
@ -1006,6 +1010,11 @@ public class WarehouseWaybillServiceImpl extends BaseServiceImpl<WarehouseWaybil
if (ObjectUtil.isNull(value)) {
return "";
}
if(NumberUtil.equals(value, BigDecimal.ZERO)){
return "";
}
return value.setScale(2, RoundingMode.HALF_UP).toString();
}

Loading…
Cancel
Save