查询逻辑增加优化

This commit is contained in:
yujh 2025-04-29 17:45:10 +08:00
parent 5ba9659e72
commit b23766cb36

View File

@ -5594,7 +5594,11 @@ public class PALRepositoryQueryAPIManager {
BO bo = SDK.getBOAPI().query(newBoName).addQuery("PALVERSIONID=", model.getVersionId()).detail();
System.out.println(">>>>>>查询原有逻辑 = " + model.getVersionId());
if (bo == null) {
return false;
//如果查询不到就再查文件组ID找到版本最大的一条记录
bo = SDK.getBOAPI().query(newBoName).addQuery("FILEGROUPID=", model.getVersionId()).orderBy("VERSION").desc().detail();
if(bo == null){
return false;
}
}
String permType = bo.getString("PERMTYPE");
if ("1".equals(permType)) {// 全集团都有权限