## 生产截止10.1,测试截止9.23,之前赠送等级之后不赠送;

This commit is contained in:
cabbage 2025-09-22 11:37:12 +08:00
parent b29fe428f6
commit f5d9ebf5dc
2 changed files with 31 additions and 14 deletions

View File

@ -580,6 +580,13 @@ public class SaOrderServiceImpl extends ServiceImpl<SaOrderMapper, SaOrder> impl
cuMember.setPkSettleGrade(gradeDTO.getPkId());
cuMember.setPkSettleGradeValue(gradeDTO.getGradeValue());
// 赠送等级截止时间
Long giftGradeEnd = SysConstants.GIFT_GRADE_TIME;
if (EEnv.TEST.getValue().equals(BdConfig.getEnv())) {
// 测试环境
giftGradeEnd = SysConstants.GIFT_GRADE_TIME_TEST;
}
if (System.currentTimeMillis() < giftGradeEnd) {
if (EOrderType.REGISTER_ORDER.getValue() == saOrderExt.getOrderType()
|| EOrderType.UPGRADE_ORDER.getValue() == saOrderExt.getOrderType()) {
// 2025.05.13 新添加需求开网初期报单660给1980等级报单1980给9900等级
@ -597,6 +604,7 @@ public class SaOrderServiceImpl extends ServiceImpl<SaOrderMapper, SaOrder> impl
}
}
}
}
// 判断奖衔原会员有奖衔的话判断哪个大使用大的
if (pkAwards != null && gradeDTO.getGradeValue() != null) {

View File

@ -44,4 +44,13 @@ public class SysConstants {
*/
public static final List<Integer> NOT_BONUS_GRADE = Arrays.asList(EGrade.START_UP.getValue(), EGrade.HAI_FAN.getValue());
/**
* 2025.10.01 之前赠送等级后面不赠送了
*/
public static final Long GIFT_GRADE_TIME = 1759248000000L;
/**
* 2025.10.01 之前赠送等级后面不赠送了测试环境
*/
public static final Long GIFT_GRADE_TIME_TEST = 1758556800000L;
}