支持无备注方案

This commit is contained in:
chackylee
2026-06-02 14:39:27 +08:00
parent 4345cf1917
commit 924f2f57dc

View File

@@ -35,7 +35,7 @@ public interface OrderMapper extends BaseMapper<Order> {
*/
@Select("SELECT * FROM t_order WHERE actual_amount = #{actualAmount} " +
"AND match_mode = 'DECREMENT' " +
"AND state = 0 " +
"AND state IN (0, 4) " +
"AND create_time BETWEEN #{startTime} AND #{endTime} " +
"ORDER BY create_time ASC LIMIT 1")
Order getDecrementOrderByAmount(BigDecimal actualAmount, Date startTime, Date endTime);