|
@@ -1539,19 +1539,19 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
1539
|
1539
|
}
|
1540
|
1540
|
|
1541
|
1541
|
// 5.无buildingId,新增一条私客数据
|
1542
|
|
- TaPerson taPerson = taPersonMapper.getById(customerInfo.getPersonId());
|
1543
|
|
- if (taPerson == null) {
|
1544
|
|
- logger.info("公客分配置业顾问 taPerson为空");
|
1545
|
|
- responseBean.addError("分配客户失败");
|
1546
|
|
- return responseBean;
|
1547
|
|
- }
|
|
1542
|
+// TaPerson taPerson = taPersonMapper.getById(customerInfo.getPersonId());
|
|
1543
|
+// if (taPerson == null) {
|
|
1544
|
+// logger.info("公客分配置业顾问 taPerson为空");
|
|
1545
|
+// responseBean.addError("分配客户失败");
|
|
1546
|
+// return responseBean;
|
|
1547
|
+// }
|
1548
|
1548
|
|
1549
|
1549
|
TaRecommendCustomer taRecommendCustomer = new TaRecommendCustomer();
|
1550
|
1550
|
taRecommendCustomer.setOrgId(orgId);
|
1551
|
|
- taRecommendCustomer.setName(taPerson.getNickname());
|
1552
|
|
- taRecommendCustomer.setPicture(taPerson.getAvatarurl());
|
1553
|
|
- taRecommendCustomer.setPhone(taPerson.getPhone());
|
1554
|
|
- taRecommendCustomer.setSex(null == taPerson.getGender() ? null : ("1".equals(taPerson.getGender()) ? 1 : 2));
|
|
1551
|
+ taRecommendCustomer.setName(customerInfo.getName());
|
|
1552
|
+ taRecommendCustomer.setPicture(customerInfo.getAvatarurl());
|
|
1553
|
+ taRecommendCustomer.setPhone(customerInfo.getPhone());
|
|
1554
|
+ taRecommendCustomer.setSex(null == customerInfo.getSex() ? null : ("1".equals(customerInfo.getSex()) ? 1 : 2));
|
1555
|
1555
|
taRecommendCustomer.setRealtyConsultant(taUser.getUserId());
|
1556
|
1556
|
taRecommendCustomer.setBuildingId(taPersonBuilding.getBuildingId());
|
1557
|
1557
|
TaBuilding building = taBuildingMapper.selectById(taPersonBuilding.getBuildingId());
|
|
@@ -1559,13 +1559,13 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
1559
|
1559
|
taRecommendCustomer.setReportRecommendStatus(CommConstant.VERIFY_AGREE);
|
1560
|
1560
|
taRecommendCustomer.setCreateDate(LocalDateTime.now());
|
1561
|
1561
|
taRecommendCustomer.setReportDate(LocalDateTime.now());
|
1562
|
|
- taRecommendCustomer.setPersonId(taPerson.getPersonId());
|
|
1562
|
+ taRecommendCustomer.setPersonId(customerInfo.getPersonId());
|
1563
|
1563
|
taRecommendCustomer.setEntryType(CommConstant.ENTRY_VERIFY);
|
1564
|
1564
|
taRecommendCustomer.setVerifyStatus(CommConstant.VERIFY_AGREE);
|
1565
|
1565
|
taRecommendCustomer.setStatus(CommConstant.CUSTOMER_REPORT);
|
1566
|
|
- taRecommendCustomer.setPersonId(taPerson.getPersonId());
|
1567
|
|
- taRecommendCustomer.setRecommendPerson(taPerson.getRecommendPerson());
|
1568
|
|
-
|
|
1566
|
+ taRecommendCustomer.setPersonId(customerInfo.getPersonId());
|
|
1567
|
+ taRecommendCustomer.setRecommendPerson(customerInfo.getRecommendPerson());
|
|
1568
|
+ taRecommendCustomer.setInstitutionId(customerInfo.getInstitutionId());
|
1569
|
1569
|
int row = taRecommendCustomerMapper.insert(taRecommendCustomer);
|
1570
|
1570
|
if (row < 1) {
|
1571
|
1571
|
responseBean.addError("分配客户失败");
|