|
@@ -3,13 +3,19 @@ package com.qmth.sop.business.entity;
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
|
+import com.qmth.sop.common.base.BaseEntity;
|
|
|
+import com.qmth.sop.common.contant.SystemConstant;
|
|
|
+import com.qmth.sop.common.enums.FlowApprovePassEnum;
|
|
|
import com.qmth.sop.common.enums.InfluenceDegreeEnum;
|
|
|
import com.qmth.sop.common.enums.QualityProblemReasonEnum;
|
|
|
import com.qmth.sop.common.enums.QualityProblemTypeEnum;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
|
+import javax.validation.constraints.NotBlank;
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
import java.io.Serializable;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -19,19 +25,17 @@ import java.io.Serializable;
|
|
|
* @author wangliang
|
|
|
* @since 2023-08-01
|
|
|
*/
|
|
|
-@ApiModel(value="TBQualityProblemApply对象", description="质量问题反馈表")
|
|
|
-public class TBQualityProblemApply implements Serializable {
|
|
|
+@ApiModel(value = "TBQualityProblemApply对象", description = "质量问题反馈表")
|
|
|
+public class TBQualityProblemApply extends BaseEntity implements Serializable {
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
- @ApiModelProperty(value = "主键")
|
|
|
- @JsonSerialize(using = ToStringSerializer.class)
|
|
|
- private Long id;
|
|
|
-
|
|
|
@ApiModelProperty(value = "sop单号")
|
|
|
+ @NotBlank(message = "sop单号不能为空")
|
|
|
private String sopNo;
|
|
|
|
|
|
@ApiModelProperty(value = "crm单号")
|
|
|
+ @NotBlank(message = "crm单号不能为空")
|
|
|
private String crmNo;
|
|
|
|
|
|
@ApiModelProperty(value = "问题单号")
|
|
@@ -39,14 +43,20 @@ public class TBQualityProblemApply implements Serializable {
|
|
|
|
|
|
@ApiModelProperty(value = "服务单元id")
|
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
|
+ @NotNull(message = "服务单元id不能为空")
|
|
|
private Long serviceId;
|
|
|
|
|
|
@ApiModelProperty(value = "问题简要")
|
|
|
+ @NotBlank(message = "问题简要不能为空")
|
|
|
private String summary;
|
|
|
|
|
|
+ @ApiModelProperty(value = "问题情况说明")
|
|
|
+ @NotBlank(message = "问题情况说明不能为空")
|
|
|
+ private String remark;
|
|
|
+
|
|
|
@ApiModelProperty(value = "责任人id")
|
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
|
- private Long userId;
|
|
|
+ private String userIds;
|
|
|
|
|
|
@ApiModelProperty(value = "问题类型,UPDATE:修正类,OPTIMIZE:优化类,NO_PROBLEM:不是问题")
|
|
|
private QualityProblemTypeEnum type;
|
|
@@ -56,33 +66,107 @@ public class TBQualityProblemApply implements Serializable {
|
|
|
|
|
|
@ApiModelProperty(value = "附件id")
|
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
|
- private Long attachmentId;
|
|
|
+ private String attachmentIds;
|
|
|
|
|
|
@ApiModelProperty(value = "影响度:A,B,C,D")
|
|
|
@TableField("Influence_degree")
|
|
|
private InfluenceDegreeEnum influenceDegree;
|
|
|
|
|
|
- @ApiModelProperty(value = "创建人id")
|
|
|
- @JsonSerialize(using = ToStringSerializer.class)
|
|
|
- private Long createId;
|
|
|
+ @TableField(exist = false)
|
|
|
+ @ApiModelProperty(value = "流程部署id")
|
|
|
+ @NotNull(message = "流程部署id不能为空")
|
|
|
+ private String flowDeploymentId;
|
|
|
|
|
|
- @ApiModelProperty(value = "创建时间")
|
|
|
- private Long createTime;
|
|
|
+ @TableField(exist = false)
|
|
|
+ @ApiModelProperty(value = "流程操作")
|
|
|
+ @NotNull(message = "流程操作不能为空")
|
|
|
+ private FlowApprovePassEnum approve;
|
|
|
+
|
|
|
+ @TableField(exist = false)
|
|
|
+ @ApiModelProperty(value = "流程表单")
|
|
|
+ private String formProperties;
|
|
|
+
|
|
|
+ @TableField(exist = false)
|
|
|
+ @ApiModelProperty(value = "流程审批人")
|
|
|
+ private List<String> approveUserIds;
|
|
|
+
|
|
|
+ public TBQualityProblemApply() {
|
|
|
|
|
|
- public String getProblemNo() {
|
|
|
- return problemNo;
|
|
|
}
|
|
|
|
|
|
- public void setProblemNo(String problemNo) {
|
|
|
+ public TBQualityProblemApply(String sopNo, String crmNo, String problemNo, Long serviceId, String summary, String remark, String attachmentIds) {
|
|
|
+ setId(SystemConstant.getDbUuid());
|
|
|
+ this.sopNo = sopNo;
|
|
|
+ this.crmNo = crmNo;
|
|
|
this.problemNo = problemNo;
|
|
|
+ this.serviceId = serviceId;
|
|
|
+ this.summary = summary;
|
|
|
+ this.remark = remark;
|
|
|
+ this.attachmentIds = attachmentIds;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<String> getApproveUserIds() {
|
|
|
+ return approveUserIds;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setApproveUserIds(List<String> approveUserIds) {
|
|
|
+ this.approveUserIds = approveUserIds;
|
|
|
+ }
|
|
|
+
|
|
|
+ public FlowApprovePassEnum getApprove() {
|
|
|
+ return approve;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setApprove(FlowApprovePassEnum approve) {
|
|
|
+ this.approve = approve;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getFormProperties() {
|
|
|
+ return formProperties;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setFormProperties(String formProperties) {
|
|
|
+ this.formProperties = formProperties;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getFlowDeploymentId() {
|
|
|
+ return flowDeploymentId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setFlowDeploymentId(String flowDeploymentId) {
|
|
|
+ this.flowDeploymentId = flowDeploymentId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getRemark() {
|
|
|
+ return remark;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setRemark(String remark) {
|
|
|
+ this.remark = remark;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getUserIds() {
|
|
|
+ return userIds;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUserIds(String userIds) {
|
|
|
+ this.userIds = userIds;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getAttachmentIds() {
|
|
|
+ return attachmentIds;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAttachmentIds(String attachmentIds) {
|
|
|
+ this.attachmentIds = attachmentIds;
|
|
|
}
|
|
|
|
|
|
- public Long getId() {
|
|
|
- return id;
|
|
|
+ public String getProblemNo() {
|
|
|
+ return problemNo;
|
|
|
}
|
|
|
|
|
|
- public void setId(Long id) {
|
|
|
- this.id = id;
|
|
|
+ public void setProblemNo(String problemNo) {
|
|
|
+ this.problemNo = problemNo;
|
|
|
}
|
|
|
|
|
|
public String getSopNo() {
|
|
@@ -117,14 +201,6 @@ public class TBQualityProblemApply implements Serializable {
|
|
|
this.summary = summary;
|
|
|
}
|
|
|
|
|
|
- public Long getUserId() {
|
|
|
- return userId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setUserId(Long userId) {
|
|
|
- this.userId = userId;
|
|
|
- }
|
|
|
-
|
|
|
public QualityProblemTypeEnum getType() {
|
|
|
return type;
|
|
|
}
|
|
@@ -141,14 +217,6 @@ public class TBQualityProblemApply implements Serializable {
|
|
|
this.reason = reason;
|
|
|
}
|
|
|
|
|
|
- public Long getAttachmentId() {
|
|
|
- return attachmentId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setAttachmentId(Long attachmentId) {
|
|
|
- this.attachmentId = attachmentId;
|
|
|
- }
|
|
|
-
|
|
|
public InfluenceDegreeEnum getInfluenceDegree() {
|
|
|
return influenceDegree;
|
|
|
}
|
|
@@ -156,20 +224,4 @@ public class TBQualityProblemApply implements Serializable {
|
|
|
public void setInfluenceDegree(InfluenceDegreeEnum influenceDegree) {
|
|
|
this.influenceDegree = influenceDegree;
|
|
|
}
|
|
|
-
|
|
|
- public Long getCreateId() {
|
|
|
- return createId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setCreateId(Long createId) {
|
|
|
- this.createId = createId;
|
|
|
- }
|
|
|
-
|
|
|
- public Long getCreateTime() {
|
|
|
- return createTime;
|
|
|
- }
|
|
|
-
|
|
|
- public void setCreateTime(Long createTime) {
|
|
|
- this.createTime = createTime;
|
|
|
- }
|
|
|
}
|