Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zhj-report
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
data-spider
zhj-report
Commits
0e02425f
Commit
0e02425f
authored
Jul 24, 2020
by
董建华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改sql
parent
71728f2f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
BaiHangReportAndSearchNum.java
...om/service/statistics/impl/BaiHangReportAndSearchNum.java
+2
-0
QueryStatisticsServiceImpl.java
...m/service/statistics/impl/QueryStatisticsServiceImpl.java
+1
-1
ZhjMapper.xml
src/main/resources/mybatis/report/ZhjMapper.xml
+5
-3
No files found.
src/main/java/com/service/statistics/impl/BaiHangReportAndSearchNum.java
View file @
0e02425f
...
...
@@ -64,12 +64,14 @@ public class BaiHangReportAndSearchNum implements GetReportAndSearchNum {
zxlm
.
setCorporation
(
Corporation
.
ZHONGXINLIMIN
);
zxlm
.
setQueryQuantity
(
zxLmSearchNum
);
zxlm
.
setReportNum
(
zxLmReportNum
);
zxlm
.
setMaxQueryNum
(
0L
);
QueryStatisticsEntry
gdxd
=
new
QueryStatisticsEntry
();
gdxd
.
setCorporation
(
Corporation
.
GUANGDAXIAODAI
);
gdxd
.
setQueryQuantity
(
gdXdSearchNum
);
gdxd
.
setReportNum
(
gdXdReportNum
);
gdxd
.
setMaxQueryNum
(
0L
);
//本月
Date
month
=
DateUtil
.
getDate
(
date
,
DateUtil
.
YYYY_MM
);
...
...
src/main/java/com/service/statistics/impl/QueryStatisticsServiceImpl.java
View file @
0e02425f
...
...
@@ -76,7 +76,7 @@ public class QueryStatisticsServiceImpl implements QueryStatisticsService {
List
<
QueryStatisticsEntry
>
byDate
=
v
.
getByDate
(
time
);
//查询本日有没有
List
<
QueryStatisticsEntry
>
byReportTime
=
queryStatisticsRepository
.
findByReportTimeAndDataSource
(
new
Timestamp
(
time
.
getTime
()),
v
.
getDataSource
());
.
findByReportTimeAndDataSource
(
new
Timestamp
(
DateUtil
.
getDate
(
time
,
DateUtil
.
YYYY_MM_DD
)
.
getTime
()),
v
.
getDataSource
());
byDate
.
stream
().
forEach
(
o
->
{
...
...
src/main/resources/mybatis/report/ZhjMapper.xml
View file @
0e02425f
...
...
@@ -10,11 +10,12 @@
and time_created >= #{start} and time_created
<
#{end}
</select>
<!--广达实体报送量-->
<!--广达实体报送量-->
<select
id=
"getGdXdReportNum"
resultType=
"long"
>
SELECT SUM(a.num)
from (
select
SUM(ifnull(loadcount,0))
ifnull(loadcount,0) num
from
reportrecord
where
...
...
@@ -25,6 +26,7 @@
issearch=1
and
status=1
) a
</select>
</mapper>
\ No newline at end of file
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