Browse Source

修改团队客户查询SQL

wanghui 8 years ago
parent
commit
776de75aa3
1 changed files with 6 additions and 0 deletions
  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>