|
|
|
@ -655,7 +655,7 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
|
boxListData.setSite(inData.getSite()); |
|
|
|
boxListData.setBuNo(inData.getBuNo()); |
|
|
|
boxListData.setDelNo(inData.getDelNo()); |
|
|
|
boxListData.setItemNo(seqNo); |
|
|
|
boxListData.setItemNo(seqNo+""); |
|
|
|
boxListData.setGrossWeight(inData.getGrossWeight()); |
|
|
|
boxListData.setNetWeight(inData.getNetWeight()); |
|
|
|
boxListData.setBoxQty(inData.getBoxQty()); |
|
|
|
@ -665,7 +665,7 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
|
for (EcssCoDelNotifyDetailData detailData : notifys) { |
|
|
|
EcssCoDelPalletDetailData palletDetailData = new EcssCoDelPalletDetailData(); |
|
|
|
palletDetailData.setDelNo(inData.getDelNo()); |
|
|
|
palletDetailData.setSeqNo(seqNo); |
|
|
|
palletDetailData.setSeqNo(seqNo+""); |
|
|
|
palletDetailData.setPartNo(detailData.getPartNo()); |
|
|
|
palletDetailData.setBuNo(detailData.getBuNo()); |
|
|
|
palletDetailData.setSite(inData.getSite()); |
|
|
|
@ -1188,7 +1188,7 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
|
boxListData.setSite(inData.getSite()); |
|
|
|
boxListData.setBuNo(inData.getBuNo()); |
|
|
|
boxListData.setDelNo(inData.getDelNo()); |
|
|
|
boxListData.setItemNo(seqNo); |
|
|
|
boxListData.setItemNo(seqNo+""); |
|
|
|
// 根据实际箱数计算毛重和净重 |
|
|
|
BigDecimal boxGrossWeight = wholeBoxes.multiply(boxWeight); |
|
|
|
BigDecimal boxNetWeight = boxGrossWeight.subtract(wholeBoxes.divide(BigDecimal.valueOf(2))); |
|
|
|
@ -1201,7 +1201,7 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
|
|
|
|
|
EcssCoDelPalletDetailData wholeBoxData = new EcssCoDelPalletDetailData(); |
|
|
|
wholeBoxData.setDelNo(inData.getDelNo()); |
|
|
|
wholeBoxData.setSeqNo(seqNo); |
|
|
|
wholeBoxData.setSeqNo(seqNo+""); |
|
|
|
wholeBoxData.setPartNo(detailData.getPartNo()); |
|
|
|
wholeBoxData.setBuNo(detailData.getBuNo()); |
|
|
|
wholeBoxData.setSite(inData.getSite()); |
|
|
|
@ -1225,7 +1225,7 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
|
boxListData.setSite(inData.getSite()); |
|
|
|
boxListData.setBuNo(inData.getBuNo()); |
|
|
|
boxListData.setDelNo(inData.getDelNo()); |
|
|
|
boxListData.setItemNo(seqNo); |
|
|
|
boxListData.setItemNo(seqNo+""); |
|
|
|
// 零数箱按1箱计算毛重和净重 |
|
|
|
BigDecimal boxGrossWeight = BigDecimal.ONE.multiply(boxWeight); |
|
|
|
BigDecimal boxNetWeight = boxGrossWeight.subtract(BigDecimal.ONE.divide(BigDecimal.valueOf(2))); |
|
|
|
@ -1238,7 +1238,7 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
|
|
|
|
|
EcssCoDelPalletDetailData remainderBoxData = new EcssCoDelPalletDetailData(); |
|
|
|
remainderBoxData.setDelNo(inData.getDelNo()); |
|
|
|
remainderBoxData.setSeqNo(seqNo); |
|
|
|
remainderBoxData.setSeqNo(seqNo+""); |
|
|
|
remainderBoxData.setPartNo(detailData.getPartNo()); |
|
|
|
remainderBoxData.setBuNo(detailData.getBuNo()); |
|
|
|
remainderBoxData.setSite(inData.getSite()); |
|
|
|
@ -1263,7 +1263,7 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
|
boxListData.setSite(inData.getSite()); |
|
|
|
boxListData.setBuNo(inData.getBuNo()); |
|
|
|
boxListData.setDelNo(inData.getDelNo()); |
|
|
|
boxListData.setItemNo(seqNo); |
|
|
|
boxListData.setItemNo(seqNo+""); |
|
|
|
// 根据实际箱数计算毛重和净重 |
|
|
|
BigDecimal boxGrossWeight = actualBoxQty.multiply(boxWeight); |
|
|
|
BigDecimal boxNetWeight = boxGrossWeight.subtract(actualBoxQty.divide(BigDecimal.valueOf(2))); |
|
|
|
@ -1276,7 +1276,7 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
|
|
|
|
|
EcssCoDelPalletDetailData palletDetailData = new EcssCoDelPalletDetailData(); |
|
|
|
palletDetailData.setDelNo(inData.getDelNo()); |
|
|
|
palletDetailData.setSeqNo(seqNo); |
|
|
|
palletDetailData.setSeqNo(seqNo+""); |
|
|
|
palletDetailData.setPartNo(detailData.getPartNo()); |
|
|
|
palletDetailData.setBuNo(detailData.getBuNo()); |
|
|
|
palletDetailData.setSite(inData.getSite()); |
|
|
|
@ -1698,7 +1698,7 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
|
} |
|
|
|
|
|
|
|
// 删除箱明细 |
|
|
|
coDelMapper.deletePalletDetail(site, buNo, delNo, Integer.parseInt(itemNo), null); |
|
|
|
coDelMapper.deletePalletDetail(site, buNo, delNo, itemNo, null); |
|
|
|
|
|
|
|
// 删除箱信息 |
|
|
|
Map<String, Object> boxData = new HashMap<>(); |
|
|
|
@ -1809,7 +1809,7 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
|
} |
|
|
|
coDelMapper.deletePalletDetail(boxData.get("site").toString(), |
|
|
|
boxData.get("buNo").toString(), boxData.get("delNo").toString(), |
|
|
|
Integer.parseInt(boxData.get("item_no").toString()), null); |
|
|
|
boxData.get("item_no").toString(), null); |
|
|
|
coDelMapper.deleteBoxInfo(boxData); |
|
|
|
|
|
|
|
// 如果状态为已报关,发送邮件通知创建人 |
|
|
|
@ -2050,7 +2050,7 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
|
detailData.setSite(site); |
|
|
|
detailData.setBuNo(buNo); |
|
|
|
detailData.setDelNo(delNo); |
|
|
|
detailData.setSeqNo(detail.get("seqNo") != null ? Integer.valueOf(detail.get("seqNo").toString()) : null); |
|
|
|
detailData.setSeqNo(detail.get("seqNo") != null ? (String) detail.get("seqNo") : null); |
|
|
|
detailData.setItemNo(detail.get("itemNo") != null ? Integer.valueOf(detail.get("itemNo").toString()) : null); |
|
|
|
detailData.setNotifyDetailItemNo(detail.get("notifyDetailItemNo") != null ? Integer.valueOf(detail.get("notifyDetailItemNo").toString()) : null); |
|
|
|
detailData.setPoNo((String) detail.get("poNo")); |
|
|
|
@ -4292,7 +4292,7 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
|
boxListData.setSite(site); |
|
|
|
boxListData.setBuNo(buNo); |
|
|
|
boxListData.setDelNo(delNo); |
|
|
|
boxListData.setItemNo(seqNo); |
|
|
|
boxListData.setItemNo(seqNo+""); |
|
|
|
|
|
|
|
// 设置箱数、毛重、净重、Rolls |
|
|
|
Object boxQtyObj = box.get("box_qty"); |
|
|
|
@ -4352,7 +4352,7 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
|
|
|
|
|
EcssCoDelPalletDetailData palletDetailData = new EcssCoDelPalletDetailData(); |
|
|
|
palletDetailData.setDelNo(delNo); |
|
|
|
palletDetailData.setSeqNo(seqNo); |
|
|
|
palletDetailData.setSeqNo(seqNo+""); |
|
|
|
palletDetailData.setBuNo(buNo); |
|
|
|
palletDetailData.setSite(site); |
|
|
|
palletDetailData.setItemNo(j + 1); // 明细序号从1开始 |
|
|
|
|