| | |
| | | * @return 查询结果 |
| | | */ |
| | | @Override |
| | | public R<IPage<BtmTypeVO>> getRef(Map<String, Object> condition, Query query, String domain) { |
| | | 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)); |
| | | IPage<BtmTypeVO> pageVO = new Page<>(); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 参照列表查询 |
| | | * |
| | | * @param condition 查询条件 |
| | | * @param domain 领域值 |
| | | * @return 查询结果 |
| | | */ |
| | | @Override |
| | | 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 R.data(BtmTypeWrapper.build().listEntityVO(list)); |
| | | } |
| | | |
| | | /** |
| | | * 根据英文名称批量查询对象 |
| | | * |
| | | * @param ids 对象英文名称 但是不能超过1000 |