| | |
| | | if(StringUtils.isNotBlank(relGoodsIds)){ |
| | | //获取指定商品列表 |
| | | List<MerGoodsPriceListVo> goodsList = remoteGoodsService.listGoodsPriceByGoodsId(relGoodsIds).getData(); |
| | | if(!goodsList.isEmpty()){ |
| | | if(goodsList!=null&&!goodsList.isEmpty()){ |
| | | merCouponGetVo.setRelGoodsList(goodsList); |
| | | } |
| | | } |
| | |
| | | coupon.setUpdateTime(new Date()); |
| | | coupon.setUpdateUserId(mgtCouponAuditDto.getUserId()); |
| | | //审核通过后判断是否立即发放 |
| | | if(coupon.getAuditStatus()==2&&coupon.getSendTimeType()==1){ |
| | | if(coupon.getAuditStatus()==2&&coupon.getSendType()==2&&coupon.getSendTimeType()==1){ |
| | | List<CouponRelUser> couponRelUserList = couponRelUserService.list(new LambdaQueryWrapper<CouponRelUser>().eq(CouponRelUser::getDelFlag,0).eq(CouponRelUser::getCouponId,coupon.getCouponId())); |
| | | List<Long> userIdList = new ArrayList<>(); |
| | | if(couponRelUserList!=null&&!couponRelUserList.isEmpty()){ |
| | |
| | | validTime = "领取之日起" + validDay.toString() + "天"; |
| | | } |
| | | merCouponPageVo.setValidTime(validTime); |
| | | merCouponPageVo.setCouponCode("https://hongruitang.oss-cn-beijing.aliyuncs.com/2023/8/3/couponCode.jpg"); |
| | | } |
| | | } |
| | | return couponPageVoList; |
| | |
| | | coupon.setUpdateTime(new Date()); |
| | | coupon.setUpdateUserId(merCouponEditDto.getUserId()); |
| | | coupon.setRelationType(1); |
| | | coupon.setPropagandaPoster(merCouponEditDto.getPropagandaPoster()); |
| | | //判断是否指定商品 |
| | | if(coupon.getUseScope()==2&&!merCouponEditDto.getRelGoodsIdList().isEmpty()){ |
| | | List<String> relGoodsIdList = merCouponEditDto.getRelGoodsIdList(); |