消费赠券 跳转 id 选中
This commit is contained in:
parent
212f27daa6
commit
db50c78049
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ public class MkShopConsumerCouponServiceImpl extends ServiceImpl<MkShopConsumerC
|
|||
public Page<MkShopConsumerCouponDTO> getConsumerCouponPage(MkShopConsumerCouponDTO param) {
|
||||
QueryWrapper queryWrapper = new QueryWrapper();
|
||||
queryWrapper.eq(MkShopConsumerCoupon::getShopId, param.getShopId())
|
||||
.eq(MkShopConsumerCoupon::getId, param.getId())
|
||||
.orderBy(MkShopConsumerCoupon::getCreateTime).desc();
|
||||
Page<MkShopConsumerCouponDTO> pages = pageAs(PageUtil.buildPage(), queryWrapper, MkShopConsumerCouponDTO.class);
|
||||
pages.getRecords().forEach(item -> {
|
||||
|
|
|
|||
Loading…
Reference in New Issue