相关文件筛选
This commit is contained in:
parent
2616e51c46
commit
fbc8f3b0a7
@ -856,51 +856,55 @@ public class DesignerRelationShapeWeb extends ActionWeb {
|
|||||||
}
|
}
|
||||||
macroLibraries.put("treeData", jsonArr_new.toString());
|
macroLibraries.put("treeData", jsonArr_new.toString());
|
||||||
}else if(attrId.equals("R_relevant_flies")){
|
}else if(attrId.equals("R_relevant_flies")){
|
||||||
boolean publishflag=true;
|
for (int i = 0; i < objects.size(); i++) {
|
||||||
for (int i = 0; i < objects.size(); i++) {
|
JSONObject jsonObject = objects.getJSONObject(i);
|
||||||
JSONObject jsonObject = objects.getJSONObject(i);
|
String isParent=jsonObject.getString("isParent");
|
||||||
String isPublish=jsonObject.getString("isPublish");
|
if(isParent!=null){
|
||||||
String isParent=jsonObject.getString("isParent");
|
if(isParent.equals("false")){
|
||||||
String id=jsonObject.getString("id");
|
//过滤废止数据
|
||||||
if(isParent!=null){
|
RowMap rowMap=DBSql.getMap("SELECT * FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLNAME=? AND ISSTOP=? AND ISUSE=?",jsonObject.getString("name"),1,1);
|
||||||
if(isParent.equals("false")){
|
if(rowMap!=null){
|
||||||
if(isPublish!=null){
|
continue;
|
||||||
RowMap rowMap=DBSql.getMap("SELECT * FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLNAME=? AND ISPUBLISH=? AND ISUSE=?",jsonObject.getString("name"),1,1);
|
}
|
||||||
if(rowMap!=null){
|
RowMap publishRowMap=DBSql.getMap("SELECT * FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLNAME=? AND ISPUBLISH=? AND ISUSE=?",jsonObject.getString("name"),1,1);
|
||||||
jsonObject.put("nocheck",false);
|
if(publishRowMap!=null){
|
||||||
jsonArr_new.add(jsonObject);
|
jsonObject.put("nocheck",false);
|
||||||
}
|
jsonArr_new.add(jsonObject);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
jsonObject.put("nocheck", true);
|
jsonObject.put("nocheck", true);
|
||||||
jsonArr_new.add(jsonObject);
|
jsonArr_new.add(jsonObject);
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
jsonObject.put("nocheck", true);
|
||||||
|
jsonArr_new.add(jsonObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
macroLibraries.put("treeData", jsonArr_new.toString());
|
||||||
|
} else if(attrId.equals("support_files")) {
|
||||||
|
|
||||||
|
for (int i = 0; i < objects.size(); i++) {
|
||||||
|
JSONObject jsonObject = objects.getJSONObject(i);
|
||||||
|
String isParent=jsonObject.getString("isParent");
|
||||||
|
if(isParent!=null){
|
||||||
|
if(isParent.equals("false")){
|
||||||
|
//过滤废止数据
|
||||||
|
RowMap rowMap=DBSql.getMap("SELECT * FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLNAME=? AND ISSTOP=? AND ISUSE=?",jsonObject.getString("name"),1,1);
|
||||||
|
if(rowMap!=null){
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
jsonObject.put("nocheck", true);
|
jsonObject.put("nocheck", true);
|
||||||
jsonArr_new.add(jsonObject);
|
jsonArr_new.add(jsonObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
macroLibraries.put("treeData", jsonArr_new.toString());
|
|
||||||
} else if(attrId.equals("support_files")) {
|
|
||||||
for (int i = 0; i < objects.size(); i++) {
|
|
||||||
JSONObject jsonObject = objects.getJSONObject(i);
|
|
||||||
|
|
||||||
String isPublish=jsonObject.getString("isPublish");
|
|
||||||
if(isPublish!=null){
|
|
||||||
if(isPublish.equals("false")){
|
|
||||||
JSONObject node = objects.getJSONObject(i);
|
|
||||||
node.put("nocheck", "false");
|
|
||||||
jsonArr_new.add(node);
|
|
||||||
}
|
|
||||||
}else{
|
}else{
|
||||||
jsonArr_new.add(objects.getJSONObject(i));
|
jsonObject.put("nocheck", true);
|
||||||
|
jsonArr_new.add(jsonObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
macroLibraries.put("treeData", jsonArr_new.toString());
|
macroLibraries.put("treeData", treeJson);
|
||||||
}else{
|
}else{
|
||||||
macroLibraries.put("treeData", treeJson);
|
macroLibraries.put("treeData", treeJson);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user