|
@@ -7,6 +7,8 @@ import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
7
|
7
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
8
|
8
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
9
|
9
|
import com.huiju.estateagents.base.ResponseBean;
|
|
10
|
+import com.huiju.estateagents.center.taUser.entity.TaUser;
|
|
11
|
+import com.huiju.estateagents.center.taUser.service.ITaUserService;
|
10
|
12
|
import com.huiju.estateagents.common.CommConstant;
|
11
|
13
|
import com.huiju.estateagents.common.DateUtils;
|
12
|
14
|
import com.huiju.estateagents.common.StringUtils;
|
|
@@ -53,6 +55,9 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
53
|
55
|
@Autowired
|
54
|
56
|
TaPersonVisitRecordMapper taPersonVisitRecordMapper;
|
55
|
57
|
|
|
58
|
+ @Autowired
|
|
59
|
+ ITaUserService userService;
|
|
60
|
+
|
56
|
61
|
@Override
|
57
|
62
|
public ResponseBean getMyCustList(String openid, String keywords, int pageNumber, int pageSize) {
|
58
|
63
|
List<TaPerson> taPersons = getPersonsByOpenId(openid);
|
|
@@ -82,10 +87,11 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
82
|
87
|
if (!StringUtils.isEmpty(taRecommendCustomer.getRealtyConsultant())) {
|
83
|
88
|
TaPerson taPerson = taPersonMapper.selectById(taRecommendCustomer.getRealtyConsultant());
|
84
|
89
|
if (null != taPerson) {
|
|
90
|
+ TaUser user = userService.getById(taPerson.getUserId());
|
85
|
91
|
taRecommendCustomer.setConsultants(new HashMap<String, Object>() {{
|
86
|
|
- put("name", taPerson.getName());
|
87
|
|
- put("phone", taPerson.getTel());
|
88
|
|
- put("photo", taPerson.getPhoto());
|
|
92
|
+ put("name", user.getUserName());
|
|
93
|
+ put("phone", user.getPhone());
|
|
94
|
+ put("photo", user.getPhoto());
|
89
|
95
|
}});
|
90
|
96
|
}
|
91
|
97
|
}
|
|
@@ -168,7 +174,9 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
168
|
174
|
taRecommendCustomer.setDescribe(params.getString("describe"));
|
169
|
175
|
taRecommendCustomer.setRecommendPerson(params.getString("recommendPerson"));
|
170
|
176
|
taRecommendCustomer.setBuildingId(params.getString("buildingId"));
|
|
177
|
+ taRecommendCustomer.setRealtyConsultant(params.getString("realtyConsultant"));
|
171
|
178
|
taRecommendCustomer.setReportRecommendStatus(CommConstant.RECOMMENDED);
|
|
179
|
+ taRecommendCustomer.setVerifyStatus(CommConstant.VERIFY_READY);
|
172
|
180
|
taRecommendCustomer.setCreateDate(LocalDateTime.now());
|
173
|
181
|
taRecommendCustomer.setReportDate(LocalDateTime.now());
|
174
|
182
|
taRecommendCustomer.setOrgId(orgId);
|
|
@@ -252,7 +260,7 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
252
|
260
|
// taRecommendCustomer.setDescribe(params.getString("describe"));
|
253
|
261
|
taRecommendCustomer.setRealtyConsultant(params.getString("realtyConsultant"));
|
254
|
262
|
taRecommendCustomer.setBuildingId(params.getString("buildingId"));
|
255
|
|
- taRecommendCustomer.setReportRecommendStatus(CommConstant.READY);
|
|
263
|
+ taRecommendCustomer.setReportRecommendStatus(CommConstant.VERIFY_AGREE);
|
256
|
264
|
taRecommendCustomer.setCreateDate(LocalDateTime.now());
|
257
|
265
|
taRecommendCustomer.setReportDate(LocalDateTime.now());
|
258
|
266
|
taRecommendCustomer.setPersonId(taPerson.getPersonId());
|