skyouc
7 天以前 dc60b3451a2984722c01a5991e5b904b8bd44f0d
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/LocArea.java
@@ -4,6 +4,7 @@
import java.text.SimpleDateFormat;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.vincent.rsf.server.manager.service.LocService;
import com.vincent.rsf.server.manager.service.WarehouseAreasService;
import org.springframework.format.annotation.DateTimeFormat;
@@ -56,12 +57,6 @@
    private Long areaId;
    /**
     * 库位ID(*)
     */
    @ApiModelProperty(value= "库位ID(*)")
    private Long locId;
    /**
     * 状态 1: 正常  0: 冻结  
     */
    @ApiModelProperty(value= "状态 1: 正常  0: 冻结  ")
@@ -71,7 +66,6 @@
     * 是否删除 1: 是  0: 否  
     */
    @ApiModelProperty(value= "是否删除 1: 是  0: 否  ")
    @TableLogic
    private Integer deleted;
    /**
@@ -91,6 +85,7 @@
     */
    @ApiModelProperty(value= "添加时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    /**
@@ -104,6 +99,7 @@
     */
    @ApiModelProperty(value= "修改时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    /**
@@ -114,11 +110,10 @@
    public LocArea() {}
    public LocArea(String name,String code,Long areaId,Long locId,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
    public LocArea(String name,String code,Long areaId,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
        this.name = name;
        this.code = code;
        this.areaId = areaId;
        this.locId = locId;
        this.status = status;
        this.deleted = deleted;
        this.tenantId = tenantId;
@@ -153,14 +148,14 @@
        return null;
    }
    public String getLocId$(){
        LocService service = SpringUtils.getBean(LocService.class);
        Loc loc = service.getById(this.locId);
        if (!Cools.isEmpty(loc)){
            return String.valueOf(loc.getCode());
        }
        return null;
    }
//    public String getLocId$(){
//        LocService service = SpringUtils.getBean(LocService.class);
//        Loc loc = service.getById(this.locId);
//        if (!Cools.isEmpty(loc)){
//            return String.valueOf(loc.getCode());
//        }
//        return null;
//    }
    public String getStatus$(){
        if (null == this.status){ return null; }