refactor(出库任务): 增加"出库类型编码"字段
This commit is contained in:
parent
aaa6cc9c3b
commit
0ef09efe07
@ -44,6 +44,11 @@ public class WmsOutTask extends BaseEntity {
|
|||||||
@Excel(name = "出库类型ID")
|
@Excel(name = "出库类型ID")
|
||||||
private Long wmsBusinessTypeId;
|
private Long wmsBusinessTypeId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 出库类型编码
|
||||||
|
*/
|
||||||
|
private String wmsBusinessTypeCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 任务编码
|
* 任务编码
|
||||||
*/
|
*/
|
||||||
@ -204,6 +209,14 @@ public class WmsOutTask extends BaseEntity {
|
|||||||
this.wmStorageAreaId = wmStorageAreaId;
|
this.wmStorageAreaId = wmStorageAreaId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getWmsBusinessTypeCode() {
|
||||||
|
return wmsBusinessTypeCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWmsBusinessTypeCode(String wmsBusinessTypeCode) {
|
||||||
|
this.wmsBusinessTypeCode = wmsBusinessTypeCode;
|
||||||
|
}
|
||||||
|
|
||||||
public String getBatchNum() {
|
public String getBatchNum() {
|
||||||
return batchNum;
|
return batchNum;
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,14 @@ public class WmsOutTaskServiceImpl implements IWmsOutTaskService {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<WmsOutTask> selectWmsOutTaskList(WmsOutTask wmsOutTask) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user