|
|
|
@ -1520,7 +1520,7 @@ public class CoDelExcelTXServiceImpl implements CoDelExcelTXService { |
|
|
|
if (palletHeaderDataList.isEmpty()) { |
|
|
|
totalKgs = BigDecimal.valueOf(0.1); |
|
|
|
} |
|
|
|
List<Map> list = coDelMapper.selectBoxList(notifyHeader); |
|
|
|
List<Map> list = coDelMapper.selectBoxListTX(notifyHeader); |
|
|
|
BigDecimal totalCartons = BigDecimal.valueOf(0.0); |
|
|
|
for (int m = 0; m < list.size(); m++) { |
|
|
|
totalCartons = totalCartons.add(new BigDecimal(list.get(m).get("box_qty") != null ? |
|
|
|
@ -1586,7 +1586,7 @@ public class CoDelExcelTXServiceImpl implements CoDelExcelTXService { |
|
|
|
StringBuilder ponos = new StringBuilder(); |
|
|
|
poNoMap.forEach((key, value) -> ponos.append(key + " ")); |
|
|
|
template.addVar("poNo", ponos); |
|
|
|
List<Map> list = coDelMapper.selectBoxList(notifyHeader); |
|
|
|
List<Map> list = coDelMapper.selectBoxListTX(notifyHeader); |
|
|
|
// DB中item_no可能是字符串区间(如"127~127"、"2~26"),直接查询顺序可能不稳定,导出前做自然排序 |
|
|
|
sortBoxListBySeqAndItemNo(list); |
|
|
|
BigDecimal totalCartons = BigDecimal.valueOf(0.0); |
|
|
|
@ -1821,7 +1821,7 @@ public class CoDelExcelTXServiceImpl implements CoDelExcelTXService { |
|
|
|
StringBuilder ponos = new StringBuilder(); |
|
|
|
poNoMap.forEach((key, value) -> ponos.append(key + " ")); |
|
|
|
template.addVar("poNo", ponos); |
|
|
|
List<Map> list = coDelMapper.selectBoxList(notifyHeader); |
|
|
|
List<Map> list = coDelMapper.selectBoxListTX(notifyHeader); |
|
|
|
// DB中item_no可能是字符串区间(如"127~127"、"2~26"),直接查询顺序可能不稳定,导出前做自然排序 |
|
|
|
sortBoxListBySeqAndItemNo(list); |
|
|
|
BigDecimal totalCartons = BigDecimal.valueOf(0.0); |
|
|
|
@ -2186,7 +2186,7 @@ public class CoDelExcelTXServiceImpl implements CoDelExcelTXService { |
|
|
|
private BigDecimal calculateVolumeByMaterials(EcssCoDelNotifyHeaderData notifyHeader) { |
|
|
|
try { |
|
|
|
// 1. 查询箱子列表(每个箱子包含box_qty、长宽高等信息) |
|
|
|
List<Map> boxList = coDelMapper.selectBoxList(notifyHeader); |
|
|
|
List<Map> boxList = coDelMapper.selectBoxListTX(notifyHeader); |
|
|
|
|
|
|
|
if (boxList == null || boxList.isEmpty()) { |
|
|
|
log.debug("未找到装箱数据,发货单号: {}", notifyHeader.getDelNo()); |
|
|
|
|