|
@@ -229,44 +229,46 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
229
|
229
|
}
|
230
|
230
|
TaPerson taPerson = taPersons.get(0);
|
231
|
231
|
|
232
|
|
- String checkResult = checkCustomerParams(params);
|
233
|
|
- if (null != checkResult) {
|
234
|
|
- return ResponseBean.error(checkResult, ResponseBean.ERROR_MISSING_PARAMS);
|
235
|
|
- }
|
|
232
|
+// String checkResult = checkCustomerParams(params);
|
|
233
|
+// if (null != checkResult) {
|
|
234
|
+// return ResponseBean.error(checkResult, ResponseBean.ERROR_MISSING_PARAMS);
|
|
235
|
+// }
|
236
|
236
|
|
237
|
237
|
TaRecommendCustomer taRecommendCustomer = new TaRecommendCustomer();
|
238
|
238
|
|
239
|
|
- taRecommendCustomer.setName(params.getString("name"));
|
240
|
|
- taRecommendCustomer.setPicture(params.getString("picture"));
|
|
239
|
+ taRecommendCustomer.setName(taPerson.getNickname());
|
|
240
|
+ taRecommendCustomer.setPicture(taPerson.getAvatarurl());
|
241
|
241
|
taRecommendCustomer.setPhone(params.getString("phone"));
|
242
|
|
- taRecommendCustomer.setSex(params.getInteger("sex"));
|
243
|
|
- taRecommendCustomer.setDescribe(params.getString("describe"));
|
244
|
|
- taRecommendCustomer.setRealtyConsultant(params.getString("RealtyConsultant"));
|
|
242
|
+ taRecommendCustomer.setSex(null == taPerson.getGender() ? null : ("1".equals(taPerson.getGender()) ? 1 : 2));
|
|
243
|
+// taRecommendCustomer.setDescribe(params.getString("describe"));
|
|
244
|
+ taRecommendCustomer.setRealtyConsultant(params.getString("realtyConsultant"));
|
245
|
245
|
taRecommendCustomer.setBuildingId(params.getString("buildingId"));
|
246
|
246
|
taRecommendCustomer.setReportRecommendStatus(CommConstant.REPORTED);
|
247
|
247
|
taRecommendCustomer.setCreateDate(LocalDateTime.now());
|
248
|
248
|
taRecommendCustomer.setReportDate(LocalDateTime.now());
|
249
|
249
|
|
250
|
250
|
// 时间格式 yyyy-MM-dd
|
251
|
|
- String at = params.getString("appointmentTime");
|
252
|
|
- if (!StringUtils.isEmpty(at)) {
|
253
|
|
- taRecommendCustomer.setAppointmentTime(DateUtils.day2LocalDateime(at));
|
254
|
|
- }
|
|
251
|
+// String at = params.getString("appointmentTime");
|
|
252
|
+// if (!StringUtils.isEmpty(at)) {
|
|
253
|
+// taRecommendCustomer.setAppointmentTime(DateUtils.day2LocalDateime(at));
|
|
254
|
+// }ni
|
255
|
255
|
|
256
|
256
|
// taRecommendCustomer.setAppointmentTime((String) params.get("appointmentTime"));
|
257
|
|
- taRecommendCustomer.setVisiteNum(params.getInteger("visiteNum"));
|
258
|
|
- taRecommendCustomer.setIntention(params.getString("intention"));
|
259
|
|
- taRecommendCustomer.setRealtyManageType(params.getString("realtyManageType"));
|
260
|
|
- taRecommendCustomer.setDemandType(params.getString("demandType"));
|
261
|
|
- taRecommendCustomer.setPriceRange(params.getString("priceRange"));
|
262
|
|
- taRecommendCustomer.setEntryType(CommConstant.ENTRY_INPUT);
|
|
257
|
+// taRecommendCustomer.setVisiteNum(params.getInteger("visiteNum"));
|
|
258
|
+// taRecommendCustomer.setIntention(params.getString("intention"));
|
|
259
|
+// taRecommendCustomer.setRealtyManageType(params.getString("realtyManageType"));
|
|
260
|
+// taRecommendCustomer.setDemandType(params.getString("demandType"));
|
|
261
|
+// taRecommendCustomer.setPriceRange(params.getString("priceRange"));
|
|
262
|
+ taRecommendCustomer.setEntryType(CommConstant.ENTRY_VERIFY);
|
263
|
263
|
taRecommendCustomer.setVerifyStatus(CommConstant.VERIFY_AGREE);
|
|
264
|
+ taRecommendCustomer.setStatus(CommConstant.STATUS_NORMAL + "");
|
264
|
265
|
|
265
|
266
|
|
266
|
|
- String status = params.getString("status");
|
267
|
|
- if (null == status) status = "1";
|
268
|
|
- taRecommendCustomer.setStatus(status);
|
269
|
|
- taRecommendCustomer.setRecommendPerson(taPerson.getPersonId());
|
|
267
|
+// String status = params.getString("status");
|
|
268
|
+// if (null == status) status = "1";
|
|
269
|
+// taRecommendCustomer.setStatus(status);
|
|
270
|
+// taRecommendCustomer.setRecommendPerson(taPerson.getPersonId());
|
|
271
|
+ taRecommendCustomer.setRecommendPerson(params.getString("realtyConsultant"));
|
270
|
272
|
|
271
|
273
|
// 报备有 10 天有效期
|
272
|
274
|
QueryWrapper<TaRecommendCustomer> queryWrapper = new QueryWrapper<>();
|