diff --git a/webapi/WindowsFormsApp1/APIChannel.cs b/webapi/WindowsFormsApp1/APIChannel.cs index 1486f31..f6b9e8b 100644 --- a/webapi/WindowsFormsApp1/APIChannel.cs +++ b/webapi/WindowsFormsApp1/APIChannel.cs @@ -848,7 +848,7 @@ namespace WindowsFormsApp1 { error_code.Append(";").Append("终点").Append(all_checking["CELL_NOT_EXIST"].des); //终点货位不存在 } - + //移库任务如果不同层,校验不要移 存疑 if (startdevice.Substring(6, 2) != enddevice.Substring(6, 2)) { @@ -858,7 +858,9 @@ namespace WindowsFormsApp1 { error_code.Append(";").Append("移库任务起点终点相同"); } - + if (Convert.ToInt32(startdevice.Substring(0, 2) + 3) / 4 != Convert.ToInt32(startdevice.Substring(0, 2) + 3) / 4) { + error_code.Append(";").Append("移库任务起点终点不是同一个巷道"); + } } #endregion #endregion