Commit 7235e6f1 by lihui.wang

将 payaccountplatform list 转换为 object 且对数据密码进行解密

parent 1dd7a48f
...@@ -48,12 +48,12 @@ public class PayPlatformAccountServiceImpl implements IPayPlatformAccountService ...@@ -48,12 +48,12 @@ public class PayPlatformAccountServiceImpl implements IPayPlatformAccountService
@Autowired @Autowired
PayMessage payMessage; PayMessage payMessage;
@Autowired
EncryptionHelper encryptionHelper;
@Override @Override
public PayPlatformAccountDM getPayPlatformAccount(Integer partnerId) { public PayPlatformAccountDM getPayPlatformAccount(Integer partnerId) {
EncryptionHelper encryptionHelper = new EncryptionHelper();
List<PayPlatformAccountDM> payPlatformAccountDMList = payPlatformAccountRepository.selectByPartnerId(partnerId); List<PayPlatformAccountDM> payPlatformAccountDMList = payPlatformAccountRepository.selectByPartnerId(partnerId);
payPlatformAcountKey.setPartnerId(iPayMessageService.selectByPrimaryKey(payMessage.getPayMessage().getId()).getPartnerid()); payPlatformAcountKey.setPartnerId(iPayMessageService.selectByPrimaryKey(payMessage.getPayMessage().getId()).getPartnerid());
payPlatformAcountKey.setPlatform(iPayMessageService.selectByPrimaryKey(payMessage.getPayMessage().getId()).getPlatform()); payPlatformAcountKey.setPlatform(iPayMessageService.selectByPrimaryKey(payMessage.getPayMessage().getId()).getPlatform());
...@@ -67,6 +67,7 @@ public class PayPlatformAccountServiceImpl implements IPayPlatformAccountService ...@@ -67,6 +67,7 @@ public class PayPlatformAccountServiceImpl implements IPayPlatformAccountService
} }
}); });
PayPlatformAccountDM payPlatformAccountDM = payPlatformAccountDMList1.get(0); PayPlatformAccountDM payPlatformAccountDM = payPlatformAccountDMList1.get(0);
payPlatformAccountDM.setPassword(encryptionHelper.Decode(payPlatformAccountDM.getPassword()));
return payPlatformAccountDM; return payPlatformAccountDM;
} }
} }
\ No newline at end of file
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