dcs пре 2 месеци
родитељ
комит
0a014ca17e
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      virgo.api/src/main/resources/mapper/OrderInfoMapper.xml

+ 3 - 3
virgo.api/src/main/resources/mapper/OrderInfoMapper.xml

@@ -48,7 +48,7 @@
             <if test="orderNo != null">
                 and orderNo = #{orderNo}
             </if>
-            <if test="userId != 0">
+            <if test="userId != null">
                 and userId = #{userId}
             </if>
             <if test="productId != null">
@@ -81,7 +81,7 @@
             <if test="orderNo != null">
                 and orderNo = #{orderNo}
             </if>
-            <if test="userId != 0">
+            <if test="userId != null">
                 and userId = #{userId}
             </if>
             <if test="productId != null">
@@ -114,7 +114,7 @@
             <if test="p.orderNo != null">
                 and orderNo = #{p.orderNo}
             </if>
-            <if test="p.userId != 0">
+            <if test="p.userId != null">
                 and userId = #{p.userId}
             </if>
             <if test="p.productId != null">