自动化立体仓库 - WMS系统
zhou zhou
1 天以前 2c83b33304129e926c2b6d3421307f628b761ad0
src/main/java/com/zy/asrs/entity/OrderPakout.java
@@ -6,6 +6,8 @@
import com.baomidou.mybatisplus.enums.IdType;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.asrs.entity.BasAreas;
import com.zy.asrs.service.BasAreasService;
import com.zy.asrs.service.DocTypeService;
import com.zy.asrs.service.OrderSettleService;
import com.zy.common.utils.Synchro;
@@ -66,7 +68,7 @@
    @TableField("item_id")
    private Long itemId;
    @ApiModelProperty(value= "")
    @ApiModelProperty(value= "区域ID")
    @TableField("item_name")
    private String itemName;
@@ -269,6 +271,13 @@
    @TableField("move_status")
    private Integer moveStatus;
    /**
     * 状态 1: 进行中  0: 初始  2:已完成
     */
    @ApiModelProperty(value= "入出库类型(0:未知,1:入库,2:出库)")
    @TableField("pakin_pakout_status")
    private Integer pakinPakoutStatus;
    public OrderPakout() {}
    public OrderPakout(String uuid, String orderNo, String orderTime, Long docType, Long itemId, String itemName, Long allotItemId, String defNumber, String number, Long cstmr, String cstmrName, String tel, String operMemb, Double totalFee, Double discount, Double discountFee, Double otherFee, Double actFee, Integer payType, String salesman, Integer accountDay, Integer postFeeType, Double postFee, Date payTime, Date sendTime, String shipName, String shipCode, Long settle, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo) {
@@ -345,6 +354,23 @@
//            null    // 备注
//    );
    public String getItemName$() {
        if (Cools.isEmpty(this.itemName)) {
            return null;
        }
        try {
            BasAreasService service = SpringUtils.getBean(BasAreasService.class);
            BasAreas area = service.selectById(Long.parseLong(this.itemName));
            if (!Cools.isEmpty(area)) {
                return area.getName();
            }
        } catch (Exception e) {
            return this.itemName;
        }
        return null;
    }
    public String getDocType$(){
        DocTypeService service = SpringUtils.getBean(DocTypeService.class);
        DocType docType = service.selectById(this.docType);
@@ -401,6 +427,18 @@
        return null;
    }
    public String getPakinPakoutStatus$(){
        switch (this.pakinPakoutStatus){
            case 1:
                return "Y";
            case 2:
                return "N";
            default:
                return null;
        }
    }
    public String getStatus$(){
        if (null == this.status){ return null; }
        switch (this.status){