Kaynağa Gözat

外呼机器人-销售线索电话导入修改提示消息

yangzian 3 yıl önce
ebeveyn
işleme
73104dafe4

+ 5 - 0
ruixuan-salesLeads/src/main/java/com.ruixuan.salesLeads/service/impl/TelephoneRobotServiceImpl.java

@@ -143,6 +143,11 @@ public class TelephoneRobotServiceImpl implements ITelephoneRobotService {
 
             customerList.add(param);
         }
+
+        if (customerList.isEmpty()){
+            return ResultResponse.error("销售线索电话信息已导入过信息或者销售线索电话信息为空。");
+        }
+
         result.put("customerList",customerList);
         //headers.put("Auth-Token","eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJndW95YW5saW5nIiwiZXhwIjoxNjU4MTMyMjEyfQ.OyhpastRRzBxAlSc8JOfdxO3rK3NG592U3Qlh752xDQ");
         JSONObject tokenObj = redisCache.getCacheObject("salesLeads:robotToken:str");