Commit 7968e1ee by zhouhaibao

refactor(store): 重构产品分类规则DTO结构

- 将ProductCategoryBaseDTO重命名为ProductCategoryRuleDTO
- 在ProductCategoryRuleDTO中添加流量方分账相关字段
- 添加服务商分账配置字段包括自动分账和分账对象
- 新增资源费和其他费用的线上分账对象配置
- 添加管理层市场费和一线阳光相关前置配置
- 集成费用归属规则和实际分账规则列表
- 移除原有的ProductCategoryRuleDTO继承结构
1 parent 151c297b
...@@ -87,9 +87,51 @@ public class StoreWithProductsDTO implements Serializable { ...@@ -87,9 +87,51 @@ public class StoreWithProductsDTO implements Serializable {
private List<ProductCategoryRuleDTO> productCategoryRules = new ArrayList<>(); private List<ProductCategoryRuleDTO> productCategoryRules = new ArrayList<>();
@Data @Data
public static class ProductCategoryBaseDTO implements Serializable { public static class ProductCategoryRuleDTO implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ApiModelProperty(notes = "流量方是否线上自动分账")
private String trafficPartyAutoSettlement;
@ApiModelProperty(notes = "线上分账对象")
private String trafficPartySettlementTarget;
@ApiModelProperty(notes = "产品成本归属")
private String productCostOwnership;
@ApiModelProperty(notes = "服务商是否线上自动分账")
private String serviceProviderAutoSettlement;
@ApiModelProperty(notes = "线上分账对象")
private String serviceProviderSettlementTarget;
@ApiModelProperty(notes = "资源费是否线上自动分账")
private String resourceFeeAutoSettlement;
@ApiModelProperty(notes = "线上分账对象")
private String resourceFeeSettlementTarget;
@ApiModelProperty(notes = "线上分账对象")
private String otherFeeSettlementTarget;
@ApiModelProperty(notes = "管理层市场费是否前置")
private String managementMarketFeePrepaid;
@ApiModelProperty(notes = "一线阳光是否前置")
private String sunshinePrepaid;
@ApiModelProperty(notes = "一线阳光是否开启线上积分")
private String sunshineOnlinePoints;
@ApiModelProperty(notes = "一线阳光2是否开启线上积分")
private String sunshine2OnlinePoints;
@ApiModelProperty(notes = "费用归属规则列表(ruleType=1)")
private List<StoreDivisionConfigDTO.StoreDistributionRuleDTO> expenseOwnershipRules;
@ApiModelProperty(notes = "实际分账规则列表(ruleType=2)")
private List<StoreDivisionConfigDTO.StoreDistributionRuleDTO> actualDivideRules;
@ApiModelProperty(notes = "产品分类名称(导入使用)") @ApiModelProperty(notes = "产品分类名称(导入使用)")
private String productCategory; private String productCategory;
...@@ -180,53 +222,6 @@ public class StoreWithProductsDTO implements Serializable { ...@@ -180,53 +222,6 @@ public class StoreWithProductsDTO implements Serializable {
@ApiModelProperty(notes = "一线阳光2激励费") @ApiModelProperty(notes = "一线阳光2激励费")
private BigDecimal sunshine2IncentiveFee; private BigDecimal sunshine2IncentiveFee;
}
@Data
public static class ProductCategoryRuleDTO extends ProductCategoryBaseDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(notes = "流量方是否线上自动分账")
private String trafficPartyAutoSettlement;
@ApiModelProperty(notes = "线上分账对象")
private String trafficPartySettlementTarget;
@ApiModelProperty(notes = "产品成本归属")
private String productCostOwnership;
@ApiModelProperty(notes = "服务商是否线上自动分账")
private String serviceProviderAutoSettlement;
@ApiModelProperty(notes = "线上分账对象")
private String serviceProviderSettlementTarget;
@ApiModelProperty(notes = "资源费是否线上自动分账")
private String resourceFeeAutoSettlement;
@ApiModelProperty(notes = "线上分账对象")
private String resourceFeeSettlementTarget;
@ApiModelProperty(notes = "线上分账对象")
private String otherFeeSettlementTarget;
@ApiModelProperty(notes = "管理层市场费是否前置")
private String managementMarketFeePrepaid;
@ApiModelProperty(notes = "一线阳光是否前置")
private String sunshinePrepaid;
@ApiModelProperty(notes = "一线阳光是否开启线上积分")
private String sunshineOnlinePoints;
@ApiModelProperty(notes = "一线阳光2是否开启线上积分")
private String sunshine2OnlinePoints;
@ApiModelProperty(notes = "费用归属规则列表(ruleType=1)")
private List<StoreDivisionConfigDTO.StoreDistributionRuleDTO> expenseOwnershipRules;
@ApiModelProperty(notes = "实际分账规则列表(ruleType=2)")
private List<StoreDivisionConfigDTO.StoreDistributionRuleDTO> actualDivideRules;
@Override @Override
public boolean equals(Object o) { public boolean equals(Object o) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!