车辆相关配置

This commit is contained in:
yanglei 2025-12-04 08:58:31 +08:00
parent 8648f6a51d
commit f580956f19
2 changed files with 3 additions and 5 deletions

View File

@ -4,8 +4,6 @@ import com.cdzy.operations.model.dto.EbikeDispatchConfigurationDto;
import com.cdzy.operations.model.entity.EbikeDispatchConfiguration;
import com.mybatisflex.core.service.IService;
import java.util.List;
/**
* 车辆相关配置 服务层
*
@ -20,7 +18,7 @@ public interface EbikeDispatchConfigurationService extends IService<EbikeDispatc
*
* @return 配置项
*/
List<EbikeDispatchConfiguration> getConfigurationByOperationId();
EbikeDispatchConfiguration getConfigurationByOperationId();
/**
* 配置项保存

View File

@ -24,10 +24,10 @@ import static com.cdzy.operations.model.entity.table.EbikeDispatchConfigurationT
public class EbikeDispatchConfigurationServiceImpl extends ServiceImpl<EbikeDispatchConfigurationMapper, EbikeDispatchConfiguration> implements EbikeDispatchConfigurationService {
@Override
public List<EbikeDispatchConfiguration> getConfigurationByOperationId() {
public EbikeDispatchConfiguration getConfigurationByOperationId() {
QueryWrapper queryWrapper = QueryWrapper.create()
.select(EBIKE_DISPATCH_CONFIGURATION.ALL_COLUMNS);
return this.mapper.selectListByQuery(queryWrapper);
return this.mapper.selectOneByQuery(queryWrapper);
}
@Override