优化信息丢失问题
This commit is contained in:
@@ -476,8 +476,9 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
|||||||
} else {
|
} else {
|
||||||
throw new BadRequestException("未找到指令号'" + task_id);
|
throw new BadRequestException("未找到指令号'" + task_id);
|
||||||
}
|
}
|
||||||
|
if ("RYSMW01".equals(device_code)) {
|
||||||
//将之前的托盘信息删除
|
//将之前的托盘信息删除
|
||||||
groupTable.delete("vehicle_code='" + vehicle_code + "' and task_id <>'" + task_id + "'");
|
// groupTable.delete("vehicle_code='" + vehicle_code + "' and task_id <>'" + task_id + "'");
|
||||||
JSONObject groupObj = groupTable.query("task_id='" + task_id + "'").uniqueResult(0);
|
JSONObject groupObj = groupTable.query("task_id='" + task_id + "'").uniqueResult(0);
|
||||||
if (ObjectUtil.isEmpty(groupObj)) {
|
if (ObjectUtil.isEmpty(groupObj)) {
|
||||||
throw new BadRequestException("未找到指令号为'" + task_id + "'的组盘信息!");
|
throw new BadRequestException("未找到指令号为'" + task_id + "'的组盘信息!");
|
||||||
@@ -487,6 +488,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
|||||||
groupObj.put("update_optname", SecurityUtils.getNickName());
|
groupObj.put("update_optname", SecurityUtils.getNickName());
|
||||||
groupObj.put("update_time", DateUtil.now());
|
groupObj.put("update_time", DateUtil.now());
|
||||||
groupTable.update(groupObj);
|
groupTable.update(groupObj);
|
||||||
|
}
|
||||||
//更新入库单单据的托盘条码
|
//更新入库单单据的托盘条码
|
||||||
WQLObject iosTable = WQLObject.getWQLObject("ST_IVT_workProcedureIOS");
|
WQLObject iosTable = WQLObject.getWQLObject("ST_IVT_workProcedureIOS");
|
||||||
JSONObject iosObj = iosTable.query("task_id ='" + task_id + "'").uniqueResult(0);
|
JSONObject iosObj = iosTable.query("task_id ='" + task_id + "'").uniqueResult(0);
|
||||||
|
|||||||
@@ -91,14 +91,6 @@ public class SendEmptyVehicleTask extends AbstractAcsTask {
|
|||||||
startPointObj.put("vehicle_code", "");
|
startPointObj.put("vehicle_code", "");
|
||||||
pointTab.update(startPointObj);
|
pointTab.update(startPointObj);
|
||||||
taskTab.update(jsonTask);
|
taskTab.update(jsonTask);
|
||||||
|
|
||||||
//将组盘表删除
|
|
||||||
WQLObject group_Table = WQLObject.getWQLObject("st_buss_vehiclegroup");
|
|
||||||
JSONObject groupObj = group_Table.query("vehicle_code='" + vehicle_code + "' and is_delete='0'").uniqueResult(0);
|
|
||||||
if (ObjectUtil.isNotEmpty(groupObj)) {
|
|
||||||
groupObj.put("is_delete", "0");
|
|
||||||
group_Table.update(groupObj);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -146,7 +138,7 @@ public class SendEmptyVehicleTask extends AbstractAcsTask {
|
|||||||
}
|
}
|
||||||
PointDto startPoint = pointService.findByCode(start_point_code);
|
PointDto startPoint = pointService.findByCode(start_point_code);
|
||||||
//假如载具为空,去点位表里面去取空托盘
|
//假如载具为空,去点位表里面去取空托盘
|
||||||
if (StrUtil.isEmpty(vehicle_code)) {
|
if (StrUtil.isEmpty(vehicle_code) || "0000".equals(vehicle_code) || "0".equals(vehicle_code)) {
|
||||||
vehicle_code = startPoint.getVehicle_code();
|
vehicle_code = startPoint.getVehicle_code();
|
||||||
}
|
}
|
||||||
if (StrUtil.isEmpty(vehicle_code)) {
|
if (StrUtil.isEmpty(vehicle_code)) {
|
||||||
@@ -205,6 +197,11 @@ public class SendEmptyVehicleTask extends AbstractAcsTask {
|
|||||||
taskObj.put("create_time", DateUtil.now());
|
taskObj.put("create_time", DateUtil.now());
|
||||||
taskObj.put("is_delete", "0");
|
taskObj.put("is_delete", "0");
|
||||||
taskTable.insert(taskObj);
|
taskTable.insert(taskObj);
|
||||||
|
|
||||||
|
//将组盘表删除
|
||||||
|
WQLObject.getWQLObject("st_buss_vehiclegroup")
|
||||||
|
.delete("vehicle_code = '" + vehicle_code + "'");
|
||||||
|
|
||||||
return task_id;
|
return task_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user