|
|
@ -2006,6 +2006,7 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
boxListData.setNetWeight(inData.getNetWeight()); |
|
|
boxListData.setNetWeight(inData.getNetWeight()); |
|
|
boxListData.setBoxQty(inData.getBoxQty()); |
|
|
boxListData.setBoxQty(inData.getBoxQty()); |
|
|
boxListData.setCreateBy(currentUser.getUsername()); |
|
|
boxListData.setCreateBy(currentUser.getUsername()); |
|
|
|
|
|
boxListData.setRolls(inData.getRolls()); |
|
|
coDelMapper.saveCodelBoxList(boxListData); |
|
|
coDelMapper.saveCodelBoxList(boxListData); |
|
|
for (EcssCoDelNotifyDetailData detailData : notifys) { |
|
|
for (EcssCoDelNotifyDetailData detailData : notifys) { |
|
|
EcssCoDelPalletDetailData palletDetailData = new EcssCoDelPalletDetailData(); |
|
|
EcssCoDelPalletDetailData palletDetailData = new EcssCoDelPalletDetailData(); |
|
|
@ -4537,6 +4538,10 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
boxChange.put("netWeight_old", oldBox.get("netWeight")); |
|
|
boxChange.put("netWeight_old", oldBox.get("netWeight")); |
|
|
boxChange.put("netWeight_new", box.get("netWeight")); |
|
|
boxChange.put("netWeight_new", box.get("netWeight")); |
|
|
} |
|
|
} |
|
|
|
|
|
if (box.containsKey("rolls")) { |
|
|
|
|
|
boxChange.put("rolls_old", oldBox.get("rolls")); |
|
|
|
|
|
boxChange.put("rolls_new", box.get("rolls")); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
boxChanges.add(boxChange); |
|
|
boxChanges.add(boxChange); |
|
|
|
|
|
|
|
|
@ -4550,6 +4555,7 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
updateParams.put("box_qty", box.get("box_qty")); |
|
|
updateParams.put("box_qty", box.get("box_qty")); |
|
|
updateParams.put("grossWeight", box.get("grossWeight")); |
|
|
updateParams.put("grossWeight", box.get("grossWeight")); |
|
|
updateParams.put("netWeight", box.get("netWeight")); |
|
|
updateParams.put("netWeight", box.get("netWeight")); |
|
|
|
|
|
updateParams.put("rolls", box.get("rolls")); |
|
|
updateParams.put("updateBy", updateBy); |
|
|
updateParams.put("updateBy", updateBy); |
|
|
|
|
|
|
|
|
coDelMapper.updateBoxInfo(updateParams); |
|
|
coDelMapper.updateBoxInfo(updateParams); |
|
|
@ -4599,7 +4605,7 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
detailData.setPn((String) detail.get("pn")); |
|
|
detailData.setPn((String) detail.get("pn")); |
|
|
detailData.setQty(detail.get("qty") != null ? new BigDecimal(detail.get("qty").toString()) : null); |
|
|
detailData.setQty(detail.get("qty") != null ? new BigDecimal(detail.get("qty").toString()) : null); |
|
|
detailData.setOldQty(oldQty); |
|
|
detailData.setOldQty(oldQty); |
|
|
detailData.setRolls(detail.get("rolls") != null ? new BigDecimal(detail.get("rolls").toString()) : null); |
|
|
|
|
|
|
|
|
detailData.setRolls(detail.get("rolls") != null&&StringUtils.isNotEmpty(detail.get("rolls").toString()) ? new BigDecimal(detail.get("rolls").toString()) : null); |
|
|
detailData.setUpdateBy(updateBy); |
|
|
detailData.setUpdateBy(updateBy); |
|
|
|
|
|
|
|
|
// 执行更新 |
|
|
// 执行更新 |
|
|
@ -4722,7 +4728,7 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
if (boxChanges != null && !boxChanges.isEmpty()) { |
|
|
if (boxChanges != null && !boxChanges.isEmpty()) { |
|
|
emailContent.append("<div class='section-title'>📋 箱信息修改(共 ").append(boxChanges.size()).append(" 条)</div>"); |
|
|
emailContent.append("<div class='section-title'>📋 箱信息修改(共 ").append(boxChanges.size()).append(" 条)</div>"); |
|
|
emailContent.append("<table>"); |
|
|
emailContent.append("<table>"); |
|
|
emailContent.append("<tr><th>序号</th><th>箱数</th><th>毛重</th><th>净重</th></tr>"); |
|
|
|
|
|
|
|
|
emailContent.append("<tr><th>序号</th><th>箱数</th><th>毛重</th><th>净重</th><th>总Rolls</th></tr>"); |
|
|
|
|
|
|
|
|
for (Map<String, Object> change : boxChanges) { |
|
|
for (Map<String, Object> change : boxChanges) { |
|
|
emailContent.append("<tr>"); |
|
|
emailContent.append("<tr>"); |
|
|
@ -4761,6 +4767,17 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
} |
|
|
} |
|
|
emailContent.append("</td>"); |
|
|
emailContent.append("</td>"); |
|
|
|
|
|
|
|
|
|
|
|
// 总Rolls |
|
|
|
|
|
emailContent.append("<td>"); |
|
|
|
|
|
if (change.containsKey("rolls_old") && change.containsKey("rolls_new")) { |
|
|
|
|
|
emailContent.append("<span class='old-value'>").append(change.get("rolls_old")).append("</span>"); |
|
|
|
|
|
emailContent.append("<span class='arrow'>→</span>"); |
|
|
|
|
|
emailContent.append("<span class='new-value'>").append(change.get("rolls_new")).append("</span>"); |
|
|
|
|
|
} else { |
|
|
|
|
|
emailContent.append("-"); |
|
|
|
|
|
} |
|
|
|
|
|
emailContent.append("</td>"); |
|
|
|
|
|
|
|
|
emailContent.append("</tr>"); |
|
|
emailContent.append("</tr>"); |
|
|
} |
|
|
} |
|
|
emailContent.append("</table>"); |
|
|
emailContent.append("</table>"); |
|
|
|