Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sunac_report
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
java-sunac-report
sunac_report
Commits
005fda73
Commit
005fda73
authored
Oct 09, 2017
by
Java-李昕颖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
城市下拉列表 工作台修改
parent
3321198b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
107 additions
and
14 deletions
+107
-14
ReportDao.xml
src/main/resources/mappings/modules/report/ReportDao.xml
+15
-10
reportForm.jsp
src/main/webapp/WEB-INF/views/modules/report/reportForm.jsp
+92
-4
No files found.
src/main/resources/mappings/modules/report/ReportDao.xml
View file @
005fda73
...
...
@@ -388,11 +388,12 @@
AND exchange_after_user = #{isAdmin}
</if>
<if
test=
"startDate != null"
>
AND create_date >= to_date(#{startDate}, 'yyyy-MM-dd')
<if
test=
"dbName == 'oracle'"
>
AND create_date >= to_date(#{startDate}, 'yyyy-MM-dd')
</if>
<if
test=
"dbName == 'mysql'"
>
AND DATE(create_date) >= #{startDate}
</if>
</if>
<if
test=
"endDate != null"
>
<if
test=
"dbName == 'oracle'"
>
AND create_date
<
= to_date( #{endDate}|| ' 23:59:59', 'yyyy-MM-dd hh24:mi:ss')
</if>
<if
test=
"dbName == 'mysql'"
>
AND
create_date
<
= CONCAT(#{endDate},' 23:59:59')
</if>
<if
test=
"dbName == 'mysql'"
>
AND
DATE(create_date)
<
= #{endDate}
</if>
</if>
GROUP BY report_status
</select>
...
...
@@ -405,11 +406,12 @@
AND exchange_after_user = #{isAdmin}
</if>
<if
test=
"startDate != null"
>
AND create_date >= to_date(#{startDate}, 'yyyy-MM-dd')
<if
test=
"dbName == 'oracle'"
>
AND create_date >= to_date(#{startDate}, 'yyyy-MM-dd')
</if>
<if
test=
"dbName == 'mysql'"
>
AND DATE(create_date) >= #{startDate}
</if>
</if>
<if
test=
"endDate != null"
>
<if
test=
"dbName == 'oracle'"
>
AND create_date
<
= to_date( #{endDate}|| ' 23:59:59', 'yyyy-MM-dd hh24:mi:ss')
</if>
<if
test=
"dbName == 'mysql'"
>
AND
create_date
<
= CONCAT(#{endDate},' 23:59:59')
</if>
<if
test=
"dbName == 'mysql'"
>
AND
DATE(create_date)
<
= #{endDate}
</if>
</if>
GROUP BY deal_result
</select>
...
...
@@ -422,11 +424,12 @@
AND exchange_after_user = #{isAdmin}
</if>
<if
test=
"startDate != null"
>
AND create_date >= to_date(#{startDate}, 'yyyy-MM-dd')
<if
test=
"dbName == 'oracle'"
>
AND create_date >= to_date(#{startDate}, 'yyyy-MM-dd')
</if>
<if
test=
"dbName == 'mysql'"
>
AND DATE(create_date) >= #{startDate}
</if>
</if>
<if
test=
"endDate != null"
>
<if
test=
"dbName == 'oracle'"
>
AND create_date
<
= to_date( #{endDate}|| ' 23:59:59', 'yyyy-MM-dd hh24:mi:ss')
</if>
<if
test=
"dbName == 'mysql'"
>
AND
create_date
<
= CONCAT(#{endDate},' 23:59:59')
</if>
<if
test=
"dbName == 'mysql'"
>
AND
DATE(create_date)
<
= #{endDate}
</if>
</if>
GROUP BY report_source
</select>
...
...
@@ -439,11 +442,12 @@
AND exchange_after_user = #{isAdmin}
</if>
<if
test=
"startDate != null"
>
AND create_date >= to_date(#{startDate}, 'yyyy-MM-dd')
<if
test=
"dbName == 'oracle'"
>
AND create_date >= to_date(#{startDate}, 'yyyy-MM-dd')
</if>
<if
test=
"dbName == 'mysql'"
>
AND DATE(create_date) >= #{startDate}
</if>
</if>
<if
test=
"endDate != null"
>
<if
test=
"dbName == 'oracle'"
>
AND create_date
<
= to_date( #{endDate}|| ' 23:59:59', 'yyyy-MM-dd hh24:mi:ss')
</if>
<if
test=
"dbName == 'mysql'"
>
AND
create_date
<
= CONCAT(#{endDate},' 23:59:59')
</if>
<if
test=
"dbName == 'mysql'"
>
AND
DATE(create_date)
<
= #{endDate}
</if>
</if>
GROUP BY supplement_type
</select>
...
...
@@ -483,11 +487,12 @@
AND r.exchange_after_user = #{isAdmin}
</if>
<if
test=
"startDate != null"
>
AND r.create_date >= to_date(#{startDate}, 'yyyy-MM-dd')
<if
test=
"dbName == 'oracle'"
>
AND create_date >= to_date(#{startDate}, 'yyyy-MM-dd')
</if>
<if
test=
"dbName == 'mysql'"
>
AND DATE(create_date) >= #{startDate}
</if>
</if>
<if
test=
"endDate != null"
>
<if
test=
"dbName == 'oracle'"
>
AND create_date
<
= to_date( #{endDate}|| ' 23:59:59', 'yyyy-MM-dd hh24:mi:ss')
</if>
<if
test=
"dbName == 'mysql'"
>
AND
create_date
<
= CONCAT(#{endDate},' 23:59:59')
</if>
<if
test=
"dbName == 'mysql'"
>
AND
DATE(create_date)
<
= #{endDate}
</if>
</if>
<if
test=
"dbName == 'oracle'"
>
AND rownum
<
= 10
</if>
order by r.create_date desc
...
...
src/main/webapp/WEB-INF/views/modules/report/reportForm.jsp
View file @
005fda73
This diff is collapsed.
Click to expand it.
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