瀏覽代碼

and cpId != ''

姜永辉 1 年之前
父節點
當前提交
909a4bc344
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/dk/oauth/mapper/integral/CouponUseMapper.xml

+ 1 - 1
src/main/java/com/dk/oauth/mapper/integral/CouponUseMapper.xml

@@ -53,7 +53,7 @@
     <!-- 通用条件列 -->
     <sql id="Condition">
         <where>
-            <if test="cpId != null and cpId != ''">
+            <if test="cpId != null and cpId != '' and cpId != 0">
                 AND tmcu.cp_id = #{cpId}
             </if>
             <if test="sendId != null and sendId != ''">