|
|
|
@ -80,7 +80,6 @@ public class BasicOrderPrintController {
|
|
|
|
|
public BaseResponse inspectionStockOrderPDFFromTemplateFile(@RequestBody FilterOrderPrintRequest filterOrderPrintRequest) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String name = getStatusName(filterOrderPrintRequest.getStatus());
|
|
|
|
|
SysPdfTemplateRelevanceCodeEntity sysPdfTemplateRelevanceCodeEntity = systemPDFTemplateRelevanceCodeService.selectNameAndAction(name, filterOrderPrintRequest.getAction());
|
|
|
|
|
if (sysPdfTemplateRelevanceCodeEntity != null) {
|
|
|
|
@ -273,7 +272,10 @@ public class BasicOrderPrintController {
|
|
|
|
|
Map<String, Object> bizData = new HashMap<>();
|
|
|
|
|
bizData.put("index", i);
|
|
|
|
|
bizData.put("nameCode", obj.getNameCode() == null ? ' ' : obj.getNameCode());
|
|
|
|
|
bizData.put("udiCode", udiProductEntity.getUuid() == null ? ' ' : udiProductEntity.getUuid());
|
|
|
|
|
String udiCode = "#" + obj.getNameCode() + "#" + obj.getProduceDate() + "#" + obj.getExpireDate() +
|
|
|
|
|
"#" + obj.getBatchNo() + "#" + obj.getSerialNo() + "#" + obj.getWarehouseCode() + "#" + obj.getDeptCode();
|
|
|
|
|
udiCode = udiCode.replaceAll("#null", "#");
|
|
|
|
|
bizData.put("udiCode", udiCode);
|
|
|
|
|
bizData.put("cpmctymc", udiProductEntity.getCpmctymc() == null ? ' ' : udiProductEntity.getCpmctymc());
|
|
|
|
|
bizData.put("ggxh", udiProductEntity.getGgxh() == null ? ' ' : udiProductEntity.getGgxh());
|
|
|
|
|
bizData.put("batchNo", obj.getBatchNo() == null ? ' ' : obj.getBatchNo());
|
|
|
|
|