日期格式化,新增test文件

This commit is contained in:
tianfeng 2025-09-19 15:55:46 +08:00
parent fb745f89fc
commit b5b9fd4e04
2 changed files with 10 additions and 1 deletions

View File

@ -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());
// 转换时间类型

View File

@ -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);
}
}