소스 검색

客户查询BUG修复

anderx 7 년 전
부모
커밋
c8e1b48aaa
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      src/main/java/com/goafanti/common/mapper/UserMapperExt.xml

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

@@ -375,11 +375,9 @@
 		<if test="departmentId != null and departmentId !=''">
 		left join (select id
 		from admin 
+		where department_id=#{departmentId,jdbcType=VARCHAR}) d on a.aid = d.id
 		</if>
 		where a.type = 1 and a.status != 1
-		<if test="departmentId != null and departmentId !=''">
-		and department_id=#{departmentId,jdbcType=VARCHAR}) d on a.aid = d.id
-		</if>
 		<if test="aid != null and aid !=''">
 			and a.aid = #{aid,jdbcType=VARCHAR}
 		</if>