修改根据租车套餐id获取租电套餐的接口,增加电池列表

This commit is contained in:
2025-07-28 20:36:27 +08:00
parent f9eeba6e5e
commit bc7ec98b13
6 changed files with 46 additions and 11 deletions

View File

@ -4,11 +4,13 @@
<select id="queryRentBatteyRuleByCarRuleId" resultType="com.sczx.car.dto.RentBatteyRuleDTO">
SELECT
b.*
b.*,c.category_name
FROM
zc_rent_car_rule_battery rcb
JOIN
zc_rent_battey_rule b ON rcb.battery_rule_id = b.id
JOIN
zc_battery_category c ON b.category_id = c.id
WHERE
rcb.car_rule_id = #{carRuleId}
AND b.is_delete = 0