胡轶钦 5 年之前
父節點
當前提交
19cf3df5d9
共有 1 個檔案被更改,包括 16 行新增13 行删除
  1. 16
    13
      src/main/java/com/huiju/estateagents/controller/MiniAppController.java

+ 16
- 13
src/main/java/com/huiju/estateagents/controller/MiniAppController.java 查看文件

@@ -356,20 +356,23 @@ public class MiniAppController extends BaseController {
356 356
 //            if(list.size()<=0){
357 357
 //                taCustomerPersonService.insertBean(person.getPersonId(),customers.getCustomerId());
358 358
 //            }
359
+        }else{
360
+            TaRecommendCustomer taRecommendCustomer = new TaRecommendCustomer();
361
+            taRecommendCustomer.setPersonId(person.getPersonId());
362
+            taRecommendCustomer.setPicture(person.getAvatarurl());
363
+            taRecommendCustomer.setCountry(person.getCountry());
364
+            taRecommendCustomer.setCity(person.getCity());
365
+            taRecommendCustomer.setProvince(person.getProvince());
366
+            taRecommendCustomer.setVerifyStatus(CommConstant.VERIFY_AGREE);
367
+            taRecommendCustomer.setOrgId(getOrgId(request));
368
+            taRecommendCustomer.setEntryType(CommConstant.ENTRY_VOLUNTEER);
369
+            taRecommendCustomer.setSex(Integer.getInteger(person.getGender()));
370
+            taRecommendCustomer.setName(person.getNickname());
371
+            taRecommendCustomer.setPhone(person.getPhone());
372
+            taRecommendCustomer.setCreateDate(LocalDateTime.now());
373
+            taRecommendCustomerService.save(taRecommendCustomer);
359 374
         }
360
-//        else{
361
-//            TaRecommendCustomer taRecommendCustomer = new TaRecommendCustomer();
362
-//            taRecommendCustomer.setPersonId(person.getPersonId());
363
-//            taRecommendCustomer.setPicture(person.getAvatarurl());
364
-//            taRecommendCustomer.setCountry(person.getCountry());
365
-//            taRecommendCustomer.setCity(person.getCity());
366
-//            taRecommendCustomer.setProvince(person.getProvince());
367
-//            taRecommendCustomer.setVerifyStatus(CommConstant.VERIFY_AGREE);
368
-//            taRecommendCustomer.setOrgId(getOrgId(request));
369
-//            taRecommendCustomer.setEntryType(CommConstant.ENTRY_VOLUNTEER);
370
-//            taRecommendCustomer.setSex(Integer.getInteger(person.getGender()));
371
-//
372
-//        }
375
+
373 376
         return ResponseBean.success(phoneNoInfo);
374 377
     }
375 378