|
@@ -0,0 +1,80 @@
|
|
|
|
|
+package com.ydtech.modules.order.entity.vo.telemarketing;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+import com.ydtech.modules.order.entity.vo.FeeOrderNewVo;
|
|
|
|
|
+import com.ydtech.modules.protocols.entity.po.InsFeeOrderNew;
|
|
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
|
|
+import lombok.Data;
|
|
|
|
|
+import lombok.NoArgsConstructor;
|
|
|
|
|
+
|
|
|
|
|
+import java.io.Serializable;
|
|
|
|
|
+import java.math.BigDecimal;
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+
|
|
|
|
|
+@Data
|
|
|
|
|
+@AllArgsConstructor
|
|
|
|
|
+@NoArgsConstructor
|
|
|
|
|
+public class TelemarketingAuditOrderEditVo implements Serializable {
|
|
|
|
|
+
|
|
|
|
|
+ private static final long serialVersionUID = 2054402491714986822L;
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty("出口费用")
|
|
|
|
|
+ private List<ExportFeeDTO> exportFee;
|
|
|
|
|
+
|
|
|
|
|
+ public TelemarketingAuditOrderEditVo(InsFeeOrderNew insFeeOrderNew) {
|
|
|
|
|
+ List<ExportFeeDTO> exportFeeDTOS = new ArrayList<>();
|
|
|
|
|
+ ExportFeeDTO jqExportFee = new ExportFeeDTO("交强险", insFeeOrderNew.getJqPremium(), insFeeOrderNew.getJqCostsExportProportion(),
|
|
|
|
|
+ insFeeOrderNew.getJqExportOtherCostsProportion(),
|
|
|
|
|
+ insFeeOrderNew.getJqExportSuperviseCostsPremiums(), insFeeOrderNew.getJqExportOtherCostsPremiums());
|
|
|
|
|
+ exportFeeDTOS.add(jqExportFee);
|
|
|
|
|
+ ExportFeeDTO syExportFee = new ExportFeeDTO("商业险",
|
|
|
|
|
+ insFeeOrderNew.getSyPremium(), insFeeOrderNew.getSyCostsExportProportion(),
|
|
|
|
|
+ insFeeOrderNew.getSyExportOtherCostsProportion(),
|
|
|
|
|
+ insFeeOrderNew.getSyExportSuperviseCostsPremiums(), insFeeOrderNew.getSyExportOtherCostsPremiums()
|
|
|
|
|
+ );
|
|
|
|
|
+ exportFeeDTOS.add(syExportFee);
|
|
|
|
|
+ ExportFeeDTO noExportFee = new ExportFeeDTO("非车险",
|
|
|
|
|
+ insFeeOrderNew.getNoPremium(), insFeeOrderNew.getNoCostsExportProportion(),
|
|
|
|
|
+ insFeeOrderNew.getNoExportOtherCostsProportion(),
|
|
|
|
|
+ insFeeOrderNew.getNoExportSuperviseCostsPremiums(), insFeeOrderNew.getNoExportOtherCostsPremiums());
|
|
|
|
|
+ exportFeeDTOS.add(noExportFee);
|
|
|
|
|
+ this.exportFee = exportFeeDTOS;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Data
|
|
|
|
|
+ @AllArgsConstructor
|
|
|
|
|
+ @NoArgsConstructor
|
|
|
|
|
+ public static class ExportFeeDTO {
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty("险种")
|
|
|
|
|
+ private String insuranceType;
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty("保费")
|
|
|
|
|
+ private BigDecimal premium;
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty("总比例")
|
|
|
|
|
+ private BigDecimal totalProportion;
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty("总费用")
|
|
|
|
|
+ private BigDecimal totalAmount;
|
|
|
|
|
+
|
|
|
|
|
+ public ExportFeeDTO(String title,
|
|
|
|
|
+ BigDecimal premium,
|
|
|
|
|
+ BigDecimal superviseCostsProportion,
|
|
|
|
|
+ BigDecimal otherCostsProportion,
|
|
|
|
|
+ BigDecimal superviseCostsPremiums,
|
|
|
|
|
+ BigDecimal otherCostsPremiums) {
|
|
|
|
|
+
|
|
|
|
|
+ this.insuranceType = title;
|
|
|
|
|
+ //保费
|
|
|
|
|
+ this.premium = premium;
|
|
|
|
|
+ //总比例
|
|
|
|
|
+ this.totalProportion = superviseCostsProportion.add(otherCostsProportion);
|
|
|
|
|
+ //总费用
|
|
|
|
|
+ this.totalAmount = superviseCostsPremiums.add(otherCostsPremiums);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+}
|