rev:满入异常处理

This commit is contained in:
zhangzq
2024-12-16 18:03:20 +08:00
parent cec9880ed4
commit f18306cca0

View File

@@ -305,6 +305,12 @@ public class SchBaseTaskServiceImpl extends ServiceImpl<SchBaseTaskMapper, SchBa
.eq("vehicle_code", task.getVehicle_code()) .eq("vehicle_code", task.getVehicle_code())
.eq("is_delete",false)); .eq("is_delete",false));
//查询分配规则 //查询分配规则
iStIvtStructattrService.update(new UpdateWrapper<StIvtStructattr>()
.eq("struct_code", stIvtStructattr.getStruct_code())
.set("lock_type", StatusEnum.LOCK.code("异常锁定"))
.set("update_time", DateUtil.now())
.set("remark", "入满异常:" + task_code)
.set("vehicle_code", task_code+"_ZD_"+org.nl.common.utils.IdUtil.getStringId()));
Map map = SpringContextHolder.getBean(DecisionHandler.class) Map map = SpringContextHolder.getBean(DecisionHandler.class)
.dispenseTransa(ListOf.of("limitStorage","depthPriority","nearby"), new JSONObject(MapOf.of("stor_code", stIvtStructattr.getStor_code(),"vehicle_code",task.getVehicle_code()))); .dispenseTransa(ListOf.of("limitStorage","depthPriority","nearby"), new JSONObject(MapOf.of("stor_code", stIvtStructattr.getStor_code(),"vehicle_code",task.getVehicle_code())));
String new_struct_code = ((Map<String, String>) map.get("form_data")).get("end_struct_code"); String new_struct_code = ((Map<String, String>) map.get("form_data")).get("end_struct_code");
@@ -317,12 +323,6 @@ public class SchBaseTaskServiceImpl extends ServiceImpl<SchBaseTaskMapper, SchBa
.set("point_code2", new_struct_code) .set("point_code2", new_struct_code)
.set("remark", stIvtStructattr.getStruct_code() + "入满异常重新分配货位" + new_struct_code) .set("remark", stIvtStructattr.getStruct_code() + "入满异常重新分配货位" + new_struct_code)
.eq("task_code", task_code)); .eq("task_code", task_code));
iStIvtStructattrService.update(new UpdateWrapper<StIvtStructattr>()
.eq("struct_code", stIvtStructattr.getStruct_code())
.set("lock_type", StatusEnum.LOCK.code("异常锁定"))
.set("update_time", DateUtil.now())
.set("remark", "入满异常:" + task_code)
.set("vehicle_code", task_code+"_ZD_"+org.nl.common.utils.IdUtil.getStringId()));
JSONObject result = new JSONObject(); JSONObject result = new JSONObject();
result.put("point_code2", new_struct_code); result.put("point_code2", new_struct_code);
return result; return result;