Sfoglia il codice sorgente

人员查询 数据去重

user5 4 anni fa
parent
commit
f81d57eab0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/main/resources/mappings/modules/sys/OfficeDao.xml

+ 1 - 1
src/main/resources/mappings/modules/sys/OfficeDao.xml

@@ -366,7 +366,7 @@
 		<include refid="officeJoins"/>
 		WHERE a.del_flag = #{DEL_FLAG_NORMAL} AND a.useable = '1'
 		AND a.id in (#{id},
-		(select u.office_id from work_project_user a, sys_user u where a.user_id = u.id and a.project_id = #{projectId}
+		(select distinct u.office_id from work_project_user a, sys_user u where a.user_id = u.id and a.project_id = #{projectId}
 		and a.is_master = 1)
 		)
 		ORDER BY a.code