lihang
2023-06-02 59d3dce7cf32975e59935920968b2266af3c60a6
Source/UBCS/ubcs-service-api/ubcs-omd-api/src/main/java/com/vci/ubcs/omd/feign/IBtmTypeClient.java
@@ -1,10 +1,9 @@
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.vo.BtmTypeVO;
import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject;
import org.springblade.core.launch.constant.AppConstant;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
@@ -12,9 +11,7 @@
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.Collection;
import java.util.List;
import java.util.Map;
/**
 * Description: 业务类型Feign接口类
@@ -53,6 +50,12 @@
    */
   String GET_BY_OIDS = API_PREFIX + "/btm-type/get-by-oids";
   String GET_DEFAULT_ATTR_BY_BTM_ID = API_PREFIX + "/btm-attribute/get-default-attr-by-btm-id";
   String GET_ALL_ATTR_BY_BTM_ID = API_PREFIX + "/btm-attribute/get-all-attr-by-btm-id";
   String GET_ALL_ATTR_BY_BTM_OID = API_PREFIX + "/btm-attribute/get-all-attr-by-btm-oid";
   /**
    * 获取业务类型详情信息
    *
@@ -64,11 +67,12 @@
   /**
    * 参照列表查询
    *
    * @param baseQueryObject 查询条件对象
    * @return 查询结果
    */
   @GetMapping(GET_REF_PAGE)
   R<IPage<BtmTypeVO>> getRefPage(@RequestBody BaseQueryObject baseQueryObject);
   @PostMapping(GET_REF_PAGE)
   R<Page<BtmTypeVO>> getRefPage(@RequestBody BaseQueryObject baseQueryObject);
   /**
    * 参照列表查询
@@ -93,4 +97,31 @@
    */
   @PostMapping(GET_BY_OIDS)
   R<List<BtmTypeVO>> listBtmTypeByOidCollection(@RequestBody List<String> pkBtmTypeCollection);
   /**
    * 获取业务类型,只有默认字段
    *
    * @param btmTypeId 业务类型id
    * @return 默认字段属性
    */
   @GetMapping(GET_DEFAULT_ATTR_BY_BTM_ID)
   R<BtmTypeVO> getDefaultAttrByBtmId(@RequestParam("btmTypeId") String btmTypeId);
   /**
    * 获取业务类型,有所有的字段
    *
    * @param btmTypeId 业务类型id
    * @return 所有字段
    */
   @GetMapping(GET_ALL_ATTR_BY_BTM_ID)
   R<BtmTypeVO> getAllAttributeByBtmId(@RequestParam("btmTypeId") String btmTypeId);
   /**
    * 获取业务类型,有所有的字段
    *
    * @param btmTypeOid 业务类型主键
    * @return 所有字段
    */
   @GetMapping(GET_ALL_ATTR_BY_BTM_OID)
   R<BtmTypeVO> getAllAttributeByBtmOid(@RequestParam("btmTypeOid") String btmTypeOid);
}