|
@ -416,17 +416,22 @@ public class ComponentVerifyTicketServiceImpl implements ComponentVerifyTicketSe |
|
|
String authAppId = authorizationInfoResultDTO.getAuthorizer_appid(); |
|
|
String authAppId = authorizationInfoResultDTO.getAuthorizer_appid(); |
|
|
List<FixationAppIdResultDTO> fixationAppIdResultDTOS = fixationAppIdDao.selectFixationInfos(); |
|
|
List<FixationAppIdResultDTO> fixationAppIdResultDTOS = fixationAppIdDao.selectFixationInfos(); |
|
|
String finalCustomerId = customerId;//
|
|
|
String finalCustomerId = customerId;//
|
|
|
|
|
|
log.info("新customerId为:"+customerId); |
|
|
|
|
|
log.info("新finalCustomerId为:"+finalCustomerId); |
|
|
fixationAppIdResultDTOS.forEach(fixationAppId -> { |
|
|
fixationAppIdResultDTOS.forEach(fixationAppId -> { |
|
|
if (fixationAppId.getAppId().equals(authAppId)){ |
|
|
if (fixationAppId.getAppId().equals(authAppId)){ |
|
|
// TODO 是城阳项目或者党群e事通
|
|
|
// TODO 是城阳项目或者党群e事通
|
|
|
// crm表中的customerId【原customerId】
|
|
|
// crm表中的customerId【原customerId】
|
|
|
String masterCustomerId = fixationAppId.getMasterCustomerId(); |
|
|
String masterCustomerId = fixationAppId.getMasterCustomerId(); |
|
|
|
|
|
log.info("老customerId为:"+masterCustomerId); |
|
|
formDTO.setCustomerId(masterCustomerId); |
|
|
formDTO.setCustomerId(masterCustomerId); |
|
|
authCodeDao.deleteCustomerAuthCode(finalCustomerId,clientType); |
|
|
authCodeDao.deleteCustomerAuthCode(finalCustomerId,clientType); |
|
|
authCodeDao.insertRedirectAuthCode(formDTO); |
|
|
authCodeDao.insertRedirectAuthCode(formDTO); |
|
|
//authCode存缓存
|
|
|
//authCode存缓存
|
|
|
redisThird.setAuthCode(formDTO); |
|
|
redisThird.setAuthCode(formDTO); |
|
|
|
|
|
|
|
|
|
|
|
log.info("=======================公众号的客户id为:"+finalCustomerId); |
|
|
|
|
|
|
|
|
ModifyCustomerFormDTO modifyCustomer = new ModifyCustomerFormDTO(); |
|
|
ModifyCustomerFormDTO modifyCustomer = new ModifyCustomerFormDTO(); |
|
|
modifyCustomer.setOldCustomerId(finalCustomerId); |
|
|
modifyCustomer.setOldCustomerId(finalCustomerId); |
|
|
modifyCustomer.setNewCustomerId(masterCustomerId); |
|
|
modifyCustomer.setNewCustomerId(masterCustomerId); |
|
@ -434,6 +439,7 @@ public class ComponentVerifyTicketServiceImpl implements ComponentVerifyTicketSe |
|
|
|
|
|
|
|
|
// 管理员授权
|
|
|
// 管理员授权
|
|
|
CustomerManagerFormDTO customerManager = paUserDao.selectManagerInfo(finalCustomerId); |
|
|
CustomerManagerFormDTO customerManager = paUserDao.selectManagerInfo(finalCustomerId); |
|
|
|
|
|
log.info("=======================公众号的客户id为:"+finalCustomerId); |
|
|
customerManager.setCustomerId(finalCustomerId); |
|
|
customerManager.setCustomerId(finalCustomerId); |
|
|
operCrmOpenFeignClient.addManager(customerManager); |
|
|
operCrmOpenFeignClient.addManager(customerManager); |
|
|
} |
|
|
} |
|
|