|
@@ -107,6 +107,10 @@ public class TaMainUsherRecordServiceImpl extends ServiceImpl<TaMainUsherRecordM
|
107
|
107
|
|
108
|
108
|
@Override
|
109
|
109
|
public boolean newRecordByConsultant(TaCustomer taCustomer, JSONArray follows) {
|
|
110
|
+ if (StringUtils.isEmpty(taCustomer.getRemark()) && (null == follows || follows.size() == 0)) {
|
|
111
|
+ return false;
|
|
112
|
+ }
|
|
113
|
+
|
110
|
114
|
TaMainUsherRecord taMainUsherRecord = newRecordByCust(taCustomer, null);
|
111
|
115
|
taMainUsherRecord.setCustomerId(taCustomer.getCustomerId());
|
112
|
116
|
int row = taMainUsherRecordMapper.insert(taMainUsherRecord);
|
|
@@ -391,6 +395,10 @@ public class TaMainUsherRecordServiceImpl extends ServiceImpl<TaMainUsherRecordM
|
391
|
395
|
|
392
|
396
|
@Override
|
393
|
397
|
public boolean updateByCustomer(TaCustomer taCustomer, JSONArray follows, String userId) {
|
|
398
|
+ if (StringUtils.isEmpty(taCustomer.getRemark()) && (null == follows || follows.size() == 0)) {
|
|
399
|
+ return false;
|
|
400
|
+ }
|
|
401
|
+
|
394
|
402
|
TaMainUsherRecord taMainUsherRecord = getTodayRecord(taCustomer.getCustomerId());
|
395
|
403
|
|
396
|
404
|
if (null == taMainUsherRecord) {
|
|
@@ -407,7 +415,7 @@ public class TaMainUsherRecordServiceImpl extends ServiceImpl<TaMainUsherRecordM
|
407
|
415
|
|
408
|
416
|
if (null == remark) {
|
409
|
417
|
remark = taCustomer.getRemark();
|
410
|
|
- } else {
|
|
418
|
+ } else if (!StringUtils.isEmpty(taCustomer.getRemark())) {
|
411
|
419
|
remark += "\n\n---" + DateUtils.cutSecond(LocalDateTime.now())+ "---" + "\n" + taCustomer.getRemark();
|
412
|
420
|
}
|
413
|
421
|
taMainUsherRecord.setRemark(remark);
|