流程详情导出时的审批意见问题

This commit is contained in:
zhaokaiyao@91isoft.com
2021-11-07 15:51:34 +08:00
parent 541c93a5bb
commit f0ed2b769d
@@ -524,13 +524,22 @@ public class WorkFlowController {
map.put("flag","未完成"); map.put("flag","未完成");
} }
if(map.get("comment")!=null && !map.get("comment").toString().equals("")){ if(map.get("comment")!=null && !map.get("comment").toString().equals("")){
if(map.get("comment").toString().equals("0")){ String comment = map.get("comment").toString();
map.put("comment","同意"); switch (comment){
}else if(map.get("comment").toString().equals("1")){ case "0":
map.put("comment","同意"); map.put("comment","同意");
}else{ break;
map.put("comment",map.get("commentText").toString()); case "1":
map.put("comment","不同意");
break;
default:
String commentText="";
map.put("comment",comment+map.get("commentText"));
} }
}else if (map.get("commentText")!=null && !"".equals(map.get("commentText"))){
map.put("comment",map.get("commentText").toString());
} }
ProcessDetailExport user = JSON.parseObject(JSON.toJSONString(map), ProcessDetailExport.class); ProcessDetailExport user = JSON.parseObject(JSON.toJSONString(map), ProcessDetailExport.class);
exportDatas.add(user); exportDatas.add(user);