工商登记信息修改
This commit is contained in:
parent
a2ff304ae0
commit
cfce3f4242
|
|
@ -68,6 +68,7 @@ public interface ICrmCustomerService extends BaseService<CrmCustomer> {
|
||||||
Map<String,Object> addOrUpdate(CrmModelSaveBO crmModel,boolean isExcel,Integer poolId);
|
Map<String,Object> addOrUpdate(CrmModelSaveBO crmModel,boolean isExcel,Integer poolId);
|
||||||
|
|
||||||
void addCustomerByDjxx(CrmGsdjxx gsdjxx);
|
void addCustomerByDjxx(CrmGsdjxx gsdjxx);
|
||||||
|
void addCustomerByGsdjxx(CrmGsdjxx gsdjxx);
|
||||||
|
|
||||||
CrmCustomer addOrUpdateByOpenApi(CrmModelSaveBO crmModel);
|
CrmCustomer addOrUpdateByOpenApi(CrmModelSaveBO crmModel);
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -625,8 +625,58 @@ public class CrmCustomerServiceImpl extends BaseServiceImpl<CrmCustomerMapper, C
|
||||||
map.put("customerName", crmCustomer.getCustomerName());
|
map.put("customerName", crmCustomer.getCustomerName());
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
public void addCustomerByGsdjxx(CrmGsdjxx gsdjxx) {
|
||||||
|
CrmBusinessSaveBO crmModel = new CrmBusinessSaveBO();
|
||||||
|
Map<String, Object> entity = new HashMap<>();
|
||||||
|
entity.put("customerName", gsdjxx.getNsrmc());
|
||||||
|
entity.put("telephone", "");
|
||||||
|
entity.put("mobile", "");
|
||||||
|
entity.put("email", "");
|
||||||
|
entity.put("website", "");
|
||||||
|
entity.put("remark", "");
|
||||||
|
entity.put("address", "");
|
||||||
|
crmModel.setEntity(entity);
|
||||||
|
List<CrmModelFiledVO> list = new ArrayList<>();
|
||||||
|
List<CrmField> customerFields = crmFieldService.list(CrmEnum.CUSTOMER.getType(), true);
|
||||||
|
customerFields.forEach(crmField -> {
|
||||||
|
CrmModelFiledVO field = new CrmModelFiledVO();
|
||||||
|
field.setFieldId(crmField.getFieldId());
|
||||||
|
field.setFieldName(crmField.getFieldName());
|
||||||
|
field.setName(crmField.getName());
|
||||||
|
field.setFieldType(crmField.getFieldType());
|
||||||
|
field.setType(crmField.getType());
|
||||||
|
if ("金财云联客户".equals(crmField.getName())){
|
||||||
|
field.setValue("否");
|
||||||
|
}else if ("客户详细地址".equals(crmField.getName())){
|
||||||
|
field.setValue(gsdjxx.getScjydz());
|
||||||
|
}else if ("客户所在地区".equals(crmField.getName())){
|
||||||
|
field.setValue(gsdjxx.getDz());
|
||||||
|
}else if ("开业日期".equals(crmField.getName())){
|
||||||
|
field.setValue(gsdjxx.getKyrq());
|
||||||
|
}else if ("客户名称".equals(crmField.getName())){
|
||||||
|
field.setValue(gsdjxx.getNsrmc());
|
||||||
|
}else {
|
||||||
|
field.setValue("");
|
||||||
|
}
|
||||||
|
list.add(field);
|
||||||
|
});
|
||||||
|
crmModel.setField(list);
|
||||||
|
//添加客户数据
|
||||||
|
Integer customerId = crmOpenApiService.crmAddCustomer(crmModel, "工商新开业登记信息");
|
||||||
|
//添加联系人数据
|
||||||
|
// 税局信息
|
||||||
|
// 法定代表人
|
||||||
|
if (StrUtil.isNotEmpty(gsdjxx.getFddbrxm()) && StrUtil.isNotEmpty(gsdjxx.getFddbryddh())) {
|
||||||
|
addContacts(customerId, gsdjxx.getFddbrxm(), "法定代表人", gsdjxx.getFddbryddh(), gsdjxx.getFddbrgddh(), "");
|
||||||
|
}
|
||||||
|
// 财务负责人
|
||||||
|
if (StrUtil.isNotEmpty(gsdjxx.getCwfzrxm()) && StrUtil.isNotEmpty(gsdjxx.getCwfzryddh())) {
|
||||||
|
addContacts(customerId, gsdjxx.getCwfzrxm(), "财务负责人", gsdjxx.getCwfzryddh(), gsdjxx.getCwfzrgddh(), "");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@Deprecated
|
||||||
public void addCustomerByDjxx(CrmGsdjxx gsdjxx) {
|
public void addCustomerByDjxx(CrmGsdjxx gsdjxx) {
|
||||||
CrmBusinessSaveBO crmModel = new CrmBusinessSaveBO();
|
CrmBusinessSaveBO crmModel = new CrmBusinessSaveBO();
|
||||||
Map<String, Object> entity = new HashMap<>();
|
Map<String, Object> entity = new HashMap<>();
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,7 @@ public class CrmGsdjxxServiceImpl extends BaseServiceImpl<CrmGsdjxxMapper,CrmGsd
|
||||||
crmGsdjxx.setXzqhDm(crmQueryGsdjxxDTO.getXzqhDm());
|
crmGsdjxx.setXzqhDm(crmQueryGsdjxxDTO.getXzqhDm());
|
||||||
crmGsdjxx.setDz(crmQueryGsdjxxDTO.getXzqhMc());
|
crmGsdjxx.setDz(crmQueryGsdjxxDTO.getXzqhMc());
|
||||||
crmGsdjxxesNew.add(crmGsdjxx);
|
crmGsdjxxesNew.add(crmGsdjxx);
|
||||||
customerService.addCustomerByDjxx(crmGsdjxx);
|
customerService.addCustomerByGsdjxx(crmGsdjxx);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue