From d6c73742213581d45d532f8ffc8152c50a80c088 Mon Sep 17 00:00:00 2001 From: philip <244793088@qq.com> Date: Wed, 25 Aug 2021 16:41:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=93=E6=A3=80=E5=88=9B=E5=BB=BA=E6=96=B0?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=EF=BC=8C=E6=88=90=E5=93=81=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mesnac/common/constant/Constants.java | 2 ++ .../mesnac/common/dto/LabelPrintDto.java | 9 ++++++++ .../impl/InspectionTaskServiceImpl.java | 4 ++-- .../impl/ProdReadyTaskServiceImpl.java | 22 ++++++++++++------- 4 files changed, 27 insertions(+), 10 deletions(-) diff --git a/common/src/main/java/com/foreverwin/mesnac/common/constant/Constants.java b/common/src/main/java/com/foreverwin/mesnac/common/constant/Constants.java index 6e0c84f9..468d8fb6 100644 --- a/common/src/main/java/com/foreverwin/mesnac/common/constant/Constants.java +++ b/common/src/main/java/com/foreverwin/mesnac/common/constant/Constants.java @@ -177,6 +177,8 @@ public interface Constants { // 余料标签 String PRINT_TYPE_EXM = "EXM"; + // 成品标签 + String PRINT_TYPE_PRODUCT = "PRODUCT"; /** * 刀具状态,Y-使用,N-报废/删除 */ diff --git a/common/src/main/java/com/foreverwin/mesnac/common/dto/LabelPrintDto.java b/common/src/main/java/com/foreverwin/mesnac/common/dto/LabelPrintDto.java index 4c084ac3..9a63900e 100644 --- a/common/src/main/java/com/foreverwin/mesnac/common/dto/LabelPrintDto.java +++ b/common/src/main/java/com/foreverwin/mesnac/common/dto/LabelPrintDto.java @@ -29,6 +29,7 @@ public class LabelPrintDto implements Serializable { private String label; //在制品标签参数 + private String shopOrder; //工作指令 private String workOrder; //图纸版本号 @@ -44,6 +45,14 @@ public class LabelPrintDto implements Serializable { //打印张数 private Integer printNum; + public String getShopOrder() { + return shopOrder; + } + + public void setShopOrder(String shopOrder) { + this.shopOrder = shopOrder; + } + public String getSite() { return site; } diff --git a/common/src/main/java/com/foreverwin/mesnac/common/service/impl/InspectionTaskServiceImpl.java b/common/src/main/java/com/foreverwin/mesnac/common/service/impl/InspectionTaskServiceImpl.java index 0bbf7397..91ecd55f 100644 --- a/common/src/main/java/com/foreverwin/mesnac/common/service/impl/InspectionTaskServiceImpl.java +++ b/common/src/main/java/com/foreverwin/mesnac/common/service/impl/InspectionTaskServiceImpl.java @@ -287,8 +287,8 @@ public class InspectionTaskServiceImpl extends ServiceImpl @@ -68,6 +68,7 @@ public class ProdReadyTaskServiceImpl extends ServiceImpl printLogList = printLogService.list(queryWrapper); if (printLogList.isEmpty()) { //打印参数 LabelPrintDto labelPrintDto = new LabelPrintDto(); labelPrintDto.setPrinter(printName); - labelPrintDto.setPrintTemplate(Constants.PRINT_TYPE_SFC); + labelPrintDto.setPrintTemplate(type); + labelPrintDto.setShopOrder(shopOrder); labelPrintDto.setItem(selectCurrent.getItem()); labelPrintDto.setItemDescription(selectCurrent.getDescription()); labelPrintDto.setSfc(prodReadyTask.getSfc()); @@ -482,16 +490,15 @@ public class ProdReadyTaskServiceImpl extends ServiceImpl