|
|
@ -149,7 +149,10 @@ public class RiskBusinessServiceImpl implements RiskBusinessService, ManagerTodo
|
|
|
|
String orderIds = riskEvent.getString("order_ids");
|
|
|
|
String orderIds = riskEvent.getString("order_ids");
|
|
|
|
JSONObject client = clientMapper.findClientByMonikerAll(riskEvent.getString("client_moniker"));
|
|
|
|
JSONObject client = clientMapper.findClientByMonikerAll(riskEvent.getString("client_moniker"));
|
|
|
|
List<JSONObject> tradeLogs = new ArrayList<>();
|
|
|
|
List<JSONObject> tradeLogs = new ArrayList<>();
|
|
|
|
if (StringUtils.isNotBlank(orderIds)) {
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 通用号调单会有client为空的情况,所以无法查到订单信息
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
if (client != null && StringUtils.isNotBlank(orderIds)) {
|
|
|
|
String[] orderIdArray = orderIds.trim().split(",");
|
|
|
|
String[] orderIdArray = orderIds.trim().split(",");
|
|
|
|
JSONObject orderInfo = new JSONObject();
|
|
|
|
JSONObject orderInfo = new JSONObject();
|
|
|
|
String realOrderId = "";
|
|
|
|
String realOrderId = "";
|
|
|
@ -192,6 +195,12 @@ public class RiskBusinessServiceImpl implements RiskBusinessService, ManagerTodo
|
|
|
|
params.put("order_ids", orderIds);
|
|
|
|
params.put("order_ids", orderIds);
|
|
|
|
String[] orderIdArray = orderIds.split(",");
|
|
|
|
String[] orderIdArray = orderIds.split(",");
|
|
|
|
List<String> orderAmountList = new ArrayList<>();
|
|
|
|
List<String> orderAmountList = new ArrayList<>();
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 通用号调单的时候,是不用填写client_moniker的,但是系统需要client_id关联查询订单信息,
|
|
|
|
|
|
|
|
* 所以当client为空的时候,就不去校验订单的信息了,从而order_amounts字段为空
|
|
|
|
|
|
|
|
* 带来的影响是前台根据金额字段查询对该风控事件就不起作用了。
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
if (client != null) {
|
|
|
|
for (int i = 0; i < orderIdArray.length; i++) {
|
|
|
|
for (int i = 0; i < orderIdArray.length; i++) {
|
|
|
|
JSONObject orderInfo = orderMapper.findOrderById(orderIdArray[i],client.getIntValue("client_id"));
|
|
|
|
JSONObject orderInfo = orderMapper.findOrderById(orderIdArray[i],client.getIntValue("client_id"));
|
|
|
|
// 判断该笔订单是否存在,是否属于该商户
|
|
|
|
// 判断该笔订单是否存在,是否属于该商户
|
|
|
@ -206,6 +215,7 @@ public class RiskBusinessServiceImpl implements RiskBusinessService, ManagerTodo
|
|
|
|
}
|
|
|
|
}
|
|
|
|
params.put("order_amounts", StringUtils.join(orderAmountList, ","));
|
|
|
|
params.put("order_amounts", StringUtils.join(orderAmountList, ","));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
riskEventMapper.save(params);
|
|
|
|
riskEventMapper.save(params);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|