Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dankal-data-view
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
仲光辉
dankal-data-view
Commits
f2e64229
Commit
f2e64229
authored
May 26, 2025
by
mercymodest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:- add sql
parent
ac7a08fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
塞纳设备版本统计.sql
数据统计SQL/塞纳设备版本统计.sql
+26
-1
No files found.
数据统计SQL/塞纳设备版本统计.sql
View file @
f2e64229
-- 机构
设备数量
-- 机构
设备数量
...
...
@@ -66,3 +66,28 @@ FROM (SELECT o.org_name AS `机构名称`,
GROUP
BY
d
.
current_device_application_version
ORDER
BY
`设备数量`
DESC
)
AS
t
;
#
机构在线用户信息
SELECT
u
.
user_name
AS
`用户姓名`
,
u
.
nick_name
AS
`用户昵称`
,
u
.
email
AS
`用户邮箱`
,
#
用户状态,
0
:
禁用,
1
:
启用
case
u
.
user_status
when
0
then
'禁用'
when
1
then
'启用'
else
'未知状态'
end
AS
`用户状态(禁用/启用)`
,
#
用户类型,
0
:
普通用户,
1
:
会员用户
case
u
.
user_type
when
0
then
'普通用户'
when
1
then
'会员用户'
else
'未知类型'
end
AS
`用户类型(普通用户/会员用户)`
FROM
t_user
AS
u
INNER
JOIN
t_user_device_codes
AS
udc
ON
udc
.
user_id
=
u
.
user_id
AND
udc
.
is_delete
=
0
INNER
JOIN
t_device
AS
d
ON
d
.
device_id
=
udc
.
device_id
WHERE
d
.
org_id
=
1843925053672611842
AND
d
.
is_delete
=
0
AND
u
.
is_delete
=
0
GROUP
BY
u
.
user_id
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment