Browse Source

修改合赢奖的计算程序

Yangzw 8 months ago
parent
commit
5ace65163a

+ 3 - 1
feifan-module-mall/feifan-module-trade-biz/src/main/resources/mapper/order/BrokerageUserMapper.xml

@@ -19,6 +19,7 @@
 
     </resultMap>
 
+<!--    参与 冻结转可用的订单计算-->
     <select id="queryAllOrder" resultMap="BaseResultMap">
         select tor.total_price as totalPrice,
                ps.cost_price as costPrice,
@@ -45,10 +46,11 @@
         where tor.pay_status = 1
         and toi.distribute_benefit = 0
         and (toi.after_sale_status = 0 or toi.after_sale_status = 61)
-        and tor.delivery_time &lt; DATE_SUB(NOW(), INTERVAL 7 DAY)
+        and tor.pay_time &lt; DATE_SUB(NOW(), INTERVAL 7 DAY)
 --           and tor.receiving_time &lt; DATE_SUB(NOW(), INTERVAL 7 DAY)
     </select>
 
+<!--    参与合赢奖的订单-->
     <select id="queryDailyOrder" resultMap="BaseResultMap">
         select tor.total_price as totalPrice,
                ps.cost_price as costPrice,