|
@@ -0,0 +1,110 @@
|
|
|
|
|
+package com.jzg.commons.entity.dto;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
|
+import jakarta.validation.constraints.NotBlank;
|
|
|
|
|
+import jakarta.validation.constraints.NotNull;
|
|
|
|
|
+import lombok.Data;
|
|
|
|
|
+
|
|
|
|
|
+import java.math.BigDecimal;
|
|
|
|
|
+import java.util.Date;
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+
|
|
|
|
|
+@Data
|
|
|
|
|
+@Schema(description = "协议费用管理新增")
|
|
|
|
|
+public class PtlAgreementCostEnd {
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "协议费用管理ID")
|
|
|
|
|
+ private String id;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "协议ID")
|
|
|
|
|
+ @NotBlank(message = "协议ID不能为空")
|
|
|
|
|
+ private String ptlAgreementId;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "险种")
|
|
|
|
|
+ @NotBlank(message = "险种不能为空")
|
|
|
|
|
+ private String productName;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "险种ID")
|
|
|
|
|
+ private String productId;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "承保规则ID")
|
|
|
|
|
+ private String coverRuleId;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "生效时间")
|
|
|
|
|
+ @NotNull(message = "生效时间不能为空")
|
|
|
|
|
+ private Date effectiveTime;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "手动审核截止日期")
|
|
|
|
|
+ @NotNull(message = "手动审核截止日期不能为空")
|
|
|
|
|
+ private Date deadlineTime;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "失效时间")
|
|
|
|
|
+ @NotNull(message = "失效时间不能为空")
|
|
|
|
|
+ private Date failureTime;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "审核方式0-自动审核;1-手动审核")
|
|
|
|
|
+ @NotBlank(message = "审核方式不能为空")
|
|
|
|
|
+ private String auditMethod;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "费用描述")
|
|
|
|
|
+ private String costDescribe;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "0-未审核1-审核通过2-审核未通过")
|
|
|
|
|
+ private String approved;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "是否有效0有效1-失效")
|
|
|
|
|
+ private String isValid;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "是否启用0-启用-1失效")
|
|
|
|
|
+ private String isEnabled;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "费用类型集合")
|
|
|
|
|
+ private List<PtlAgreementCostTypeDto> ptlAgreementCostTypeList;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "规则条件集合")
|
|
|
|
|
+ private List<RuleConditionDto> ruleConditions;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ @Data
|
|
|
|
|
+ @Schema(description = "规则条件集合描述")
|
|
|
|
|
+ public static class RuleConditionDto {
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "费用管理ID")
|
|
|
|
|
+ private String ptlAgreementCostId;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "规则ID")
|
|
|
|
|
+ private String ruleId;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "运算符")
|
|
|
|
|
+ private String operator;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "值")
|
|
|
|
|
+ private String dataValue;
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Data
|
|
|
|
|
+ @Schema(description = "费用类型集合描述")
|
|
|
|
|
+ public static class PtlAgreementCostTypeDto {
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "费用类型1-交强险2-商业险3-驾意险")
|
|
|
|
|
+ private int costType;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "入口比例")
|
|
|
|
|
+ private BigDecimal inlet;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "出口比例")
|
|
|
|
|
+ private BigDecimal export;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "手续费")
|
|
|
|
|
+ private BigDecimal commission;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "加投比例")
|
|
|
|
|
+ private BigDecimal addThrow;
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+}
|