opt:优化固化室出库任务

This commit is contained in:
2024-12-21 22:50:33 +08:00
parent 56914e4936
commit 42e3fc1175
5 changed files with 12 additions and 14 deletions

View File

@@ -118,9 +118,8 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
result.setCode(HttpStatus.HTTP_BAD_REQUEST);
result.setMessage(message);
result.setRequestNo(requestNo);
String title = "acsApply: " + param.getString("request_method_code");
// 消息通知
noticeService.createNotice("异常信息:" + message, title, NoticeTypeEnum.EXCEPTION.getCode());
noticeService.createNotice("异常信息:" + message, device_code, NoticeTypeEnum.EXCEPTION.getCode());
}
return result;
}

View File

@@ -25,7 +25,7 @@
ORDER BY
p.row_num,
p.col_num
limit 1
limit 10
</select>
<select id="getGHSExitMaterialList" resultType="org.nl.wms.sch.point.service.dao.SchBasePoint">
SELECT
@@ -33,7 +33,7 @@
FROM
`sch_base_point` p
WHERE p.region_code = 'GH' AND p.point_type = '3' AND p.point_status = '2' and (p.ing_task_code = '' OR p.ing_task_code IS NULL)
ORDER BY p.row_num, p.col_num limit 1
ORDER BY p.row_num, p.col_num limit 10
</select>
<select id="getZCSameMaterialPoint" resultType="org.nl.wms.sch.point.service.dao.SchBasePoint">
SELECT vg.material_id,p.*

View File

@@ -101,10 +101,10 @@ public class TBXQKTask extends AbstractTask {
JSONObject extGroupData = JSONObject.parseObject(requestParam);
// 根据对接位查找对应的载具类型
SchBasePoint endPoint = pointService.getById(task.getPoint_code2());
if (!endPoint.getPoint_status().equals(PointStatusEnum.EMPTY_POINT.getCode())) {
log.error("tofix__TBXQKTask_目标点位" + endPoint.getPoint_code() + "申请TBXQKTask任务,但该点位状态为2有货,不满足任务生成条件,请核对该点位现场的实际状态!");
throw new BadRequestException("点位" + endPoint.getPoint_code() + "申请TBXQKTask任务,但该点位状态为2有货,不满足任务生成条件,请核对该点位现场的实际状态!");
}
// if (!endPoint.getPoint_status().equals(PointStatusEnum.EMPTY_POINT.getCode())) {
// log.error("tofix__TBXQKTask_目标点位" + endPoint.getPoint_code() + "申请TBXQKTask任务,但该点位状态为2有货,不满足任务生成条件,请核对该点位现场的实际状态!");
// throw new BadRequestException("点位" + endPoint.getPoint_code() + "申请TBXQKTask任务,但该点位状态为2有货,不满足任务生成条件,请核对该点位现场的实际状态!");
// }
extGroupData.put("vehicle_type", endPoint.getCan_vehicle_type());
SchBasePoint point = findStartPoint(startRegionStr, extGroupData);
if (ObjectUtil.isEmpty(point)) {