zhou zhou
2 天以前 04e385bb07fa1dc08258049b955de6b1afdcb119
#订单主表扩充字段
1个文件已修改
225 ■■■■ 已修改文件
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/WkOrder.java 225 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/WkOrder.java
@@ -15,7 +15,6 @@
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
@@ -117,23 +116,22 @@
    private Integer reportOnce;
    /**
     * 释放状态 0:  正常   1:  已释放
     * 释放状态 0: 正常 1: 已释放
     */
    @ApiModelProperty(value = "释放状态 0:  正常   1:  已释放  ")
    private Short rleStatus;
    @ApiModelProperty("执行状态")
    private Short exceStatus;
    /**
     * 状态 1: 正常  0: 冻结
     * 状态 1: 正常 0: 冻结
     */
    @ApiModelProperty(value = "状态 1: 正常  0: 冻结  ")
    private Integer status;
    /**
     * 是否删除 1: 是  0: 否
     * 是否删除 1: 是 0: 否
     */
    @ApiModelProperty(value = "是否删除 1: 是  0: 否  ")
    @TableLogic
@@ -179,10 +177,152 @@
    @ApiModelProperty(value = "备注")
    private String memo;
    /**
     * 仓库ID
     */
    @ApiModelProperty(value = "仓库ID")
    private Long warehouseId;
    /**
     * 库区ID
     */
    @ApiModelProperty(value = "库区ID")
    private Long wareAreaId;
    /**
     * 业务时间
     */
    @ApiModelProperty(value = "业务时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date businessTime;
    /**
     * 作业点
     */
    @ApiModelProperty(value = "作业点")
    private String stationId;
    /**
     * 货主id
     */
    @ApiModelProperty(value = "货主id")
    private Long shipperId;
    /**
     * 单据内码
     */
    @ApiModelProperty(value = "单据内码")
    private String orderInternalCode;
    /**
     * 库存方向
     */
    @ApiModelProperty(value = "库存方向")
    private String stockDirect;
    /**
     * 客户编码
     */
    @ApiModelProperty(value = "客户编码")
    private String customerId;
    /**
     * 客户名称
     */
    @ApiModelProperty(value = "客户名称")
    private String customerName;
    /**
     * 供应商编码
     */
    @ApiModelProperty(value = "供应商编码")
    private String supplierId;
    /**
     * 供应商名称
     */
    @ApiModelProperty(value = "供应商名称")
    private String supplierName;
    /**
     * 收料/发货组织
     */
    @ApiModelProperty(value = "收料/发货组织")
    private String stockOrgId;
    /**
     * 收料/发货组织名称
     */
    @ApiModelProperty(value = "收料/发货组织名称")
    private String stockOrgName;
    /**
     * 采购组织
     */
    @ApiModelProperty(value = "采购组织")
    private String purchaseOrgId;
    /**
     * 采购组织名称
     */
    @ApiModelProperty(value = "采购组织名称")
    private String purchaseOrgName;
    /**
     * 采购员
     */
    @ApiModelProperty(value = "采购员")
    private String purchaseUserId;
    /**
     * 采购员名称
     */
    @ApiModelProperty(value = "采购员名称")
    private String purchaseUserName;
    /**
     * 生产组织
     */
    @ApiModelProperty(value = "生产组织")
    private String prdOrgId;
    /**
     * 生产组织名称
     */
    @ApiModelProperty(value = "生产组织名称")
    private String prdOrgName;
    /**
     * 销售组织
     */
    @ApiModelProperty(value = "销售组织")
    private String saleOrgId;
    /**
     * 销售组织名称
     */
    @ApiModelProperty(value = "销售组织名称")
    private String saleOrgName;
    /**
     * 销售员
     */
    @ApiModelProperty(value = "销售员")
    private String saleUserId;
    /**
     * 销售员名称
     */
    @ApiModelProperty(value = "销售员名称")
    private String saleUserName;
    public WkOrder() {
    }
    public WkOrder(String code, String poCode, Long poId, String type, String wkType, Double anfme, Double qty, String logisNo, Date arrTime, Short rleStatus, Integer status, Integer deleted, Integer tenantId, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo) {
    public WkOrder(String code, String poCode, Long poId, String type, String wkType, Double anfme, Double qty,
            String logisNo, Date arrTime, Short rleStatus, Integer status, Integer deleted, Integer tenantId,
            Long createBy, Date createTime, Long updateBy, Date updateTime, String memo) {
        this.code = code;
        this.poCode = poCode;
        this.poId = poId;
@@ -221,48 +361,47 @@
        return dictData.getLabel();
    }
    public String getType$() {
        return OrderType.getValType(this.type);
//        if (this.type.equals(OrderType.ORDER_TRANSFER.type)) {
//            return OrderType.getValType(this.type);
//        } else {
//            if (Cools.isEmpty(this.type)) {
//                return "";
//            }
//            DictDataService dictDataService = SpringUtils.getBean(DictDataService.class);
//            DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>()
//                    .eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_ORDER_TYPE)
//                    .eq(DictData::getValue, this.type));
//            if (Objects.isNull(dictData)) {
//                return null;
//            }
//            return dictData.getLabel();
//        }
        // if (this.type.equals(OrderType.ORDER_TRANSFER.type)) {
        // return OrderType.getValType(this.type);
        // } else {
        // if (Cools.isEmpty(this.type)) {
        // return "";
        // }
        // DictDataService dictDataService = SpringUtils.getBean(DictDataService.class);
        // DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>()
        // .eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_ORDER_TYPE)
        // .eq(DictData::getValue, this.type));
        // if (Objects.isNull(dictData)) {
        // return null;
        // }
        // return dictData.getLabel();
        // }
    }
    public String getWkType$() {
//        if (this.type.equals(OrderType.ORDER_TRANSFER.type)) {
            return OrderWorkType.getWorkDesc(this.wkType);
//        } else {
//            String typeCode = DictTypeCode.DICT_SYS_BUSINESS_TYPE;
//            if (type.equals(OrderType.ORDER_CHECK.type)) {
//                typeCode = DictTypeCode.SYS_CHECK_ORDER_TYPE;
//            }
//            if (Cools.isEmpty(this.wkType)) {
//                return "";
//            }
//            DictDataService dictDataService = SpringUtils.getBean(DictDataService.class);
//            DictData dictData = dictDataService
//                    .getOne(new LambdaQueryWrapper<DictData>()
//                    .eq(DictData::getDictTypeCode, typeCode)
//                            .eq(DictData::getValue, this.wkType));
//            if (Objects.isNull(dictData)) {
//                return null;
//            }
//            return dictData.getLabel();
//        }
        // if (this.type.equals(OrderType.ORDER_TRANSFER.type)) {
        return OrderWorkType.getWorkDesc(this.wkType);
        // } else {
        // String typeCode = DictTypeCode.DICT_SYS_BUSINESS_TYPE;
        // if (type.equals(OrderType.ORDER_CHECK.type)) {
        // typeCode = DictTypeCode.SYS_CHECK_ORDER_TYPE;
        // }
        // if (Cools.isEmpty(this.wkType)) {
        // return "";
        // }
        // DictDataService dictDataService = SpringUtils.getBean(DictDataService.class);
        // DictData dictData = dictDataService
        // .getOne(new LambdaQueryWrapper<DictData>()
        // .eq(DictData::getDictTypeCode, typeCode)
        // .eq(DictData::getValue, this.wkType));
        // if (Objects.isNull(dictData)) {
        // return null;
        // }
        // return dictData.getLabel();
        // }
    }
    public String getCheckType$() {
@@ -278,7 +417,6 @@
        }
        return dictData.getLabel();
    }
    public String getArrTime$() {
        if (Cools.isEmpty(this.arrTime)) {
@@ -346,7 +484,6 @@
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
    }
    public Boolean getStatusBool() {
        if (null == this.status) {