| | |
| | | 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; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.Collection; |
| | |
| | | |
| | | /** |
| | | * 参照列表查询 |
| | | * @param condition 查询条件 |
| | | * @param query 分页条件 |
| | | * @param domain 领域值 |
| | | * @param baseQueryObject 查询条件对象 |
| | | * @return 查询结果 |
| | | */ |
| | | @GetMapping(GET_REF_PAGE) |
| | | R<IPage<BtmTypeVO>> getRefPage(@RequestParam("condition")Map<String,Object> condition, @RequestParam("query")Query query, @RequestParam("domain") String domain); |
| | | @PostMapping(GET_REF_PAGE) |
| | | R<Page<BtmTypeVO>> getRefPage(@RequestBody BaseQueryObject baseQueryObject); |
| | | |
| | | /** |
| | | * 参照列表查询 |
| | | * @param condition 查询条件 |
| | | * @param domain 领域值 |
| | | * @param baseQueryObject 查询条件对象 |
| | | * @return 查询结果 |
| | | */ |
| | | @GetMapping(GET_REF) |
| | | R<List<BtmTypeVO>> getRef(@RequestParam("condition")Map<String,Object> condition,@RequestParam("domain") String domain); |
| | | @PostMapping(GET_REF) |
| | | R<List<BtmTypeVO>> getRef(@RequestBody BaseQueryObject baseQueryObject); |
| | | |
| | | /** |
| | | * 根据英文名称批量查询对象 |
| | | * @param ids 对象英文名称 但是不能超过1000 |
| | | * @return 业务对象 |
| | | */ |
| | | @GetMapping(GET_BY_IDS) |
| | | R<List<BtmTypeVO>> selectByIdCollection(List<String> ids); |
| | | @PostMapping(GET_BY_IDS) |
| | | R<List<BtmTypeVO>> selectByIdCollection(@RequestBody List<String> ids); |
| | | |
| | | /** |
| | | * 批量根据主键获取业务类型 |
| | | * @param pkBtmTypeCollection 业务类型主键集合 |
| | | * @return 业务类型列表,如果有不存在的不会返回,全部不存在的则返回空列表 |
| | | */ |
| | | @GetMapping(GET_BY_OIDS) |
| | | R<List<BtmTypeVO>> listBtmTypeByOidCollection(Collection<String> pkBtmTypeCollection); |
| | | @PostMapping(GET_BY_OIDS) |
| | | R<List<BtmTypeVO>> listBtmTypeByOidCollection(@RequestBody List<String> pkBtmTypeCollection); |
| | | } |