|
@@ -78,16 +78,23 @@
|
|
|
</select>
|
|
|
|
|
|
|
|
|
+ <select id="getUserByOrgName" resultMap="BaseResultMap">
|
|
|
+ select a.* from sys_user a, sys_organization org, sys_user_organization uo
|
|
|
+ where a.is_deleted = 'N' and org.is_deleted = 'N' and uo.is_deleted = 'N'
|
|
|
+ and a.id = uo.user_id and uo.organization_id = org.id and org.`name` like concat('%' ,#{orgName}, '%')
|
|
|
+ </select>
|
|
|
|
|
|
|
|
|
-<!-- <select id="selectUserInfoListPage" resultMap="BaseResultMap">
|
|
|
- select u.*
|
|
|
- LEFT JOIN sys_user_role ur on u.id= ur.user_id
|
|
|
- LEFT JOIN
|
|
|
- sys_role r on ur.role_id=r.id
|
|
|
- where u.is_deleted = 'N' and type = "0"
|
|
|
- ORDER BY gmt_create DESC
|
|
|
- </select> -->
|
|
|
+
|
|
|
+
|
|
|
+ <!-- <select id="selectUserInfoListPage" resultMap="BaseResultMap">
|
|
|
+ select u.*
|
|
|
+ LEFT JOIN sys_user_role ur on u.id= ur.user_id
|
|
|
+ LEFT JOIN
|
|
|
+ sys_role r on ur.role_id=r.id
|
|
|
+ where u.is_deleted = 'N' and type = "0"
|
|
|
+ ORDER BY gmt_create DESC
|
|
|
+ </select> -->
|
|
|
|
|
|
<!-- <select id="selectUserInfoPage" parameterType="com.diagbot.dto.UserInfoDTO" resultType="com.diagbot.dto.UserInfoDTO">
|
|
|
SELECT
|