Commit cc655933 by zhouhaibao

refactor(strategy): 更新配置默认值并重命名DTO字段

- 修改ImHubConfig中的coverurl默认值为新的图片地址
- 将SopStrategyDetailDTO中的stores字段重命名为storeIds
- 删除SopStrategyEventLogServiceTest中的冗余测试方法
1 parent f30969f4
...@@ -60,7 +60,7 @@ public class SopStrategyDetailDTO implements Serializable { ...@@ -60,7 +60,7 @@ public class SopStrategyDetailDTO implements Serializable {
private Integer version; private Integer version;
@ApiModelProperty(notes = "门店列表") @ApiModelProperty(notes = "门店列表")
private List<SopStrategyStoreDTO> stores; private List<SopStrategyStoreDTO> storeIds;
@ApiModelProperty(notes = "适用门店描述(如:已指定 3 个门店(北京朝阳旗舰店、上海浦东体验中心、广州天河展示店))") @ApiModelProperty(notes = "适用门店描述(如:已指定 3 个门店(北京朝阳旗舰店、上海浦东体验中心、广州天河展示店))")
private String storeDescription; private String storeDescription;
......
...@@ -16,7 +16,7 @@ public class ImHubConfig { ...@@ -16,7 +16,7 @@ public class ImHubConfig {
@Value("${imhub.channel:yjy_ww}") @Value("${imhub.channel:yjy_ww}")
private String channel; private String channel;
@Value("${imhub.coverurl:https://jinrong-huidan-test.oss-cn-shenzhen.aliyuncs.com/jpg/1758857680085_8172/微信图片_20220321210132.jpg}") @Value("${imhub.coverurl:https://wx.glsx.com.cn/upload/biz/7d92a8d0-0d33-4b52-b889-389f0b454d80.png}")
private String coverurl; private String coverurl;
@Value("${imhub.allow-retry:1}") @Value("${imhub.allow-retry:1}")
......
...@@ -60,32 +60,6 @@ public class SopStrategyEventLogServiceTest { ...@@ -60,32 +60,6 @@ public class SopStrategyEventLogServiceTest {
verify(sopStrategyEventLogMapper, times(1)).insertSelective(any(SopStrategyEventLog.class)); verify(sopStrategyEventLogMapper, times(1)).insertSelective(any(SopStrategyEventLog.class));
} }
@Test
public void testRecordH5PageViewEvent() {
doNothing().when(sopStrategyEventLogMapper).insertSelective(any(SopStrategyEventLog.class));
sopStrategyEventLogService.recordH5PageViewEvent(1, 100L, 200L, "门店A", "张三", "13800138000");
verify(sopStrategyEventLogMapper, times(1)).insertSelective(any(SopStrategyEventLog.class));
}
@Test
public void testRecordH5PageViewEvent_NullStrategyId() {
doNothing().when(sopStrategyEventLogMapper).insertSelective(any(SopStrategyEventLog.class));
sopStrategyEventLogService.recordH5PageViewEvent(null, 100L, 200L, "门店A", "张三", "13800138000");
verify(sopStrategyEventLogMapper, times(1)).insertSelective(any(SopStrategyEventLog.class));
}
@Test
public void testRecordH5PageViewEvent_NullCustomerInfo() {
doNothing().when(sopStrategyEventLogMapper).insertSelective(any(SopStrategyEventLog.class));
sopStrategyEventLogService.recordH5PageViewEvent(1, 100L, null, null, null, null);
verify(sopStrategyEventLogMapper, times(1)).insertSelective(any(SopStrategyEventLog.class));
}
@Test @Test
public void testRecordEvent_Exception() { public void testRecordEvent_Exception() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!