Browse Source

修改印刷相关的接口

宋悦 7 years ago
parent
commit
97d39166d6

+ 1 - 1
core-domain/src/main/java/cn/com/qmth/examcloud/service/core/repo/UserRepo.java

@@ -45,6 +45,6 @@ public interface UserRepo extends JpaRepository<User,Long>,QueryByExampleExecuto
             "And us.root_org_id = ? And ur.role_code = 'MARKER' And us.enable = 1 ORDER BY ?#{#pageable}",nativeQuery = true)
     Page<User> findMarkerByRootOrgId(Long rootOrgId, Pageable pageable);
 
-    @Query(nativeQuery = true,value = "SELECT DISTINCT * FROM ecs_core_user us, ecs_core_user_role ur WHERE us.user_type = 'PRINT' and us.id = ur.user_id and ur.role_code = 'PROJECT_MANAGER' And us.enable = 1")
+    @Query(nativeQuery = true,value = "SELECT DISTINCT * FROM ecs_core_user us, ecs_core_user_role ur WHERE us.type = 'PRINT' and us.id = ur.user_id and ur.role_code = 'PROJECT_MANAGER' And us.enable = 1")
     List<User> findPrintPm();
 }