| | |
| | | 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; |
| | |
| | | */ |
| | | String GET_BY_IDS = API_PREFIX + "/revision-rule/get-by-ids"; |
| | | /** |
| | | * 英文名称查询 |
| | | */ |
| | | String GET_BY_ID = API_PREFIX + "/revision-rule/get-by-id"; |
| | | /** |
| | | * 主键批量查询 |
| | | */ |
| | | String GET_BY_OIDS = API_PREFIX + "/revision-rule/get-by-oids"; |
| | |
| | | * @param ids 对象英文名称 但是不能超过1000 |
| | | * @return 业务对象 |
| | | */ |
| | | @GetMapping(GET_BY_IDS) |
| | | R<List<RevisionRuleVO>> selectByIdCollection(List<String> ids); |
| | | @PostMapping(GET_BY_IDS) |
| | | R<List<RevisionRuleVO>> selectByIdCollection(@RequestBody List<String> ids); |
| | | |
| | | /** |
| | | * 批量根据主键获取版本规则 |
| | |
| | | */ |
| | | @GetMapping(GET_BY_OIDS) |
| | | R<List<RevisionRuleVO>> listBtmTypeByOidCollection(Collection<String> pkBtmTypeCollection); |
| | | |
| | | /** |
| | | * 根据id获取版本规则 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping(GET_BY_ID) |
| | | R<RevisionRuleVO> selectById(@RequestParam("id") String id); |
| | | |
| | | } |