|
|
|
@ -9,18 +9,11 @@ import au.com.royalpay.payment.manage.riskbusiness.enums.RiskResultTypeEnum;
|
|
|
|
|
import au.com.royalpay.payment.tools.CommonConsts;
|
|
|
|
|
import au.com.royalpay.payment.tools.permission.enums.ManagerRole;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.sun.org.apache.xerces.internal.impl.dv.xs.BooleanDV;
|
|
|
|
|
import com.sun.org.apache.xpath.internal.operations.Bool;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
import java.text.DateFormat;
|
|
|
|
|
import java.text.ParseException;
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -56,6 +49,8 @@ public class RiskBusinessController {
|
|
|
|
|
@PostMapping(value = "events")
|
|
|
|
|
public void RegisterRiskEvent(@RequestBody JSONObject params,
|
|
|
|
|
@ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) {
|
|
|
|
|
params.put("fillin_id", manager.getString("manager_id"));
|
|
|
|
|
params.put("fillin_person", manager.getString("display_name"));
|
|
|
|
|
riskBusinessService.addRiskEvent(params, manager);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -128,5 +123,21 @@ public class RiskBusinessController {
|
|
|
|
|
JSONObject param = partnerQuery.toJsonParam();
|
|
|
|
|
return clientManager.getClientBySimpleQuery(param);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 更新库中的orderIds
|
|
|
|
|
@GetMapping(value = "/complete/real_order_id")
|
|
|
|
|
public void completeEventRealOrderIds() {
|
|
|
|
|
riskBusinessService.completeEventRealOrderIds();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/delete/event")
|
|
|
|
|
public void deleteRiskEvent(@RequestParam("risk_id") String riskId) {
|
|
|
|
|
riskBusinessService.deleteRiskEvent(riskId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/update/event/is_send_client")
|
|
|
|
|
public JSONObject updateRiskEventIsSendClient(@RequestParam("risk_id") String riskId) {
|
|
|
|
|
return riskBusinessService.updateIsSendClient(riskId);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|