从Thinsboard api select time_dif, count(time_dif) as count
from
(
select datediff(so_so_close_time,date_closed) as time_dif
from `mbg_service_prd`.`mds_service_orders_base_cdl`
inner join `mbg_service_prd`.`rnt_incident_detail_base_cdl`
on
(srv_customer_phone = mobile_phone or srv_customer_email = email_address)
where (
(srv_customer_phone<>''or srv_customer_phone is not null)
or (srv_customer_email<>'' or srv_customer_email is not null)
or (mobile_phone<>'' or mobile_phoneis not null)
or (email_addressis<>'' or email_addressis not null)
)
)
group by time_dif
order by time_dif
返回租户管理列表。
/api/tenant/{tenantId}/users
但是,找不到输出{
"data": [
{
"additionalInfo": "string",
"authority": "SYS_ADMIN",
"createdTime": 0,
"customerId": {
"id": "string"
},
"email": "string",
...
的结果customerId
。
据我了解,租户管理员有很多客户。因此,我对Tenenant用户列表中api/customers
的含义感到好奇。