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
67eaa88c
Commit
67eaa88c
authored
Jul 21, 2020
by
Water Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
e8f49135
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
yd-api/src/main/resources/mapper/marketing/MktLeadsPoolMapper.xml
+5
-4
No files found.
yd-api/src/main/resources/mapper/marketing/MktLeadsPoolMapper.xml
View file @
67eaa88c
...
@@ -178,7 +178,7 @@
...
@@ -178,7 +178,7 @@
<if
test=
"leadsEndTime != null"
>
<if
test=
"leadsEndTime != null"
>
and pool.added_at
<
= #{leadsEndTime,jdbcType=VARCHAR}
and pool.added_at
<
= #{leadsEndTime,jdbcType=VARCHAR}
</if>
</if>
order by pool.added_at desc
;
order by pool.added_at desc
</select>
</select>
<select
id=
"findIsAssignByDate"
resultType=
"com.yd.api.agms.vo.statistics.LeadsStatisticsInfo"
>
<select
id=
"findIsAssignByDate"
resultType=
"com.yd.api.agms.vo.statistics.LeadsStatisticsInfo"
>
select c.`name` as leadsName,
select c.`name` as leadsName,
...
@@ -201,7 +201,7 @@
...
@@ -201,7 +201,7 @@
<!-- <if test="leadsEndTime != null">-->
<!-- <if test="leadsEndTime != null">-->
<!-- and pool.added_at <= #{leadsEndTime,jdbcType=VARCHAR}-->
<!-- and pool.added_at <= #{leadsEndTime,jdbcType=VARCHAR}-->
<!-- </if>-->
<!-- </if>-->
order by pool.added_at desc
;
order by pool.added_at desc
</select>
</select>
<select
id=
"findIsNotAssignByDate"
resultType=
"com.yd.api.agms.vo.statistics.LeadsStatisticsInfo"
>
<select
id=
"findIsNotAssignByDate"
resultType=
"com.yd.api.agms.vo.statistics.LeadsStatisticsInfo"
>
select c.`name` as leadsName,
select c.`name` as leadsName,
...
@@ -224,7 +224,7 @@
...
@@ -224,7 +224,7 @@
<!-- <if test="leadsEndTime != null">-->
<!-- <if test="leadsEndTime != null">-->
<!-- and pool.added_at <= #{leadsEndTime,jdbcType=VARCHAR}-->
<!-- and pool.added_at <= #{leadsEndTime,jdbcType=VARCHAR}-->
<!-- </if>-->
<!-- </if>-->
order by pool.added_at desc
;
order by pool.added_at desc
</select>
</select>
<select
id=
"findIsAssignLeads"
resultType=
"com.yd.api.agms.vo.statistics.LeadsStatisticsInfo"
>
<select
id=
"findIsAssignLeads"
resultType=
"com.yd.api.agms.vo.statistics.LeadsStatisticsInfo"
>
SELECT
SELECT
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
# tr.leads_assigned_id as assignId,
# tr.leads_assigned_id as assignId,
tr.md_drop_option_id as leadsStatusId -- 商机状态id
tr.md_drop_option_id as leadsStatusId -- 商机状态id
FROM(SELECT customer_id,max(updated_at) as track_time FROM ag_mkt_leads_assigned_track tr GROUP BY tr.customer_id) maxt
FROM(SELECT customer_id,max(updated_at) as track_time FROM ag_mkt_leads_assigned_track tr GROUP BY tr.customer_id) maxt
INNER JOIN ag_mkt_leads_assigned_track tr on maxt.customer_id=tr.customer_id AND maxt.track_time = tr.updated_at order by tr.leads_assigned_id
;
INNER JOIN ag_mkt_leads_assigned_track tr on maxt.customer_id=tr.customer_id AND maxt.track_time = tr.updated_at order by tr.leads_assigned_id
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
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