|
|
@ -579,20 +579,16 @@ public class BoardServiceImpl implements BoardService { |
|
|
throw new RuntimeException("派工单未查询到标签信息"); |
|
|
throw new RuntimeException("派工单未查询到标签信息"); |
|
|
} |
|
|
} |
|
|
PackagePrintData packagePrintData = list.get(0); |
|
|
PackagePrintData packagePrintData = list.get(0); |
|
|
// String workCenterProLine = boardMapper.getWorkCenterProLineNo(packagePrintData.getSite(),packagePrintData.getWorkCenterNo()); |
|
|
|
|
|
// if (!"PACKING".equals(workCenterProLine)){ |
|
|
|
|
|
// throw new RuntimeException("该派工单工序不是包装工序"); |
|
|
|
|
|
// } |
|
|
|
|
|
if (Objects.nonNull(number)){ |
|
|
if (Objects.nonNull(number)){ |
|
|
packagePrintData.setUnitQty(number.doubleValue()); |
|
|
packagePrintData.setUnitQty(number.doubleValue()); |
|
|
} |
|
|
} |
|
|
Map<String,String> map = boardMapper.getCustomerInfo(site,orderNo); |
|
|
Map<String,String> map = boardMapper.getCustomerInfo(site,orderNo); |
|
|
if ("TBC".equals(map.get("CustomerGroup"))){ |
|
|
if ("TBC".equals(map.get("CustomerGroup"))){ |
|
|
packagePrintData.setKeyInfoStr1(map.get("LogoFileName")); |
|
|
packagePrintData.setKeyInfoStr1(map.get("LogoFileName")); |
|
|
packagePrintData.setKeyInfoStr1(map.get("CustomerDesc")); |
|
|
|
|
|
|
|
|
packagePrintData.setKeyInfoStr2(map.get("CustomerDesc")); |
|
|
}else { |
|
|
}else { |
|
|
packagePrintData.setKeyInfoStr1("AMLogo.jpg"); |
|
|
packagePrintData.setKeyInfoStr1("AMLogo.jpg"); |
|
|
packagePrintData.setKeyInfoStr1("A&M Polymer"); |
|
|
|
|
|
|
|
|
packagePrintData.setKeyInfoStr2("A&M Polymer"); |
|
|
} |
|
|
} |
|
|
switch (map.get("ABC")){ |
|
|
switch (map.get("ABC")){ |
|
|
case "A": |
|
|
case "A": |
|
|
|