|
|
|
@ -685,7 +685,12 @@ public class RiskBusinessServiceImpl implements RiskBusinessService, ManagerTodo
|
|
|
|
|
riskMaterialService.updateRiskMaterial(riskId, refuseDescription);
|
|
|
|
|
Context ctx = getMailContext(event);
|
|
|
|
|
ctx.setVariable("refuse",true);
|
|
|
|
|
ctx.setVariable("refuse_description", riskMaterialMapper.findAllMaterials(riskId).get(0).getString("refuse_description"));
|
|
|
|
|
List<JSONObject> findAllMaterials = riskMaterialMapper.findAllMaterials(riskId);
|
|
|
|
|
if (findAllMaterials == null || findAllMaterials.size() == 0) {
|
|
|
|
|
ctx.setVariable("refuse_description", "");
|
|
|
|
|
}else {
|
|
|
|
|
ctx.setVariable("refuse_description", findAllMaterials.get(0).getString("refuse_description"));
|
|
|
|
|
}
|
|
|
|
|
final List<String> emailsTos = (List<String>)ctx.getVariable("emailsTos");
|
|
|
|
|
final List<String> emailsCcs = ctx.getVariable("emailsCcs")==null?new ArrayList<>():(List<String>)ctx.getVariable("emailsCcs");
|
|
|
|
|
final String uploadUrl = (String)ctx.getVariable("uploadUrl");
|
|
|
|
|