#
luxiaotao1123
2020-11-17 ebcaed76a00f824e57ccd7e2c38efe725e160374
src/main/java/com/zy/core/model/protocol/StaProtocol.java
@@ -8,7 +8,7 @@
 * Created by vincent on 2020/8/6
 */
@Data
public class StaProtocol {
public class StaProtocol implements Cloneable {
    // 站点编号
    private Integer siteId;
@@ -43,6 +43,9 @@
    // 锁定标记
    private boolean pakMk = true;
    // 台车位置
    private Short position;
    public BasDevp toSqlModel(){
        BasDevp basDevp = new BasDevp();
        basDevp.setDevNo(siteId);
@@ -56,5 +59,14 @@
        return basDevp;
    }
    @Override
    public StaProtocol clone() {
        try {
            return (StaProtocol) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return null;
    }
}