| | |
| | | public static GzResult applyReroute(orderReroute model) |
| | | { |
| | | GzResult result = new GzResult(); |
| | | try |
| | | { |
| | | var wcsTask = WCSHelper.GetTask(model.orderName); |
| | | if (wcsTask == null) |
| | | { |
| | |
| | | if (endLoc.N_CURRENT_NUM == 0 && endLoc.S_LOCK_STATE == "无") |
| | | { |
| | | result.resultCode = 0; |
| | | result.success = true; |
| | | result.msg = "目标货位已空"; |
| | | return result; |
| | | } |
| | | else |
| | | { |
| | | result.resultCode = 1; |
| | | result.success = false; |
| | | result.msg = "目标货位为满"; |
| | | return result; |
| | | } |
| | |
| | | return result; |
| | | } |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | result.resultCode = 1; |
| | | result.success = false; |
| | | result.msg = $"agv申请绕路出现错误{JsonConvert.SerializeObject(ex.Message)}"; |
| | | return result; |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | ///// <summary> |
| | | ///// 调用小米状态回报接口 |