Selaa lähdekoodia

招聘管理V2:团队管理动态数据权限

ZhangWenQiang 4 vuotta sitten
vanhempi
commit
4dd64a2ea2

+ 1 - 1
happy-job-module-crm/src/main/java/com/jeeplus/modules/omcandidate/mapper/xml/OmTeamManageMapper.xml

@@ -5,7 +5,7 @@
 	<select id="findList" resultType="OmTeamManage">
 		SELECT u.name AS name from sys_user u left join sys_office o on u.office_id = o.id			  
 		<where>
-			u.office_id = #{officeId} or (select find_in_set(#{officeId},o.parent_ids))>0
+			${dataScope}
 		</where>
 		<choose>
 			<when test="page !=null and page.orderBy != null and page.orderBy != ''">