记得上下班打卡 | git大法好,push需谨慎

Commit 55f5c547 authored by 张国柄's avatar 张国柄

~暂时去除券降级MDB;

parent 54227770
...@@ -1260,11 +1260,11 @@ public class GoblinRedisUtils { ...@@ -1260,11 +1260,11 @@ public class GoblinRedisUtils {
public List<GoblinUserCouponVo> getUserCouponVos(String uid) { public List<GoblinUserCouponVo> getUserCouponVos(String uid) {
String rk = GoblinRedisConst.USER_COUPON.concat(uid); String rk = GoblinRedisConst.USER_COUPON.concat(uid);
String valStr = (String) redisUtil.get(rk); String valStr = (String) redisUtil.get(rk);
List<GoblinUserCouponVo> vos; List<GoblinUserCouponVo> vos = null;
if (StringUtils.isEmpty(valStr)) { if (StringUtils.isEmpty(valStr)) {
if (!CollectionUtils.isEmpty(vos = goblinMongoUtils.getUserCouponVos(uid))) { // if (!CollectionUtils.isEmpty(vos = goblinMongoUtils.getUserCouponVos(uid))) {
redisUtil.set(rk, JsonUtils.toJson(vos)); // redisUtil.set(rk, JsonUtils.toJson(vos));
} // }
} else { } else {
vos = JsonUtils.fromJson(valStr, new TypeReference<List<GoblinUserCouponVo>>() { vos = JsonUtils.fromJson(valStr, new TypeReference<List<GoblinUserCouponVo>>() {
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment