Commit c0bc8a3f authored by guangjing.gao's avatar guangjing.gao

新增日志

parent 6f69b2a3
...@@ -41,6 +41,7 @@ public class OauthLoginInfoServiceImpl implements IOauthLoginInfoService { ...@@ -41,6 +41,7 @@ public class OauthLoginInfoServiceImpl implements IOauthLoginInfoService {
@Override @Override
@Transactional(propagation = Propagation.REQUIRES_NEW) @Transactional(propagation = Propagation.REQUIRES_NEW)
public void addLoginInfo(User user, Integer tenantId) { public void addLoginInfo(User user, Integer tenantId) {
log.info("=addLoginInfo= -> user={}, tenetId={}", user, tenantId);
OauthClientDetailsEntity oauthClientDetailsEntity = oauthClientDetailsRepository.findFirstByClientId(tenantId); OauthClientDetailsEntity oauthClientDetailsEntity = oauthClientDetailsRepository.findFirstByClientId(tenantId);
if (oauthClientDetailsEntity != null) { if (oauthClientDetailsEntity != null) {
String institutionId = oauthClientDetailsEntity.getInstitutionId(); String institutionId = oauthClientDetailsEntity.getInstitutionId();
...@@ -61,6 +62,7 @@ public class OauthLoginInfoServiceImpl implements IOauthLoginInfoService { ...@@ -61,6 +62,7 @@ public class OauthLoginInfoServiceImpl implements IOauthLoginInfoService {
Integer partitionKey = atomicSequencer.partitionKey(customerId); Integer partitionKey = atomicSequencer.partitionKey(customerId);
productLoginEntity = EntityBuilder.productLogin(productId, institutionId, phoneNo, customerId, customerName, partitionKey, id); productLoginEntity = EntityBuilder.productLogin(productId, institutionId, phoneNo, customerId, customerName, partitionKey, id);
productLoginEntity.setExtensionAccountId(userId); productLoginEntity.setExtensionAccountId(userId);
log.info("=save productLoginRepository= {}", productLoginEntity);
productLoginRepository.save(productLoginEntity); productLoginRepository.save(productLoginEntity);
// 根据customerId 获取uuid // 根据customerId 获取uuid
CustomerLoginEntity customerLoginEntity = customerLoginRepository.findFirstByCustomerId(productLoginEntity.getCustomerId()); CustomerLoginEntity customerLoginEntity = customerLoginRepository.findFirstByCustomerId(productLoginEntity.getCustomerId());
...@@ -80,6 +82,7 @@ public class OauthLoginInfoServiceImpl implements IOauthLoginInfoService { ...@@ -80,6 +82,7 @@ public class OauthLoginInfoServiceImpl implements IOauthLoginInfoService {
customerLogin.setModifiedDate(new Date()); customerLogin.setModifiedDate(new Date());
customerLogin.setCreatedBy(""); customerLogin.setCreatedBy("");
customerLogin.setModifiedBy(""); customerLogin.setModifiedBy("");
log.info("=save customerLoginRepository= {}", customerLogin);
customerLoginRepository.save(customerLogin); customerLoginRepository.save(customerLogin);
// 添加用户信息表 // 添加用户信息表
...@@ -93,6 +96,7 @@ public class OauthLoginInfoServiceImpl implements IOauthLoginInfoService { ...@@ -93,6 +96,7 @@ public class OauthLoginInfoServiceImpl implements IOauthLoginInfoService {
customerInfo.setModifiedDate(new Date()); customerInfo.setModifiedDate(new Date());
customerInfo.setCreatedBy(""); customerInfo.setCreatedBy("");
customerInfo.setModifiedBy(""); customerInfo.setModifiedBy("");
log.info("=save customerInfoRepository= {}", customerInfo);
customerInfoRepository.save(customerInfo); customerInfoRepository.save(customerInfo);
} }
...@@ -102,6 +106,7 @@ public class OauthLoginInfoServiceImpl implements IOauthLoginInfoService { ...@@ -102,6 +106,7 @@ public class OauthLoginInfoServiceImpl implements IOauthLoginInfoService {
@Override @Override
@Transactional(propagation = Propagation.REQUIRES_NEW) @Transactional(propagation = Propagation.REQUIRES_NEW)
public void addRegisterInfo(User user, AppletParamEntry appletParamEntry) { public void addRegisterInfo(User user, AppletParamEntry appletParamEntry) {
log.info("=addRegisterInfo= -> User={}, AppletParamEntry={}", user, appletParamEntry);
OauthClientDetailsEntity oauthClientDetailsEntity = oauthClientDetailsRepository.findFirstByClientId(appletParamEntry.getTenantId()); OauthClientDetailsEntity oauthClientDetailsEntity = oauthClientDetailsRepository.findFirstByClientId(appletParamEntry.getTenantId());
if (oauthClientDetailsEntity != null) { if (oauthClientDetailsEntity != null) {
String institutionId = oauthClientDetailsEntity.getInstitutionId(); String institutionId = oauthClientDetailsEntity.getInstitutionId();
...@@ -121,6 +126,7 @@ public class OauthLoginInfoServiceImpl implements IOauthLoginInfoService { ...@@ -121,6 +126,7 @@ public class OauthLoginInfoServiceImpl implements IOauthLoginInfoService {
Integer partitionKey = atomicSequencer.partitionKey(customerId); Integer partitionKey = atomicSequencer.partitionKey(customerId);
productLoginEntity = EntityBuilder.productLogin(productId, institutionId, phoneNo, customerId, customerName, partitionKey, id); productLoginEntity = EntityBuilder.productLogin(productId, institutionId, phoneNo, customerId, customerName, partitionKey, id);
productLoginEntity.setExtensionAccountId(userId); productLoginEntity.setExtensionAccountId(userId);
log.info("=save productLoginRepository= {}", productLoginEntity);
productLoginRepository.save(productLoginEntity); productLoginRepository.save(productLoginEntity);
// 根据customerId 获取uuid // 根据customerId 获取uuid
CustomerLoginEntity customerLoginEntity = customerLoginRepository.findFirstByCustomerId(productLoginEntity.getCustomerId()); CustomerLoginEntity customerLoginEntity = customerLoginRepository.findFirstByCustomerId(productLoginEntity.getCustomerId());
...@@ -140,6 +146,7 @@ public class OauthLoginInfoServiceImpl implements IOauthLoginInfoService { ...@@ -140,6 +146,7 @@ public class OauthLoginInfoServiceImpl implements IOauthLoginInfoService {
customerLogin.setModifiedDate(new Date()); customerLogin.setModifiedDate(new Date());
customerLogin.setCreatedBy(""); customerLogin.setCreatedBy("");
customerLogin.setModifiedBy(""); customerLogin.setModifiedBy("");
log.info("=save customerLoginRepository= {}", customerLogin);
customerLoginRepository.save(customerLogin); customerLoginRepository.save(customerLogin);
// 添加用户信息表 // 添加用户信息表
...@@ -164,6 +171,7 @@ public class OauthLoginInfoServiceImpl implements IOauthLoginInfoService { ...@@ -164,6 +171,7 @@ public class OauthLoginInfoServiceImpl implements IOauthLoginInfoService {
customerInfo.setModifiedDate(new Date()); customerInfo.setModifiedDate(new Date());
customerInfo.setCreatedBy(""); customerInfo.setCreatedBy("");
customerInfo.setModifiedBy(""); customerInfo.setModifiedBy("");
log.info("=save customerInfoRepository= {}", customerInfo);
customerInfoRepository.save(customerInfo); customerInfoRepository.save(customerInfo);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment