package zy.cloud.wms.manager.entity;
|
|
import com.core.common.Cools;import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
import com.core.common.SpringUtils;
|
import zy.cloud.wms.system.service.UserService;
|
import zy.cloud.wms.system.entity.User;
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
import io.swagger.annotations.ApiModelProperty;
|
import org.springframework.format.annotation.DateTimeFormat;
|
import io.swagger.annotations.ApiModelProperty;
|
import com.core.common.SpringUtils;
|
import zy.cloud.wms.system.service.UserService;
|
import zy.cloud.wms.system.entity.User;
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
import io.swagger.annotations.ApiModelProperty;
|
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import java.io.Serializable;
|
|
@TableName("man_quality")
|
public class Quality implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* ID
|
*/
|
@ApiModelProperty(value= "ID")
|
private Long id;
|
|
@ApiModelProperty(value= "")
|
@TableField("host_id")
|
private Long hostId;
|
|
/**
|
* 编号
|
*/
|
@ApiModelProperty(value= "编号")
|
private String uuid;
|
|
/**
|
* 检验单号
|
*/
|
@ApiModelProperty(value= "检验单号")
|
@TableField("bill_no")
|
private String billNo;
|
|
/**
|
* 审核状态 1: 已审 0: 待审
|
*/
|
@ApiModelProperty(value= "审核状态 1: 已审 0: 待审 ")
|
@TableField("audit_status")
|
private Short auditStatus;
|
|
/**
|
* 备注
|
*/
|
@ApiModelProperty(value= "备注")
|
private String memo;
|
|
/**
|
* 修改人员
|
*/
|
@ApiModelProperty(value= "修改人员")
|
@TableField("update_by")
|
private Long updateBy;
|
|
/**
|
* 修改时间
|
*/
|
@ApiModelProperty(value= "修改时间")
|
@TableField("update_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date updateTime;
|
|
/**
|
* 创建者
|
*/
|
@ApiModelProperty(value= "创建者")
|
@TableField("create_by")
|
private Long createBy;
|
|
/**
|
* 添加时间
|
*/
|
@ApiModelProperty(value= "添加时间")
|
@TableField("create_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date createTime;
|
|
public Quality() {}
|
|
public Quality(Long id,Long hostId,String uuid,String billNo,Short auditStatus,String memo,Long updateBy,Date updateTime,Long createBy,Date createTime) {
|
this.id = id;
|
this.hostId = hostId;
|
this.uuid = uuid;
|
this.billNo = billNo;
|
this.auditStatus = auditStatus;
|
this.memo = memo;
|
this.updateBy = updateBy;
|
this.updateTime = updateTime;
|
this.createBy = createBy;
|
this.createTime = createTime;
|
}
|
|
// Quality quality = new Quality(
|
// null, // ID[非空]
|
// null, //
|
// null, // 编号[非空]
|
// null, // 检验单号
|
// null, // 审核状态
|
// null, // 备注
|
// null, // 修改人员
|
// null, // 修改时间
|
// null, // 创建者
|
// null // 添加时间
|
// );
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public Long getHostId() {
|
return hostId;
|
}
|
|
public void setHostId(Long hostId) {
|
this.hostId = hostId;
|
}
|
|
public String getUuid() {
|
return uuid;
|
}
|
|
public void setUuid(String uuid) {
|
this.uuid = uuid;
|
}
|
|
public String getBillNo() {
|
return billNo;
|
}
|
|
public void setBillNo(String billNo) {
|
this.billNo = billNo;
|
}
|
|
public Short getAuditStatus() {
|
return auditStatus;
|
}
|
|
public String getAuditStatus$(){
|
if (null == this.auditStatus){ return null; }
|
switch (this.auditStatus){
|
case 1:
|
return "已审";
|
case 0:
|
return "待审";
|
default:
|
return String.valueOf(this.auditStatus);
|
}
|
}
|
|
public void setAuditStatus(Short auditStatus) {
|
this.auditStatus = auditStatus;
|
}
|
|
public String getMemo() {
|
return memo;
|
}
|
|
public void setMemo(String memo) {
|
this.memo = memo;
|
}
|
|
public Long getUpdateBy() {
|
return updateBy;
|
}
|
|
public String getUpdateBy$(){
|
UserService service = SpringUtils.getBean(UserService.class);
|
User user = service.selectById(this.updateBy);
|
if (!Cools.isEmpty(user)){
|
return String.valueOf(user.getNickname());
|
}
|
return null;
|
}
|
|
public void setUpdateBy(Long updateBy) {
|
this.updateBy = updateBy;
|
}
|
|
public Date getUpdateTime() {
|
return updateTime;
|
}
|
|
public String getUpdateTime$(){
|
if (Cools.isEmpty(this.updateTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
|
}
|
|
public void setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
public Long getCreateBy() {
|
return createBy;
|
}
|
|
public String getCreateBy$(){
|
UserService service = SpringUtils.getBean(UserService.class);
|
User user = service.selectById(this.createBy);
|
if (!Cools.isEmpty(user)){
|
return String.valueOf(user.getNickname());
|
}
|
return null;
|
}
|
|
public void setCreateBy(Long createBy) {
|
this.createBy = createBy;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public String getCreateTime$(){
|
if (Cools.isEmpty(this.createTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
|
}
|