停用套餐提示在用订单数

This commit is contained in:
19173159168
2025-09-13 22:24:48 +08:00
parent a5666e91fa
commit 4fa7688afc
6 changed files with 45 additions and 4 deletions

View File

@ -294,5 +294,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ORDER BY orderAmount DESC
LIMIT #{limit}
</select>
<select id="selectOrderCountByCarRuleId" resultType="java.lang.Integer">
SELECT count(1) as orderCount FROM zc_order_main where rent_car_rule_id = #{carRuleId} and order_status in ('WAIT_PAY','WAIT_PICK','RENT_ING','WAIT_RETURN','RENT_OVERDUE')
</select>
</mapper>