|
@@ -1,4 +1,5 @@
|
|
|
-using ServiceCenter.Extensions;
|
|
|
+using PlcSiemens.Core.Extension;
|
|
|
+using ServiceCenter.Extensions;
|
|
|
using ServiceCenter.Logs;
|
|
|
using ServiceCenter.Redis;
|
|
|
using ServiceCenter.WebApi;
|
|
@@ -90,18 +91,34 @@ namespace WCS.WorkEngineering.WebApi.Controllers
|
|
|
/// <returns></returns>
|
|
|
public static GenAgvSchedulingTaskResponse 托盘回库(string position, string taskCode)
|
|
|
{
|
|
|
+ var pos = position;
|
|
|
+ var posCode_1 = "LX002";
|
|
|
+ var posCode_2 = "LXSS1";
|
|
|
+ if (!position.IsNullOrEmpty())
|
|
|
+ {
|
|
|
+ if (position.StartsWith("2"))
|
|
|
+ {
|
|
|
+ posCode_1 = "LX006";
|
|
|
+ posCode_2 = "LXSS2";
|
|
|
+ }
|
|
|
+ else if (position.StartsWith("3"))
|
|
|
+ {
|
|
|
+ posCode_1 = "LX010";
|
|
|
+ posCode_2 = "LXSS3";
|
|
|
+ }
|
|
|
+ }
|
|
|
return GenAgvSchedulingTask("iwms_third", "", "4", new List<positionCodeClass>()
|
|
|
{
|
|
|
new positionCodeClass(){ //取货机台
|
|
|
positionCode=position,
|
|
|
type="00"
|
|
|
},
|
|
|
- new positionCodeClass(){ //巷道分配点
|
|
|
- positionCode="LX002",
|
|
|
+ new positionCodeClass(){ //巷道分配点
|
|
|
+ positionCode=posCode_1,
|
|
|
type="00"
|
|
|
},
|
|
|
new positionCodeClass(){ //预分配放货点
|
|
|
- positionCode="LXSS1",
|
|
|
+ positionCode=posCode_2,
|
|
|
type="00"
|
|
|
}
|
|
|
}, "1", taskCode, "ZTGT31", "1");
|