master
james.zhao 6 years ago
parent bbfcd63af5
commit 9e762fe398

@ -25,7 +25,7 @@ public class RiskFileUploadController {
@RequestMapping(value = "/{risk_id}/{codeKey}", method = RequestMethod.GET) @RequestMapping(value = "/{risk_id}/{codeKey}", method = RequestMethod.GET)
public ModelAndView jumpVerifyMail(@PathVariable String codeKey, @PathVariable String risk_id) { public ModelAndView jumpVerifyMail(@PathVariable String codeKey, @PathVariable String risk_id) {
//检查codekey是否有效 //检查codekey是否有效
riskUploadService.checkUploadMailKey(codeKey,risk_id); // riskUploadService.checkUploadMailKey(codeKey,risk_id);
JSONObject event = riskBusinessService.getRiskEventDetail(risk_id); JSONObject event = riskBusinessService.getRiskEventDetail(risk_id);
ModelAndView view = new ModelAndView("mail/risk_upload"); ModelAndView view = new ModelAndView("mail/risk_upload");
view.addObject("codeKey", codeKey); view.addObject("codeKey", codeKey);
@ -42,7 +42,7 @@ public class RiskFileUploadController {
*/ */
@RequestMapping(value = "/{codeKey}", method = RequestMethod.POST) @RequestMapping(value = "/{codeKey}", method = RequestMethod.POST)
public void upload(@PathVariable String codeKey, @RequestBody JSONObject material) { public void upload(@PathVariable String codeKey, @RequestBody JSONObject material) {
riskUploadService.checkUploadMailKey(codeKey, material.getString("risk_id")); // riskUploadService.checkUploadMailKey(codeKey, material.getString("risk_id"));
riskUploadService.submitMaterial(material); riskUploadService.submitMaterial(material);
riskUploadService.deleteUploadMailKey(codeKey); riskUploadService.deleteUploadMailKey(codeKey);
} }

Loading…
Cancel
Save