ludc
2023-04-26 3cb0cef6f7189dcbb537df52cef5921d1d2c3cd9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*
 *      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<BtmTypeVO> getDetail(String oid) {
        return R.fail("获取数据失败");
    }
 
    /**
     * 参照列表查询
     *
     * @param condition 查询条件
     * @param query     分页条件
     * @param domain    领域值
     * @return 查询结果
     */
    @Override
    public R<IPage<BtmTypeVO>> getRef(Map<String, Object> condition, Query query, String domain) {
        return R.fail("获取数据失败");
    }
 
    /**
     * 根据英文名称批量查询对象
     *
     * @param ids 对象英文名称 但是不能超过1000
     * @return 业务对象
     */
    @Override
    public R<List<BtmTypeVO>> selectByIdCollection(List<String> ids) {
        return R.fail("获取数据失败");
    }
 
    /**
     * 批量根据主键获取业务类型
     *
     * @param pkBtmTypeCollection 业务类型主键集合
     * @return 业务类型列表,如果有不存在的不会返回,全部不存在的则返回空列表
     */
    @Override
    public R<List<BtmTypeVO>> listBtmTypeByOidCollection(Collection<String> pkBtmTypeCollection) {
        return R.fail("获取数据失败");
    }
}