|
@@ -1,12 +1,18 @@
|
|
package com.qmth.sop.business.entity;
|
|
package com.qmth.sop.business.entity;
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
|
|
+import com.qmth.sop.common.contant.SystemConstant;
|
|
import com.qmth.sop.common.enums.DelayWarnTypeEnum;
|
|
import com.qmth.sop.common.enums.DelayWarnTypeEnum;
|
|
|
|
+import com.qmth.sop.common.enums.ProductTypeEnum;
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
|
|
|
+import javax.validation.constraints.NotBlank;
|
|
|
|
+import javax.validation.constraints.NotNull;
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
* <p>
|
|
* <p>
|
|
@@ -16,7 +22,7 @@ import java.io.Serializable;
|
|
* @author wangliang
|
|
* @author wangliang
|
|
* @since 2023-08-01
|
|
* @since 2023-08-01
|
|
*/
|
|
*/
|
|
-@ApiModel(value="TBProjectExchange对象", description="项目变更计划表")
|
|
|
|
|
|
+@ApiModel(value = "TBProjectExchange对象", description = "项目变更计划表")
|
|
public class TBProjectExchange implements Serializable {
|
|
public class TBProjectExchange implements Serializable {
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
private static final long serialVersionUID = 1L;
|
|
@@ -26,9 +32,11 @@ public class TBProjectExchange implements Serializable {
|
|
private Long id;
|
|
private Long id;
|
|
|
|
|
|
@ApiModelProperty(value = "sop单号")
|
|
@ApiModelProperty(value = "sop单号")
|
|
|
|
+ @NotBlank(message = "sop单号不能为空")
|
|
private String sopNo;
|
|
private String sopNo;
|
|
|
|
|
|
@ApiModelProperty(value = "crm单号")
|
|
@ApiModelProperty(value = "crm单号")
|
|
|
|
+ @NotBlank(message = "crm单号不能为空")
|
|
private String crmNo;
|
|
private String crmNo;
|
|
|
|
|
|
@ApiModelProperty(value = "变更编号")
|
|
@ApiModelProperty(value = "变更编号")
|
|
@@ -36,12 +44,28 @@ public class TBProjectExchange implements Serializable {
|
|
|
|
|
|
@ApiModelProperty(value = "服务单元id")
|
|
@ApiModelProperty(value = "服务单元id")
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
|
|
+ @NotNull(message = "服务单元id不能为空")
|
|
private Long serviceId;
|
|
private Long serviceId;
|
|
|
|
|
|
|
|
+ @ApiModelProperty(value = "客户经理id")
|
|
|
|
+ @JsonSerialize(using = ToStringSerializer.class)
|
|
|
|
+ @NotNull(message = "客户经理id不能为空")
|
|
|
|
+ private Long accountManagerId;
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty(value = "客户类型,OFFICE:教务处,CLOUD_MARK:云阅卷")
|
|
|
|
+ @NotNull(message = "客户类型不能为空")
|
|
|
|
+ private ProductTypeEnum customType;
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty(value = "客户名称")
|
|
|
|
+ @NotBlank(message = "客户名称不能为空")
|
|
|
|
+ private String customName;
|
|
|
|
+
|
|
@ApiModelProperty(value = "变更类型,PLAN:项目信息及计划,TIME:处理时限,CANCEL:项目取消")
|
|
@ApiModelProperty(value = "变更类型,PLAN:项目信息及计划,TIME:处理时限,CANCEL:项目取消")
|
|
|
|
+ @NotNull(message = "变更类型不能为空")
|
|
private DelayWarnTypeEnum type;
|
|
private DelayWarnTypeEnum type;
|
|
|
|
|
|
@ApiModelProperty(value = "变更原因")
|
|
@ApiModelProperty(value = "变更原因")
|
|
|
|
+ @NotBlank(message = "变更原因不能为空")
|
|
private String reason;
|
|
private String reason;
|
|
|
|
|
|
@ApiModelProperty(value = "变更内容json")
|
|
@ApiModelProperty(value = "变更内容json")
|
|
@@ -57,6 +81,63 @@ public class TBProjectExchange implements Serializable {
|
|
@ApiModelProperty(value = "创建时间")
|
|
@ApiModelProperty(value = "创建时间")
|
|
private Long createTime;
|
|
private Long createTime;
|
|
|
|
|
|
|
|
+ @TableField(exist = false)
|
|
|
|
+ @ApiModelProperty(value = "流程部署id")
|
|
|
|
+ @NotBlank(message = "流程部署id不能为空")
|
|
|
|
+ private String flowDeploymentId;
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty(value = "流程审批人")
|
|
|
|
+ @TableField(exist = false)
|
|
|
|
+ @JsonSerialize(using = ToStringSerializer.class)
|
|
|
|
+ private List<String> approveUserIds;
|
|
|
|
+
|
|
|
|
+ public String getFlowDeploymentId() {
|
|
|
|
+ return flowDeploymentId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setFlowDeploymentId(String flowDeploymentId) {
|
|
|
|
+ this.flowDeploymentId = flowDeploymentId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public List<String> getApproveUserIds() {
|
|
|
|
+ return approveUserIds;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setApproveUserIds(List<String> approveUserIds) {
|
|
|
|
+ this.approveUserIds = approveUserIds;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setCode(String exchangeNo, Long userId){
|
|
|
|
+ this.exchangeNo = exchangeNo;
|
|
|
|
+ setId(SystemConstant.getDbUuid());
|
|
|
|
+ setCreateId(userId);
|
|
|
|
+ setCreateTime(System.currentTimeMillis());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Long getAccountManagerId() {
|
|
|
|
+ return accountManagerId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setAccountManagerId(Long accountManagerId) {
|
|
|
|
+ this.accountManagerId = accountManagerId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public ProductTypeEnum getCustomType() {
|
|
|
|
+ return customType;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setCustomType(ProductTypeEnum customType) {
|
|
|
|
+ this.customType = customType;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getCustomName() {
|
|
|
|
+ return customName;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setCustomName(String customName) {
|
|
|
|
+ this.customName = customName;
|
|
|
|
+ }
|
|
|
|
+
|
|
public String getExchangeNo() {
|
|
public String getExchangeNo() {
|
|
return exchangeNo;
|
|
return exchangeNo;
|
|
}
|
|
}
|