|
|
@@ -1492,6 +1492,26 @@ public class AiHookServiceImpl implements AiHookService {
|
|
|
if(info==null){
|
|
|
info=new QwExternalContactInfo();
|
|
|
}
|
|
|
+
|
|
|
+ if (info.getCreateTime()!=null){
|
|
|
+ Calendar today = Calendar.getInstance();
|
|
|
+ today.set(Calendar.HOUR_OF_DAY, 0);
|
|
|
+ today.set(Calendar.MINUTE, 0);
|
|
|
+ today.set(Calendar.SECOND, 0);
|
|
|
+ today.set(Calendar.MILLISECOND, 0);
|
|
|
+ Calendar createDate = Calendar.getInstance();
|
|
|
+ createDate.setTime(info.getCreateTime());
|
|
|
+ createDate.set(Calendar.HOUR_OF_DAY, 0);
|
|
|
+ createDate.set(Calendar.MINUTE, 0);
|
|
|
+ createDate.set(Calendar.SECOND, 0);
|
|
|
+ createDate.set(Calendar.MILLISECOND, 0);
|
|
|
+ if(createDate.before(today)){
|
|
|
+ if (info.getTalk()==null||info.getTalk().isEmpty()){
|
|
|
+ info.setTalk("非首次交流");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if (info!=null){
|
|
|
str="【用户状态信息\n";
|
|
|
Field[] fields = info.getClass().getDeclaredFields();
|