refactor(出库任务): 增加"出库类型编码"字段

This commit is contained in:
Kelvin 2024-11-27 08:56:07 +08:00
parent aaa6cc9c3b
commit 0ef09efe07
2 changed files with 21 additions and 1 deletions

View File

@ -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;
}

View File

@ -136,7 +136,14 @@ public class WmsOutTaskServiceImpl implements IWmsOutTaskService {
*/
@Override
public List<WmsOutTask> selectWmsOutTaskList(WmsOutTask wmsOutTask) {
return wmsOutTaskMapper.selectWmsOutTaskList(wmsOutTask);
List<WmsOutTask> wmsOutTasks = new ArrayList<>();
wmsOutTaskMapper.selectWmsOutTaskList(wmsOutTask).forEach(nowWmsOutTask -> {
WmsBusinessType wmsBusinessType = wmsBusinessTypeMapper.selectWmsBusinessTypeByTypeId(nowWmsOutTask.getWmsBusinessTypeId().toString());
nowWmsOutTask.setWmsBusinessTypeCode(wmsBusinessType.getCode());
wmsOutTasks.add(nowWmsOutTask);
});
return wmsOutTasks;
}
/**