| | |
| | | package com.zy.asrs.entity.param; |
| | | |
| | | import com.zy.asrs.entity.LocMast; |
| | | import com.zy.core.model.CrnSlave; |
| | | import io.swagger.models.auth.In; |
| | | import lombok.Data; |
| | | |
| | |
| | | |
| | | //起点 |
| | | private String startPoint; |
| | | private Integer startPointSta; |
| | | |
| | | //优先级 |
| | | private Integer taskPriority; |
| | | |
| | | //终点 |
| | | private String targetPoint; |
| | | private Integer targetPointSta; |
| | | |
| | | //是否空托盘 Y:是 N:否 |
| | | private String emptyContainer; |
| | |
| | | this.crn = crn; |
| | | }; |
| | | |
| | | public TaskCreateParam(CarryParam param, Integer crn,Integer crnSta){ |
| | | this.taskNo = param.getTaskNo(); |
| | | this.ioType = param.getIoType(); |
| | | this.barcode = param.getBarcode(); |
| | | this.taskPriority = param.getTaskPriority(); |
| | | this.startPoint = param.getStartPoint(); |
| | | this.targetPoint = param.getTargetPoint(); |
| | | this.emptyContainer = "N"; |
| | | this.crn = crn; |
| | | this.startPointSta = crnSta; |
| | | this.targetPointSta = crnSta; |
| | | }; |
| | | |
| | | public TaskCreateParam(CrnSlave crnSlave, LocMast locMast){ |
| | | this.taskNo = locMast.getLocNo() + "-" + crnSlave.getId(); |
| | | this.ioType = 4; |
| | | this.barcode = locMast.getBarcode(); |
| | | this.taskPriority = 1; |
| | | this.startPoint = locMast.getLocNo(); |
| | | this.startPointSta = crnSlave.getCrnOutStn().get(0).getStaNo(); |
| | | this.targetPoint = locMast.getLocNo(); |
| | | this.targetPointSta = crnSlave.getCrnInStn().get(0).getStaNo(); |
| | | this.emptyContainer = "N"; |
| | | this.crn = locMast.getCrnNo(); |
| | | this.memo = "演示任务"; |
| | | }; |
| | | |
| | | |
| | | public static Integer convertParamIoType(String paramIoType){ |
| | | switch (paramIoType){ |