Explorar el Código

修改团队客户查询SQL

wanghui hace 8 años
padre
commit
776de75aa3
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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>