diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/activity/query/WeekStarHistoryTop1QueryExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/activity/query/WeekStarHistoryTop1QueryExe.java index 25add531..f123e426 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/activity/query/WeekStarHistoryTop1QueryExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/activity/query/WeekStarHistoryTop1QueryExe.java @@ -80,7 +80,7 @@ public class WeekStarHistoryTop1QueryExe { historyVO.setUserId(weekStarGiftCount.getUserId()); historyVO.setUserSex(userProfile.getUserSex()); historyVO.setRank(weekStarGiftCount.getRank()); - historyVO.setGroup(weekStarGiftCount.getGroup()); + historyVO.setGroup(weekStarGiftCount.getGroup().replaceAll("(\\d{4})(\\d{2})(\\d{2})", "$1-$2-$3")); historyVO.setQuantity(weekStarGiftCount.getQuantity()); // 转换时间类型 diff --git a/rc-service/rc-service-other/other-start/src/test/java/TeamMonthBillTest.java b/rc-service/rc-service-other/other-start/src/test/java/TeamMonthBillTest.java index 7e9fec25..f6a38158 100644 --- a/rc-service/rc-service-other/other-start/src/test/java/TeamMonthBillTest.java +++ b/rc-service/rc-service-other/other-start/src/test/java/TeamMonthBillTest.java @@ -1,5 +1,7 @@ import com.red.circle.OtherServiceApplication; +import com.red.circle.common.business.core.enums.SysOriginPlatformEnum; import com.red.circle.other.app.listener.team.TeamBillSettleListener; +import com.red.circle.other.app.manager.activity.award.WeeklyRewardsSentManager; import com.red.circle.other.app.scheduler.TeamBillTask; import org.junit.Test; import org.junit.runner.RunWith; @@ -18,6 +20,8 @@ public class TeamMonthBillTest { private TeamBillTask teamBillTask; @Autowired private TeamBillSettleListener teamBillSettleListener; + @Autowired + private WeeklyRewardsSentManager weeklyRewardsSentManager; /** * 更新账单 然很发布消息 @@ -36,4 +40,9 @@ public class TeamMonthBillTest { teamBillSettleListener.processBillTest(teamId); } + @Test + public void weeklyRewardsSent() { + weeklyRewardsSentManager.sendLastWeekStarV1(SysOriginPlatformEnum.LIKEI); + } + }