|  |  | 
 |  |  | import java.text.SimpleDateFormat;
 | 
 |  |  | import java.util.Date;
 | 
 |  |  | 
 | 
 |  |  | import com.fasterxml.jackson.annotation.JsonFormat;
 | 
 |  |  | import com.zy.asrs.wms.asrs.service.OrderSettleService;
 | 
 |  |  | import com.zy.asrs.wms.asrs.service.OrderTypeService;
 | 
 |  |  | import com.zy.asrs.wms.asrs.service.WaveService;
 | 
 |  |  | import com.zy.asrs.wms.system.entity.Host;
 | 
 |  |  | import com.zy.asrs.wms.system.entity.User;
 | 
 |  |  | import io.swagger.models.auth.In;
 | 
 |  |  | import org.springframework.format.annotation.DateTimeFormat;
 | 
 |  |  | import java.text.SimpleDateFormat;
 | 
 |  |  | import java.util.Date;
 | 
 |  |  | 
 |  |  | 
 | 
 |  |  | import java.io.Serializable;
 | 
 |  |  | import java.util.Date;
 | 
 |  |  | import java.util.Objects;
 | 
 |  |  | 
 | 
 |  |  | @Data
 | 
 |  |  | @TableName("man_order")
 | 
 |  |  | 
 |  |  |      * 单据日期
 | 
 |  |  |      */
 | 
 |  |  |     @ApiModelProperty(value= "单据日期")
 | 
 |  |  |     @DateTimeFormat(pattern = "yyyy-MM-dd")
 | 
 |  |  |     @JsonFormat(pattern = "yyyy-MM-dd")
 | 
 |  |  |     private String orderTime;
 | 
 |  |  | 
 | 
 |  |  |     /**
 | 
 |  |  | 
 |  |  |     @ApiModelProperty(value= "单据状态")
 | 
 |  |  |     private Long orderSettle;
 | 
 |  |  | 
 | 
 |  |  |     @ApiModelProperty("客户名称")
 | 
 |  |  |     private String customer;
 | 
 |  |  | 
 | 
 |  |  |     @ApiModelProperty("物流名称")
 | 
 |  |  |     private String logisticsName;
 | 
 |  |  | 
 | 
 |  |  |     @ApiModelProperty("收货地址")
 | 
 |  |  |     private String address;
 | 
 |  |  | 
 | 
 |  |  |     @ApiModelProperty("联系电话")
 | 
 |  |  |     private String phone;
 | 
 |  |  | 
 | 
 |  |  |     @ApiModelProperty("快递单号")
 | 
 |  |  |     private String logistics;
 | 
 |  |  | 
 | 
 |  |  |     @ApiModelProperty("订单数量")
 | 
 |  |  |     @TableField(exist = false)
 | 
 |  |  |     private Double waitQty;
 | 
 |  |  |     /**
 | 
 |  |  |      * 所属机构
 | 
 |  |  |      */
 | 
 |  |  | 
 |  |  |      */
 | 
 |  |  |     @ApiModelProperty(value= "是否生成波次 1: 是  0: 否  ")
 | 
 |  |  |     private Integer hasWave;
 | 
 |  |  | 
 | 
 |  |  |     /**
 | 
 |  |  |      * 订单状态
 | 
 |  |  |      * 1. 已完成
 | 
 |  |  |      * 0. 未完成
 | 
 |  |  |      * 2. 部分完成
 | 
 |  |  |      */
 | 
 |  |  |     @TableField(exist = false)
 | 
 |  |  |     private String orderStatus;
 | 
 |  |  | 
 | 
 |  |  |     @TableField(exist = false)
 | 
 |  |  |     private String site;
 | 
 |  |  | 
 | 
 |  |  |     /**
 | 
 |  |  |      * 订单状态
 | 
 |  |  |      * 1. 已完成
 | 
 |  |  |      * 0. 未完成
 | 
 |  |  |      * 2. 部分完成
 | 
 |  |  |      */
 | 
 |  |  |     private Integer pickStatus;
 | 
 |  |  | 
 | 
 |  |  |     public Order() {}
 | 
 |  |  | 
 | 
 |  |  | 
 |  |  |         return null;
 | 
 |  |  |     }
 | 
 |  |  | 
 | 
 |  |  |     public String getSite() {
 | 
 |  |  |         if (!Cools.isEmpty(this.waveId)){
 | 
 |  |  |             WaveService waveService = SpringUtils.getBean(WaveService.class);
 | 
 |  |  |             Wave wave = waveService.getById(this.waveId);
 | 
 |  |  |             if (!Cools.isEmpty(wave)){
 | 
 |  |  |                 return wave.getSite();
 | 
 |  |  |             }
 | 
 |  |  |         }
 | 
 |  |  |         return null;
 | 
 |  |  |     }
 | 
 |  |  | 
 | 
 |  |  | 
 | 
 |  |  |     public String getUpdateTime$(){
 | 
 |  |  |         if (Cools.isEmpty(this.updateTime)){
 | 
 |  |  |             return "";
 |