Browse Source

Merge branch 'v3' of http://git.ycjcjy.com/zhiyuxing/estateagents into v3

魏熙美 5 years ago
parent
commit
0c55af5dcf
1 changed files with 15 additions and 13 deletions
  1. 15
    13
      src/main/java/com/huiju/estateagents/controller/MiniAppController.java

+ 15
- 13
src/main/java/com/huiju/estateagents/controller/MiniAppController.java View File

@@ -356,20 +356,22 @@ 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
-//        }
373 375
         return ResponseBean.success(phoneNoInfo);
374 376
     }
375 377