修正根据租电套餐查询电池信息的接口问题

This commit is contained in:
2025-09-18 23:47:14 +08:00
parent 9a5cc3f127
commit 0441587c7b
5 changed files with 27 additions and 10 deletions

View File

@ -15,4 +15,16 @@
rcb.car_rule_id = #{carRuleId}
AND b.is_delete = 0
</select>
<select id="getRentBatteyRuleById" resultType="com.sczx.car.dto.RentBatteyRuleDTO">
SELECT
b.*,c.category_name
FROM
zc_rent_battey_rule b
JOIN
zc_battery_category c ON b.category_id = c.id
WHERE
b.id = #{id}
AND b.is_delete = 0
</select>
</mapper>