/*
|
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
|
*
|
* Redistribution and use in source and binary forms, with or without
|
* modification, are permitted provided that the following conditions are met:
|
*
|
* Redistributions of source code must retain the above copyright notice,
|
* this list of conditions and the following disclaimer.
|
* Redistributions in binary form must reproduce the above copyright
|
* notice, this list of conditions and the following disclaimer in the
|
* documentation and/or other materials provided with the distribution.
|
* Neither the name of the dreamlu.net developer nor the names of its
|
* contributors may be used to endorse or promote products derived from
|
* this software without specific prior written permission.
|
* Author: Chill 庄骞 (smallchill@163.com)
|
*/
|
package com.vci.ubcs.omd.feign;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.vci.ubcs.omd.entity.Attribute;
|
import com.vci.ubcs.omd.vo.BtmTypeVO;
|
import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject;
|
import org.springblade.core.mp.support.Query;
|
import org.springblade.core.tool.api.R;
|
import org.springframework.stereotype.Component;
|
|
import java.util.Collection;
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* Feign失败配置
|
*
|
* @author Chill
|
*/
|
@Component
|
public class IBtmTypeFallback implements IBtmTypeClient {
|
/**
|
* 获取业务类型详情信息
|
*
|
* @param oid 主键
|
* @return 业务类型详情信息
|
*/
|
@Override
|
public R<BtmTypeVO> getDetail(String oid) {
|
return R.fail("获取数据失败");
|
}
|
|
/**
|
* 参照列表查询
|
*
|
* @param baseQueryObject 查询条件对象
|
* @return 查询结果
|
*/
|
@Override
|
public R<Page<BtmTypeVO>> getRefPage(BaseQueryObject baseQueryObject) {
|
return R.fail("获取数据失败");
|
}
|
|
/**
|
* 参照列表查询
|
*
|
* @param baseQueryObject 查询条件对象
|
* @return 查询结果
|
*/
|
@Override
|
public R<List<BtmTypeVO>> getRef(BaseQueryObject baseQueryObject) {
|
return R.fail("获取数据失败");
|
}
|
|
/**
|
* 批量根据主键获取业务类型
|
*
|
* @param pkBtmTypeCollection 业务类型主键集合
|
* @return 业务类型列表,如果有不存在的不会返回,全部不存在的则返回空列表
|
*/
|
@Override
|
public R<List<BtmTypeVO>> listBtmTypeByOidCollection(List<String> pkBtmTypeCollection) {
|
return R.fail("获取数据失败");
|
}
|
|
/**
|
* 根据英文名称批量查询对象
|
*
|
* @param ids 对象英文名称 但是不能超过1000
|
* @return 业务对象
|
*/
|
@Override
|
public R<List<BtmTypeVO>> selectByIdCollection(List<String> ids) {
|
return R.fail("获取数据失败");
|
}
|
}
|