Commit adf67ae5 authored by hezhen's avatar hezhen

Merge branch 'dev' of http://113.105.137.151:22280/youjj/cloud-platform into dev

parents 15ac23e7 8313a91b
...@@ -150,11 +150,13 @@ public class CustomerBehaviorNotesBiz extends BaseBiz<CustomerBehaviorNotesMappe ...@@ -150,11 +150,13 @@ public class CustomerBehaviorNotesBiz extends BaseBiz<CustomerBehaviorNotesMappe
behaviorNoteCollectVo.setU_avg_count(actionAcount.getDefault_u_avg()); behaviorNoteCollectVo.setU_avg_count(actionAcount.getDefault_u_avg());
behaviorNoteCollectVos.add(behaviorNoteCollectVo); behaviorNoteCollectVos.add(behaviorNoteCollectVo);
} }
behaviorNoteCollectVos.sort(Comparator.comparing(BehaviorNoteCollectVo::getBehavior));
return behaviorNoteCollectVos; return behaviorNoteCollectVos;
} }
/** /**
* 获取时间间隔 和 开始与结束时间的处理 * 获取时间间隔 和 开始与结束时间的处理
*
* @param activityId 活动id * @param activityId 活动id
* @param startTime 筛选的开始时间 * @param startTime 筛选的开始时间
* @param endTime 筛选的结束时间 * @param endTime 筛选的结束时间
...@@ -164,10 +166,10 @@ public class CustomerBehaviorNotesBiz extends BaseBiz<CustomerBehaviorNotesMappe ...@@ -164,10 +166,10 @@ public class CustomerBehaviorNotesBiz extends BaseBiz<CustomerBehaviorNotesMappe
if (startTime.get() == 0 || endTime.get() == 0) { if (startTime.get() == 0 || endTime.get() == 0) {
ActivityListDTO activityListDTO = activityFeign.findActivityStartTimeAndEndTimeById(activityId); ActivityListDTO activityListDTO = activityFeign.findActivityStartTimeAndEndTimeById(activityId);
Instant now = Instant.now(); Instant now = Instant.now();
if (startTime.get() != 0) { if (startTime.get() != 0 && endTime.get() == 0) {
endTime.set(now.toEpochMilli()); endTime.set(now.toEpochMilli());
} }
if (endTime.get() != 0) { if (endTime.get() != 0 && startTime.get() == 0) {
startTime.set(activityListDTO.getActivity_startTime()); startTime.set(activityListDTO.getActivity_startTime());
} }
if (startTime.get() == 0 && endTime.get() == 0) { if (startTime.get() == 0 && endTime.get() == 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment