车辆相关配置
This commit is contained in:
parent
8648f6a51d
commit
f580956f19
@ -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();
|
||||
|
||||
/**
|
||||
* 配置项保存
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user