Commit 74657651 authored by 黎博's avatar 黎博

修改vcc授信回调逻辑

parent 681734eb
......@@ -40,7 +40,7 @@ public class VccQueryController {
}
@GetMapping("/checkData")
public JsonResult checkUserData(String namespace, String phoneNo, String idCardNo) {
public JsonResult checkUserData(String namespace, String phoneNo) {
VccUserEntity vccUserEntity = vccDataService.queryUserVccStatus(namespace, phoneNo);
if (vccUserEntity == null) {
return JsonResult.serverFailed("该用户不存在!");
......
......@@ -187,9 +187,15 @@ public class VccDataServiceImpl implements VccDataService {
public Boolean vccManualRiskControl(String namespace, String phoneNo, Boolean result, Integer amount) {
SwitchDataSource.dataSourceSwitch(namespace, "xyqb_user");
XjfqGenProcessVo xjfqGenProcessVo = xyqbLoanDataMapper.getUserInfoByPhoneNo(phoneNo);
if (xjfqGenProcessVo == null) {
return false;
}
String uuid = xjfqGenProcessVo.getUuid();
SwitchDataSource.dataSourceSwitch(namespace, "vcc_talos");
Map<String, Object> riskRecord = vccDataMapper.getVccRiskRecord(uuid);
if (riskRecord == null) {
return false;
}
String riskNo = riskRecord.get("risk_no").toString();
JSONObject creditResult = Vcc.vccWindControlCreditCallback(namespace, uuid, riskNo, result, amount);
return creditResult.get("content").toString().equals("success");
......
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