Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
b3f843c0
Commit
b3f843c0
authored
Jul 14, 2022
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出运营报表2-经纪人日程管理,销售目标,活动量
parent
e3dacb2f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
yd-api/src/main/resources/mapper/agms/AgmsPractitionerMapper.xml
+8
-6
No files found.
yd-api/src/main/resources/mapper/agms/AgmsPractitionerMapper.xml
View file @
b3f843c0
...
@@ -154,7 +154,7 @@
...
@@ -154,7 +154,7 @@
AND year(t.created_at) = year(str_to_date(#{date,jdbcType=VARCHAR}, '%Y-%m'))
AND year(t.created_at) = year(str_to_date(#{date,jdbcType=VARCHAR}, '%Y-%m'))
</if>
</if>
<if
test=
"type == 3"
>
<if
test=
"type == 3"
>
AND
DATE_FORMAT(t.created_at, '%Y-%m') = DATE_FORMAT(str_to_date(#{date,jdbcType=VARCHAR}, '%Y-%m'), '%Y-%m')
AND
t.seq_time = right(#{date,jdbcType=VARCHAR}, 2)+0
</if>
</if>
</when>
</when>
<when
test=
"type != null and date == null"
>
<when
test=
"type != null and date == null"
>
...
@@ -162,8 +162,9 @@
...
@@ -162,8 +162,9 @@
</when>
</when>
<otherwise>
<otherwise>
<if
test=
"date != null"
>
<if
test=
"date != null"
>
AND date_format(t.created_at, '%Y-%m')
>
= DATE_FORMAT(str_to_date(#{date,jdbcType=VARCHAR}, '%Y-%m'), '%Y-%m')
AND t.statistic_time_unit = 3
AND date_format(t.created_at, '%Y-%m')
<
= DATE_FORMAT(str_to_date(#{date,jdbcType=VARCHAR}, '%Y-%m'), '%Y-%m')
AND year(t.created_at) = left(#{date,jdbcType=VARCHAR}, 4)+0
AND t.seq_time = right(#{date,jdbcType=VARCHAR}, 2)+0
</if>
</if>
</otherwise>
</otherwise>
</choose>
</choose>
...
@@ -192,7 +193,7 @@
...
@@ -192,7 +193,7 @@
AND year(t.created_at) = year(str_to_date(#{date,jdbcType=VARCHAR}, '%Y-%m'))
AND year(t.created_at) = year(str_to_date(#{date,jdbcType=VARCHAR}, '%Y-%m'))
</if>
</if>
<if
test=
"type == 3"
>
<if
test=
"type == 3"
>
AND
DATE_FORMAT(t.created_at, '%Y-%m') = DATE_FORMAT(str_to_date(#{date,jdbcType=VARCHAR}, '%Y-%m'), '%Y-%m')
AND
t.seq_time = right(#{date,jdbcType=VARCHAR}, 2)+0
</if>
</if>
</when>
</when>
<when
test=
"type != null and date == null"
>
<when
test=
"type != null and date == null"
>
...
@@ -200,8 +201,9 @@
...
@@ -200,8 +201,9 @@
</when>
</when>
<otherwise>
<otherwise>
<if
test=
"date != null"
>
<if
test=
"date != null"
>
AND date_format(t.created_at, '%Y-%m')
>
= DATE_FORMAT(str_to_date(#{date,jdbcType=VARCHAR}, '%Y-%m'), '%Y-%m')
AND t.statistic_time_unit = 3
AND date_format(t.created_at, '%Y-%m')
<
= DATE_FORMAT(str_to_date(#{date,jdbcType=VARCHAR}, '%Y-%m'), '%Y-%m')
AND year(t.created_at) = left(#{date,jdbcType=VARCHAR}, 4)+0
AND t.seq_time = right(#{date,jdbcType=VARCHAR}, 2)+0
</if>
</if>
</otherwise>
</otherwise>
</choose>
</choose>
...
...
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