From 0ef09efe0711d1fde1d502af7246782d1ae7e2bb Mon Sep 17 00:00:00 2001 From: Kelvin Date: Wed, 27 Nov 2024 08:56:07 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=87=BA=E5=BA=93=E4=BB=BB=E5=8A=A1):?= =?UTF-8?q?=20=E5=A2=9E=E5=8A=A0"=E5=87=BA=E5=BA=93=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E7=BC=96=E7=A0=81"=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ktg/mes/md/domain/WmsOutTask.java | 13 +++++++++++++ .../mes/md/service/impl/WmsOutTaskServiceImpl.java | 9 ++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/domain/WmsOutTask.java b/ktg-mes/src/main/java/com/ktg/mes/md/domain/WmsOutTask.java index 67be088..1b736a3 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/md/domain/WmsOutTask.java +++ b/ktg-mes/src/main/java/com/ktg/mes/md/domain/WmsOutTask.java @@ -44,6 +44,11 @@ public class WmsOutTask extends BaseEntity { @Excel(name = "出库类型ID") private Long wmsBusinessTypeId; + /** + * 出库类型编码 + */ + private String wmsBusinessTypeCode; + /** * 任务编码 */ @@ -204,6 +209,14 @@ public class WmsOutTask extends BaseEntity { this.wmStorageAreaId = wmStorageAreaId; } + public String getWmsBusinessTypeCode() { + return wmsBusinessTypeCode; + } + + public void setWmsBusinessTypeCode(String wmsBusinessTypeCode) { + this.wmsBusinessTypeCode = wmsBusinessTypeCode; + } + public String getBatchNum() { return batchNum; } diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/WmsOutTaskServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/WmsOutTaskServiceImpl.java index 52b2121..5225050 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/WmsOutTaskServiceImpl.java +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/WmsOutTaskServiceImpl.java @@ -136,7 +136,14 @@ public class WmsOutTaskServiceImpl implements IWmsOutTaskService { */ @Override public List selectWmsOutTaskList(WmsOutTask wmsOutTask) { - return wmsOutTaskMapper.selectWmsOutTaskList(wmsOutTask); + List wmsOutTasks = new ArrayList<>(); + wmsOutTaskMapper.selectWmsOutTaskList(wmsOutTask).forEach(nowWmsOutTask -> { + WmsBusinessType wmsBusinessType = wmsBusinessTypeMapper.selectWmsBusinessTypeByTypeId(nowWmsOutTask.getWmsBusinessTypeId().toString()); + nowWmsOutTask.setWmsBusinessTypeCode(wmsBusinessType.getCode()); + wmsOutTasks.add(nowWmsOutTask); + }); + + return wmsOutTasks; } /**