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
b4575e29
Commit
b4575e29
authored
Jul 13, 2022
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出运营报表2-经纪人日程管理,销售目标,活动量
parent
4c6c9779
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
yd-api/src/main/resources/mapper/agms/AgmsPractitionerMapper.xml
+18
-6
No files found.
yd-api/src/main/resources/mapper/agms/AgmsPractitionerMapper.xml
View file @
b4575e29
...
@@ -147,15 +147,27 @@
...
@@ -147,15 +147,27 @@
t.created_at createdAt
t.created_at createdAt
FROM ag_mkt_leads_goals t,ag_acl_practitioner p
FROM ag_mkt_leads_goals t,ag_acl_practitioner p
WHERE t.practitioner_id = p.id
WHERE t.practitioner_id = p.id
<if
test=
"date != null"
>
<choose>
AND t.created_at
>
= DATE #{date,jdbcType=VARCHAR} AND t.created_at
<
= DATE #{date,jdbcType=VARCHAR}
<when
test=
"type != null and date != null"
>
</if>
<if
test=
"type == 1"
>
AND t.created_at = year(#{date,jdbcType=VARCHAR})
</if>
<if
test=
"type == 3"
>
AND t.created_at = DATE_FORMAT(#{date,jdbcType=VARCHAR}, '%Y%m' )
</if>
</when>
<when
test=
"type != null and date == null"
>
AND t.statistic_time_unit = #{type,jdbcType=BIGINT}
</when>
<otherwise>
<if
test=
"date != null"
>
AND t.created_at
>
= DATE #{date,jdbcType=VARCHAR} AND t.created_at
<
= DATE #{date,jdbcType=VARCHAR}
</if>
</otherwise>
</choose>
<if
test=
"practitionerId != null"
>
<if
test=
"practitionerId != null"
>
AND t.practitioner_id = #{practitionerId,jdbcType=BIGINT}
AND t.practitioner_id = #{practitionerId,jdbcType=BIGINT}
</if>
</if>
<if
test=
"type != null"
>
AND t.statistic_time_unit = #{type,jdbcType=BIGINT}
</if>
AND t.is_active = 1
AND t.is_active = 1
</select>
</select>
...
...
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