|
@ -12,7 +12,9 @@ import com.yxt.anrui.crm.api.crmbusiness.CrmBusinessDto; |
|
|
import com.yxt.anrui.crm.api.crmbusiness.CrmBusinessVo; |
|
|
import com.yxt.anrui.crm.api.crmbusiness.CrmBusinessVo; |
|
|
import com.yxt.anrui.crm.api.crmcustomerfile.CrmCustomerFileVo; |
|
|
import com.yxt.anrui.crm.api.crmcustomerfile.CrmCustomerFileVo; |
|
|
import com.yxt.anrui.crm.api.crmcustomertemp.*; |
|
|
import com.yxt.anrui.crm.api.crmcustomertemp.*; |
|
|
|
|
|
import com.yxt.anrui.crm.api.crmfile.CrmFile; |
|
|
import com.yxt.anrui.crm.api.crmfile.CrmFileAttachTypeEnum; |
|
|
import com.yxt.anrui.crm.api.crmfile.CrmFileAttachTypeEnum; |
|
|
|
|
|
import com.yxt.anrui.crm.api.crmfile.CrmFileDetailsVo; |
|
|
import com.yxt.anrui.crm.api.crmvehicledemand.AppCrmVehicledemandVo; |
|
|
import com.yxt.anrui.crm.api.crmvehicledemand.AppCrmVehicledemandVo; |
|
|
import com.yxt.anrui.crm.api.crmvisit.AppCrmVisitThumbDetailsVo; |
|
|
import com.yxt.anrui.crm.api.crmvisit.AppCrmVisitThumbDetailsVo; |
|
|
import com.yxt.anrui.crm.api.crmvisit.PcCrmVisitAppendixDto; |
|
|
import com.yxt.anrui.crm.api.crmvisit.PcCrmVisitAppendixDto; |
|
@ -353,34 +355,34 @@ public class CrmCustomerTempService extends MybatisBaseService<CrmCustomerTempMa |
|
|
return iPage; |
|
|
return iPage; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
// /**
|
|
|
* 手机端根据sid查询潜在客户基础信息 |
|
|
// * 手机端根据sid查询潜在客户基础信息
|
|
|
* |
|
|
// *
|
|
|
* @param sid |
|
|
// * @param sid
|
|
|
* @return |
|
|
// * @return
|
|
|
*/ |
|
|
// */
|
|
|
public ResultBean<AppCrmCustomerTempInfoVo> getAppCustomerTempInfoBySid(String sid) { |
|
|
// public ResultBean<AppCrmCustomerTempInfoVo> getAppCustomerTempInfoBySid(String sid) {
|
|
|
AppCrmCustomerTempInfoVo saveInfoVo = baseMapper.getAppCustomerTempDetailsBySid(sid); |
|
|
// AppCrmCustomerTempInfoVo saveInfoVo = baseMapper.getAppCustomerTempDetailsBySid(sid);
|
|
|
saveInfoVo.setAdCode(saveInfoVo.getAddress_province() + saveInfoVo.getAddress_city() + saveInfoVo.getAddress_county()); |
|
|
// saveInfoVo.setAdCode(saveInfoVo.getAddress_province() + saveInfoVo.getAddress_city() + saveInfoVo.getAddress_county());
|
|
|
saveInfoVo.setUserSid(saveInfoVo.getCreateBySid()); |
|
|
// saveInfoVo.setUserSid(saveInfoVo.getCreateBySid());
|
|
|
String customerTypeKey = saveInfoVo.getCustomerTypeKey(); |
|
|
// String customerTypeKey = saveInfoVo.getCustomerTypeKey();
|
|
|
String parentSid = dictCommonFeign.selectBykey(customerTypeKey, DictCommonType.CUSTOMER_TYPE).getData().getSid(); |
|
|
// String parentSid = dictCommonFeign.selectBykey(customerTypeKey, DictCommonType.CUSTOMER_TYPE).getData().getSid();
|
|
|
saveInfoVo.setParentSid(parentSid); |
|
|
// saveInfoVo.setParentSid(parentSid);
|
|
|
List<String> filePaths = new ArrayList<>(); |
|
|
// List<String> filePaths = new ArrayList<>();
|
|
|
if (StringUtils.isNotBlank(saveInfoVo.getFilePath())) { |
|
|
// if (StringUtils.isNotBlank(saveInfoVo.getFilePath())) {
|
|
|
String[] list = saveInfoVo.getFilePath().split(","); |
|
|
// String[] list = saveInfoVo.getFilePath().split(",");
|
|
|
for (String str : list) { |
|
|
// for (String str : list) {
|
|
|
filePaths.add(fileUploadComponent.getUrlPrefix() + str); |
|
|
// filePaths.add(fileUploadComponent.getUrlPrefix() + str);
|
|
|
} |
|
|
// }
|
|
|
} |
|
|
// }
|
|
|
saveInfoVo.setFilePath(""); |
|
|
// saveInfoVo.setFilePath("");
|
|
|
saveInfoVo.setFilePaths(filePaths); |
|
|
// saveInfoVo.setFilePaths(filePaths);
|
|
|
return new ResultBean<AppCrmCustomerTempInfoVo>().success().setData(saveInfoVo); |
|
|
// return new ResultBean<AppCrmCustomerTempInfoVo>().success().setData(saveInfoVo);
|
|
|
} |
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 手机端获取潜在客户详情 |
|
|
* 初始化客户详情 |
|
|
* |
|
|
* |
|
|
* @param userSid |
|
|
* @param userSid |
|
|
* @param sid |
|
|
* @param sid |
|
@ -456,26 +458,13 @@ public class CrmCustomerTempService extends MybatisBaseService<CrmCustomerTempMa |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 根据sid获取潜在客户信息 |
|
|
* 初始化客户详情 - 基础信息接口 |
|
|
* |
|
|
* |
|
|
* @param sid |
|
|
* @param sid |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
public ResultBean<AppCrmCustomerTempInfoVo> getAppCustomerTempDetailsBySid(String sid) { |
|
|
public ResultBean<AppCrmCustomerTempInfoVo> getAppCustomerTempDetailsBySid(String sid) { |
|
|
AppCrmCustomerTempInfoVo appCrmCustomerTempInfoVo = baseMapper.getAppCustomerTempDetailsBySid(sid); |
|
|
AppCrmCustomerTempInfoVo appCrmCustomerTempInfoVo = baseMapper.getAppCustomerTempDetailsBySid(sid); |
|
|
String province = appCrmCustomerTempInfoVo.getProvince(); |
|
|
|
|
|
String city = appCrmCustomerTempInfoVo.getCity(); |
|
|
|
|
|
String county = appCrmCustomerTempInfoVo.getCounty(); |
|
|
|
|
|
appCrmCustomerTempInfoVo.setAddressNss(province + city + county); |
|
|
|
|
|
List<String> filePaths = new ArrayList<>(); |
|
|
|
|
|
if (StringUtils.isNotBlank(appCrmCustomerTempInfoVo.getFilePath())) { |
|
|
|
|
|
String[] list = appCrmCustomerTempInfoVo.getFilePath().split(","); |
|
|
|
|
|
for (String str : list) { |
|
|
|
|
|
filePaths.add(fileUploadComponent.getUrlPrefix() + str); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
appCrmCustomerTempInfoVo.setFilePath(""); |
|
|
|
|
|
appCrmCustomerTempInfoVo.setFilePaths(filePaths); |
|
|
|
|
|
return new ResultBean<AppCrmCustomerTempInfoVo>().success().setData(appCrmCustomerTempInfoVo); |
|
|
return new ResultBean<AppCrmCustomerTempInfoVo>().success().setData(appCrmCustomerTempInfoVo); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -778,13 +767,24 @@ public class CrmCustomerTempService extends MybatisBaseService<CrmCustomerTempMa |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 获取客户基础信息 |
|
|
* 客户信息维护 - 详情接口 |
|
|
* |
|
|
* |
|
|
* @param sid |
|
|
* @param sid |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
public AppCrmCustomerTempBasicsDetailsVo customerTempDetailsBySid(String sid) { |
|
|
public AppCrmCustomerTempBasicsDetailsVo customerTempDetailsBySid(String sid) { |
|
|
AppCrmCustomerTempBasicsDetailsVo vo = baseMapper.customerTempDetailsBySid(sid); |
|
|
AppCrmCustomerTempBasicsDetailsVo vo = baseMapper.customerTempDetailsBySid(sid); |
|
|
|
|
|
String adCode = vo.getAddress_province() + vo.getAddress_city() + vo.getAddress_county(); |
|
|
|
|
|
vo.setAdCode(adCode); |
|
|
|
|
|
List<CrmFileDetailsVo> crmFileDetailsVos = crmFileService.fetchByLinkSid(sid); |
|
|
|
|
|
List<String> list = new ArrayList<>(); |
|
|
|
|
|
if (crmFileDetailsVos != null) { |
|
|
|
|
|
for (CrmFileDetailsVo crmFileDetailsVo : crmFileDetailsVos) { |
|
|
|
|
|
String filePath = crmFileDetailsVo.getFilePath(); |
|
|
|
|
|
list.add(fileUploadComponent.getUrlPrefix() + filePath); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
vo.setCrmVisitFileList(list); |
|
|
return vo; |
|
|
return vo; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |