自动化立体仓库 - WMS系统
#
luxiaotao1123
2021-08-24 7ebe16b9abbee8e884db27d2ec360f17455b14f2
src/main/java/com/zy/asrs/entity/WrkDetl.java
@@ -1,8 +1,12 @@
package com.zy.asrs.entity;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.system.entity.User;
import com.zy.system.service.UserService;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -30,48 +34,39 @@
    @TableField("io_time")
    private Date ioTime;
    /**
     * 物料
     */
    @ApiModelProperty(value= "物料")
    private String matnr;
    @ApiModelProperty(value= "产品编码")
    @TableId(value = "mat_no")
    private String matNo;
    /**
     * 物料描述
     */
    @ApiModelProperty(value= "物料描述")
    private String maktx;
    @ApiModelProperty(value= "产品名称")
    @TableId(value = "mat_name")
    private String matName;
    /**
     * 仓库号
     */
    @ApiModelProperty(value= "规格")
    private String lgnum;
    private String specs;
    @ApiModelProperty(value= "尺寸")
    private String size;
    @ApiModelProperty(value= "颜色")
    private String color;
    @ApiModelProperty(value= "单重")
    private Double weight;
    /**
     * 仓库号
     * 单据编号
     */
    @ApiModelProperty(value= "商品类别")
    private String type;
    @ApiModelProperty(value= "单据编号")
    @TableField("bill_no")
    private String billNo;
    /**
     * 仓库号
     * 序号
     */
    @ApiModelProperty(value= "助记码")
    private String mnemonic;
    /**
     * 仓库号
     */
    @ApiModelProperty(value= "供应商")
    private String supplier;
    /**
     * 仓库号
     */
    @ApiModelProperty(value= "仓库")
    private String warehouse;
    @ApiModelProperty(value= "序号")
    @TableField("seq_no")
    private Integer seqNo;
    /**
     * 仓库号
@@ -83,13 +78,13 @@
     * 数量
     */
    @ApiModelProperty(value= "数量")
    private Double anfme;
    private Double qty;
    /**
     * 单位
     */
    @ApiModelProperty(value= "单位")
    private String altme;
    private String unit;
    /**
     * 托盘条码
@@ -144,11 +139,29 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime);
    }
    public String getModiUser$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.modiUser);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getUsername());
        }
        return null;
    }
    public String getModiTime$(){
        if (Cools.isEmpty(this.modiTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
    }
    public String getAppeUser$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.appeUser);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getUsername());
        }
        return null;
    }
    public String getAppeTime$(){
@@ -157,6 +170,5 @@
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
    }
}