|
|
@ -744,7 +744,9 @@ public class CrmMaintenanceenterpriseRecordService extends MybatisBaseService<Cr |
|
|
|
String customerSid = entity.getCustomerSid(); |
|
|
|
List<CrmMaintenanceenterprisePerson> personList = crmMaintenanceenterprisePersonService.selByBillSid(businessSid); |
|
|
|
if (!personList.isEmpty()) { |
|
|
|
if (entity.getFilingType().equals("首次")) { |
|
|
|
crmDockingPeopleService.delByCustomerSid(customerSid); |
|
|
|
} |
|
|
|
for (CrmMaintenanceenterprisePerson person : personList) { |
|
|
|
CrmDockingPeople crmDockingPeople = new CrmDockingPeople(); |
|
|
|
if (StringUtils.isNotBlank(person.getName())) { |
|
|
@ -753,6 +755,9 @@ public class CrmMaintenanceenterpriseRecordService extends MybatisBaseService<Cr |
|
|
|
if (StringUtils.isNotBlank(person.getMobile())) { |
|
|
|
crmDockingPeople.setMobile(person.getMobile()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(person.getRemarks())) { |
|
|
|
crmDockingPeople.setRemarks(person.getRemarks()); |
|
|
|
} |
|
|
|
crmDockingPeople.setCustomerSid(customerSid); |
|
|
|
crmDockingPeopleService.insert(crmDockingPeople); |
|
|
|
} |
|
|
|