| | |
| | | package com.zy.asrs.wcs.rcs.model.protocol; |
| | | |
| | | import com.zy.asrs.wcs.core.entity.Station; |
| | | import com.zy.asrs.wcs.core.entity.BasConveyorSta; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | |
| | | // 扫码失败 |
| | | private boolean barcodeErr; |
| | | |
| | | // 工作模式 |
| | | private Integer workMode; |
| | | |
| | | @Override |
| | | public StaProtocol clone() { |
| | | try { |
| | |
| | | return null; |
| | | } |
| | | |
| | | public Station toSqlModel(Station station){ |
| | | station.setStaNo(String.valueOf(siteId)); |
| | | station.setTaskNo(String.valueOf(workNo)); |
| | | public BasConveyorSta toSqlModel(BasConveyorSta station){ |
| | | station.setSiteNo(siteId); |
| | | station.setTaskNo(workNo.intValue()); |
| | | station.setAutoing(autoing?"Y":"N"); |
| | | station.setLoading(loading?"Y":"N"); |
| | | station.setInEnable(inEnable?"Y":"N"); |
| | | station.setOutEnable(outEnable?"Y":"N"); |
| | | station.setWorkMode(workMode); |
| | | station.setStaNo((int) staNo); |
| | | station.setLocType1(0); // 高低类型{0:未知,1:低库位,2:高库位} |
| | | station.setLocType2(0); // 宽窄类型{0:未知,1:窄库位,2:宽库位} |
| | | station.setLocType3(0); // 轻重类型{0:未知,1:轻库位,2:重库位} |
| | | return station; |
| | | } |
| | | |
| | | public Integer getLocType1() { |
| | | if (!this.high && !this.low) { |
| | | return 0;//未知 |
| | | } |
| | | |
| | | if (this.low) { |
| | | return 1;//低 |
| | | }else { |
| | | return 2;//高 |
| | | } |
| | | } |
| | | |
| | | } |