From e5a7a14d89c436c4f5712498f47a6d51fa1f92d1 Mon Sep 17 00:00:00 2001 From: kira <164851225@qq.com> Date: Wed, 1 Aug 2018 16:55:47 +0800 Subject: [PATCH] fixbug --- .../application/core/impls/SimpleClientApplyServiceImpl.java | 5 +++++ .../payment/manage/merchants/core/impls/ClientApplyImpl.java | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImpl.java index 95c222236..2c167bcd4 100644 --- a/src/main/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImpl.java @@ -3,6 +3,7 @@ package au.com.royalpay.payment.manage.application.core.impls; import au.com.royalpay.payment.channels.wechat.config.WeChatPayConfig; import au.com.royalpay.payment.channels.wechat.runtime.MpPaymentApi; import au.com.royalpay.payment.manage.application.core.SimpleClientApplyService; +import au.com.royalpay.payment.manage.management.sysconfig.core.PermissionPartnerManager; import au.com.royalpay.payment.manage.mappers.preapply.SysClientPreMapperMapper; import au.com.royalpay.payment.manage.mappers.system.ClientAccountMapper; import au.com.royalpay.payment.manage.mappers.system.ClientBankAccountMapper; @@ -72,6 +73,8 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService { @Resource private MailService mailService; @Resource + private PermissionPartnerManager permissionPartnerManager; + @Resource private SpringTemplateEngine thymeleaf; @Resource private ClientManager clientManager; @@ -365,6 +368,8 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService { apply.put("client_moniker", clientMoniker); sysClientPreMapperMapper.update(apply); + permissionPartnerManager.permissionClientModuleSave(clientId,clientMoniker); + JSONObject sysRate = new JSONObject(); sysRate.put("client_id", clientId); sysRate.put("clean_days", apply.getIntValue("clean_days")); diff --git a/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientApplyImpl.java b/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientApplyImpl.java index e67086828..94a7e4227 100644 --- a/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientApplyImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientApplyImpl.java @@ -1,7 +1,6 @@ package au.com.royalpay.payment.manage.merchants.core.impls; -import au.com.royalpay.payment.manage.management.sysconfig.core.impls.PermissionPartnerManagerImpl; import au.com.royalpay.payment.manage.mappers.system.ClientAccountMapper; import au.com.royalpay.payment.manage.mappers.system.ClientApplyMapper; import au.com.royalpay.payment.manage.mappers.system.ClientBDMapper; @@ -66,8 +65,6 @@ public class ClientApplyImpl implements ClientApply, ApplicationEventPublisherAw private ApplicationEventPublisher publisher; @Resource private ClientConfigService clientConfigService; - @Resource - private PermissionPartnerManagerImpl permissionPartnerManagerImpl; @Override @Transactional @@ -223,8 +220,6 @@ public class ClientApplyImpl implements ClientApply, ApplicationEventPublisherAw clientConfig.put("client_id",partner.getIntValue("client_id")); clientConfig.put("client_moniker",info.getClientMoniker()); clientConfigService.save(clientConfig); - permissionPartnerManagerImpl.permissionClientModuleSave(partner.getIntValue("client_id"),info.getClientMoniker()); - JSONObject client_bd = new JSONObject(); client_bd.put("client_id", partner.getIntValue("client_id"));