自动化立体仓库 - WMS系统
zwl
2025-07-28 57f9a55581343a805cd589bbdc00e4d28a28aa97
src/main/java/com/zy/asrs/entity/Order.java
@@ -1,7 +1,9 @@
package com.zy.asrs.entity;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.asrs.service.DocTypeService;
@@ -26,6 +28,7 @@
     * ID
     */
    @ApiModelProperty(value= "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
@@ -197,16 +200,16 @@
    private Date sendTime;
    /**
     * 物流名称
     * 目标仓库
     */
    @ApiModelProperty(value= "物流名称")
    @ApiModelProperty(value= "目标仓库")
    @TableField("ship_name")
    private String shipName;
    /**
     * 物流单号
     * 源仓库
     */
    @ApiModelProperty(value= "物流单号")
    @ApiModelProperty(value= "源仓库")
    @TableField("ship_code")
    private String shipCode;
@@ -257,6 +260,13 @@
     */
    @ApiModelProperty(value= "备注")
    private String memo;
    /**
     * 状态 1: 进行中  0: 初始  2:已完成
     */
    @ApiModelProperty(value= "状态  2:已完成 1: 进行中 0: 初始  ")
    @TableField("move_status")
    private Integer moveStatus;
    public Order() {}
@@ -402,6 +412,20 @@
        }
    }
    public String getMoveStatus$(){
        if (null == this.moveStatus){ return null; }
        switch (this.moveStatus){
            case 2:
                return "已备货";
            case 1:
                return "备货中";
            case 0:
                return "未初始";
            default:
                return String.valueOf(this.moveStatus);
        }
    }
    public String getCreateBy$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.createBy);