fix:木箱入库返回值改成return
This commit is contained in:
@@ -32,6 +32,7 @@ import org.nl.wms.ext.acs.service.WmsToAcsService;
|
||||
import org.nl.wms.ext.mes.service.LmsToMesService;
|
||||
import org.nl.wms.pda.mps.eum.RegionTypeEnum;
|
||||
import org.nl.wms.pdm.bi.service.SubpackagerelationService;
|
||||
import org.nl.wms.sch.manage.TaskStatusEnum;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
@@ -100,17 +101,19 @@ public class InBoxManageServiceImpl implements InBoxManageService {
|
||||
// 仓位表
|
||||
WQLObject attrTab = WQLObject.getWQLObject("st_ivt_structattr");
|
||||
String box_arr = whereJson.getString("box_no");
|
||||
|
||||
|
||||
int count = ischBaseTaskService.count(new QueryWrapper<SchBaseTask>()
|
||||
.eq("start_device_code", whereJson.getString("device_code"))
|
||||
.eq("vehicle_code", whereJson.getString("box_no"))
|
||||
.eq("task_type", "010702")
|
||||
.lt("task_status", TaskStatusEnum.FINISHED.getCode()));
|
||||
if (count>0){
|
||||
return;
|
||||
}
|
||||
// 查询木箱信息
|
||||
BstIvtBoxinfo boxDao = iBstIvtBoxinfoService.getOne(
|
||||
new QueryWrapper<BstIvtBoxinfo>().lambda()
|
||||
.eq(BstIvtBoxinfo::getBox_no, whereJson.getString("box_no"))
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* 找一个木箱区的一个仓位,生成任务并下发
|
||||
*/
|
||||
|
||||
@@ -74,9 +74,9 @@ public class InVehicleManageServiceImpl implements InVehicleManageService {
|
||||
.eq("start_device_code", whereJson.getString("device_code"))
|
||||
.eq("vehicle_code", whereJson.getString("vehicle_code"))
|
||||
.eq("task_type", "010705")
|
||||
.lt("", TaskStatusEnum.FINISHED.getCode()));
|
||||
.lt("task_status", TaskStatusEnum.EXECUTING.getCode()));
|
||||
if (count>0){
|
||||
throw new BadRequestException(whereJson.getString("vehicle_code")+"当前任务正在执行中");
|
||||
return;
|
||||
}
|
||||
// 找一个托盘区的空仓位
|
||||
JSONObject jsonParam = new JSONObject();
|
||||
|
||||
@@ -114,7 +114,11 @@ public abstract class AbstractAcsTask {
|
||||
List<AcsTaskDto> taskList = this.schedule();
|
||||
if (ObjectUtil.isNotEmpty(taskList)) {
|
||||
JSONArray arr = JSONArray.parseArray(JSON.toJSONString(taskList));
|
||||
return acsUtil.notifyAcs3("api/wms/task", arr);
|
||||
if (acsUtil == null){
|
||||
return AcsUtil.notifyAcs("api/wms/task", arr);
|
||||
}else {
|
||||
return acsUtil.notifyAcs3("api/wms/task", arr);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user