报告生成器查询逻辑代码补充提交
This commit is contained in:
parent
7d7f33c6b8
commit
01ed4ba72d
Binary file not shown.
@ -2228,7 +2228,7 @@ public class PALRepositoryQueryAPIManager {
|
||||
List<PALRepositoryModel> list = null;
|
||||
boolean isUsed = true;
|
||||
boolean isPublished = true;
|
||||
list = getPalRepositoryModelsByTeamIdByDeptId(wsId, context.getUID(), teamId, isUsed);
|
||||
list = getPalRepositoryModelsByTeamIdByDeptId(wsId, context.getUID(), teamId);
|
||||
if (list == null) {
|
||||
list = new ArrayList<PALRepositoryModel>();
|
||||
}
|
||||
@ -2317,8 +2317,8 @@ public class PALRepositoryQueryAPIManager {
|
||||
return result;
|
||||
}
|
||||
|
||||
public List<PALRepositoryModel> getPalRepositoryModelsByTeamIdByDeptId(String wsId, String userId, String teamId, boolean isUsed) {
|
||||
List<PALRepositoryModel> list = CoeProcessLevelUtil.getPermRepositoryListByDeptId(wsId, teamId, userId, null, null, isUsed);
|
||||
public List<PALRepositoryModel> getPalRepositoryModelsByTeamIdByDeptId(String wsId, String userId, String teamId) {
|
||||
List<PALRepositoryModel> list = CoeProcessLevelUtil.getPermRepositoryListByDeptId(wsId, teamId, userId, null, null);
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
@ -1617,14 +1617,17 @@ public class CoeProcessLevelUtil {
|
||||
}
|
||||
|
||||
|
||||
public static List<PALRepositoryModel> getPermRepositoryListByDeptId(String wsId, String teamId, String userId, String category, String method, boolean isUse) {
|
||||
public static List<PALRepositoryModel> getPermRepositoryListByDeptId(String wsId, String teamId, String userId, String category, String method) {
|
||||
List<PALRepositoryModel> result = new ArrayList<>();
|
||||
Set<String> versionIds = getPermRepositoryVersionIds(wsId, teamId, userId, category, method);
|
||||
for (String versionId : versionIds) {
|
||||
List<PALRepositoryModel> list = PALRepositoryCache.getByVersionId(versionId);
|
||||
if (list != null) {
|
||||
for (PALRepositoryModel model : list) {
|
||||
if ((isUse && model.isUse())) {
|
||||
if ((model.isUse() && model.getMethodId().equals("process.framework"))) {
|
||||
result.add(model);
|
||||
}
|
||||
if ((model.isPublish() && !model.getMethodId().equals("process.framework"))) {
|
||||
result.add(model);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user