zhou zhou
1 天以前 1dcfa3702505f0c431757312b5304531029f90f6
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/WarehouseAreasItem.java
@@ -2,10 +2,16 @@
import com.baomidou.mybatisplus.annotation.*;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.*;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.vincent.rsf.server.manager.service.CompanysService;
import com.vincent.rsf.server.system.constant.DictTypeCode;
import com.vincent.rsf.server.system.entity.DictData;
import com.vincent.rsf.server.system.service.DictDataService;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import java.text.SimpleDateFormat;
@@ -21,7 +27,6 @@
import com.vincent.rsf.server.system.entity.User;
import java.io.Serializable;
import java.util.Date;
import java.util.Map;
@Data
@Accessors(chain = true)
@@ -53,6 +58,19 @@
    @ApiModelProperty("单据明细ID")
    private Long asnItemId;
    @ApiModelProperty("行号")
    private String platItemId;
    @ApiModelProperty("质检结果")
    private Short isptResult;
    @ApiModelProperty("已收货数量")
    private Double qty;
    @ApiModelProperty("执行数量")
    private Double workQty;
    /**
     * 区域名称
     */
@@ -68,11 +86,20 @@
    @ApiModelProperty(value = "扩展字段唯一标识")
    private String fieldsIndex;
    @ApiModelProperty("客户订单号")
    private String platOrderCode;
    @ApiModelProperty("工单号")
    private String platWorkCode;
    @ApiModelProperty("项目号")
    private String projectCode;
    /**
     * 物料名称
     */
    @ApiModelProperty(value= "物料名称")
    private String matnrName;
    private String maktx;
    /**
     * 物料编码
@@ -126,7 +153,7 @@
     * 供应商标识
     */
    @ApiModelProperty(value= "供应商标识")
    private String splrId;
    private Long splrId;
    /**
     * 收货重量
@@ -171,11 +198,15 @@
    @ApiModelProperty(value= "添加人员")
    private Long createBy;
    @TableField(exist = false)
    private String createBy$;
    /**
     * 添加时间
     */
    @ApiModelProperty(value= "添加时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    /**
@@ -184,11 +215,21 @@
    @ApiModelProperty(value= "修改人员")
    private Long updateBy;
    @TableField(exist = false)
    private String updateBy$;
    @ApiModelProperty("是否合格")
    private Short flagNorm;
    @ApiModelProperty("质检数量")
    private Double isptQty;
    /**
     * 修改时间
     */
    @ApiModelProperty(value= "修改时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    @ApiModelProperty("扩展字段")
@@ -201,13 +242,65 @@
    @ApiModelProperty(value= "备注")
    private String memo;
    @ApiModelProperty(value = "基本单位")
    private String baseUnit;
    @ApiModelProperty(value = "使用组织")
    private String useOrgId;
    @ApiModelProperty(value = "使用者名称")
    private String useOrgName;
    @ApiModelProperty(value = "数量属性,外购等")
    private String erpClsId;
    @ApiModelProperty(value = "计价单位")
    private String priceUnitId;
    @ApiModelProperty(value = "入库类型")
    private String inStockType;
    @ApiModelProperty(value = "货主类型")
    private String ownerTypeId;
    @ApiModelProperty(value = "货主")
    private String ownerId;
    @ApiModelProperty(value = "货主名称")
    private String ownerName;
    @ApiModelProperty(value = "保管者类型")
    private String keeperTypeId;
    @ApiModelProperty(value = "保管者")
    private String keeperId;
    @ApiModelProperty(value = "保管者名称")
    private String keeperName;
    @ApiModelProperty(value = "建议目标仓,入库")
    private String targetWarehouseId;
    @ApiModelProperty(value = "建议调出仓,出仓")
    private String sourceWarehouseId;
    @TableField(exist = false)
    private String shipperId$;
    @TableField(exist = false)
    private String splrId$;
    @TableField(exist = false)
    private String isptResult$;
    public WarehouseAreasItem() {}
    public WarehouseAreasItem(Long areaId,String areaName,Long matnrId,String matnrName,String matnrCode,String trackCode,Double anfme,String batch,String unit,String stockUnit,String brand,Long shipperId,String splrId,Double weight,String prodTime,String splrBtch,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
    public WarehouseAreasItem(Long areaId,String areaName,Long matnrId,String matnrName,String matnrCode,String trackCode,Double anfme,String batch,String unit,String stockUnit,String brand,Long shipperId,Long splrId,Double weight,String prodTime,String splrBtch,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
        this.areaId = areaId;
        this.areaName = areaName;
        this.matnrId = matnrId;
        this.matnrName = matnrName;
        this.maktx = matnrName;
        this.matnrCode = matnrCode;
        this.trackCode = trackCode;
        this.anfme = anfme;
@@ -257,22 +350,20 @@
//            null    // 备注
//    );
    public BigDecimal getAbleQty(){
        BigDecimal anfmeDec = this.anfme != null ? new BigDecimal(this.anfme.toString()) : BigDecimal.ZERO;
        BigDecimal workQtyDec = this.workQty != null ? new BigDecimal(this.workQty.toString()) : BigDecimal.ZERO;
        BigDecimal qtyDec = this.qty != null ? new BigDecimal(this.qty.toString()) : BigDecimal.ZERO;
        return anfmeDec.subtract(workQtyDec).subtract(qtyDec);
    }
    public String getShipperId$(){
        CompanysService service = SpringUtils.getBean(CompanysService.class);
        Companys companys = service.getById(this.shipperId);
        if (!Cools.isEmpty(companys)){
            return String.valueOf(companys.getName());
        }
        return null;
        return this.shipperId$;
    }
    public String getSplrId$(){
        CompanysService service = SpringUtils.getBean(CompanysService.class);
        Companys companys = service.getById(this.splrId);
        if (!Cools.isEmpty(companys)){
            return String.valueOf(companys.getName());
        }
        return null;
        return this.splrId$;
    }
    public String getStatus$(){
@@ -287,15 +378,6 @@
        }
    }
    public String getCreateBy$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.getById(this.createBy);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getNickname());
        }
        return null;
    }
    public String getCreateTime$(){
        if (Cools.isEmpty(this.createTime)){
            return "";
@@ -303,13 +385,8 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
    }
    public String getUpdateBy$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.getById(this.updateBy);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getNickname());
        }
        return null;
    public String getIsptResult$(){
        return this.isptResult$;
    }
    public String getUpdateTime$(){