package zy.cloud.wms.manager.entity;
|
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.enums.IdType;
|
import com.core.common.Cools;import io.swagger.annotations.ApiModelProperty;
|
import com.baomidou.mybatisplus.annotations.TableField;
|
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
|
import lombok.Data;
|
import lombok.NoArgsConstructor;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import java.io.Serializable;
|
|
@Data
|
@NoArgsConstructor
|
@TableName("man_item_report")
|
public class ItemReport implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 自增唯一ID
|
*/
|
@ApiModelProperty(value= "自增唯一ID")
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 绑定项目ID
|
*/
|
@ApiModelProperty(value= "绑定项目ID")
|
@TableField("item_id")
|
private Long itemId;
|
|
/**
|
* 绑定项目名称
|
*/
|
@ApiModelProperty(value= "绑定项目名称")
|
@TableField("item_name")
|
private String itemName;
|
|
/**
|
* 是否有交付问题
|
*/
|
@ApiModelProperty(value= "是否有交付问题")
|
@TableField("deliver_issue")
|
private Boolean deliverIssue;
|
|
/**
|
* 交付问题原因
|
*/
|
@ApiModelProperty(value= "交付问题原因")
|
@TableField("deliver_reason")
|
private String deliverReason;
|
|
/**
|
* 是否有质量问题
|
*/
|
@ApiModelProperty(value= "是否有质量问题")
|
@TableField("quality_issue")
|
private Boolean qualityIssue;
|
|
/**
|
* 质量问题原因
|
*/
|
@ApiModelProperty(value= "质量问题原因")
|
@TableField("quality_reason")
|
private String qualityReason;
|
|
/**
|
* 是否有设计问题
|
*/
|
@ApiModelProperty(value= "是否有设计问题")
|
@TableField("design_issue")
|
private Boolean designIssue;
|
|
/**
|
* 设计问题原因
|
*/
|
@ApiModelProperty(value= "设计问题原因")
|
@TableField("design_reason")
|
private String designReason;
|
|
/**
|
* 是否有安装问题
|
*/
|
@ApiModelProperty(value= "是否有安装问题")
|
@TableField("install_issue")
|
private Boolean installIssue;
|
|
/**
|
* 安装问题原因
|
*/
|
@ApiModelProperty(value= "安装问题原因")
|
@TableField("install_reason")
|
private String installReason;
|
|
/**
|
* 总结
|
*/
|
@ApiModelProperty(value= "总结")
|
private String conclusion;
|
|
@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;
|
|
/**
|
* 1:未生成,2:已生成(不可修改)
|
*/
|
@ApiModelProperty(value= "1:未生成,2:已生成(不可修改)")
|
private Integer status;
|
|
private String issue;
|
|
public String getIssue$(){
|
if (this.issue == null || this.issue.equals("")){
|
return "无异常";
|
}
|
return this.issue;
|
}
|
|
|
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 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;
|
}
|
|
public Integer getStatus() {
|
return status;
|
}
|
|
public void setStatus(Integer status) {
|
this.status = status;
|
}
|
|
public String getDeliverReason$(){
|
if (this.deliverReason == null || this.deliverReason.equals("")) {
|
return "无";
|
}
|
return this.deliverReason;
|
}
|
|
public String getQualityReason$(){
|
if (this.qualityReason == null || this.qualityReason.equals("")) {
|
return "无";
|
}
|
return this.qualityReason;
|
}
|
|
public String getDesignReason$(){
|
if (this.designReason == null || this.designReason.equals("")) {
|
return "无";
|
}
|
return this.designReason;
|
}
|
public String getInstallReason$(){
|
if (this.installReason == null || this.installReason.equals("")) {
|
return "无";
|
}
|
return this.installReason;
|
}
|
|
public String getDeliverIssue$() {
|
if (this.deliverIssue) {
|
return "有";
|
}
|
return "无";
|
}
|
|
public String getQualityIssue$() {
|
if (this.qualityIssue) {
|
return "有";
|
}
|
return "无";
|
}
|
public String getDesignIssue$() {
|
if (this.designIssue) {
|
return "有";
|
}
|
return "无";
|
}
|
public String getInstallIssue$() {
|
if (this.installIssue) {
|
return "有";
|
}
|
return "无";
|
}
|
|
}
|