|
|
|
@ -18,6 +18,7 @@ import au.com.royalpay.payment.manage.pushMessage.bean.AppManagerMessageBuilder;
|
|
|
|
|
import au.com.royalpay.payment.manage.riskbusiness.core.RiskBusinessService;
|
|
|
|
|
import au.com.royalpay.payment.manage.riskbusiness.core.RiskMaterialService;
|
|
|
|
|
import au.com.royalpay.payment.manage.riskbusiness.core.RiskProcessLogService;
|
|
|
|
|
import au.com.royalpay.payment.manage.riskbusiness.core.RiskUploadService;
|
|
|
|
|
import au.com.royalpay.payment.manage.riskbusiness.enums.RiskEmailStatusEnum;
|
|
|
|
|
import au.com.royalpay.payment.manage.riskbusiness.enums.RiskResultTypeEnum;
|
|
|
|
|
import au.com.royalpay.payment.manage.signin.beans.TodoNotice;
|
|
|
|
@ -100,6 +101,8 @@ public class RiskBusinessServiceImpl implements RiskBusinessService, ManagerTodo
|
|
|
|
|
@Resource
|
|
|
|
|
private TradeLogService tradeLogService;
|
|
|
|
|
@Resource
|
|
|
|
|
private RiskUploadService riskUploadService;
|
|
|
|
|
@Resource
|
|
|
|
|
private RoyalThreadPoolExecutor royalThreadPoolExecutor;
|
|
|
|
|
private final String UPLOAD_MAIL_PREFIX = "UPLOAD_MAIL";
|
|
|
|
|
|
|
|
|
@ -1247,6 +1250,25 @@ public class RiskBusinessServiceImpl implements RiskBusinessService, ManagerTodo
|
|
|
|
|
riskEventMapper.update(params);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void commitWaitRiskStatus(String riskId, String codeKey, JSONObject manager) {
|
|
|
|
|
JSONObject event = riskEventMapper.findById(riskId);
|
|
|
|
|
if (event.getIntValue("result_type") != RiskResultTypeEnum.SEND_EMAIL_TO_BD.getResultType() &&event.getIntValue("result_type") != RiskResultTypeEnum.MATERIAL_NOT_PASS.getResultType()) {
|
|
|
|
|
throw new BadRequestException("风控调单不存在或资料已补全");
|
|
|
|
|
}
|
|
|
|
|
if(event.getIntValue("result_type")!= RiskResultTypeEnum.MATERIAL_AUDIT_PASS.getResultType()){
|
|
|
|
|
event.put("result_type", RiskResultTypeEnum.WAIT_FOR_AUDIT.getResultType());
|
|
|
|
|
riskEventMapper.update(event);
|
|
|
|
|
}
|
|
|
|
|
riskProcessLogService.addRiskProcessLog(riskId,
|
|
|
|
|
manager.getString("manager_id"),
|
|
|
|
|
manager.getString("display_name"),
|
|
|
|
|
RiskResultTypeEnum.WAIT_FOR_AUDIT.getRemark(),
|
|
|
|
|
RiskResultTypeEnum.SEND_EMAIL_TO_BD.getResultType(),
|
|
|
|
|
RiskResultTypeEnum.WAIT_FOR_AUDIT.getResultType());
|
|
|
|
|
riskUploadService.deleteUploadMailKey(codeKey);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Transactional
|
|
|
|
|
@Override
|
|
|
|
|
public JSONObject riskEventMaterialPass(JSONObject params, JSONObject manager) {
|
|
|
|
|