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; } /**