|
@@ -113,9 +113,9 @@ public class TaPersonServiceImpl extends ServiceImpl<TaPersonMapper, TaPerson> i
|
113
|
113
|
return null;
|
114
|
114
|
}
|
115
|
115
|
|
116
|
|
- if (null == phone || "".equals(phone)) {
|
117
|
|
- return null;
|
118
|
|
- }
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
119
|
119
|
|
120
|
120
|
String tel = person.getTel();
|
121
|
121
|
|
|
@@ -124,7 +124,8 @@ public class TaPersonServiceImpl extends ServiceImpl<TaPersonMapper, TaPerson> i
|
124
|
124
|
wrapper.set("person_type",CommConstant.PERSON_ESTATE_AGENT);
|
125
|
125
|
|
126
|
126
|
wrapper.eq("mini_openid", miniOpenid);
|
127
|
|
- wrapper.eq("person_type",null);
|
|
127
|
+
|
|
128
|
+ wrapper.isNull("person_type");
|
128
|
129
|
taPersonMapper.update(new TaPerson(), wrapper);
|
129
|
130
|
|
130
|
131
|
person.setPhone(phone);
|
|
@@ -307,13 +308,22 @@ public class TaPersonServiceImpl extends ServiceImpl<TaPersonMapper, TaPerson> i
|
307
|
308
|
result.put("avatar", taPerson.getAvatarurl());
|
308
|
309
|
result.put("sex", taPerson.getSex());
|
309
|
310
|
result.put("phone", taPerson.getTel());
|
310
|
|
- result.put("integral", taPerson.getPoints());
|
|
311
|
+ result.put("points", taPerson.getPoints());
|
311
|
312
|
|
312
|
313
|
|
313
|
314
|
TaPersonSign taPersonSign = taPersonSignMapper.getLastSignRecord(taPerson.getPersonId());
|
314
|
315
|
int havaSigned = null == taPersonSign || !DateUtils.sameDay(LocalDateTime.now(), taPersonSign.getSignDate()) ? 0 : 1;
|
315
|
316
|
|
316
|
317
|
result.put("havaSigned", havaSigned);
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+ Integer customerNum = taRecommendCustomerMapper.getMyCutsomerNum(taPerson.getPersonId());
|
|
321
|
+ result.put("customerNum", customerNum);
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+ result.put("saved", 0);
|
|
326
|
+
|
317
|
327
|
return ResponseBean.success(result);
|
318
|
328
|
}
|
319
|
329
|
|