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.config.WeChatPayConfig;
import au.com.royalpay.payment.channels.wechat.runtime.MpPaymentApi; import au.com.royalpay.payment.channels.wechat.runtime.MpPaymentApi;
import au.com.royalpay.payment.manage.application.core.SimpleClientApplyService; 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.preapply.SysClientPreMapperMapper;
import au.com.royalpay.payment.manage.mappers.system.ClientAccountMapper; import au.com.royalpay.payment.manage.mappers.system.ClientAccountMapper;
import au.com.royalpay.payment.manage.mappers.system.ClientBankAccountMapper; import au.com.royalpay.payment.manage.mappers.system.ClientBankAccountMapper;
@ -72,6 +73,8 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
@Resource @Resource
private MailService mailService; private MailService mailService;
@Resource @Resource
private PermissionPartnerManager permissionPartnerManager;
@Resource
private SpringTemplateEngine thymeleaf; private SpringTemplateEngine thymeleaf;
@Resource @Resource
private ClientManager clientManager; private ClientManager clientManager;
@ -365,6 +368,8 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
apply.put("client_moniker", clientMoniker); apply.put("client_moniker", clientMoniker);
sysClientPreMapperMapper.update(apply); sysClientPreMapperMapper.update(apply);
permissionPartnerManager.permissionClientModuleSave(clientId,clientMoniker);
JSONObject sysRate = new JSONObject(); JSONObject sysRate = new JSONObject();
sysRate.put("client_id", clientId); sysRate.put("client_id", clientId);
sysRate.put("clean_days", apply.getIntValue("clean_days")); sysRate.put("clean_days", apply.getIntValue("clean_days"));

@ -1,7 +1,6 @@
package au.com.royalpay.payment.manage.merchants.core.impls; 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.ClientAccountMapper;
import au.com.royalpay.payment.manage.mappers.system.ClientApplyMapper; import au.com.royalpay.payment.manage.mappers.system.ClientApplyMapper;
import au.com.royalpay.payment.manage.mappers.system.ClientBDMapper; import au.com.royalpay.payment.manage.mappers.system.ClientBDMapper;
@ -66,8 +65,6 @@ public class ClientApplyImpl implements ClientApply, ApplicationEventPublisherAw
private ApplicationEventPublisher publisher; private ApplicationEventPublisher publisher;
@Resource @Resource
private ClientConfigService clientConfigService; private ClientConfigService clientConfigService;
@Resource
private PermissionPartnerManagerImpl permissionPartnerManagerImpl;
@Override @Override
@Transactional @Transactional
@ -223,8 +220,6 @@ public class ClientApplyImpl implements ClientApply, ApplicationEventPublisherAw
clientConfig.put("client_id",partner.getIntValue("client_id")); clientConfig.put("client_id",partner.getIntValue("client_id"));
clientConfig.put("client_moniker",info.getClientMoniker()); clientConfig.put("client_moniker",info.getClientMoniker());
clientConfigService.save(clientConfig); clientConfigService.save(clientConfig);
permissionPartnerManagerImpl.permissionClientModuleSave(partner.getIntValue("client_id"),info.getClientMoniker());
JSONObject client_bd = new JSONObject(); JSONObject client_bd = new JSONObject();
client_bd.put("client_id", partner.getIntValue("client_id")); client_bd.put("client_id", partner.getIntValue("client_id"));

Loading…
Cancel
Save