自动化立体仓库 - WMS系统
#
lty
13 小时以前 cc27cb7605ba48ebe83e9d8736d7e539eb01d36a
src/main/java/com/zy/asrs/entity/LocOwner.java
@@ -4,10 +4,17 @@
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.system.entity.User;
import com.zy.system.service.UserService;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
@Data
@TableName("bas_loc_owner")
@@ -23,7 +30,8 @@
    private String owner;
    @ApiModelProperty(value= "客户编号")
    private Long uuid;
    @TableField("owner_uuid")
    private String ownerUuid;
    @ApiModelProperty(value= "状态")
    private Integer status;
@@ -32,6 +40,46 @@
    @TableField("owner_type")
    private Integer ownerType;
    /**
     * 修改时间
     */
    @ApiModelProperty(value= "修改时间")
    @TableField("update_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    /**
     * 添加时间
     */
    @ApiModelProperty(value= "添加时间")
    @TableField("create_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    public LocOwner() {}
    public LocOwner(String owner, String ownerUuid, Integer status, Integer ownerType, Date updateTime, Date createTime ) {
        this.owner = owner;
        this.ownerUuid = ownerUuid;
        this.status = status;
        this.ownerType = ownerType;
        this.updateTime = updateTime;
        this.createTime = createTime;
    }
    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);
    }
}