#
1
2 天以前 09358392b9c559ebbc9503f1cecea3b7ab3e6c2c
src/main/java/com/zy/asrs/entity/BasArmMast.java
@@ -4,6 +4,9 @@
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.core.common.SnowflakeIdWorker;
import com.core.common.SpringUtils;
import com.zy.asrs.entity.param.ArmBarcodeTwoParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotations.TableName;
@@ -56,7 +59,7 @@
     */
    @ApiModelProperty(value= "绑定标记")
    @TableField("binding_tags")
    private Integer bindingTags;
    private Long bindingTags;
    /**
     * 优先级
@@ -102,7 +105,7 @@
     * 时间戳
     */
    @ApiModelProperty(value= "时间戳")
    @TableId(value = "createTime", type = IdType.INPUT)
    @TableField("create_time")
    private Long createTime;
    /**
@@ -119,9 +122,16 @@
    @TableField("arm_msg")
    private String armMsg;
    /**
     * 异常信息
     */
    @ApiModelProperty(value= "异常信息")
    @TableField("barcode")
    private String barcode;
    public BasArmMast() {}
    public BasArmMast(Integer armNo,Integer armDirection,Integer staNo,Integer sortingLine,Integer bindingTags,Long priority,Integer status,String matnr,String sku,String po,String upc,String supplier,String orderNo,Integer ctns,Long createTime,Long armError,String armMsg) {
    public BasArmMast(Integer armNo,Integer armDirection,Integer staNo,Integer sortingLine,Long bindingTags,Long priority,Integer status,String matnr,String sku,String po,String upc,String supplier,String orderNo,Integer ctns,Long createTime,Long armError,String armMsg) {
        this.armNo = armNo;
        this.armDirection = armDirection;
        this.staNo = staNo;
@@ -141,6 +151,18 @@
        this.armMsg = armMsg;
    }
    public BasArmMast(ArmBarcodeTwoParam param) {
        SnowflakeIdWorker snowflakeIdWorker = SpringUtils.getBean(SnowflakeIdWorker.class);
        this.orderNo = param.getOrderNo();
        this.sku = param.getSku();
        this.matnr = param.getItem();
        this.po = param.getPo();
        this.upc = param.getUpc();
        this.createTime = snowflakeIdWorker.nextId();
        this.bindingTags = snowflakeIdWorker.nextId();
    }
//    BasArmMast basArmMast = new BasArmMast(
//            null,    // 机械臂编号[非空]
//            null,    // 操作方向[非空]