소스 검색

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

ZhangWenQiang 4 년 전
부모
커밋
4dd64a2ea2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      happy-job-module-crm/src/main/java/com/jeeplus/modules/omcandidate/mapper/xml/OmTeamManageMapper.xml

+ 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 != ''">