|
|
@@ -175,7 +175,7 @@ public class WxCouponOrderReservationController extends BaseController { |
|
|
if(!EnumMerchantAdmin.REGIONAL.getCode().equals(loginMerchant.getIsAdmin())){ |
|
|
if(!EnumMerchantAdmin.REGIONAL.getCode().equals(loginMerchant.getIsAdmin())){ |
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),"非区域商户,核销失败"); |
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),"非区域商户,核销失败"); |
|
|
} |
|
|
} |
|
|
List<Long> subMerchantIds = wxMerchantRelationService.getRelationByRegionId(merchant.getId()); |
|
|
|
|
|
|
|
|
List<Long> subMerchantIds = wxMerchantRelationService.getRelationByRegionId(merchantId); |
|
|
if(!subMerchantIds.contains(sortReservation.getReservationMerchantId())){ |
|
|
if(!subMerchantIds.contains(sortReservation.getReservationMerchantId())){ |
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),"区域门店不匹配,核销失败"); |
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),"区域门店不匹配,核销失败"); |
|
|
} |
|
|
} |
|
|
|