anderx лет назад: 3
Родитель
Сommit
aa221a830e
1 измененных файлов с 0 добавлено и 3 удалено
  1. 0 3
      src/main/java/com/goafanti/common/mapper/UserMapperExt.xml

+ 0 - 3
src/main/java/com/goafanti/common/mapper/UserMapperExt.xml

@@ -390,9 +390,7 @@
 		select
 		select
 		count(0)
 		count(0)
 		from(select a.id from `user` a
 		from(select a.id from `user` a
-		<if test="name != null">
 		left join user_names un on a.id=un.uid
 		left join user_names un on a.id=un.uid
-		</if>
 		left join organization_identity b on a.id = b.uid
 		left join organization_identity b on a.id = b.uid
 		<if test="departmentId != null and departmentId !=''">
 		<if test="departmentId != null and departmentId !=''">
 		INNER join (select id
 		INNER join (select id
@@ -410,7 +408,6 @@
 				#{name}
 				#{name}
 			</foreach>
 			</foreach>
 			</if>
 			</if>
-
 		</if>
 		</if>
 	<if test="role == 1 and name != null">
 	<if test="role == 1 and name != null">
 		and un.name like concat('%', #{name},'%')
 		and un.name like concat('%', #{name},'%')