skyouc
6 天以前 e046dba174365eb8934ee1e4206f09821145e876
zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/OrderDetl.java
@@ -1,6 +1,6 @@
package com.zy.asrs.wms.asrs.entity;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.*;
import java.lang.reflect.Field;
import java.text.SimpleDateFormat;
@@ -9,6 +9,7 @@
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.zy.asrs.common.utils.Synchro;
import com.zy.asrs.wms.asrs.entity.enums.OrderType;
import com.zy.asrs.wms.asrs.entity.param.FieldParam;
import com.zy.asrs.wms.asrs.service.MatFieldService;
import com.zy.asrs.wms.asrs.service.MatService;
@@ -19,9 +20,6 @@
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.zy.asrs.framework.common.Cools;
@@ -55,6 +53,14 @@
     */
    @ApiModelProperty(value= "订单编号")
    private String orderNo;
    @ApiModelProperty("单据类型")
    @TableField(exist = false)
    private Integer orderType;
    @ApiModelProperty("物料名称")
    @TableField(exist = false)
    private String maktx;
    /**
     * 数量
@@ -139,6 +145,12 @@
    @ApiModelProperty(value= "备注")
    private String memo;
    @ApiModelProperty("优先级")
    private Integer sorted;
    @ApiModelProperty("仓库类型")
    private Integer wareType;
    /**
     * 商品库存索引
     */
@@ -194,6 +206,18 @@
        return qty;
    }
    public String getOrderType$() {
        if (orderType == null) {return  null;}
        if (orderType == 1) {
            return OrderType.UTC_IN_ORDER.desc;
        } else if (orderType == 2) {
            return OrderType.UTC_OUT_ORDER.desc;
        } else {
            return OrderType.PK_IN_ORDER.desc;
        }
    }
    public String getOrderId$(){
        OrderService service = SpringUtils.getBean(OrderService.class);
        Order order = service.getById(this.orderId);
@@ -212,6 +236,17 @@
        return null;
    }
    public String getWareType$(){
        if (wareType == null) {return  null;}
        if (wareType == 1) {
            return "立库";
        } else if (wareType == 2) {
            return "平库";
        } else {
            return "立库/平库";
        }
    }
    public String getMatId$(){
        MatService service = SpringUtils.getBean(MatService.class);
        Mat mat = service.getById(this.matId);