Commit 67eaa88c by Water Wang

test

parent e8f49135
......@@ -178,7 +178,7 @@
<if test="leadsEndTime != null">
and pool.added_at &lt;= #{leadsEndTime,jdbcType=VARCHAR}
</if>
order by pool.added_at desc;
order by pool.added_at desc
</select>
<select id="findIsAssignByDate" resultType="com.yd.api.agms.vo.statistics.LeadsStatisticsInfo">
select c.`name` as leadsName,
......@@ -201,7 +201,7 @@
<!-- <if test="leadsEndTime != null">-->
<!-- and pool.added_at <= #{leadsEndTime,jdbcType=VARCHAR}-->
<!-- </if>-->
order by pool.added_at desc;
order by pool.added_at desc
</select>
<select id="findIsNotAssignByDate" resultType="com.yd.api.agms.vo.statistics.LeadsStatisticsInfo">
select c.`name` as leadsName,
......@@ -224,7 +224,7 @@
<!-- <if test="leadsEndTime != null">-->
<!-- and pool.added_at <= #{leadsEndTime,jdbcType=VARCHAR}-->
<!-- </if>-->
order by pool.added_at desc;
order by pool.added_at desc
</select>
<select id="findIsAssignLeads" resultType="com.yd.api.agms.vo.statistics.LeadsStatisticsInfo">
SELECT
......@@ -248,7 +248,7 @@
# tr.leads_assigned_id as assignId,
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
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>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment