#
1
17 小时以前 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;
@@ -148,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,    // 操作方向[非空]