Commit bfba44b1 by 春觉晓

添加策略,修改录音id类型

1 parent 693c75a9
......@@ -7,7 +7,7 @@
-->
<id column="id" property="id" jdbcType="INTEGER" />
<result column="strategy_id" property="strategyId" jdbcType="INTEGER" />
<result column="recording_id" property="recordingId" jdbcType="VARCHAR" />
<result column="recording_id" property="recordingId" />
<result column="reception_staff_name" property="receptionStaffName" jdbcType="VARCHAR" />
<result column="reception_date" property="receptionDate" />
<result column="created_by" property="createdBy" jdbcType="VARCHAR" />
......
......@@ -48,16 +48,16 @@ public class StrategyInfoServiceTest extends BaseServiceTest {
merchantList.add(merchantInfo2);
batchInsertStrategyInfo.setMerchantList(merchantList);
StrategyInfo strategyInfo = new StrategyInfo();
strategyInfo.setStrategyType(StrategyTypeEnum.TASK.getValue());
strategyInfo.setStrategyType(StrategyTypeEnum.EXCELLENT_RECORDING_SHARE.getValue());
strategyInfo.setBiz(1);
strategyInfo.setTitle("测试任务型策略");
strategyInfo.setSubTitle("副标题");
strategyInfo.setTitle("测试优秀录音分享策略");
//strategyInfo.setSubTitle("副标题");
strategyInfo.setStartDate(new Date());
//strategyInfo.setEndDate(DateUtil.offsetDay(new Date(), 10));
strategyInfo.setDescription("这是一个任务型策略");
strategyInfo.setDescription("测试优秀录音分享策略");
strategyInfo.setPushType(StrategyPushType.TIMED_PUSH.getValue());
strategyInfo.setHandlerType("0");
strategyInfo.setContent("这是一个任务型策略的内容");
strategyInfo.setContent("这是一个测试优秀录音分享策略");
batchInsertStrategyInfo.setStrategyInfo(strategyInfo);
List<StrategyStaffRel> staffList = new ArrayList<>();
StrategyStaffRel strategyStaffRel = new StrategyStaffRel();
......@@ -72,13 +72,13 @@ public class StrategyInfoServiceTest extends BaseServiceTest {
// strategyCourseRel.setCourseId("077527d0-8d20-400a-bd2b-b3020d3fee74");
// courseList.add(strategyCourseRel);
// batchInsertStrategyInfo.setCourseList(courseList);
// List<StrategyRecordingRel> recordingList = new ArrayList<>();
// StrategyRecordingRel strategyRecordingRel = new StrategyRecordingRel();
// strategyRecordingRel.setRecordingId("077527d0-8d20-400a-bd2b-b3020d3fee74");
// strategyRecordingRel.setReceptionDate(new Date());
// strategyRecordingRel.setReceptionStaffName("测试一下哦");
// recordingList.add(strategyRecordingRel);
// batchInsertStrategyInfo.setRecordingList(recordingList);
List<StrategyRecordingRel> recordingList = new ArrayList<>();
StrategyRecordingRel strategyRecordingRel = new StrategyRecordingRel();
strategyRecordingRel.setRecordingId(834);
strategyRecordingRel.setReceptionDate("2025-12-31");
strategyRecordingRel.setReceptionStaffName("测试一下哦");
recordingList.add(strategyRecordingRel);
batchInsertStrategyInfo.setRecordingList(recordingList);
batchInsertStrategyInfo.setCreatedBy("fanfr");
Boolean b = strategyInfoService.batchCreate(batchInsertStrategyInfo);
log.info("b: {}", b);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!