Browse Source

楼院小组七个事件提供统一入口,如果不需要指定计算积分上限周期的一定不要传targetDate,不传默认是当前时间

master
wangchao 5 years ago
parent
commit
785c1cae0e
  1. 5
      epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/UserPointActionLogServiceImpl.java

5
epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/UserPointActionLogServiceImpl.java

@ -195,12 +195,9 @@ public class UserPointActionLogServiceImpl extends BaseServiceImpl<UserPointActi
}
PointRuleEntity ruleInfo = pointRuleService.getByEventCodeAndCustomerId(event.getCustomerId(),eventCode);
if(null != ruleInfo && StringUtils.equals(NumConstant.ONE_STR,ruleInfo.getEnabledFlag())){
//是否使用特定的上限日期检查日
boolean ifPastTargetDate = StringUtils.equals(EventEnum.INVITE_RESIDENT_INTO_GROUP.getEventTag(),ruleInfo.getEventCode());
Date dateCheck = null;
Calendar calendar = Calendar.getInstance();
calendar.setTime(ifPastTargetDate ? event.getTargetDate() :new Date());
calendar.setTime(null == event.getTargetDate() ? new Date() : event.getTargetDate());
calendar.set(Calendar.HOUR_OF_DAY, NumConstant.ZERO);
calendar.set(Calendar.MINUTE, NumConstant.ZERO);
calendar.set(Calendar.SECOND, NumConstant.ZERO);

Loading…
Cancel
Save