|
|
|
@ -666,7 +666,10 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerDao, CustomerEntity |
|
|
|
|
customerEntity.setMotifyTime(new Date()); |
|
|
|
|
customerEntity.setManager(companyCustomerReq.getManager()); |
|
|
|
|
boolean customer = customerDao.updateCustomer(customerEntity); |
|
|
|
|
companyCustomerEntity.setCustomerId(customerEntity.getId()); |
|
|
|
|
//根据id查询crms_company_customer表里面的customerId
|
|
|
|
|
CompanyCustomerEntity entity = companyCustomerDao.selectOne(new QueryWrapper<CompanyCustomerEntity>() |
|
|
|
|
.eq("customer_id", customerEntity.getId())); |
|
|
|
|
companyCustomerEntity.setCustomerId(entity.getId()); |
|
|
|
|
int company = companyCustomerDao.update(companyCustomerEntity, new QueryWrapper<CompanyCustomerEntity>() |
|
|
|
|
.eq("customer_id", companyCustomerEntity.getCustomerId())); |
|
|
|
|
|
|
|
|
@ -680,7 +683,7 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerDao, CustomerEntity |
|
|
|
|
for (int i = 0; i < intList.size(); i++) { |
|
|
|
|
CrmsCustomerRelated crmsCustomerRelated = new CrmsCustomerRelated(); |
|
|
|
|
Integer integer = intList.get(i); |
|
|
|
|
crmsCustomerRelated.setCustomerId(companyCustomerEntity.getId().intValue());//企业id
|
|
|
|
|
crmsCustomerRelated.setCustomerId(companyCustomerEntity.getCustomerId().intValue());//企业id companyCustomerEntity.getId().intValue()
|
|
|
|
|
crmsCustomerRelated.setRelatedId(integer);//关联人/企业id
|
|
|
|
|
relatedList.add(crmsCustomerRelated); |
|
|
|
|
} |
|
|
|
|