| | |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | |
| | | * @return 业务类型详情信息 |
| | | */ |
| | | @Override |
| | | @GetMapping(GET_DETAIL) |
| | | public R<BtmTypeVO> getDetail(String oid) { |
| | | return R.data(btmTypeService.getBtmTypeByOid(oid)); |
| | | } |
| | |
| | | * @return 查询结果 |
| | | */ |
| | | @Override |
| | | @GetMapping(GET_REF_PAGE) |
| | | public R<IPage<BtmTypeVO>> getRefPage(Map<String, Object> condition, Query query, String domain) { |
| | | Func.requireNotNull(domain,"领域值"); |
| | | IPage<BtmType> page = btmTypeService.page(Condition.getPage(query), Condition.getQueryWrapper(condition, BtmType.class).lambda().eq(BtmType::getDomain, domain).orderByAsc(BtmType::getId)); |
| | |
| | | * @return 查询结果 |
| | | */ |
| | | @Override |
| | | @GetMapping(GET_REF) |
| | | public R<List<BtmTypeVO>> getRef(Map<String, Object> condition, String domain) { |
| | | Func.requireNotNull(domain,"领域值"); |
| | | List<BtmType> list = btmTypeService.list(Condition.getQueryWrapper(condition, BtmType.class).lambda().eq(BtmType::getDomain, domain).orderByAsc(BtmType::getId)); |
| | |
| | | * @return 业务对象 |
| | | */ |
| | | @Override |
| | | @GetMapping(GET_BY_IDS) |
| | | public R<List<BtmTypeVO>> selectByIdCollection(List<String> ids) { |
| | | Func.requireNotNull(ids,"业务类型英文名称"); |
| | | List<BtmTypeVO> voList = BtmTypeWrapper.build().listEntityVO( |
| | |
| | | * @return 业务类型列表,如果有不存在的不会返回,全部不存在的则返回空列表 |
| | | */ |
| | | @Override |
| | | @GetMapping(GET_BY_OIDS) |
| | | public R<List<BtmTypeVO>> listBtmTypeByOidCollection(Collection<String> pkBtmTypeCollection) { |
| | | Func.requireNotNull(pkBtmTypeCollection,"业务类型主键"); |
| | | List<BtmTypeVO> voList = BtmTypeWrapper.build().listEntityVO( |