|
@@ -14,6 +14,7 @@ import com.github.yulichang.wrapper.MPJLambdaWrapper;
|
|
|
import com.xjrsoft.common.enums.MeetingTypeEnum;
|
|
|
import com.xjrsoft.common.page.ConventPage;
|
|
|
import com.xjrsoft.common.page.PageOutput;
|
|
|
+import com.xjrsoft.common.utils.LocalDateTimeUtil;
|
|
|
import com.xjrsoft.common.utils.VoToColumnUtil;
|
|
|
import com.xjrsoft.module.base.entity.BaseOfficeBuild;
|
|
|
import com.xjrsoft.module.ledger.vo.WorkflowRecordVo;
|
|
@@ -29,6 +30,7 @@ import com.xjrsoft.module.organization.dto.WeChatSendMessageDto;
|
|
|
import com.xjrsoft.module.organization.entity.User;
|
|
|
import com.xjrsoft.module.organization.service.IUserService;
|
|
|
import com.xjrsoft.module.organization.service.IWeChatService;
|
|
|
+import com.xjrsoft.module.schedule.vo.TodayScheduleVo;
|
|
|
import com.xjrsoft.module.system.entity.DictionaryDetail;
|
|
|
import com.xjrsoft.module.system.entity.File;
|
|
|
import com.xjrsoft.module.system.mapper.FileMapper;
|
|
@@ -289,6 +291,26 @@ public class WfMeetingApplyServiceImpl extends MPJBaseServiceImpl<WfMeetingApply
|
|
|
IPage<TodayMeetingMobilePageVo> page = this.selectJoinListPage(ConventPage.getPage(dto), TodayMeetingMobilePageVo.class, wfMeetingApplyPageVoMPJLambdaWrapper);
|
|
|
List<TodayMeetingMobilePageVo> record = page.getRecords();
|
|
|
|
|
|
+ Map<String, LocalTime> startTimeMap = record.stream().collect(Collectors.toMap(TodayMeetingMobilePageVo::getId, TodayMeetingMobilePageVo::getMeetingApplyS));
|
|
|
+ Map<String, LocalTime> endTimeMap = record.stream().collect(Collectors.toMap(TodayMeetingMobilePageVo::getId, TodayMeetingMobilePageVo::getMeetingApplyE));
|
|
|
+ for (TodayMeetingMobilePageVo vo : record) {
|
|
|
+ Integer adjustType = 1;
|
|
|
+ LocalTime oneStartTime = vo.getMeetingApplyS();
|
|
|
+ LocalTime oneEndTime = vo.getMeetingApplyE();
|
|
|
+ for (String id : startTimeMap.keySet()) {
|
|
|
+ if(vo.getId().equals(id)){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ LocalTime startTime = startTimeMap.get(id);
|
|
|
+ LocalTime endTime = endTimeMap.get(id);
|
|
|
+ if((oneStartTime.isAfter(startTime) && oneStartTime.isBefore(endTime))
|
|
|
+ || (oneEndTime.isAfter(startTime) && oneEndTime.isBefore(endTime))){
|
|
|
+ adjustType = 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ vo.setConflictStatus(adjustType);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
List<TodayMeetingMobilePageVo> futureVo = new ArrayList<>();
|
|
|
List<TodayMeetingMobilePageVo> pastVo = new ArrayList<>();
|
|
@@ -316,6 +338,7 @@ public class WfMeetingApplyServiceImpl extends MPJBaseServiceImpl<WfMeetingApply
|
|
|
futureVo.add(vo);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
List<TodayMeetingMobilePageVo> result = new ArrayList<>();
|
|
|
result.addAll(futureVo);
|
|
|
result.addAll(pastVo);
|