姜永辉 1 год назад
Родитель
Сommit
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 != ''">