## 添加测试结算日志;

This commit is contained in:
cabbage 2025-06-23 14:24:32 +08:00
parent 391716318c
commit bd62730edb
1 changed files with 2 additions and 0 deletions

View File

@ -1833,10 +1833,12 @@ public class BonusSettleRangeHandle extends BonusSettleHandle {
if (EEnv.TEST.getValue().equals(BdConfig.getEnv())) {
// 测试环境只查昨天订单
Date endDate = DateUtils.afterDate(1, ChronoUnit.DAYS, settleDate);
log.info("测试环境,月结日期: {}", endDate);
List<SaOrder> currentMonthOrderList = iBonusOrderService.listSaOrderByTime(settleDate, endDate, orderType);
totalMonthOrderList.addAll(currentMonthOrderList);
// 测试环境奖衔取当前结算期
rangeTableName = TableNameConstants.CU_MEMBER_RETAIL_RANGE + period;
log.info("测试环境,月结期间: {}", rangeTableName);
} else {
// 非测试环境
while (!DateUtils.compareDateEqual(currentMonthFirstDate, nextMonthFirstDate)) {