From d2a6c37489f5f0877cc098356dcee1b472e50e81 Mon Sep 17 00:00:00 2001 From: lujian Date: Tue, 20 Nov 2018 12:01:48 +0800 Subject: [PATCH] update --- .../riskbusiness/core/impl/RiskMaterialServiceImpl.java | 7 +------ .../riskbusiness/core/impl/RiskUploadServiceIpml.java | 2 +- .../manage/riskbusiness/web/RiskBusinessController.java | 2 -- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/riskbusiness/core/impl/RiskMaterialServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/riskbusiness/core/impl/RiskMaterialServiceImpl.java index 915fd54f5..06efa92a1 100644 --- a/src/main/java/au/com/royalpay/payment/manage/riskbusiness/core/impl/RiskMaterialServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/riskbusiness/core/impl/RiskMaterialServiceImpl.java @@ -22,13 +22,8 @@ public class RiskMaterialServiceImpl implements RiskMaterialService { @Override public void updateRiskMaterial(String riskId, String description) { - System.out.println("--------------------------------------------------------"); - System.out.println("description: " + description); List materialList = riskMaterialMapper.findAllMaterials(riskId); - System.out.println("--------------------------------------------------------"); - System.out.println("materialList.size: "); - if (!materialList.isEmpty()) { - System.out.println(materialList.size()); + if (!materialList.isEmpty()){ JSONObject material = materialList.get(0); material.put("refuse_description", description); riskMaterialMapper.update(material); diff --git a/src/main/java/au/com/royalpay/payment/manage/riskbusiness/core/impl/RiskUploadServiceIpml.java b/src/main/java/au/com/royalpay/payment/manage/riskbusiness/core/impl/RiskUploadServiceIpml.java index 1bd58955b..65faa5f9e 100644 --- a/src/main/java/au/com/royalpay/payment/manage/riskbusiness/core/impl/RiskUploadServiceIpml.java +++ b/src/main/java/au/com/royalpay/payment/manage/riskbusiness/core/impl/RiskUploadServiceIpml.java @@ -40,7 +40,7 @@ public class RiskUploadServiceIpml implements RiskUploadService { @Override public void submitMaterial(JSONObject material) { JSONObject event = riskEventMapper.findById(material.getString("risk_id")); - material.put("update_time", DateFormatUtils.format(new Date(), "yyyy-MM-dd hh:mm:ss")); + material.put("update_time", DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm:ss")); riskMaterialMapper.save(material); material.put("material_id",riskMaterialMapper.findAllMaterials(material.getString("risk_id")).get(0).getString("material_id")); for(int i=1;i<=10;i++){ diff --git a/src/main/java/au/com/royalpay/payment/manage/riskbusiness/web/RiskBusinessController.java b/src/main/java/au/com/royalpay/payment/manage/riskbusiness/web/RiskBusinessController.java index a3d9306e4..94f684bb0 100644 --- a/src/main/java/au/com/royalpay/payment/manage/riskbusiness/web/RiskBusinessController.java +++ b/src/main/java/au/com/royalpay/payment/manage/riskbusiness/web/RiskBusinessController.java @@ -84,8 +84,6 @@ public class RiskBusinessController { @RequestMapping(value = "/{risk_id}/refuse",method = RequestMethod.PUT) public void refuseEmail(@PathVariable String risk_id, @RequestBody JSONObject otherParams) throws IOException { - System.out.println("--------------------------------------------------------"); - System.out.println("拒绝逻辑开始"); riskMaterialService.updateRiskMaterial(risk_id, otherParams.getString("refuse_description")); riskBusinessService.sendRefuseEmail(risk_id); }