Commit 690409e3 by zhouhaibao

feat(sop): 更新SOP策略数据传输对象和请求参数

- 修改SopStrategyUpdateReqDTO中的字段注解,优化业务类型、门店范围类型、营销阶段等字段的描述
- 在SopStrategyUpdateRequest中新增MerchantInfo导入
- 更新SopStrategyUpdateRequest中策略名称、场景大类、适用门店类型等字段为必填项
- 将营销阶段和触发类型的字段类型从Integer改为String
- 添加客户行为类型字段并调整日期变量类型字段
- 修改确认类型字段为必填项
- 将门店ID列表类型从List<Long>改为List<MerchantInfo>
1 parent e3b1b8fd
package cn.com.glsx.dj.strategy.request; package cn.com.glsx.dj.strategy.request;
import cn.com.glsx.dj.strategy.dto.MerchantInfo;
import com.rop.AbstractRopRequest; import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
...@@ -12,26 +13,26 @@ public class SopStrategyUpdateRequest extends AbstractRopRequest { ...@@ -12,26 +13,26 @@ public class SopStrategyUpdateRequest extends AbstractRopRequest {
@ApiModelProperty(notes = "策略ID", required = true) @ApiModelProperty(notes = "策略ID", required = true)
private Integer strategyId; private Integer strategyId;
@ApiModelProperty(notes = "策略名称") @ApiModelProperty(notes = "策略名称", required = true)
private String strategyName; private String strategyName;
@ApiModelProperty(notes = "场景大类") @ApiModelProperty(notes = "场景大类", required = true)
private Integer bizType; private Integer bizType;
@ApiModelProperty(notes = "适用门店类型(0不限/1指定门店)") @ApiModelProperty(notes = "适用门店类型(0不限/1指定门店)", required = true)
private Integer storeScopeType; private Integer storeScopeType;
@ApiModelProperty(notes = "营销阶段") @ApiModelProperty(notes = "营销阶段(stage_code)", required = true)
private Integer marketingStage; private String marketingStage;
@ApiModelProperty(notes = "触发类型(1客户行为/2日期时间)") @ApiModelProperty(notes = "触发类型(trigger_code)", required = true)
private Integer triggerType; private String triggerType;
@ApiModelProperty(notes = "客户行为类型") @ApiModelProperty(notes = "客户行为类型")
private Integer customerBehaviorType; private Integer customerBehaviorType;
@ApiModelProperty(notes = "日期变量类型") @ApiModelProperty(notes = "日期变量类型(date_code)")
private Integer dateVariableType; private String dateVariableType;
@ApiModelProperty(notes = "相对日期类型(0提前/1当前/2推后)") @ApiModelProperty(notes = "相对日期类型(0提前/1当前/2推后)")
private Integer relativeDateType; private Integer relativeDateType;
...@@ -45,11 +46,11 @@ public class SopStrategyUpdateRequest extends AbstractRopRequest { ...@@ -45,11 +46,11 @@ public class SopStrategyUpdateRequest extends AbstractRopRequest {
@ApiModelProperty(notes = "触发分钟") @ApiModelProperty(notes = "触发分钟")
private Integer triggerMinute; private Integer triggerMinute;
@ApiModelProperty(notes = "确认类型(0自动执行/1人工确认)") @ApiModelProperty(notes = "确认类型(0自动执行/1人工确认)", required = true)
private Integer actionConfirmType; private Integer actionConfirmType;
@ApiModelProperty(notes = "适用门店列表") @ApiModelProperty(value = "门店ID列表")
private List<Long> storeIds; private List<MerchantInfo> storeIds;
@ApiModelProperty(notes = "第二步条件规则列表(规则条件)") @ApiModelProperty(notes = "第二步条件规则列表(规则条件)")
private List<SopConditionGroupRequest> step2ConditionGroups; private List<SopConditionGroupRequest> step2ConditionGroups;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!