/* * 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.vci.ubcs.omd.entity.Attribute; import com.vci.ubcs.omd.vo.BtmTypeVO; 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 getDetail(String oid) { return R.fail("获取数据失败"); } /** * 参照列表查询 * * @param condition 查询条件 * @param query 分页条件 * @param domain 领域值 * @return 查询结果 */ @Override public R> getRefPage(Map condition, Query query, String domain) { return R.fail("获取数据失败"); } /** * 参照列表查询 * * @param condition 查询条件 * @param domain 领域值 * @return 查询结果 */ @Override public R> getRef(Map condition, String domain) { return R.fail("获取数据失败"); } /** * 根据英文名称批量查询对象 * * @param ids 对象英文名称 但是不能超过1000 * @return 业务对象 */ @Override public R> selectByIdCollection(List ids) { return R.fail("获取数据失败"); } /** * 批量根据主键获取业务类型 * * @param pkBtmTypeCollection 业务类型主键集合 * @return 业务类型列表,如果有不存在的不会返回,全部不存在的则返回空列表 */ @Override public R> listBtmTypeByOidCollection(Collection pkBtmTypeCollection) { return R.fail("获取数据失败"); } }