zoujiajian 2 лет назад
Родитель
Сommit
3eb0e7daaf

+ 7 - 2
netflix-service/src/main/java/com/cyksj/service/coupon/impl/CouponFontServiceImpl.java

@@ -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);
 	}
 }