|
@@ -32,6 +32,7 @@ import org.apache.ibatis.annotations.Param;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import java.util.*;
|
|
@@ -111,6 +112,7 @@ public class TelephoneRobotServiceImpl implements ITelephoneRobotService {
|
|
|
* @author: zianY
|
|
|
*/
|
|
|
@Override
|
|
|
+ @Transactional
|
|
|
public ResultResponse importRobotTelephone(List<Long> sellerIds,String userId) throws Exception{
|
|
|
Map<String,String> headers = new HashMap<>();
|
|
|
Map<String,Object> result = new HashMap<>();
|
|
@@ -136,6 +138,9 @@ public class TelephoneRobotServiceImpl implements ITelephoneRobotService {
|
|
|
param.put("companyName",saleInfo.getSellerName());
|
|
|
param.put("phone","17778037644");
|
|
|
param.put("website","");
|
|
|
+ //修改线索的导入记录状态
|
|
|
+ saleClueInfoMapper.updateSaleClueImportPhoneFlag(sellerId,1);
|
|
|
+
|
|
|
customerList.add(param);
|
|
|
}
|
|
|
result.put("customerList",customerList);
|