fix: 自动分配,修复

This commit is contained in:
Kelvin 2024-12-20 14:11:17 +08:00
parent 7c420ab7a5
commit f11994376f

View File

@ -122,13 +122,15 @@ public class WmsInTaskController extends BaseController {
}
// 自动分配非临时库位
WmStorageArea wmStorageArea = this.wmStorageLocationService.queryOneAreaByLocationCode("DDJ01", ucmCtBaseByCode.getAttr3() != null && ucmCtBaseByCode.getAttr3() == 1);
wmsInTask.setCellTgt(wmStorageArea.getAreaId());
wmsInTask.setCellName(wmStorageArea.getAreaName());
wmsInTask.setCellCode(wmStorageArea.getAreaCode());
wmsInTask.setCellX(wmStorageArea.getPositionX().toString());
wmsInTask.setCellY(wmStorageArea.getPositionY().toString());
wmsInTask.setCellZ(wmStorageArea.getPositionZ().toString());
if (wmsInTask.getCellCode().equals("TEMP")) {
WmStorageArea wmStorageArea = this.wmStorageLocationService.queryOneAreaByLocationCode("DDJ01", ucmCtBaseByCode.getAttr3() != null && ucmCtBaseByCode.getAttr3() == 1);
wmsInTask.setCellTgt(wmStorageArea.getAreaId());
wmsInTask.setCellName(wmStorageArea.getAreaName());
wmsInTask.setCellCode(wmStorageArea.getAreaCode());
wmsInTask.setCellX(wmStorageArea.getPositionX().toString());
wmsInTask.setCellY(wmStorageArea.getPositionY().toString());
wmsInTask.setCellZ(wmStorageArea.getPositionZ().toString());
}
// 将料箱rfid绑定至任务
wmsInTask.setBoxRfid(rfid);