zyy 1 месяц назад
Родитель
Сommit
dfaa88f04b

+ 1 - 0
fs-service/src/main/resources/mapper/company/CompanyVoiceRoboticCallLogCallphoneMapper.xml

@@ -214,6 +214,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="roboticId != null">and robotic_id = #{roboticId}</if>
         </where>
         group by robotic_id
+        order by t1.run_time desc
     </select>
     <select id="selectCompanyVoiceRoboticCallPhoneLogCount" resultType="com.fs.company.vo.CompanyVoiceRoboticCallLogCount">
         select

+ 4 - 3
fs-service/src/main/resources/mapper/company/CompanyVoiceRoboticCallLogSendmsgMapper.xml

@@ -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">