|
|
@@ -43,7 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectCompanyVoiceRoboticCallLogSendmsgGroupList" parameterType="CompanyVoiceRoboticCallLogSendmsg" resultType="com.fs.company.domain.CompanyVoiceRoboticCallLogSendmsg">
|
|
|
select
|
|
|
- robotic_id,
|
|
|
+ msg.robotic_id,
|
|
|
cvr.name,
|
|
|
count(1) as totalRecordCount,
|
|
|
sum(case when status = 1 then 1 else 0 end) as runningCount,
|
|
|
@@ -54,7 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
inner join company_voice_robotic cvr on cvr.id = msg.robotic_id
|
|
|
left join company_voice_robotic_callees cc on cc.id = msg.caller_id
|
|
|
<where>
|
|
|
- <if test="roboticId != null">and robotic_id = #{roboticId}</if>
|
|
|
+ <if test="roboticId != null">and msg.robotic_id = #{roboticId}</if>
|
|
|
<if test="callerId != null">and caller_id = #{callerId}</if>
|
|
|
<if test="runTime != null">and run_time = #{runTime}</if>
|
|
|
<if test="runParam != null and runParam != ''">and run_param = #{runParam}</if>
|
|
|
@@ -66,7 +66,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="cost != null">and cost = #{cost}</if>
|
|
|
<if test="contentLen != null">and content_len = #{contentLen}</if>
|
|
|
</where>
|
|
|
- group by robotic_id
|
|
|
+ group by msg.robotic_id
|
|
|
+ order by msg.run_time desc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectCompanyVoiceRoboticCallLogSendmsgByLogId" parameterType="Long" resultMap="CompanyVoiceRoboticCallLogSendmsgResult">
|