#
18516761980
2022-06-14 d16d3b70e94f798d7e5abd145f8566d81d0c66c9
src/main/java/com/zy/asrs/entity/WrkDetl.java
@@ -3,6 +3,9 @@
import com.baomidou.mybatisplus.annotations.TableField;
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;
@@ -33,15 +36,14 @@
    /**
     * 物料
     */
    @ApiModelProperty(value= "物料")
    @ApiModelProperty(value= "商品编号")
    private String matnr;
    /**
     * 物料描述
     */
    @ApiModelProperty(value= "物料描述")
    @ApiModelProperty(value= "商品名称")
    private String maktx;
    /**
     * 仓库号
@@ -52,31 +54,31 @@
    /**
     * 仓库号
     */
    @ApiModelProperty(value= "商品类别")
    @ApiModelProperty(value= "型号")
    private String type;
    /**
     * 仓库号
     * 条码
     */
    @ApiModelProperty(value= "助记码")
    private String mnemonic;
    @ApiModelProperty(value= "条码")
    private String color;
    /**
     * 仓库号
     * 批号
     */
    @ApiModelProperty(value= "供应商")
    @ApiModelProperty(value= "批号")
    private String supplier;
    /**
     * 仓库号
     * 单据编号
     */
    @ApiModelProperty(value= "仓库")
    @ApiModelProperty(value= "单据编号")
    private String warehouse;
    /**
     * 仓库号
     * 品项数
     */
    @ApiModelProperty(value= "品牌")
    @ApiModelProperty(value= "品项数")
    private String brand;
    /**
@@ -98,9 +100,9 @@
    private String zpallet;
    /**
     * 用户ID
     * 客户名称
     */
    @ApiModelProperty(value= "用户ID")
    @ApiModelProperty(value= "客户名称")
    private String bname;
    /**
@@ -144,11 +146,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 +177,5 @@
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
    }
}