|  |  | 
 |  |  | package com.zy.system.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 com.baomidou.mybatisplus.annotations.TableId; | 
 |  |  | import com.baomidou.mybatisplus.annotations.TableName; | 
 |  |  | import com.baomidou.mybatisplus.enums.IdType; | 
 |  |  | import com.core.common.Cools; | 
 |  |  | import io.swagger.annotations.ApiModelProperty; | 
 |  |  | import lombok.Data; | 
 |  |  | import com.baomidou.mybatisplus.annotations.TableName; | 
 |  |  | import org.springframework.format.annotation.DateTimeFormat; | 
 |  |  |  | 
 |  |  | import java.io.Serializable; | 
 |  |  | import java.text.SimpleDateFormat; | 
 |  |  | import java.util.Date; | 
 |  |  |  | 
 |  |  | @Data | 
 |  |  | @TableName("sys_saas_log") | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * id | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty(value= "id") | 
 |  |  |     @ApiModelProperty(value = "id") | 
 |  |  |     @TableId(value = "id", type = IdType.AUTO) | 
 |  |  |     private Long id; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * {0:入库,1:出库} | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty(value= "{0:入库,1:出库}") | 
 |  |  |     @ApiModelProperty(value = "{0:入库,1:出库}") | 
 |  |  |     private Integer type; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty(value= "") | 
 |  |  |     @ApiModelProperty(value = "") | 
 |  |  |     @TableField("loc_no") | 
 |  |  |     private String locNo; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty(value= "") | 
 |  |  |     @ApiModelProperty(value = "") | 
 |  |  |     private String matnr; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty(value= "") | 
 |  |  |     @ApiModelProperty(value = "") | 
 |  |  |     @TableField("io_time") | 
 |  |  |     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | 
 |  |  |     @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") | 
 |  |  |     private Date ioTime; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty(value= "") | 
 |  |  |     @ApiModelProperty(value = "") | 
 |  |  |     @TableField("create_by") | 
 |  |  |     private Long createBy; | 
 |  |  |  | 
 |  |  |     @TableField("anfme") | 
 |  |  |     private Double anfme; | 
 |  |  |  | 
 |  |  |     public SaasLog() {} | 
 |  |  |     public SaasLog() { | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public SaasLog(Long id,Integer type,String locNo,String matnr,Date ioTime,Long createBy) { | 
 |  |  |     public SaasLog(Long id, Integer type, String locNo, String matnr, Date ioTime, Long createBy) { | 
 |  |  |         this.id = id; | 
 |  |  |         this.type = type; | 
 |  |  |         this.locNo = locNo; | 
 |  |  | 
 |  |  | //            null    //  | 
 |  |  | //    ); | 
 |  |  |  | 
 |  |  |     public String getIoTime$(){ | 
 |  |  |         if (Cools.isEmpty(this.ioTime)){ | 
 |  |  |     public String getIoTime$() { | 
 |  |  |         if (Cools.isEmpty(this.ioTime)) { | 
 |  |  |             return ""; | 
 |  |  |         } | 
 |  |  |         return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public String getType$(){ | 
 |  |  |         if (this.type ==0) { | 
 |  |  |     public String getType$() { | 
 |  |  |         if (this.type == 0) { | 
 |  |  |             return "入库"; | 
 |  |  |            } else if (this.type == 1) { | 
 |  |  |         } else if (this.type == 1) { | 
 |  |  |             return "出库"; | 
 |  |  |         } else if (this.type == 2) { | 
 |  |  |             return "库位移转"; | 
 |  |  |         } else if (this.type == 3) { | 
 |  |  |             return "库存调整"; | 
 |  |  |         }else { | 
 |  |  |         } else { | 
 |  |  |             return ""; | 
 |  |  |         } | 
 |  |  |  |