skyouc
3 天以前 f3e6038bf82c53982cfabd1f8f920d483397ea06
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/LocArea.java
@@ -4,8 +4,10 @@
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 lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
@@ -25,6 +27,7 @@
import java.util.Date;
@Data
@Accessors(chain = true)
@TableName("man_loc_area")
public class LocArea implements Serializable {
@@ -56,12 +59,6 @@
    private Long areaId;
    /**
     * 库位ID(*)
     */
    @ApiModelProperty(value= "库位ID(*)")
    private Long locId;
    /**
     * 状态 1: 正常  0: 冻结  
     */
    @ApiModelProperty(value= "状态 1: 正常  0: 冻结  ")
@@ -91,6 +88,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 +102,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 +113,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 +151,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; }