package com.zy.asrs.entity.param;
|
|
import lombok.Data;
|
|
import java.util.ArrayList;
|
import java.util.List;
|
|
@Data
|
public class AgvGoTheArnParam {
|
String reqCode; //任务号
|
String reqTime; //
|
String currentPositionCode; // 位置
|
String method; //
|
String robotCode; //
|
String taskCode; //
|
|
public List<ArmAgvGratingParam> getArmNo() {
|
List<ArmAgvGratingParam> armList = new ArrayList<>();
|
if (this.currentPositionCode == null) return armList;
|
switch (this.currentPositionCode) {
|
case "028370CC015200":
|
case "029870CC015200":
|
case "3100101":
|
case "3100201":
|
ArmAgvGratingParam armAgvGratingParam1 = new ArmAgvGratingParam();
|
armAgvGratingParam1.setArmNo(5);
|
armAgvGratingParam1.setChannel("A1");
|
armList.add(armAgvGratingParam1);
|
return armList;
|
case "028440CC024257":
|
case "029940CC024257":
|
case "3000101":
|
case "3000201":
|
case "2900101":
|
case "2900201":
|
ArmAgvGratingParam armAgvGratingParam2 = new ArmAgvGratingParam();
|
armAgvGratingParam2.setArmNo(5);
|
armAgvGratingParam2.setChannel("A2");
|
armList.add(armAgvGratingParam2);
|
ArmAgvGratingParam armAgvGratingParam3 = new ArmAgvGratingParam();
|
armAgvGratingParam3.setArmNo(6);
|
armAgvGratingParam3.setChannel("A1");
|
armList.add(armAgvGratingParam3);
|
return armList;
|
case "028440CC031993":
|
case "029940CC031993":
|
case "2800101":
|
case "2800201":
|
ArmAgvGratingParam armAgvGratingParam4 = new ArmAgvGratingParam();
|
armAgvGratingParam4.setArmNo(6);
|
armAgvGratingParam4.setChannel("A2");
|
armList.add(armAgvGratingParam4);
|
return armList;
|
default:
|
return armList;
|
}
|
}
|
|
}
|