Преглед на файлове

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

魏熙美 преди 5 години
родител
ревизия
0c55af5dcf
променени са 1 файла, в които са добавени 15 реда и са изтрити 13 реда
  1. 15
    13
      src/main/java/com/huiju/estateagents/controller/MiniAppController.java

+ 15
- 13
src/main/java/com/huiju/estateagents/controller/MiniAppController.java Целия файл

356
 //            if(list.size()<=0){
356
 //            if(list.size()<=0){
357
 //                taCustomerPersonService.insertBean(person.getPersonId(),customers.getCustomerId());
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
         return ResponseBean.success(phoneNoInfo);
375
         return ResponseBean.success(phoneNoInfo);
374
     }
376
     }
375
 
377