|
|
@@ -473,11 +473,7 @@ public class WxCouponOrderController extends BaseController { |
|
|
public ResultData getVerifiedExportUrl(@ModelAttribute WxCouponOrderBVo wxCouponOrder) { |
|
|
public ResultData getVerifiedExportUrl(@ModelAttribute WxCouponOrderBVo wxCouponOrder) { |
|
|
//只有B端管理员才能操作这个 |
|
|
//只有B端管理员才能操作这个 |
|
|
WxMerchantBUser buser = this.getLoginBUser(); |
|
|
WxMerchantBUser buser = this.getLoginBUser(); |
|
|
WxMerchant merchantQ= new WxMerchant(); |
|
|
|
|
|
merchantQ.updateTenantInfo(buser); |
|
|
|
|
|
merchantQ.setId(buser.getMerchantId()); |
|
|
|
|
|
WxMerchant merchant = wxMerchantService.findOne(merchantQ); |
|
|
|
|
|
if (!(buser.getPhone().equals(merchant.getLinkPhone()))) { |
|
|
|
|
|
|
|
|
if (buser.getIsAdmin() != EnumYesOrNo.YES.getCode()) { |
|
|
return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),"只有商户管理员才能进行此操作"); |
|
|
return new ResultData(ErrorCode.SYS_SERVER_ERROR.getCode(),"只有商户管理员才能进行此操作"); |
|
|
} |
|
|
} |
|
|
if (wxCouponOrder == null) wxCouponOrder = new WxCouponOrderBVo(); |
|
|
if (wxCouponOrder == null) wxCouponOrder = new WxCouponOrderBVo(); |
|
|
|