|
@@ -367,7 +367,12 @@ public class ChannelCustomerServiceImpl extends ServiceImpl<ChannelCustomerMappe
|
367
|
367
|
}
|
368
|
368
|
customerPreparatory.setOrgId(taRecommendCustomer.getOrgId());
|
369
|
369
|
customerPreparatory.setCustomerId(taRecommendCustomer.getCustomerId());
|
370
|
|
- customerPreparatoryMapper.insert(customerPreparatory);
|
|
370
|
+ if (StringUtils.isEmpty(customerPreparatory.getCustomerPreparatoryId())) {
|
|
371
|
+ customerPreparatoryMapper.insert(customerPreparatory);
|
|
372
|
+ }else {
|
|
373
|
+ customerPreparatoryMapper.updateById(customerPreparatory);
|
|
374
|
+ }
|
|
375
|
+
|
371
|
376
|
return ResponseBean.success("审核成功");
|
372
|
377
|
}
|
373
|
378
|
|
|
@@ -406,7 +411,12 @@ public class ChannelCustomerServiceImpl extends ServiceImpl<ChannelCustomerMappe
|
406
|
411
|
customerSignatory.setOrgId(taRecommendCustomer.getOrgId());
|
407
|
412
|
customerSignatory.setCreateDate(LocalDateTime.now());
|
408
|
413
|
customerSignatory.setType("commission");
|
409
|
|
- customerSignatoryMapper.insert(customerSignatory);
|
|
414
|
+ if (StringUtils.isEmpty(customerSignatory.getCustomerSignatoryId())){
|
|
415
|
+ customerSignatoryMapper.insert(customerSignatory);
|
|
416
|
+ }else {
|
|
417
|
+ customerSignatoryMapper.updateById(customerSignatory);
|
|
418
|
+ }
|
|
419
|
+
|
410
|
420
|
return ResponseBean.success("审核成功");
|
411
|
421
|
}
|
412
|
422
|
|
|
@@ -447,7 +457,12 @@ public class ChannelCustomerServiceImpl extends ServiceImpl<ChannelCustomerMappe
|
447
|
457
|
}
|
448
|
458
|
customerSignatory.setOrgId(taRecommendCustomer.getOrgId());
|
449
|
459
|
customerSignatory.setType("signatory");
|
450
|
|
- customerSignatoryMapper.insert(customerSignatory);
|
|
460
|
+ if (StringUtils.isEmpty(customerSignatory.getCustomerSignatoryId())) {
|
|
461
|
+ customerSignatoryMapper.insert(customerSignatory);
|
|
462
|
+ }else {
|
|
463
|
+ customerSignatoryMapper.updateById(customerSignatory);
|
|
464
|
+ }
|
|
465
|
+
|
451
|
466
|
return ResponseBean.success("审核成功");
|
452
|
467
|
}
|
453
|
468
|
|