Commit 061d0d4e authored by shangying's avatar shangying

如果phone在detail表中已经存在,则idNo去user_detail表中的身份证号

parent dc4b7a90
...@@ -64,12 +64,13 @@ public class ApplyLoanServiceImpl implements ApplyLoanService { ...@@ -64,12 +64,13 @@ public class ApplyLoanServiceImpl implements ApplyLoanService {
clfChannelConfiguration=clfCenterService.findChannelConfigurationByChannelId(Long.parseLong(oneClickModel.getChannel().trim())); clfChannelConfiguration=clfCenterService.findChannelConfigurationByChannelId(Long.parseLong(oneClickModel.getChannel().trim()));
md5Keywy=clfChannelConfiguration.getMd5Key(); md5Keywy=clfChannelConfiguration.getMd5Key();
aesKeywy=clfChannelConfiguration.getAesKey(); aesKeywy=clfChannelConfiguration.getAesKey();
result=apply(oneClickModel, md5Keywy, aesKeywy);
UserDetail userDetail= userDetailRepository.findByphoneNo(oneClickModel.getPhone()); UserDetail userDetail= userDetailRepository.findByphoneNo(oneClickModel.getPhone());
if(Objects.nonNull(userDetail)){ if(Objects.nonNull(userDetail)){
idNo=userDetail.getId_no(); idNo=userDetail.getId_no();
} }
log.info("查看当前的phone是否已经在user_detail表中有,则使用现有的身份证号={},idNo={}",userDetail,idNo); log.info("查看当前的phone是否已经在user_detail表中有,则使用现有的身份证号={},idNo={}",userDetail,idNo);
result=apply(oneClickModel, md5Keywy, aesKeywy);
String getDecryption = AESUtil.decryptAfterBase64Decode(result.get("context").toString(), aesKeywy); String getDecryption = AESUtil.decryptAfterBase64Decode(result.get("context").toString(), aesKeywy);
log.info("解密的getDecryption的结果={}" , getDecryption); log.info("解密的getDecryption的结果={}" , getDecryption);
JSONObject getDecryptionResult = (JSONObject) JSONObject.parse(getDecryption); JSONObject getDecryptionResult = (JSONObject) JSONObject.parse(getDecryption);
......
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