|
@@ -110,4 +110,14 @@ public interface UserDao extends JpaSpecificationExecutor<User>, JpaRepository<U
|
|
|
@QueryHints({ @QueryHint(name = "org.hibernate.cacheable", value = "true") })
|
|
@QueryHints({ @QueryHint(name = "org.hibernate.cacheable", value = "true") })
|
|
|
@Query("select u.userUU from User u inner join u.enterprises as e where e.uu = :enUU and u.userUU = :userUU")
|
|
@Query("select u.userUU from User u inner join u.enterprises as e where e.uu = :enUU and u.userUU = :userUU")
|
|
|
public List<Long> findUserByEnUUAndUserUU(@Param("enUU") long enUU, @Param("userUU") long userUU);
|
|
public List<Long> findUserByEnUUAndUserUU(@Param("enUU") long enUU, @Param("userUU") long userUU);
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 按既有id与角色id查找人员信息
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param roleid
|
|
|
|
|
+ * @param userUU
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @Query(value = "select u.user_uu from sec$userrole_b2c u where u.role_id = :roleid and u.user_uu in :userUU" ,nativeQuery = true)
|
|
|
|
|
+ public List<Long> findUserByRoleAndUsers(@Param("roleid") long roleid, @Param("userUU") Long[] userUU);
|
|
|
}
|
|
}
|