소스 검색

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

yangzian 2 년 전
부모
커밋
9bbe6c16fb

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

@@ -129,7 +129,7 @@ public class TelephoneRobotServiceImpl implements ITelephoneRobotService {
             //销售线索id查询
             SaleRecordVo saleInfo = saleClueInfoMapper.selectSaleClueInfoById(sellerId.intValue());
             if (saleInfo == null){
-                log.info("销售线索查询为空---》》》线索id---{}",sellerId);
+                log.info("销售线索查询为空或已导入过联系方式---》》》线索id---{}",sellerId);
                 continue;
             }
             Map<String,Object> param = new HashMap<>();

+ 1 - 0
ruixuan-salesLeads/src/main/resources/mapper/salesLeads/SaleClueInfoMapper.xml

@@ -315,6 +315,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 		sale_clue_info s
 		LEFT JOIN sale_quota_info q on s.seller_id = q.seller_id
 		where s.id = #{id}
+		and s.import_phone_flag = 0
 		ORDER BY q.create_time DESC
 		limit 1
 	</select>