Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
data-acquisition
Project
Project
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
竹天卫
data-acquisition
Commits
d1c4fcbc
Commit
d1c4fcbc
authored
Jun 18, 2021
by
竹天卫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
统计日期筛选 格式
parent
1717d728
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
DataStatisticsMapper.xml
...e/sc/acquisition/business/mapper/DataStatisticsMapper.xml
+4
-8
No files found.
acquisition-business/target/classes/cn/wise/sc/acquisition/business/mapper/DataStatisticsMapper.xml
View file @
d1c4fcbc
...
@@ -15,7 +15,8 @@
...
@@ -15,7 +15,8 @@
<if
test=
"params.endDate != null and params.endDate != ''"
>
<if
test=
"params.endDate != null and params.endDate != ''"
>
and Convert(varchar(10),tw.Rq,120)
<![CDATA[ <= ]]>
#{params.endDate}
and Convert(varchar(10),tw.Rq,120)
<![CDATA[ <= ]]>
#{params.endDate}
</if>
</if>
<if
test=
"params.startDate == null and params.endDate == null"
>
<if
test=
"(params.startDate == null or params.startDate == '')
and (params.endDate == null or params.endDate == '')"
>
and datediff(week, tw.Rq,getdate())=0
and datediff(week, tw.Rq,getdate())=0
</if>
</if>
group by Convert(varchar(10),tw.Rq,120)
group by Convert(varchar(10),tw.Rq,120)
...
@@ -36,17 +37,12 @@
...
@@ -36,17 +37,12 @@
<if
test=
"params.endDate != null and params.endDate != ''"
>
<if
test=
"params.endDate != null and params.endDate != ''"
>
and Convert(varchar(10),tw.Rq,120)
<![CDATA[ <= ]]>
#{params.endDate}
and Convert(varchar(10),tw.Rq,120)
<![CDATA[ <= ]]>
#{params.endDate}
</if>
</if>
<if
test=
"params.startDate == null and params.endDate == null"
>
<if
test=
"(params.startDate == null or params.startDate == '')
and (params.endDate == null or params.endDate == '')"
>
and datediff(week, tw.Rq,getdate())=0
and datediff(week, tw.Rq,getdate())=0
</if>
</if>
</select>
</select>
</mapper>
</mapper>
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