消费赠券 跳转 id 选中
This commit is contained in:
@@ -6,6 +6,7 @@ import com.czg.log.annotation.OperationLog;
|
||||
import com.czg.market.dto.MkCouponGiftDTO;
|
||||
import com.czg.market.dto.ShopCouponDTO;
|
||||
import com.czg.market.service.MkCouponGiftService;
|
||||
import com.czg.market.service.MkShopConsumerCouponService;
|
||||
import com.czg.market.service.ShopCouponService;
|
||||
import com.czg.product.service.ShopSyncService;
|
||||
import com.czg.resp.CzgResult;
|
||||
@@ -37,6 +38,8 @@ public class ACouponController {
|
||||
private ShopCouponService shopCouponService;
|
||||
@Resource
|
||||
private MkCouponGiftService couponGiftService;
|
||||
@Resource
|
||||
private MkShopConsumerCouponService consumerCouponService;
|
||||
@DubboReference
|
||||
private ShopSyncService shopSyncService;
|
||||
|
||||
@@ -132,16 +135,16 @@ public class ACouponController {
|
||||
return CzgResult.success(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过关联Id取消该券的关联
|
||||
*
|
||||
* @param id /admin/coupon/gifts的 主键Id
|
||||
*/
|
||||
@DeleteMapping("/cancelGift")
|
||||
public CzgResult<Void> cancelGift(Long id) {
|
||||
couponGiftService.cancelGift(id);
|
||||
return CzgResult.success();
|
||||
}
|
||||
// /**
|
||||
// * 通过关联Id取消该券的关联
|
||||
// *
|
||||
// * @param id /admin/coupon/gifts的 主键Id
|
||||
// */
|
||||
// @DeleteMapping("/cancelGift")
|
||||
// public CzgResult<Void> cancelGift(Long id) {
|
||||
// couponGiftService.cancelGift(id);
|
||||
// return CzgResult.success();
|
||||
// }
|
||||
|
||||
private void asyncToBranchShop(Long id, Integer type) {
|
||||
long shopId = StpKit.USER.getShopId(0L);
|
||||
|
||||
Reference in New Issue
Block a user