|
@@ -308,6 +308,18 @@ public class ChannelCustomerServiceImpl extends ServiceImpl<ChannelCustomerMappe
|
308
|
308
|
|
309
|
309
|
CustomerPreparatory customerPreparatory = params.getCustomerPreparatory();
|
310
|
310
|
customerPreparatory.setCreateDate(LocalDateTime.now());
|
|
311
|
+ customerPreparatory.setBuildingId(customer.getBuildingId());
|
|
312
|
+ customerPreparatory.setRecommendPerson(customer.getRecommendPerson());
|
|
313
|
+ TaPerson recommendPerson = taPersonMapper.getById(customer.getRecommendPerson());
|
|
314
|
+ if (null != recommendPerson) {
|
|
315
|
+ customerPreparatory.setRealtyConsultantName(recommendPerson.getName());
|
|
316
|
+ }
|
|
317
|
+ customerPreparatory.setRealtyConsultant(taRecommendCustomer.getRealtyConsultant());
|
|
318
|
+ TaPerson channelPerson = taPersonMapper.getById(taRecommendCustomer.getRealtyConsultant());
|
|
319
|
+ if (null != channelPerson) {
|
|
320
|
+ customerPreparatory.setRealtyConsultantName(channelPerson.getName());
|
|
321
|
+ }
|
|
322
|
+ customerPreparatory.setOrgId(customer.getOrgId());
|
311
|
323
|
customerPreparatoryMapper.insert(customerPreparatory);
|
312
|
324
|
return ResponseBean.success("审核成功");
|
313
|
325
|
}
|
|
@@ -331,6 +343,18 @@ public class ChannelCustomerServiceImpl extends ServiceImpl<ChannelCustomerMappe
|
331
|
343
|
customer.setCommissionDate(LocalDateTime.now());
|
332
|
344
|
channelCustomerMapper.updateById(customer);
|
333
|
345
|
|
|
346
|
+ customerSignatory.setBuildingId(customer.getBuildingId());
|
|
347
|
+ customerSignatory.setRecommendPerson(customer.getRecommendPerson());
|
|
348
|
+ TaPerson recommendPerson = taPersonMapper.getById(customer.getRecommendPerson());
|
|
349
|
+ if (null != recommendPerson) {
|
|
350
|
+ customerSignatory.setRealtyConsultantName(recommendPerson.getName());
|
|
351
|
+ }
|
|
352
|
+ customerSignatory.setRealtyConsultant(taRecommendCustomer.getRealtyConsultant());
|
|
353
|
+ TaPerson channelPerson = taPersonMapper.getById(taRecommendCustomer.getRealtyConsultant());
|
|
354
|
+ if (null != channelPerson) {
|
|
355
|
+ customerSignatory.setRealtyConsultantName(channelPerson.getName());
|
|
356
|
+ }
|
|
357
|
+ customerSignatory.setOrgId(customer.getOrgId());
|
334
|
358
|
customerSignatory.setCreateDate(LocalDateTime.now());
|
335
|
359
|
customerSignatory.setType("commission");
|
336
|
360
|
customerSignatoryMapper.insert(customerSignatory);
|
|
@@ -359,6 +383,18 @@ public class ChannelCustomerServiceImpl extends ServiceImpl<ChannelCustomerMappe
|
359
|
383
|
channelCustomerMapper.updateById(customer);
|
360
|
384
|
|
361
|
385
|
customerSignatory.setCreateDate(LocalDateTime.now());
|
|
386
|
+ customerSignatory.setBuildingId(customer.getBuildingId());
|
|
387
|
+ customerSignatory.setRecommendPerson(customer.getRecommendPerson());
|
|
388
|
+ TaPerson recommendPerson = taPersonMapper.getById(customer.getRecommendPerson());
|
|
389
|
+ if (null != recommendPerson) {
|
|
390
|
+ customerSignatory.setRealtyConsultantName(recommendPerson.getName());
|
|
391
|
+ }
|
|
392
|
+ customerSignatory.setRealtyConsultant(taRecommendCustomer.getRealtyConsultant());
|
|
393
|
+ TaPerson channelPerson = taPersonMapper.getById(taRecommendCustomer.getRealtyConsultant());
|
|
394
|
+ if (null != channelPerson) {
|
|
395
|
+ customerSignatory.setRealtyConsultantName(channelPerson.getName());
|
|
396
|
+ }
|
|
397
|
+ customerSignatory.setOrgId(customer.getOrgId());
|
362
|
398
|
customerSignatory.setType("signatory");
|
363
|
399
|
customerSignatoryMapper.insert(customerSignatory);
|
364
|
400
|
return ResponseBean.success("审核成功");
|