package com.zy.asrs.common.wms.entity; import java.text.SimpleDateFormat; import java.util.Date; import org.springframework.format.annotation.DateTimeFormat; import java.text.SimpleDateFormat; import java.util.Date; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import com.zy.asrs.framework.common.Cools; import com.zy.asrs.framework.common.SpringUtils; import com.zy.asrs.common.sys.entity.User; import com.zy.asrs.common.sys.entity.Host; import com.zy.asrs.common.sys.service.UserService; import com.zy.asrs.common.sys.service.HostService; import java.io.Serializable; import java.util.Date; @Data @TableName("wms_loc_in_print_mat") public class LocInPrintMat implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty(value= "") private Long id; @ApiModelProperty(value= "") private String uuid; @ApiModelProperty(value= "") private Integer status; @ApiModelProperty(value= "") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") private Date createTime; @ApiModelProperty(value= "") private Long createBy; @ApiModelProperty(value= "") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") private Date updateTime; @ApiModelProperty(value= "") private Long updateBy; @ApiModelProperty(value= "") private String memo; @ApiModelProperty(value= "") private String matnr; @ApiModelProperty(value= "") private String batch; @ApiModelProperty(value= "") private Double anfme; @ApiModelProperty(value= "") private String locNo; @ApiModelProperty(value= "") private String maktx; @ApiModelProperty(value= "") private Long ownerId; public LocInPrintMat() {} public LocInPrintMat(String uuid,Integer status,Date createTime,Long createBy,Date updateTime,Long updateBy,String memo,String matnr,String batch,Double anfme,String locNo,String maktx,Long ownerId) { this.uuid = uuid; this.status = status; this.createTime = createTime; this.createBy = createBy; this.updateTime = updateTime; this.updateBy = updateBy; this.memo = memo; this.matnr = matnr; this.batch = batch; this.anfme = anfme; this.locNo = locNo; this.maktx = maktx; this.ownerId = ownerId; } // LocInPrintMat locInPrintMat = new LocInPrintMat( // null, // // null, // // null, // // null, // // null, // // null, // // null, // // null, // // null, // // 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); } public String getUpdateTime$(){ if (Cools.isEmpty(this.updateTime)){ return ""; } return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); } }