Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
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
王衍超
cloud-fb
Commits
221c6ac8
Commit
221c6ac8
authored
May 31, 2021
by
wukaiqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复经营类报表数据查询不出问题。
parent
45f22a15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
OperationsReportsDaoImpl.java
...nas/statistics/internal/dao/OperationsReportsDaoImpl.java
+4
-4
No files found.
backend/xyst.dinas.statistics/src/main/java/com/xyst/dinas/statistics/internal/dao/OperationsReportsDaoImpl.java
View file @
221c6ac8
...
...
@@ -52,7 +52,7 @@ public class OperationsReportsDaoImpl implements OperationsReportsDao {
if
(
endDate
!=
null
&&
!(
endDate
.
isEmpty
()))
hql
.
append
(
" and salesSummary.deal_Time <= :endDate "
);
if
(
stationList
!=
null
&&
!(
stationList
.
isEmpty
()))
hql
.
append
(
" AND
station.id
IN ( :stationList ) "
);
hql
.
append
(
" AND
hex(salesSummary.station_id)
IN ( :stationList ) "
);
hql
.
append
(
" GROUP BY salesSummary.station_id,\r\n"
+
" salesSummary.dinas_type_id "
);
hql
.
append
(
" UNION ALL "
);
hql
.
append
(
...
...
@@ -79,7 +79,7 @@ public class OperationsReportsDaoImpl implements OperationsReportsDao {
if
(
endDate
!=
null
&&
!(
endDate
.
isEmpty
()))
hql
.
append
(
" and salesSummary.deal_Time <= :endDate "
);
if
(
stationList
!=
null
&&
!(
stationList
.
isEmpty
()))
hql
.
append
(
" AND
station.id
IN ( :stationList ) "
);
hql
.
append
(
" AND
hex(salesSummary.station_id)
IN ( :stationList ) "
);
hql
.
append
(
" GROUP BY salesSummary.station_id "
);
hql
.
append
(
" UNION ALL "
);
hql
.
append
(
" SELECT '总计' AS stationName, \r\n"
+
" '———' AS dinasTypeName, "
);
...
...
@@ -105,7 +105,7 @@ public class OperationsReportsDaoImpl implements OperationsReportsDao {
if
(
endDate
!=
null
&&
!(
endDate
.
isEmpty
()))
hql
.
append
(
" and salesSummary.deal_Time <= :endDate "
);
if
(
stationList
!=
null
&&
!(
stationList
.
isEmpty
()))
hql
.
append
(
" AND
station.id
IN ( :stationList ) "
);
hql
.
append
(
" AND
hex(salesSummary.station_id)
IN ( :stationList ) "
);
hql
.
append
(
" ) AS result "
);
hql
.
append
(
" ORDER BY (result.stationName = '总计') DESC,result.stationName, (result.dinasTypeName = '小计') ASC "
);
...
...
@@ -124,7 +124,7 @@ public class OperationsReportsDaoImpl implements OperationsReportsDao {
if
(
resultList
.
isEmpty
())
return
null
;
List
<
OperationsReports
>
list
=
new
ArrayList
<
OperationsReports
>();
if
(
l
ist
.
size
()
>
1
)
{
if
(
resultL
ist
.
size
()
>
1
)
{
for
(
Tuple
resule
:
resultList
)
{
OperationsReports
operationsReports
=
new
OperationsReports
();
if
(
String
.
valueOf
(
resule
.
get
(
0
))
!=
"null"
)
{
...
...
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