wangming 2 weeks ago
parent
commit
9dfb2f9cce
1 changed files with 2 additions and 0 deletions
  1. 2 0
      yami-shop-service/src/main/resources/mapper/ProdCommMapper.xml

+ 2 - 0
yami-shop-service/src/main/resources/mapper/ProdCommMapper.xml

@@ -164,6 +164,7 @@
         WHERE a.order_number in (SELECT a.order_number FROM tz_order_item a
         LEFT JOIN tz_order b on a.order_number=b.order_number
         WHERE a.prod_id = #{prodId} and a.shop_id = #{shopId} and b.channel_id=#{channelId}) and a.`status`=1
+        <if test="commStatus != null">
         <choose>
             <when test="commStatus == 3">
                 and !ISNULL(a.pics)
@@ -172,6 +173,7 @@
                 and a.evaluate = #{commStatus}
             </otherwise>
         </choose>
+        </if>
         ORDER BY a.rec_time desc
     </select>