Browse Source

外呼系统开发

anderx 1 year ago
parent
commit
c27689bd10

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

@@ -155,11 +155,11 @@ public class UserOutboundServiceImpl extends BaseMybatisDao<CallLogMapper> imple
         String callResult=String.valueOf(notify.get("callResult"));
         String callResultMsg=String.valueOf(notify.get("callResultMsg"));
         String userDate=String.valueOf(notify.get("userData"));
-        String name;
+        String name="暂无";
+        String id=null;
         if(admin!=null){
             name=admin.getName();
-        }else {
-            name="暂无";
+            id=admin.getId();
         }
         String ContactName=null;
         String uid=null;
@@ -183,7 +183,7 @@ public class UserOutboundServiceImpl extends BaseMybatisDao<CallLogMapper> imple
         }
         CallLog callLog=new CallLog();
         callLog.setUid(uid);
-        callLog.setAid(admin.getId());
+        callLog.setAid(id);
         callLog.setAdminName(name);
         callLog.setContacts(ContactName);
         callLog.setCreateTime(DateUtils.parseDate(startTime));