|
|
|
|
266
|
|
266
|
|
267
|
taRecommendCustomer = copyFromPerosn(person, taRecommendCustomer);
|
267
|
taRecommendCustomer = copyFromPerosn(person, taRecommendCustomer);
|
268
|
taRecommendCustomer.setRealtyConsultant(consultant.getUserId().toString());
|
268
|
taRecommendCustomer.setRealtyConsultant(consultant.getUserId().toString());
|
|
|
269
|
+ taRecommendCustomer.setInstitutionId(getInstitutionId(taBuilding.getBuildingId()));
|
269
|
taRecommendCustomerMapper.updateById(taRecommendCustomer);
|
270
|
taRecommendCustomerMapper.updateById(taRecommendCustomer);
|
270
|
result.add(taRecommendCustomer);
|
271
|
result.add(taRecommendCustomer);
|
271
|
} else {
|
272
|
} else {
|
|
|
|
|
275
|
customer.setBuildingId(taBuilding.getBuildingId());
|
276
|
customer.setBuildingId(taBuilding.getBuildingId());
|
276
|
customer.setBuildingName(taBuilding.getBuildingName());
|
277
|
customer.setBuildingName(taBuilding.getBuildingName());
|
277
|
customer.setRealtyConsultant(consultant.getUserId().toString());
|
278
|
customer.setRealtyConsultant(consultant.getUserId().toString());
|
|
|
279
|
+ customer.setInstitutionId(getInstitutionId(taBuilding.getBuildingId()));
|
278
|
taRecommendCustomerMapper.insert(customer);
|
280
|
taRecommendCustomerMapper.insert(customer);
|
279
|
result.add(customer);
|
281
|
result.add(customer);
|
280
|
|
282
|
|
|
|
|
|
323
|
TaRecommendCustomer customer = copyFromPerosn(person, new TaRecommendCustomer());
|
325
|
TaRecommendCustomer customer = copyFromPerosn(person, new TaRecommendCustomer());
|
324
|
fillSomeFieldsOfCustomer(customer, recommender, now);
|
326
|
fillSomeFieldsOfCustomer(customer, recommender, now);
|
325
|
customer.setBuildingId(building.getBuildingId());
|
327
|
customer.setBuildingId(building.getBuildingId());
|
|
|
328
|
+ customer.setInstitutionId(getInstitutionId(building.getBuildingId()));
|
326
|
taRecommendCustomerMapper.insert(customer);
|
329
|
taRecommendCustomerMapper.insert(customer);
|
327
|
result.add(customer);
|
330
|
result.add(customer);
|
328
|
|
331
|
|
|
|
|
|
351
|
if (!hasOrgCust && null == consultant) {
|
354
|
if (!hasOrgCust && null == consultant) {
|
352
|
TaRecommendCustomer customer = copyFromPerosn(person, new TaRecommendCustomer());
|
355
|
TaRecommendCustomer customer = copyFromPerosn(person, new TaRecommendCustomer());
|
353
|
fillSomeFieldsOfCustomer(customer, recommender, now);
|
356
|
fillSomeFieldsOfCustomer(customer, recommender, now);
|
|
|
357
|
+ customer.setInstitutionId(getInstitutionId(building.getBuildingId()));
|
354
|
taRecommendCustomerMapper.insert(customer);
|
358
|
taRecommendCustomerMapper.insert(customer);
|
355
|
result.add(customer);
|
359
|
result.add(customer);
|
356
|
|
360
|
|
|
|
|
|
679
|
*/
|
683
|
*/
|
680
|
public String getInstitutionId(String buildingId) {
|
684
|
public String getInstitutionId(String buildingId) {
|
681
|
TaBuilding building = taBuildingMapper.selectById(buildingId);
|
685
|
TaBuilding building = taBuildingMapper.selectById(buildingId);
|
|
|
686
|
+ if (null == building){
|
|
|
687
|
+ return null;
|
|
|
688
|
+ }
|
682
|
return building.getInstitutionId();
|
689
|
return building.getInstitutionId();
|
683
|
}
|
690
|
}
|
684
|
|
691
|
|