master
kira 6 years ago
parent fcb9a0ae6f
commit e5a7a14d89

@ -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"));

@ -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"));

Loading…
Cancel
Save