## 默认月结期间表取值调整;

This commit is contained in:
cabbage 2025-06-25 10:49:07 +08:00
parent 8dafeb452e
commit 3e9cbc4094
1 changed files with 5 additions and 2 deletions

View File

@ -1811,8 +1811,11 @@ public class BonusSettleRangeHandle extends BonusSettleHandle {
// 上月最后一天期数 // 上月最后一天期数
CuMemberSettlePeriod beforeMonthLast = getCuMemberSettlePeriodService().getCuMemberSettlePeriodByDate(beforeMonthLastDate); CuMemberSettlePeriod beforeMonthLast = getCuMemberSettlePeriodService().getCuMemberSettlePeriodByDate(beforeMonthLastDate);
String rangeTableName = TableNameConstants.CU_MEMBER_RETAIL_RANGE; String rangeTableName = TableNameConstants.CU_MEMBER_RETAIL_RANGE;
// 如果上月最后一期有值则使用没有值则使用昨天期数
if (ObjectUtil.isNotEmpty(beforeMonthLast)) { if (ObjectUtil.isNotEmpty(beforeMonthLast)) {
rangeTableName += beforeMonthLast.getPkId(); rangeTableName += beforeMonthLast.getPkId();
} else {
rangeTableName += period;
} }
// 查询上月订单 // 查询上月订单