增加租车详情页面的相关接口
This commit is contained in:
27
src/main/java/com/sczx/car/mapper/RentBatteyRuleMapper.java
Normal file
27
src/main/java/com/sczx/car/mapper/RentBatteyRuleMapper.java
Normal 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);
|
||||
|
||||
}
|
||||
28
src/main/java/com/sczx/car/mapper/RentCarRuleMapper.java
Normal file
28
src/main/java/com/sczx/car/mapper/RentCarRuleMapper.java
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user