|
|
|
@@ -646,12 +646,28 @@ public class WxCouponController extends BaseController { |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("券商户是否自动分账") |
|
|
|
@ApiOperation("自己券商户是否自动分账") |
|
|
|
@PostMapping("/couponMerchantAutoShare") |
|
|
|
public ResultData couponMerchantAutoShare(@RequestBody WxCoupon wxCoupon) { |
|
|
|
wxCoupon.updateTenantInfo(getTenantInfo()); |
|
|
|
try { |
|
|
|
Map<Long, Boolean> map = wxCouponService.couponMerchantAutoShare(wxCoupon); |
|
|
|
Map<Long, Boolean> map = wxCouponService.couponMerchantAutoShare(wxCoupon,wxCoupon); |
|
|
|
return new ResultData(map); |
|
|
|
} catch (Exception e) { |
|
|
|
return new ResultData(Result.ERROR,e.getMessage()); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@TenantIgnore |
|
|
|
@ApiOperation("父券商户是否自动分账") |
|
|
|
@PostMapping("/parentCouponMerchantAutoShare") |
|
|
|
public ResultData parentCouponMerchantAutoShare(@RequestBody WxCoupon wxCoupon) { |
|
|
|
TenantEntity tenantEntity = getTenantInfo(); |
|
|
|
wxCoupon.setTenantId(tenantEntity.getParentTenantId()); |
|
|
|
wxCoupon.setParentTenantId(null); |
|
|
|
try { |
|
|
|
Map<Long, Boolean> map = wxCouponService.couponMerchantAutoShare(tenantEntity,wxCoupon); |
|
|
|
return new ResultData(map); |
|
|
|
} catch (Exception e) { |
|
|
|
return new ResultData(Result.ERROR,e.getMessage()); |
|
|
|
|