Parcourir la source

积分订单管理后台数据只查询“1:待发货 2:待收货 3:已收货 4:售后中”四种

wangzhijun il y a 5 jours
Parent
commit
406d362e67

+ 4 - 0
nightFragrance-massage/src/main/resources/mapper/massage/ProductOrderInfoMapper.xml

@@ -140,6 +140,10 @@
         <if test="dto.logisticsNo != null and dto.logisticsNo != ''">
             AND oi.logistics_no LIKE CONCAT('%', #{dto.logisticsNo}, '%')
         </if>
+        <!-- 根据需求:1:待发货 2:待收货 3:已收货 4:售后中 -->
+        <if test="dto.orderStatus == null">
+            AND oi.order_status IN (1, 2, 3, 4)
+        </if>
         <if test="dto.orderStatus != null">
             AND oi.order_status = #{dto.orderStatus}
         </if>