소스 검색

修改团队客户查询SQL

wanghui 8 년 전
부모
커밋
776de75aa3
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/main/java/com/goafanti/common/mapper/CustomerMapper.xml

+ 6 - 0
src/main/java/com/goafanti/common/mapper/CustomerMapper.xml

@@ -417,6 +417,9 @@
      <if test="aid != null and aid != ''">
     	and (a.aid = #{aid,jdbcType=VARCHAR}
     </if>
+    <if test="aid == null or aid == ''">
+    	and (1=1
+    </if>
     <if test="paid != null and paid != ''">
     	or a.paid like concat('%',#{paid,jdbcType=VARCHAR},'%'))
     </if>
@@ -470,6 +473,9 @@
     <if test="aid != null and aid != ''">
     	and (a.aid = #{aid,jdbcType=VARCHAR}
     </if>
+    <if test="aid == null or aid == ''">
+    	and (1=1
+    </if>
     <if test="paid != null and paid != ''">
     	or a.paid like concat('%',#{paid,jdbcType=VARCHAR},'%'))
     </if>