|
|
@@ -27,6 +27,7 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import springfox.documentation.annotations.ApiIgnore;
|
|
|
|
|
|
+import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
@@ -89,4 +90,11 @@ public class DictBizClient implements IDictBizClient {
|
|
|
.eq(DictBiz::getDictKey, dictKey)));
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ @GetMapping(GET_DICT_BIZ_LIST_BY_TENANT_ID)
|
|
|
+ public List<DictBiz> getDictBizListByTenantId(String key, String tenantId) {
|
|
|
+ return service.list(new LambdaQueryWrapper<DictBiz>().eq(DictBiz::getCode, key)
|
|
|
+ .eq(DictBiz::getTenantId, tenantId).eq(DictBiz::getIsDeleted, 0).eq(DictBiz::getIsSealed, 0).ne(DictBiz::getParentId, 0));
|
|
|
+ }
|
|
|
+
|
|
|
}
|