自动化立体仓库 - WMS系统
chen.llin
2026-01-01 103c4983ced0b5d58b84c220ec97867f2d29f524
src/main/java/com/zy/asrs/entity/InventoryReserve.java
@@ -7,6 +7,10 @@
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.core.common.SpringUtils;
import com.zy.system.entity.User;
import com.zy.system.service.UserService;
import org.springframework.format.annotation.DateTimeFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
@@ -107,6 +111,48 @@
    @TableField("update_by")
    private Long updateBy;
    @ApiModelProperty(value = "品牌")
    private String brand;
    /**
     * 备用1
     */
    @ApiModelProperty(value = "备用1")
    private String standby1 = "";
    /**
     * 备用2
     */
    @ApiModelProperty(value = "备用2")
    private String standby2 = "";
    /**
     * 备用3
     */
    @ApiModelProperty(value = "备用3")
    private String standby3 = "";
    /**
     * 备用1
     */
    @ApiModelProperty(value = "备用1")
    @TableField("box_type1")
    private String boxType1 = "1";
    /**
     * 备用2
     */
    @ApiModelProperty(value = "备用2")
    @TableField("box_type2")
    private String boxType2 = "1";
    /**
     * 备用3
     */
    @ApiModelProperty(value = "备用3")
    @TableField("box_type3")
    private String boxType3 = "1";
    public InventoryReserve() {}
    public InventoryReserve(String matnr,String maktx,String orderNo,String batch,BigDecimal quantity,Date expiceTime,Long deptId,Date createTime,Long createBy,Date updateTime,Long updateBy) {
@@ -137,7 +183,7 @@
//            null    // 更新人员
//    );
    public String getExpiceTime$(){
    public String getExpireTime$(){
        if (Cools.isEmpty(this.expireTime)){
            return "";
        }
@@ -158,5 +204,29 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
    }
    public String getCreateBy$() {
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.createBy);
        if (!Cools.isEmpty(user)) {
            return String.valueOf(user.getUsername());
        }
        if (this.createBy == 9527){
            return "super";
        }
        return null;
    }
    public String getUpdateBy$() {
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.updateBy);
        if (!Cools.isEmpty(user)) {
            return String.valueOf(user.getUsername());
        }
        if (this.createBy == 9527){
            return "super";
        }
        return null;
    }
}