Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
d7bfb71b
Commit
d7bfb71b
authored
Jul 21, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usr表
parent
dbdff0e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ch-admin-api/src/main/java/com/wwdz/ch/admin/controller/AdminDashbordController.java
...com/wwdz/ch/admin/controller/AdminDashbordController.java
+2
-2
ch-dao/src/main/resources/com/wwdz/ch/db/dao/ex/StatMapper.xml
...o/src/main/resources/com/wwdz/ch/db/dao/ex/StatMapper.xml
+2
-2
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/controller/AdminDashbordController.java
View file @
d7bfb71b
...
@@ -48,11 +48,11 @@ public class AdminDashbordController {
...
@@ -48,11 +48,11 @@ public class AdminDashbordController {
int
userTotal
=
userService
.
count
();
int
userTotal
=
userService
.
count
();
int
goodsTotal
=
goodsService
.
count
();
int
goodsTotal
=
goodsService
.
count
();
int
productTotal
=
productService
.
count
();
//
int productTotal = productService.count();
Map
<
String
,
Integer
>
data
=
new
HashMap
<>();
Map
<
String
,
Integer
>
data
=
new
HashMap
<>();
data
.
put
(
"userTotal"
,
userTotal
);
data
.
put
(
"userTotal"
,
userTotal
);
data
.
put
(
"goodsTotal"
,
goodsTotal
);
data
.
put
(
"goodsTotal"
,
goodsTotal
);
data
.
put
(
"productTotal"
,
productTotal
);
//
data.put("productTotal", productTotal);
logger
.
info
(
"【请求结束】系统管理->首页仪表盘查询:响应结果:{}"
,
JSONObject
.
toJSONString
(
data
));
logger
.
info
(
"【请求结束】系统管理->首页仪表盘查询:响应结果:{}"
,
JSONObject
.
toJSONString
(
data
));
return
ResponseUtil
.
ok
(
data
);
return
ResponseUtil
.
ok
(
data
);
...
...
ch-dao/src/main/resources/com/wwdz/ch/db/dao/ex/StatMapper.xml
View file @
d7bfb71b
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<select
id=
"statisIncreaseUserCnt"
resultMap=
"DayStatis"
parameterType=
"map"
>
<select
id=
"statisIncreaseUserCnt"
resultMap=
"DayStatis"
parameterType=
"map"
>
select date_format(t.add_time,"%Y-%m-%d") as statis_day,count(1) as statis_cnts
select date_format(t.add_time,"%Y-%m-%d") as statis_day,count(1) as statis_cnts
from
dts_
user t where t.add_time
>
date_add(now(),interval -#{daysAgo} day)
from user t where t.add_time
>
date_add(now(),interval -#{daysAgo} day)
and t.deleted=0
and t.deleted=0
group by date_format(t.add_time,"%Y-%m-%d")
group by date_format(t.add_time,"%Y-%m-%d")
</select>
</select>
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
select
select
substr(add_time,1,10) as day,
substr(add_time,1,10) as day,
count(distinct id) as users
count(distinct id) as users
from
dts_
user
from user
group by substr(add_time,1,10)
group by substr(add_time,1,10)
</select>
</select>
...
...
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