소스 검색

1.文书没发布 文书列表接口优化

赵越越 2 주 전
부모
커밋
6a42f14534
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      assistMg/src/main/java/com/hotent/project/manager/impl/CostProjectDocumentManagerImpl.java

+ 4 - 1
assistMg/src/main/java/com/hotent/project/manager/impl/CostProjectDocumentManagerImpl.java

@@ -150,7 +150,10 @@ public class CostProjectDocumentManagerImpl extends BaseManagerImpl<CostProjectD
             User user = userService.getByAccount(iUser.getAccount());
             List<AuditedUnit> auditedUnit=auditedUnitManager.getByUserAccount(user.getId());
             List<String> collected = auditedUnit.stream().map(AuditedUnit::getUnitId).distinct().collect(Collectors.toList());
-            qw.in(CostProjectDocument::getEnterpriseId, collected);
+            if(!collected.isEmpty()){
+                qw.in(CostProjectDocument::getEnterpriseId, collected);
+            }
+
         } else if (req.getPermissionType().equals(2)) {
             IUser iUser = ContextUtil.getCurrentUser();
             User user = userService.getByAccount(iUser.getAccount());