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

Commit d7b6f79a authored by 胡佳晨's avatar 胡佳晨

1

parent 823a53a3
...@@ -137,9 +137,15 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService { ...@@ -137,9 +137,15 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
vo.setPlatformUcouponName(""); vo.setPlatformUcouponName("");
} }
if (!(orderVo.getStoreCouponId() == null || orderVo.getStoreCouponId().equals(""))) { if (!(orderVo.getStoreCouponId() == null || orderVo.getStoreCouponId().equals(""))) {
GoblinStoreCouponVo storeVo = redisUtils.getStoreCouponVo(orderVo.getStoreCouponId()); List<GoblinUserCouponVo> voList = redisUtils.getUserCouponVos(orderVo.getUserId());
vo.setStoreUcouponId(storeVo.getStoreCouponId()); for (GoblinUserCouponVo goblinUserCouponVo : voList) {
vo.setStoreUcouponName(storeVo.getTitle()); if (goblinUserCouponVo.getUcouponId().equals(orderVo.getStoreCouponId())) {
vo.setStoreUcouponId(goblinUserCouponVo.getStoreCouponId());
vo.setStoreUcouponName(goblinUserCouponVo.getTitle());
break;
}
}
} else { } else {
vo.setStoreUcouponId(""); vo.setStoreUcouponId("");
vo.setStoreUcouponName(""); vo.setStoreUcouponName("");
......
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