|
|
|
@ -151,13 +151,14 @@ public class RiskBusinessServiceImpl implements RiskBusinessService, ManagerTodo
|
|
|
|
|
if (manager != null && ManagerRole.BD_USER.hasRole(manager.getIntValue("role"))) {
|
|
|
|
|
params.put("bd_id", manager.getString("manager_id"));
|
|
|
|
|
List<Integer> orderTypes = Arrays.asList(RiskOrderTypeEnum.WECHAT_ORDER.getOrderType(),
|
|
|
|
|
RiskOrderTypeEnum.ALIPAY_ORDER.getOrderType());
|
|
|
|
|
RiskOrderTypeEnum.ALIPAY_ORDER.getOrderType(),RiskOrderTypeEnum.ROYALPAY_ORDER.getOrderType());
|
|
|
|
|
params.put("order_types", orderTypes);
|
|
|
|
|
|
|
|
|
|
List<Integer> resultTypes = Arrays.asList(RiskResultTypeEnum.SEND_EMAIL_TO_BD.getResultType(),
|
|
|
|
|
RiskResultTypeEnum.WAIT_FOR_AUDIT.getResultType(),
|
|
|
|
|
RiskResultTypeEnum.MATERIAL_AUDIT_PASS.getResultType(),
|
|
|
|
|
RiskResultTypeEnum.MATERIAL_NOT_PASS.getResultType());
|
|
|
|
|
RiskResultTypeEnum.MATERIAL_NOT_PASS.getResultType(),
|
|
|
|
|
RiskResultTypeEnum.ALREADY_HANDLED.getResultType());
|
|
|
|
|
params.put("result_types", resultTypes);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -374,7 +375,24 @@ public class RiskBusinessServiceImpl implements RiskBusinessService, ManagerTodo
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void updateRiskEvent(JSONObject params) {
|
|
|
|
|
public void updateRiskEvent(JSONObject params,JSONObject manager) {
|
|
|
|
|
if(StringUtils.isNotBlank(params.getString("channel_result"))){
|
|
|
|
|
JSONObject risk = riskEventMapper.findById(params.getString("risk_id"));
|
|
|
|
|
//填写渠道处理结果时候,支付宝、微信和内部调单在材料审核通过前无法填写渠道处理结果
|
|
|
|
|
if(params.getIntValue("result_type") < RiskResultTypeEnum.MATERIAL_AUDIT_PASS.getResultType() && params.getIntValue("order_type") < RiskOrderTypeEnum.WARNING_ORDER.getOrderType()){
|
|
|
|
|
throw new BadRequestException("请先提交渠道方材料进行审核!");
|
|
|
|
|
}
|
|
|
|
|
//渠道处理结果不一样,才会记录操作并更改事件单状态为渠道方处理结果
|
|
|
|
|
if(risk.getString("channel_result")==null || !risk.getString("channel_result").equals(params.getString("channel_result"))){
|
|
|
|
|
params.put("result_type",RiskResultTypeEnum.ALREADY_HANDLED.getResultType());
|
|
|
|
|
riskProcessLogService.addRiskProcessLog(params.getString("risk_id"),
|
|
|
|
|
manager.getString("manager_id"),
|
|
|
|
|
manager.getString("display_name"),
|
|
|
|
|
RiskResultTypeEnum.ALREADY_HANDLED.getRemark() + ":"+ params.getString("channel_result"),
|
|
|
|
|
params.getIntValue("result_type"),
|
|
|
|
|
RiskResultTypeEnum.ALREADY_HANDLED.getResultType());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
params = getEvent(params);
|
|
|
|
|
riskEventMapper.update(params);
|
|
|
|
|
riskOrdersMapper.clearOrders(params.getString("risk_id"));
|
|
|
|
|