增加租车详情页面的相关接口

This commit is contained in:
2025-07-13 20:17:51 +08:00
parent 5a83189579
commit f4b46b4fcd
21 changed files with 733 additions and 8 deletions

View File

@ -0,0 +1,27 @@
package com.sczx.car.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sczx.car.dto.RentBatteyRuleDTO;
import com.sczx.car.po.RentBatteyRulePO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* <p>
* 租电套餐计费规则 Mapper 接口
* </p>
*
* @author zhangli
* @since 2025-07-13 19:14:04
*/
public interface RentBatteyRuleMapper extends BaseMapper<RentBatteyRulePO> {
/**
* 根据 租车套餐id 查询 租电套餐计费规则
* @param carRuleId
* @return
*/
List<RentBatteyRuleDTO> queryRentBatteyRuleByCarRuleId(@Param("carRuleId") Integer carRuleId);
}

View File

@ -0,0 +1,28 @@
package com.sczx.car.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sczx.car.dto.RentCarRuleDTO;
import com.sczx.car.po.RentCarRulePO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* <p>
* 租车计费规则表 Mapper 接口
* </p>
*
* @author zhangli
* @since 2025-07-13 17:58:18
*/
public interface RentCarRuleMapper extends BaseMapper<RentCarRulePO> {
/**
* 根据门店以及车型ID查询租车计费规则
*
* @param carModelId 车型ID
* @param storeId 门店ID
* @return 租车计费规则列表
*/
List<RentCarRuleDTO> queryRentCarRulebyCarModelId(@Param("carModelId") Integer carModelId, @Param("storeId") Integer storeId);
}