|
|
@@ -2391,6 +2391,22 @@ inner join(
|
|
|
</if>
|
|
|
group by a.aid
|
|
|
</select>
|
|
|
+ <select id="selectFirstInterviewByaids" resultType="com.goafanti.admin.bo.AdminCustomerBo">
|
|
|
+ SELECT aid, sum(1) firstInterviewCount
|
|
|
+ from user_first_interview
|
|
|
+ <where>
|
|
|
+ <if test="startTime != null and endTime != null">
|
|
|
+ and first_time between #{startTime,jdbcType=VARCHAR} and #{endTime,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="admins!= null">
|
|
|
+ and aid in
|
|
|
+ <foreach close=")" collection="admins" item="ad" open="(" separator=",">
|
|
|
+ #{ad.aid}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ group by aid
|
|
|
+ </select>
|
|
|
<select id="selectBelongByaid" resultType="java.lang.String">
|
|
|
SELECT id from user
|
|
|
where aid= #{aid} and share_type in (0,2)
|
|
|
@@ -2557,6 +2573,7 @@ inner join(
|
|
|
from user
|
|
|
where clue_status =1 and clue_process in (0,1,2) and clue_aid = #{aid}
|
|
|
</select>
|
|
|
+
|
|
|
<update id="updateClueUserRelease">
|
|
|
update user
|
|
|
set clue_process =3,clue_transfer_time=now()
|