回滚根据id查询文档库列表代码。

This commit is contained in:
wangzhijiang
2022-07-15 14:19:50 +08:00
parent 81f79f6d1e
commit dffe45c58b
@@ -450,13 +450,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
.collect(Collectors.toList());
}
} else {
fieldList = fieldList.stream().filter(e -> {
boolean showFlag = false;
if(YesOrNoEnum.YES.getValue().equals(StringUtils.valueOf(e.getIsQuery())) || e.getDbFieldName().equals("id")){
showFlag = true;
}
return showFlag;
}).collect(Collectors.toList());
fieldList = fieldList.stream().filter(e -> YesOrNoEnum.YES.getValue().equals(StringUtils.valueOf(e.getIsQuery()))).collect(Collectors.toList());
if(CutEnum.CN.getValue().equals(cut)){
fieldList = fieldList.stream().filter(e->!"title_en".equals(e.getDbFieldName())).collect(Collectors.toList());
}else{
@@ -3637,8 +3631,6 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
}
conditionSb.append(" and " + key + " like concat(concat('%','" + value + "'),'%') ESCAPE '/'");
// conditionSb.append(" and " + key + " like concat(concat('%','" + value + "'),'%')");
} else if (StringUtils.equals(fieldName,"id")){
conditionSb.append(" and " + key + " ='" + value + "'");
}
}
}