查询逻辑增加优化
This commit is contained in:
parent
5ba9659e72
commit
b23766cb36
@ -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)) {// 全集团,都有权限
|
||||
|
||||
Loading…
Reference in New Issue
Block a user