Browse Source

日志3

master
jianjun 3 years ago
parent
commit
836e629464
  1. 4
      epmet-auth/src/main/java/com/epmet/service/impl/ThirdLoginServiceImpl.java

4
epmet-auth/src/main/java/com/epmet/service/impl/ThirdLoginServiceImpl.java

@ -612,7 +612,7 @@ public class ThirdLoginServiceImpl implements ThirdLoginService, ResultDataResol
String appId = formDTO.getAppId();
String userAccount = formDTO.getUserAccount();
String password = formDTO.getPassword();
logger.info("getMyOrgByAccountService at :{}",System.currentTimeMillis());
long start = System.currentTimeMillis();
//0.根据appId查询对应客户Id
PaCustomerDTO customer = this.getCustomerInfo(formDTO.getAppId());
@ -673,6 +673,7 @@ public class ThirdLoginServiceImpl implements ThirdLoginService, ResultDataResol
String tempKey = RedisKeys.getCustomerStaffTempKey(customerStaffDTO.getUserId());
List<StaffOrgsResultDTO> redisTemp = (List<StaffOrgsResultDTO>)redisUtils.get(tempKey);
if (redisTemp != null){
logger.info("getMyOrgByAccountService end redis :{}",System.currentTimeMillis());
return redisTemp;
}
logger.info("getMyOrgByAccountService getCustomerStaffTempKey cost:{}",System.currentTimeMillis()-start);
@ -686,6 +687,7 @@ public class ThirdLoginServiceImpl implements ThirdLoginService, ResultDataResol
start = System.currentTimeMillis();
redisUtils.set(tempKey,data);
logger.info("getMyOrgByAccountService getCustomerStaffTempKey set redis cost:{}",System.currentTimeMillis()-start);
logger.info("getMyOrgByAccountService end DB :{}",System.currentTimeMillis());
return data;
}
logger.warn(String .format("手机验证码获取组织,调用%s服务失败,入参账户%s,密码%s,返回错误码%s,错误提示信息%s",

Loading…
Cancel
Save