Browse Source

外呼系统开发

anderx 1 year ago
parent
commit
4187e4408c

+ 1 - 0
src/main/java/com/goafanti/common/dao/CallLogMapper.java

@@ -79,5 +79,6 @@ public interface CallLogMapper {
      */
     int deleteById(Integer id);
 
+    List<CallLog> selectByUid(String uid);
 }
 

+ 7 - 0
src/main/java/com/goafanti/common/mapper/CallLogMapper.xml

@@ -108,6 +108,7 @@
         </where>
     </select>
 
+
     <!--新增所有列-->
     <insert id="insert" keyProperty="id" useGeneratedKeys="true">
         insert into call_log(uid, aid, admin_name, contacts, mobile_last_digits, status, duration, remarks, create_time)
@@ -185,5 +186,11 @@
         where id = #{id}
     </delete>
 
+    <select id="selectByUid" resultMap="CallLogMap">
+        select
+        <include refid="CallLogAllSql"/>
+        from call_log
+        where uid = #{uid}
+    </select>
 </mapper>
 

+ 1 - 3
src/main/java/com/goafanti/customer/service/impl/UserOutboundServiceImpl.java

@@ -191,9 +191,7 @@ public class UserOutboundServiceImpl extends BaseMybatisDao<CallLogMapper> imple
      * @param uid
      */
     private void pushCountUser(String uid) {
-        CallLog callLog=new CallLog();
-        callLog.setUid(uid);
-        List<CallLog> callLogList = callLogMapper.findCallLogList(callLog);
+        List<CallLog> callLogList = callLogMapper.selectByUid(uid);
         int count=0;
         int duration=0;
         for (CallLog log : callLogList) {