diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/mapper/xml/CardCouponUserMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/mapper/xml/CardCouponUserMapper.xml
index 3ef351cf5..be67a536e 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/mapper/xml/CardCouponUserMapper.xml
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/mapper/xml/CardCouponUserMapper.xml
@@ -123,6 +123,7 @@
+ order by ccu.update_time desc
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/CashierOrderMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/CashierOrderMapper.xml
index fbabd04b6..b64f4f7d5 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/CashierOrderMapper.xml
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/CashierOrderMapper.xml
@@ -97,20 +97,27 @@
count(CASE WHEN goods_order_amount > 0 THEN 1 ELSE null END) AS s9 -- 商品订单数量
from cashier_order
+ status = 'paid'
and staff_id = #{order.staffId}
+
+ and pay_type = #{order.payType}
+
and order_no like concat('%', #{order.orderNo}, '%')
+
+ and pay_user like concat('%', #{order.payUser}, '%')
+
and terminal like concat('%', #{order.terminal}, '%')
- and date_format(pay_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d')
+ and date_format(create_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d')
- and date_format(pay_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d')
+ and date_format(create_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d')
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml
index f854a1822..5d51a92a9 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml
@@ -548,7 +548,8 @@
sum( CASE WHEN pay_type = 'card_value' THEN pay_amount END ) AS cardValue
from oil_order
- store_id = #{order.storeId}
+ order_status = 'paid'
+ and store_id = #{order.storeId}
and user_id = #{order.userId}
diff --git a/fuintCashierWeb/src/views/cashier/NewComponents/writeList.vue b/fuintCashierWeb/src/views/cashier/NewComponents/writeList.vue
index 2e1c7bd32..a6541ddac 100644
--- a/fuintCashierWeb/src/views/cashier/NewComponents/writeList.vue
+++ b/fuintCashierWeb/src/views/cashier/NewComponents/writeList.vue
@@ -103,7 +103,7 @@