| | |
| | | } |
| | | tCouponReceive.setAmountCondition(dto.getAmountCondition()); |
| | | tCouponReceive.setStatus(1); |
| | | tCouponReceive.setCouponName(dto.getName()); |
| | | tCouponReceives.add(tCouponReceive); |
| | | } |
| | | couponReceiveService.saveBatch(tCouponReceives); |
| | |
| | | TCouponReceive tCouponReceive = new TCouponReceive(); |
| | | tCouponReceive.setCouponId(dto.getId()); |
| | | tCouponReceive.setUserId(userId); |
| | | tCouponReceive.setType(2); |
| | | tCouponReceive.setType(3); |
| | | tCouponReceive.setAmount(dto.getAmount()); |
| | | tCouponReceive.setStoreId(dto.getStoreId()); |
| | | if (dto.getTime()!=0){ |
| | |
| | | } |
| | | tCouponReceive.setAmountCondition(dto.getAmountCondition()); |
| | | tCouponReceive.setStatus(1); |
| | | tCouponReceive.setCouponName(dto.getName()); |
| | | tCouponReceives1.add(tCouponReceive); |
| | | } |
| | | couponReceiveService.saveBatch(tCouponReceives1); |
| | |
| | | String s = OssUploadUtil.ossUpload("eyes/", blueFile); |
| | | dto.setQrCode(s); |
| | | couponService.updateById(dto); |
| | | break; |
| | | return ApiResult.success(s); |
| | | |
| | | } |
| | | return ApiResult.success(); |
| | | } |