田源
2023-05-09 d2570148ec3884de3af721bd99c4b7acbbdee075
Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/feign/IBtmTypeFallback.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,94 @@
/*
 *      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>> getRefPage(Map<String, Object> condition, Query query, String domain) {
      return R.fail("获取数据失败");
   }
   /**
    * å‚照列表查询
    *
    * @param condition æŸ¥è¯¢æ¡ä»¶
    * @param domain    é¢†åŸŸå€¼
    * @return æŸ¥è¯¢ç»“æžœ
    */
   @Override
   public R<List<BtmTypeVO>> getRef(Map<String, Object> condition, 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("获取数据失败");
   }
}