| package com.zy.asrs.entity; | 
|   | 
| import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; | 
| import com.baomidou.mybatisplus.enums.IdType; | 
| import com.baomidou.mybatisplus.annotations.TableField; | 
| import java.text.SimpleDateFormat; | 
| import java.util.Date; | 
| import org.springframework.format.annotation.DateTimeFormat; | 
|   | 
| import io.swagger.annotations.ApiModelProperty; | 
| import lombok.Data; | 
| import com.baomidou.mybatisplus.annotations.TableName; | 
| import java.io.Serializable; | 
|   | 
| @Data | 
| @TableName("man_Inventory_check_order") | 
| public class InventoryCheckOrder implements Serializable { | 
|   | 
|     private static final long serialVersionUID = 1L; | 
|   | 
|     /** | 
|      * ID | 
|      */ | 
|     @ApiModelProperty(value= "ID") | 
|     @TableId(value = "id", type = IdType.AUTO) | 
|     private Integer id; | 
|   | 
|     /** | 
|      * 单据号 | 
|      */ | 
|     @ApiModelProperty(value= "单据号") | 
|     @TableField("order_no") | 
|     private String orderNo; | 
|   | 
|     /** | 
|      * 库区 | 
|      */ | 
|     @ApiModelProperty(value= "库区") | 
|     private String area; | 
|   | 
|     @ApiModelProperty(value= "状态") | 
|     private String status; | 
|   | 
|     /** | 
|      * 创建时间 | 
|      */ | 
|     @ApiModelProperty(value= "创建时间") | 
|     @TableField("create_time") | 
|     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | 
|     private Date createTime; | 
|   | 
|     /** | 
|      * 创建人 | 
|      */ | 
|     @ApiModelProperty(value= "创建人") | 
|     @TableField("create_by") | 
|     private String createBy; | 
|   | 
|     public InventoryCheckOrder() {} | 
|   | 
|     public InventoryCheckOrder(Integer id,String orderNo,String area,Date createTime,String createBy) { | 
|         this.id = id; | 
|         this.orderNo = orderNo; | 
|         this.area = area; | 
|         this.createTime = createTime; | 
|         this.createBy = createBy; | 
|     } | 
|   | 
| //    InventoryCheckOrder inventoryCheckOrder = new InventoryCheckOrder( | 
| //            null,    // ID[非空] | 
| //            null,    // 单据号 | 
| //            null,    // 库区 | 
| //            null,    // 创建时间 | 
| //            null    // 创建人 | 
| //    ); | 
|   | 
|     public String getCreateTime$(){ | 
|         if (Cools.isEmpty(this.createTime)){ | 
|             return ""; | 
|         } | 
|         return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); | 
|     } | 
|   | 
|   | 
| } |