自动化立体仓库 - WMS系统
13
zhang
2 天以前 82de5a307466894bbb0258f8a63a26a7bb96d80d
src/main/java/com/zy/asrs/entity/RowLastno.java
@@ -4,11 +4,13 @@
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.asrs.service.BasWhsService;
import com.zy.asrs.service.RowLastnoTypeService;
import com.zy.system.entity.User;
import com.zy.system.service.UserService;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
@@ -23,7 +25,7 @@
    /**
     * 类别
     */
    @ApiModelProperty(value= "类别")
    @ApiModelProperty(value = "类别")
    @TableId(value = "whs_type", type = IdType.INPUT)
    @TableField("whs_type")
    private Integer whsType;
@@ -31,149 +33,150 @@
    /**
     * 当前工作号
     */
    @ApiModelProperty(value= "当前工作号")
    @ApiModelProperty(value = "当前工作号")
    @TableField("wrk_mk")
    private String wrkMk;
    /**
     * 当前排号
     */
    @ApiModelProperty(value= "当前排号")
    @ApiModelProperty(value = "当前排号")
    @TableField("current_row")
    private Integer currentRow;
    /**
     * 起始排号
     */
    @ApiModelProperty(value= "起始排号")
    @ApiModelProperty(value = "起始排号")
    @TableField("s_row")
    private Integer sRow;
    /**
     * 终止排号
     */
    @ApiModelProperty(value= "终止排号")
    @ApiModelProperty(value = "终止排号")
    @TableField("e_row")
    private Integer eRow;
    /**
     * 堆垛机数量
     */
    @ApiModelProperty(value= "堆垛机数量")
    @ApiModelProperty(value = "堆垛机数量")
    @TableField("crn_qty")
    private Integer crnQty;
    /**
     * 备注
     */
    @ApiModelProperty(value= "备注")
    @ApiModelProperty(value = "备注")
    private String memo;
    /**
     * 修改人员
     */
    @ApiModelProperty(value= "修改人员")
    @ApiModelProperty(value = "修改人员")
    @TableField("modi_user")
    private Long modiUser;
    /**
     * 修改时间
     */
    @ApiModelProperty(value= "修改时间")
    @ApiModelProperty(value = "修改时间")
    @TableField("modi_time")
    private Date modiTime;
    /**
     * 创建者
     */
    @ApiModelProperty(value= "创建者")
    @ApiModelProperty(value = "创建者")
    @TableField("appe_user")
    private Long appeUser;
    /**
     * 添加时间
     */
    @ApiModelProperty(value= "添加时间")
    @ApiModelProperty(value = "添加时间")
    @TableField("appe_time")
    private Date appeTime;
    @ApiModelProperty(value= "")
    @ApiModelProperty(value = "")
    @TableField("limint_loc")
    private Integer limintLoc;
    /**
     * 起始堆垛机号
     */
    @ApiModelProperty(value= "起始堆垛机号")
    @ApiModelProperty(value = "起始堆垛机号")
    @TableField("s_crn_no")
    private Integer sCrnNo;
    /**
     * 终止堆垛机号
     */
    @ApiModelProperty(value= "终止堆垛机号")
    @ApiModelProperty(value = "终止堆垛机号")
    @TableField("e_crn_no")
    private Integer eCrnNo;
    /**
     * 标记类别(是否输送线互通)
     */
    @ApiModelProperty(value= "标记类别")
    @ApiModelProperty(value = "标记类别")
    @TableField("sign_type")
    private Integer signType;
    /**
     * 是否启用其它标记类别  0:关闭   1:打开
     */
    @ApiModelProperty(value= "是否启用其它标记类别")
    @ApiModelProperty(value = "是否启用其它标记类别")
    @TableField("sign_type_other")
    private Integer signTypeOther;
    /**
     * 其它标记类别(是否输送线互通)
     */
    @ApiModelProperty(value= "其它标记类别")
    @ApiModelProperty(value = "其它标记类别")
    @TableField("sign_type_other_boolean")
    private String signTypeOtherBoolean;
    /**
     * 其它标记类别(是否输送线互通)
     */
    @ApiModelProperty(value= "入库站点集合")
    @ApiModelProperty(value = "入库站点集合")
    @TableField("sta_no_list")
    private String staNoList;
    /**
     * 库类型ID
     */
    @ApiModelProperty(value= "库类型ID")
    @ApiModelProperty(value = "库类型ID")
    @TableField("type_id")
    private Integer typeId;
    /**
     * 相似物料开关
     */
    @ApiModelProperty(value= "相似物料开关")
    @ApiModelProperty(value = "相似物料开关")
    @TableField("be_similar")
    private String beSimilar;
    /**
     * 是否存在点位
     */
    @ApiModelProperty(value= "是否存在点位")
    @ApiModelProperty(value = "是否存在点位")
    @TableField("point_switch")
    private String pointSwitch;
    /**
     * 空板靠近摆放
     */
    @ApiModelProperty(value= "空板靠近摆放")
    @ApiModelProperty(value = "空板靠近摆放")
    @TableField("empty_similar")
    private String emptySimilar;
    public RowLastno() {}
    public RowLastno() {
    }
    public RowLastno(String wrkMk,Integer currentRow,Integer sRow,Integer eRow,Integer crnQty,String memo,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Integer limintLoc) {
    public RowLastno(String wrkMk, Integer currentRow, Integer sRow, Integer eRow, Integer crnQty, String memo, Long modiUser, Date modiTime, Long appeUser, Date appeTime, Integer limintLoc) {
        this.wrkMk = wrkMk;
        this.currentRow = currentRow;
        this.sRow = sRow;
@@ -261,10 +264,10 @@
        return modiUser;
    }
    public String getModiUser$(){
    public String getModiUser$() {
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.modiUser);
        if (!Cools.isEmpty(user)){
        if (!Cools.isEmpty(user)) {
            return String.valueOf(user.getUsername());
        }
        return null;
@@ -278,8 +281,8 @@
        return modiTime;
    }
    public String getModiTime$(){
        if (Cools.isEmpty(this.modiTime)){
    public String getModiTime$() {
        if (Cools.isEmpty(this.modiTime)) {
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
@@ -293,10 +296,10 @@
        return appeUser;
    }
    public String getAppeUser$(){
    public String getAppeUser$() {
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.appeUser);
        if (!Cools.isEmpty(user)){
        if (!Cools.isEmpty(user)) {
            return String.valueOf(user.getUsername());
        }
        return null;
@@ -310,8 +313,8 @@
        return appeTime;
    }
    public String getAppeTime$(){
        if (Cools.isEmpty(this.appeTime)){
    public String getAppeTime$() {
        if (Cools.isEmpty(this.appeTime)) {
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
@@ -328,6 +331,7 @@
    public void setLimintLoc(Integer limintLoc) {
        this.limintLoc = limintLoc;
    }
    public Integer getsCrnNo() {
        return sCrnNo;
    }
@@ -379,11 +383,14 @@
    public Integer getTypeId() {
        return typeId;
    }
    public String getTypeId$() {
        RowLastnoTypeService rowLastnoTypeService = SpringUtils.getBean(RowLastnoTypeService.class);
        RowLastnoType rowLastnoType = rowLastnoTypeService.selectById(this.typeId.longValue());
        if (!Cools.isEmpty(rowLastnoType)){
            return rowLastnoType.getTypeName()+"<==>"+rowLastnoType.getMemo();
        BasWhsService basWhsService = SpringUtils.getBean(BasWhsService.class);
        BasWhs basWhs = basWhsService.selectOne(new EntityWrapper<BasWhs>().eq("identifying", rowLastnoType.getType().longValue()));
        if (!Cools.isEmpty(rowLastnoType)) {
            return rowLastnoType.getTypeName() + "<==>" + rowLastnoType.getMemo() + "<==>" + basWhs.getWhsDesc();
        }
        return typeId.toString();
    }