|
@@ -104,7 +104,7 @@ public class ChannelCustomerServiceImpl extends ServiceImpl<ChannelCustomerMappe
|
104
|
104
|
taRecommendCustomer.setOrgId(customer.getOrgId());
|
105
|
105
|
taRecommendCustomer.setPersonId(customer.getPersonId());
|
106
|
106
|
taRecommendCustomer.setEntryType(CommConstant.ENTRY_VERIFY);
|
107
|
|
- taRecommendCustomer.setStatus(CommConstant.CUSTOMER_REPORT);
|
|
107
|
+ taRecommendCustomer.setStatus(CommConstant.CUSTOMER_VISITE);
|
108
|
108
|
taRecommendCustomer.setRealtyConsultant(channelCustomerDTO.getRealtyConsultant());
|
109
|
109
|
taRecommendCustomer.setCirculationTime(LocalDateTime.now());
|
110
|
110
|
taRecommendCustomerMapper.insert(taRecommendCustomer);
|
|
@@ -123,6 +123,13 @@ public class ChannelCustomerServiceImpl extends ServiceImpl<ChannelCustomerMappe
|
123
|
123
|
customer.setVisitDate(LocalDateTime.now());
|
124
|
124
|
customer.setRealtyConsultant(channelCustomerDTO.getRealtyConsultant());
|
125
|
125
|
channelCustomerMapper.updateById(customer);
|
|
126
|
+ // 修改状态为确认到访状态
|
|
127
|
+ recommendCustomer.setRecommendPerson(customer.getRecommendPerson());
|
|
128
|
+ recommendCustomer.setVerifyStatus(CommConstant.VERIFY_AGREE);
|
|
129
|
+ recommendCustomer.setStatus(CommConstant.CUSTOMER_VISITE);
|
|
130
|
+ recommendCustomer.setRealtyConsultant(channelCustomerDTO.getRealtyConsultant());
|
|
131
|
+ recommendCustomer.setCirculationTime(LocalDateTime.now());
|
|
132
|
+ taRecommendCustomerMapper.updateById(recommendCustomer);
|
126
|
133
|
}else {
|
127
|
134
|
return ResponseBean.error("此客户是私客或已被报备", ResponseBean.ERROR_UNAVAILABLE);
|
128
|
135
|
}
|