|
@@ -227,6 +227,18 @@ public class TaCustomerController extends BaseController {
|
227
|
227
|
}
|
228
|
228
|
iTaCustomerMapService.saveBatch(customerMapList);
|
229
|
229
|
}
|
|
230
|
+
|
|
231
|
+ QueryWrapper<TaCustomerMap> taCustomerMapQueryWrapper = new QueryWrapper<>();
|
|
232
|
+ taCustomerMapQueryWrapper.eq("customer_id",taCustomer.getCustomerId());
|
|
233
|
+ taCustomerMapQueryWrapper.eq("person_id",taCustomer.getPersonId());
|
|
234
|
+ TaCustomerMap taCustomerMap = iTaCustomerMapService.getOne(taCustomerMapQueryWrapper);
|
|
235
|
+
|
|
236
|
+ if (null != taCustomer.getPersonId() && null == taCustomerMap){
|
|
237
|
+ TaCustomerMap foo = new TaCustomerMap();
|
|
238
|
+ foo.setCustomerId(taCustomer.getCustomerId());
|
|
239
|
+ foo.setPersonId(taCustomer.getPersonId());
|
|
240
|
+ iTaCustomerMapService.save(foo);
|
|
241
|
+ }
|
230
|
242
|
|
231
|
243
|
if (!StringUtils.isEmpty(taCustomer.getAvatar())) {
|
232
|
244
|
iTaMainUsherRecordService.updateByCustomer(taCustomer, follows, JWTUtils.getSubject(request));
|