| | |
| | | GzResult result = new GzResult(); |
| | | try |
| | | { |
| | | var wcsTask = WCSHelper.GetTaskName(model.orderName); |
| | | var wcsTask = WCSHelper.GetTask(model.orderName); |
| | | if (wcsTask == null) |
| | | { |
| | | result.resultCode = 1; |
| | |
| | | { |
| | | //1表示是否申请绕路 |
| | | var endLoc = LocationHelper.GetLoc(wcsTask.S_END_LOC); |
| | | if (endLoc.N_CURRENT_NUM == 0 && endLoc.S_LOCK_STATE == "无") |
| | | { |
| | | LogHelper.Info($"applyReroute 申请是否绕路货位参数{JsonConvert.SerializeObject(endLoc)}"); |
| | | if (endLoc.N_CURRENT_NUM == 0&& endLoc.S_LOCK_STATE=="入库锁") { |
| | | result.resultCode = 0; |
| | | result.success = true; |
| | | result.msg = "目标货位已空"; |