|
|
|
@ -192,7 +192,12 @@ public class YxStoreCouponUserServiceImpl extends BaseServiceImpl<YxStoreCouponU
|
|
|
|
|
for (YxStoreCouponUser couponUser : storeCouponUsers) { |
|
|
|
|
YxStoreCouponUserQueryVo queryVo = generator.convert(couponUser,YxStoreCouponUserQueryVo.class); |
|
|
|
|
queryVo.setCname(couponUser.getCouponTitle()); |
|
|
|
|
String[] idList= storeCouponService.getById(queryVo.getCid()).getProductId().split(","); |
|
|
|
|
String[] idList = new String[0]; |
|
|
|
|
YxStoreCoupon yxStoreCoupon=storeCouponService.getById(queryVo.getCid()); |
|
|
|
|
//防止券被删除报错
|
|
|
|
|
if (ObjectUtil.isNotEmpty(yxStoreCoupon)){ |
|
|
|
|
idList= storeCouponService.getById(queryVo.getCid()).getProductId().split(","); |
|
|
|
|
} |
|
|
|
|
List<String> needIdlist; |
|
|
|
|
if (idList.length>3){ |
|
|
|
|
needIdlist= Arrays.asList(Arrays.copyOf(idList, 3)); |
|
|
|
|