huangzhiguo 1 year ago
parent
commit
8b02fef5de
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/main/resources/mapper/ReceiptMapper.xml

+ 2 - 0
src/main/resources/mapper/ReceiptMapper.xml

@@ -1346,6 +1346,8 @@
                 AND (s.name LIKE CONCAT('%', #{shopName}, '%') or cso.shopOrderId = #{shopName})
             </if>
             AND cso.delFlag = '0'
+            AND cso.orderTime > '2023-01-01'
+            AND CSO.shopStatus NOT IN (0, 3, 4)
             and cso.organizeID = 0
             AND (cdr.payWay != 1 OR cdr.payWay IS NULL)
             AND (cdr.receiptStatus IS NULL OR cdr.receiptStatus = 1)