|
|
@@ -367,7 +367,12 @@ public class CouponFontServiceImpl implements CouponFontService {
|
|
|
|
|
|
@Override
|
|
|
public CouponUserView getCouponDetailById(long userId, Long couponId) {
|
|
|
- return couponUserMapper.getCouponDetailById(userId, couponId);
|
|
|
+ CouponUserView couponUserView = couponUserMapper.getCouponDetailById(userId, couponId);
|
|
|
+ if (couponUserView != null) {
|
|
|
+ String str = couponSkuMapper.selectGoodsSkuStr(couponUserView.getCouponId());
|
|
|
+ couponUserView.setGoodsSkuStr(str.replaceAll(",", "/").replaceAll(";", ""));
|
|
|
+ }
|
|
|
+ return couponUserView;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -377,6 +382,6 @@ public class CouponFontServiceImpl implements CouponFontService {
|
|
|
} catch (Exception e) {
|
|
|
return null;
|
|
|
}
|
|
|
- return couponUserMapper.getCouponDetailById(userId, couponId);
|
|
|
+ return getCouponDetailById(userId, couponId);
|
|
|
}
|
|
|
}
|