|
|
|
@ -111,29 +111,29 @@ public class RiskBusinessController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/{risk_id}/upload_mail", method = RequestMethod.PUT)
|
|
|
|
|
@PutMapping("/{risk_id}/upload_mail")
|
|
|
|
|
public void uploadEmail(@PathVariable String risk_id) throws IOException {
|
|
|
|
|
riskBusinessService.sendUploadEmail(risk_id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/{risk_id}/refuse", method = RequestMethod.PUT)
|
|
|
|
|
@PutMapping("/{risk_id}/refuse")
|
|
|
|
|
public void refuseEmail(@PathVariable("risk_id") String riskId, @RequestBody JSONObject otherParams) throws IOException {
|
|
|
|
|
riskBusinessService.sendRefuseEmail(riskId, otherParams.getString("refuse_description"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/{risk_id}/material")
|
|
|
|
|
@GetMapping("/{risk_id}/material")
|
|
|
|
|
public JSONObject getRiskMaterial(@PathVariable("risk_id") String riskId) {
|
|
|
|
|
JSONObject param = new JSONObject();
|
|
|
|
|
param.put("risk_id", riskId);
|
|
|
|
|
return riskBusinessService.getRiskMaterial(param);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/{risk_id}/all_material_info")
|
|
|
|
|
@GetMapping("/{risk_id}/all_material_info")
|
|
|
|
|
public JSONObject getRiskAlMaterialInfo(@PathVariable("risk_id") String riskId) {
|
|
|
|
|
return riskBusinessService.getRiskEventMaterialsRemark(riskId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PutMapping(value = "/channel/{channel}/permission/{channelFlag}")
|
|
|
|
|
@PutMapping("/channel/{channel}/permission/{channelFlag}")
|
|
|
|
|
public void updateMerchantChannel(@RequestBody JSONObject params,
|
|
|
|
|
@PathVariable("channelFlag") Boolean channelFlag,
|
|
|
|
|
@PathVariable("channel") String channel,
|
|
|
|
@ -149,7 +149,7 @@ public class RiskBusinessController {
|
|
|
|
|
riskBusinessService.updateRiskEvent(params, manager);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PutMapping(value = "/partner/{isValid}")
|
|
|
|
|
@PutMapping("/partner/{isValid}")
|
|
|
|
|
public void updateMerchantValid(@RequestBody JSONObject params,
|
|
|
|
|
@PathVariable("isValid") Boolean isValid,
|
|
|
|
|
@ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) {
|
|
|
|
@ -196,28 +196,28 @@ public class RiskBusinessController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 更新库中的orderIds
|
|
|
|
|
@GetMapping(value = "/complete/real_order_id")
|
|
|
|
|
@GetMapping("/complete/real_order_id")
|
|
|
|
|
public void completeEventRealOrderIds() {
|
|
|
|
|
riskBusinessService.completeEventRealOrderIds();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/delete/event")
|
|
|
|
|
@GetMapping("/delete/event")
|
|
|
|
|
public void deleteRiskEvent(@RequestParam("risk_id") String riskId) {
|
|
|
|
|
riskBusinessService.deleteRiskEvent(riskId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/update/event/is_send_client")
|
|
|
|
|
@GetMapping("/update/event/is_send_client")
|
|
|
|
|
public JSONObject updateRiskEventIsSendClient(@RequestParam("risk_id") String riskId) {
|
|
|
|
|
return riskBusinessService.updateIsSendClient(riskId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/complete/event/order_amount")
|
|
|
|
|
@GetMapping("/complete/event/order_amount")
|
|
|
|
|
public String completeOrderAmount() {
|
|
|
|
|
riskBusinessService.completeOrderAmount();
|
|
|
|
|
return "SUCCESS";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PutMapping(value = "{risk_id}/remark")
|
|
|
|
|
@PutMapping("{risk_id}/remark")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public void updateRiskEventRemark(@PathVariable("risk_id") String riskId, @RequestBody JSONObject remark) {
|
|
|
|
|
riskBusinessService.updateRiskEventRemark(riskId, remark.getString("remark"));
|
|
|
|
|