Authored by mingdan.ge

cps加倍返活动奖励

... ... @@ -1551,11 +1551,17 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport
//查询进行中的活动
private List<UnionShareOrdersActivity> queryActivity() {
logger.info("queryActivity.");
List<UnionShareOrdersActivity> activities = redisValueCache.get(ShareOrdersKeyEnum.ACTIVITY_ING_LIST.getPreKey(), List.class);
if (CollectionUtils.isNotEmpty(activities)) {
logger.info("queryActivity.get chache {}",activities);
return activities;
String activitiesCache = redisValueCache.get(ShareOrdersKeyEnum.ACTIVITY_ING_LIST.getPreKey(), String.class);
List<UnionShareOrdersActivity> activities;
if (activitiesCache != null) {
activities = JSONObject.parseArray(activitiesCache, UnionShareOrdersActivity.class);
if (CollectionUtils.isNotEmpty(activities)) {
logger.info("queryActivity.get chache {}",activities);
return activities;
}
}
activities=unionShareOrdersActivityMapper.selectByDate(DateUtil.getCurrentTimeSecond());
if (CollectionUtils.isEmpty(activities)) {
return new ArrayList<>();
... ...