2025-12-03 16:41:46 +08:00
|
|
|
package com.cdzy.operations.service;
|
|
|
|
|
|
2026-01-09 09:42:43 +08:00
|
|
|
import com.cdzy.operations.model.dto.EbikeSaveConfigurationDto;
|
|
|
|
|
import com.cdzy.operations.model.dto.EbikeUpdateConfigurationDto;
|
2026-02-28 11:16:18 +08:00
|
|
|
import com.cdzy.operations.model.entity.EbikeCarrierConfiguration;
|
2025-12-03 16:41:46 +08:00
|
|
|
import com.mybatisflex.core.service.IService;
|
|
|
|
|
|
|
|
|
|
/**
|
2026-02-28 11:33:01 +08:00
|
|
|
* 运营商配置 服务层
|
2025-12-03 16:41:46 +08:00
|
|
|
*
|
|
|
|
|
* @author yanglei
|
|
|
|
|
* @since 2025-12-03 16:22
|
|
|
|
|
*/
|
|
|
|
|
|
2026-02-28 11:16:18 +08:00
|
|
|
public interface EbikeCarrierConfigurationService extends IService<EbikeCarrierConfiguration> {
|
2025-12-03 16:41:46 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据运营商id获取配置项(sql会自动拼接运营商id)
|
|
|
|
|
*
|
|
|
|
|
* @return 配置项
|
|
|
|
|
*/
|
2026-02-28 11:16:18 +08:00
|
|
|
EbikeCarrierConfiguration getConfigurationByOperationId(Long operatorId);
|
2025-12-03 16:41:46 +08:00
|
|
|
|
|
|
|
|
/**
|
2026-01-09 09:42:43 +08:00
|
|
|
* 保存配置项
|
2025-12-03 16:41:46 +08:00
|
|
|
*
|
2026-01-09 09:42:43 +08:00
|
|
|
* @param dto 配置项参数
|
2025-12-03 16:41:46 +08:00
|
|
|
*/
|
2026-01-09 09:42:43 +08:00
|
|
|
void saveConfiguration(EbikeSaveConfigurationDto dto);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据主键更新
|
|
|
|
|
*
|
|
|
|
|
* @param dto 配置项参数
|
|
|
|
|
*/
|
|
|
|
|
void updateConfiguration(EbikeUpdateConfigurationDto dto);
|
2026-02-28 11:16:18 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据运营商id查询电话
|
|
|
|
|
* @param operatorId 运营商id
|
|
|
|
|
* @return 运营商电话
|
|
|
|
|
*/
|
|
|
|
|
String getPhoneByOperatorId(Long operatorId);
|
2026-03-03 15:30:42 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据车辆编码查询运营商电话
|
|
|
|
|
* @param bikeCode 车辆编码
|
|
|
|
|
* @return 运营商电话
|
|
|
|
|
*/
|
|
|
|
|
String getPhoneByBikeCode(String bikeCode);
|
2025-12-03 16:41:46 +08:00
|
|
|
}
|