Files
2026-03-01 01:43:46 +08:00

36 lines
1.7 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
![](../../../../attachment/images-uuid/669ce859e61949c08e9426614a9d94b5.png)
![](../../../../attachment/images-uuid/4686ac4a33b346bd904bf2dee304f3db.png)
![](../../../../attachment/images-uuid/37b7cab006504b128372e1b0a401284f.png)
这个筛选框**不是取的枚举值**,前端是根据/api/platform/productId/info 接口返回的数据提取的。
大概就是首先根据用户权限拿到他能看到的企业,最后过滤只要 BSS 的。
然后根据 self\_service\_domain\_config、enterprise\_info、productid\_info 三张表联查得到数据,返回一个以平面为维度的数据组。
![](../../../../attachment/images-uuid/c420b49f3a3841ee88905b331b05a423.png)
**也就是这个【平面下有数据】并且这个用户有企业权限前端就能取到。**
代码中是通过 ServicePlatformEnum 的值去【selfServiceDomainConfigDao 表】检索。但是【域名表】存的是 DomainPlainEnum 的值。现在这几个平面正常是因为原来两个枚举值的**编号**相同,其中不同的自研平面是判定的时候不知道为啥用了正确的枚举。
![](../../../../attachment/images-uuid/291a315d137547209c52502a30a7b267.png)
![](../../../../attachment/images-uuid/78fa3f741b694d80bab59afee922b291.png)
解决后
![](../../../../attachment/images-uuid/53c52132ba4a4ad88f3d051d25b1448a.png)
```sql
SELECT e.ec_id,e.source,e.deleted,e.enterprise_ctf_enum,s.domain, s.domain_plain, e.enterprise_name, e.enterprise_cp_id, p.product_id, e.enterprise_id
FROM self_service_domain_config s
LEFT JOIN enterprise_info e
ON s.tenant_id = e.enterprise_id
LEFT JOIN productid_info p
ON e.ec_id = p.ec_id
WHERE s.domain_plain like '%4%';
```