master
lujian 6 years ago
parent 56602e9b09
commit d2a6c37489

@ -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<JSONObject> 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);

@ -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++){

@ -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);
}

Loading…
Cancel
Save