Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
rpc-openplatform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 80b1ba28
authored
Dec 18, 2020
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
完成Dubbo基本开发 yangll
1 parent
e9549c0a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformApiCallMapper.xml
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformDeviceMapper.xml
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformApiCallMapper.xml
View file @
80b1ba2
...
@@ -48,21 +48,21 @@
...
@@ -48,21 +48,21 @@
</select>
</select>
<select
id=
"getApiCallGraphData"
resultType=
"java.util.Map"
>
<select
id=
"getApiCallGraphData"
resultType=
"java.util.Map"
>
select b.api_classification ,
select b.api_classification
as apiClassification
,
count(a.id) as num
count(a.id) as num
from t_platform_api_call a
from t_platform_api_call a
left join t_platform_api b
left join t_platform_api b
on a.api_id = b.id
on a.api_id = b.id
group by
b.api_c
lassification
group by
apiC
lassification
</select>
</select>
<select
id=
"getApiCallTrendList"
resultType=
"java.util.Map"
>
<select
id=
"getApiCallTrendList"
resultType=
"java.util.Map"
>
select
select
date_format(create_time,'%Y-%m-%d') as create
_t
ime,
date_format(create_time,'%Y-%m-%d') as create
T
ime,
count(id) as num
count(id) as num
from t_platform_api_call
from t_platform_api_call
where create_time >= #{statisticStartTime,jdbcType=TIMESTAMP}
where create_time >= #{statisticStartTime,jdbcType=TIMESTAMP}
and create_time
<
#{statisticEndTime,jdbcType=TIMESTAMP}
and create_time
<
#{statisticEndTime,jdbcType=TIMESTAMP}
group by create
_t
ime
group by create
T
ime
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
\ No newline at end of file
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformDeviceMapper.xml
View file @
80b1ba2
...
@@ -67,10 +67,10 @@
...
@@ -67,10 +67,10 @@
<select
id=
"getDeviceGraphData"
resultType=
"java.util.Map"
>
<select
id=
"getDeviceGraphData"
resultType=
"java.util.Map"
>
select
select
device_type,
device_type
as deviceType
,
count(id) as num
count(id) as num
from t_platform_device
from t_platform_device
group by device
_t
ype
group by device
T
ype
</select>
</select>
<select
id=
"getDeviceCountAuth"
resultType=
"java.lang.Integer"
>
<select
id=
"getDeviceCountAuth"
resultType=
"java.lang.Integer"
>
...
@@ -87,12 +87,12 @@
...
@@ -87,12 +87,12 @@
<select
id=
"getDeviceAccessTrendList"
resultType=
"java.util.Map"
>
<select
id=
"getDeviceAccessTrendList"
resultType=
"java.util.Map"
>
select
select
date_format(activat_time,'%Y-%m-%d') as activat
_t
ime,
date_format(activat_time,'%Y-%m-%d') as activat
T
ime,
count(id) as num
count(id) as num
from t_platform_device
from t_platform_device
where activat_time >= #{statisticStartTime,jdbcType=TIMESTAMP}
where activat_time >= #{statisticStartTime,jdbcType=TIMESTAMP}
and activat_time
<
#{statisticEndTime,jdbcType=TIMESTAMP}
and activat_time
<
#{statisticEndTime,jdbcType=TIMESTAMP}
group by activat
_t
ime
group by activat
T
ime
</select>
</select>
<select
id=
"getDeviceActivationStatistic"
resultType=
"map"
>
<select
id=
"getDeviceActivationStatistic"
resultType=
"map"
>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment