|  |  | 
 |  |  | import com.doumee.core.utils.Utils; | 
 |  |  | import com.doumee.core.wx.MeetConstants; | 
 |  |  | import com.doumee.core.wx.SendWxMessage; | 
 |  |  | import com.doumee.dao.admin.request.BusinessOverDTO; | 
 |  |  | import com.doumee.dao.admin.request.QrOpenDoorDto; | 
 |  |  | import com.doumee.dao.admin.response.DevWgResponseParam; | 
 |  |  | import com.doumee.dao.business.*; | 
 |  |  | 
 |  |  |         bookquery.selectAs(BookingTime::getTimeId, Bookings::getRoomTimeId); | 
 |  |  |         bookquery.selectAs(BookingTime::getId, Bookings::getBookingTimeId); | 
 |  |  |         bookquery.eq(Bookings::getIsdeleted, MeetConstants.ZERO); | 
 |  |  |         bookquery.eq(BookingTime::getIsdeleted, MeetConstants.ZERO); | 
 |  |  |         bookquery.eq(Bookings::getRoomId, bookings.getRoomId()); | 
 |  |  |         bookquery.eq(Bookings::getStatus, MeetConstants.ZERO); | 
 |  |  |         //bookquery.ge(Bookings::getStartTime, bookings.getStartTime()); | 
 |  |  | 
 |  |  |         List<Bookings> bookList = bookingsJoinMapper.selectJoinList(Bookings.class, bookquery); | 
 |  |  |         for (int i = 0; i < bookings.getBookingTimeList().size(); i++) { | 
 |  |  |             BookingTime s = bookings.getBookingTimeList().get(i); | 
 |  |  |             RoomTime roomTime = roomTimeJoinMapper.selectById(s.getTimeId()); | 
 |  |  |             if(Objects.isNull(roomTime)){ | 
 |  |  |                 throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"存在未查询到的配置日期,请刷新重试"); | 
 |  |  |             } | 
 |  |  |             String endRoomTime = gsDate + " " + roomTime.getEndTime()+":00"; | 
 |  |  |             if(DateUtil.StringToDate(endRoomTime, "yyyy-MM-dd HH:mm:ss").getTime()<=System.currentTimeMillis()){ | 
 |  |  |                 throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),endRoomTime + "已超过当前时间,无法进行预约"); | 
 |  |  |             } | 
 |  |  |             if (!Objects.isNull(bookList) && bookList.size() > MeetConstants.ZERO) { | 
 |  |  |                 List<Bookings> detailDataDtoStream = | 
 |  |  |                         bookList.stream().filter(a -> MeetConstants.equalsInteger(s.getTimeId(), a.getRoomTimeId()) | 
 |  |  | 
 |  |  |                                         .filter(a -> MeetConstants.equalsInteger(a.getRoomTimeId(), s.getTimeId())) | 
 |  |  |                                         .collect(Collectors.toList()); | 
 |  |  |                         if (chriList.size() > 0) { | 
 |  |  |                             RoomTime roomTime = roomTimeJoinMapper.selectById(s.getTimeId()); | 
 |  |  |                             throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "该会议:" + roomTime.getStartTime() + "-" + roomTime.getEndTime() + "时间段内已被使用"); | 
 |  |  |                         } | 
 |  |  |                     } else { | 
 |  |  | 
 |  |  |                                         .filter(a -> MeetConstants.equalsInteger(a.getRoomTimeId(), s.getTimeId())) | 
 |  |  |                                         .collect(Collectors.toList()); | 
 |  |  |                         if (chriList.size() > 0) { | 
 |  |  |                             RoomTime roomTime = roomTimeJoinMapper.selectById(s.getTimeId()); | 
 |  |  |                             throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "该会议:" + roomTime.getStartTime() + "-" + roomTime.getEndTime() + "时间段内已被使用"); | 
 |  |  |                         } | 
 |  |  |                     } | 
 |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         bookings.getBookingTimeList().stream().forEach(s -> { | 
 |  |  |             s.setId(null); | 
 |  |  |             s.setCreator(user.getId()); | 
 |  |  |             s.setCreateDate(new Date()); | 
 |  |  |             s.setIsdeleted(MeetConstants.ZERO); | 
 |  |  |             s.setBookingId(bookings.getId()); | 
 |  |  |             bookingTimeJoinMapper.insert(s); | 
 |  |  |         }); | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public void updateManager(Bookings bookings, LoginUserInfo user) { | 
 |  |  | 
 |  |  |             userRel.setIsdeleted(MeetConstants.ONE); | 
 |  |  |             userRelJoinMapper.update(userRel, updateWrapper); | 
 |  |  |         } | 
 |  |  |         if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(bookings.getSysList())){ | 
 |  |  |         bookings.getSysList().stream().forEach(s -> { | 
 |  |  |                 s.setId(null); | 
 |  |  |             s.setIsdeleted(MeetConstants.ZERO); | 
 |  |  |             s.setCreateDate(new Date()); | 
 |  |  |             s.setCreator(user.getId()); | 
 |  |  | 
 |  |  |             s.setObjType(MeetConstants.ONE); | 
 |  |  |             userRelJoinMapper.insert(s); | 
 |  |  |         }); | 
 |  |  |  | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public void updateProjectRel(Bookings rooms, LoginUserInfo user) { | 
 |  |  | 
 |  |  |             projectRelJoinMapper.update(projectRel, updateWrapper); | 
 |  |  |  | 
 |  |  |             rooms.getProjectList().stream().forEach(s -> { | 
 |  |  |  | 
 |  |  |                 s.setId(null); | 
 |  |  |                 s.setIsdeleted(MeetConstants.ZERO); | 
 |  |  |                 s.setCreateDate(new Date()); | 
 |  |  |                 s.setCreator(user.getId()); | 
 |  |  | 
 |  |  |         queryWrapper.selectAs(Rooms::getName, Bookings::getRoomName); | 
 |  |  |         queryWrapper.selectAs(SystemUser::getRealname, Bookings::getRealName); | 
 |  |  |         queryWrapper.selectAs(Company::getName, Bookings::getDepartmentName); | 
 |  |  |  | 
 |  |  |         queryWrapper.select(" CASE WHEN t.START_TIME > now() AND t.`STATUS` = 0 THEN 1  WHEN ( (t.END_TIME < now()  AND t.`STATUS` = 0 ) or t.`STATUS` = 2 ) THEN 3 WHEN t.`STATUS` = 1 THEN 5 ELSE  2  END meetingStatus "); | 
 |  |  |         queryWrapper.leftJoin(Rooms.class, Rooms::getId, Bookings::getRoomId); | 
 |  |  |         queryWrapper.leftJoin(SystemUser.class, SystemUser::getId, Bookings::getCreator); | 
 |  |  |         queryWrapper.leftJoin(Company.class,Company::getId,SystemUser::getCompanyId); | 
 |  |  | 
 |  |  |         queryWrapper.like(StringUtils.isNotBlank(pageWrap.getModel().getName()), Bookings::getName, pageWrap.getModel().getName()); | 
 |  |  |         queryWrapper.eq(pageWrap.getModel().getStatus() != null, Bookings::getStatus, pageWrap.getModel().getStatus()); | 
 |  |  |         queryWrapper.like(StringUtils.isNotBlank(pageWrap.getModel().getRealName()), SystemUser::getRealname, pageWrap.getModel().getRealName()); | 
 |  |  |         queryWrapper.eq(pageWrap.getModel().getDepartmentId() != null, SystemUser::getId, pageWrap.getModel().getDepartmentId()); | 
 |  |  |         queryWrapper.eq(pageWrap.getModel().getDepartmentId() != null, Company::getId, pageWrap.getModel().getDepartmentId()); | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         queryWrapper.apply(Objects.nonNull(pageWrap.getModel().getMeetingStatus()) | 
 |  |  |                         &&Constants.equalsInteger(pageWrap.getModel().getMeetingStatus(),Constants.ONE), | 
 |  |  |                 " ( now() < t.START_TIME and t.status = 0 ) " | 
 |  |  |         ) | 
 |  |  |         .apply(Objects.nonNull(pageWrap.getModel().getMeetingStatus()) | 
 |  |  |                         &&Constants.equalsInteger(pageWrap.getModel().getMeetingStatus(),Constants.TWO), | 
 |  |  |                 " ( now() >= t.START_TIME and t.END_TIME >= now() and t.status = 0 ) " | 
 |  |  |         ) | 
 |  |  |         .apply(Objects.nonNull(pageWrap.getModel().getMeetingStatus()) | 
 |  |  |                         &&Constants.equalsInteger(pageWrap.getModel().getMeetingStatus(),Constants.THREE), | 
 |  |  |                 " ( ( now() > t.END_TIME  and  t.`STATUS` = 0  ) or   t.`STATUS` = 2  )  " | 
 |  |  |         ) | 
 |  |  |         .apply(Objects.nonNull(pageWrap.getModel().getMeetingStatus()) | 
 |  |  |                         &&Constants.equalsInteger(pageWrap.getModel().getMeetingStatus(),Constants.FOUR), | 
 |  |  |                 " now() < t.START_TIME  AND SUBDATE( t.START_TIME, INTERVAL 120 MINUTE ) < NOW() " | 
 |  |  |         ) | 
 |  |  |         .apply(Objects.nonNull(pageWrap.getModel().getMeetingStatus()) | 
 |  |  |                         &&Constants.equalsInteger(pageWrap.getModel().getMeetingStatus(),Constants.FIVE), | 
 |  |  |                 " t.STATUS = 1  " | 
 |  |  |         ); | 
 |  |  |  | 
 |  |  |         if (pageWrap.getModel().getStartTime() != null) { | 
 |  |  |             queryWrapper.ge(Bookings::getStartTime, pageWrap.getModel().getStartTime()); | 
 |  |  | 
 |  |  |         SimpleDateFormat format1 = new SimpleDateFormat("HH:mm"); | 
 |  |  |         IPage<Bookings> result = bookingsJoinMapper.selectJoinPage(page, Bookings.class, queryWrapper); | 
 |  |  |         result.getRecords().stream().forEach(s -> { | 
 |  |  |  | 
 |  |  |             if(s.getMeetingStatus().equals(Constants.ZERO)){ | 
 |  |  |                 if(s.getMeetingStatus()==Constants.ONE){ | 
 |  |  |                     //开始前120分钟 大于当前时间 则显示即将开始 | 
 |  |  |                     if(DateUtil.afterMinutesDate(s.getStartTime(),-120).getTime()>System.currentTimeMillis()){ | 
 |  |  |                         s.setMeetingStatus(4); | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             MPJLambdaWrapper<Multifile> bookquery = new MPJLambdaWrapper<>(); | 
 |  |  |             bookquery.eq(Multifile::getIsdeleted, MeetConstants.ZERO); | 
 |  |  |             bookquery.eq(Multifile::getObjId, s.getId()); | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     @Override | 
 |  |  |     public IPage<MeetingListResponse> getMyMeetingPage(PageWrap<MeetingPageRequest> pageWrap) { | 
 |  |  |         IPage<MeetingListResponse> page = bookingsMapper.myMeetingPage(pageWrap.toPage(), new QueryWrapper<MeetingListResponse>() | 
 |  |  |  | 
 |  |  |         QueryWrapper queryWrapper = new QueryWrapper<MeetingListResponse>() | 
 |  |  |                 .and(StringUtils.isNotBlank(pageWrap.getModel().getRoomsName()), | 
 |  |  |                         j -> j.like("a.NAME",pageWrap.getModel().getRoomsName()).or() | 
 |  |  |                                 .like(" b.NAME", pageWrap.getModel().getRoomsName())) | 
 |  |  | 
 |  |  |                         .eq("b.ISDELETED",MeetConstants.ZERO) | 
 |  |  |                         .eq("b.STATUS",MeetConstants.ZERO) | 
 |  |  |                         .eq("a.ISDELETED",MeetConstants.ZERO) | 
 |  |  |                         .orderByDesc(!Objects.isNull(pageWrap.getModel().getStatus())&&pageWrap.getModel().getStatus().equals(MeetConstants.TWO),"a.START_TIME") | 
 |  |  |                         .orderByAsc(Objects.isNull(pageWrap.getModel().getStatus())||pageWrap.getModel().getStatus().equals(MeetConstants.ONE),"a.START_TIME") | 
 |  |  |         ); | 
 |  |  |                 .apply(Objects.nonNull(pageWrap.getModel().getMeetingStatus()) | 
 |  |  |                                 &&Constants.equalsInteger(pageWrap.getModel().getMeetingStatus(),Constants.ONE), | 
 |  |  |                         " ( now() < a.START_TIME and a.status = 0 ) " | 
 |  |  |                 ) | 
 |  |  |                 .apply(Objects.nonNull(pageWrap.getModel().getMeetingStatus()) | 
 |  |  |                                 &&Constants.equalsInteger(pageWrap.getModel().getMeetingStatus(),Constants.TWO), | 
 |  |  |                         " ( now() >= a.START_TIME and a.END_TIME >= now() and a.status = 0 ) " | 
 |  |  |                 ) | 
 |  |  |                 .apply(Objects.nonNull(pageWrap.getModel().getMeetingStatus()) | 
 |  |  |                                 &&Constants.equalsInteger(pageWrap.getModel().getMeetingStatus(),Constants.THREE), | 
 |  |  |                         " ( ( now() > a.END_TIME  and  a.`STATUS` = 0  ) or   a.`STATUS` = 2  )  " | 
 |  |  |                 ) | 
 |  |  |                 .apply(Objects.nonNull(pageWrap.getModel().getMeetingStatus()) | 
 |  |  |                                 &&Constants.equalsInteger(pageWrap.getModel().getMeetingStatus(),Constants.FOUR), | 
 |  |  |                         " now() < a.START_TIME  AND SUBDATE( a.START_TIME, INTERVAL 120 MINUTE ) < NOW() " | 
 |  |  |                 ) | 
 |  |  |                 .apply(Objects.nonNull(pageWrap.getModel().getMeetingStatus()) | 
 |  |  |                                 &&Constants.equalsInteger(pageWrap.getModel().getMeetingStatus(),Constants.FIVE), | 
 |  |  |                         " a.STATUS = 1  " | 
 |  |  |                 ) | 
 |  |  | //                        .orderByDesc(!Objects.isNull(pageWrap.getModel().getStatus())&&pageWrap.getModel().getStatus().equals(MeetConstants.TWO),"a.START_TIME") | 
 |  |  | //                        .orderByAsc(Objects.isNull(pageWrap.getModel().getStatus())||pageWrap.getModel().getStatus().equals(MeetConstants.ONE),"a.START_TIME") | 
 |  |  |                 .orderByDesc(Constants.equalsInteger(pageWrap.getModel().getQueryType(),MeetConstants.TWO),"a.CREATE_DATE") | 
 |  |  |                 .orderByAsc(Constants.equalsInteger(pageWrap.getModel().getQueryType(),MeetConstants.ONE),"a.START_TIME"); | 
 |  |  |  | 
 |  |  |         IPage<MeetingListResponse> page = bookingsMapper.myMeetingPage(pageWrap.toPage(), queryWrapper); | 
 |  |  |         String path = systemDictDataBiz.queryByCode(MeetConstants.FTP, MeetConstants.FTP_RESOURCE_PATH).getCode() + systemDictDataBiz.queryByCode(MeetConstants.FTP, MeetConstants.PROJECTS).getCode(); | 
 |  |  |         page.getRecords().forEach(i -> { | 
 |  |  |             i.setPrefixUrl(path); | 
 |  |  |             if(i.getMeetingStatus().equals(Constants.ZERO)){ | 
 |  |  |                 if(i.getStatus()==Constants.ONE){ | 
 |  |  |                     i.setMeetingStatus(5); | 
 |  |  |                 }else{ | 
 |  |  |                     //开始前5分钟 大于当前时间 则显示即将开始 | 
 |  |  |                     if(DateUtil.afterMinutesDate(i.getStartTime(),-5).getTime()>System.currentTimeMillis()){ | 
 |  |  |                 if(i.getMeetingStatus()==Constants.ONE){ | 
 |  |  |                     //开始前120分钟 大于当前时间 则显示即将开始 | 
 |  |  |                     if(DateUtil.afterMinutesDate(i.getStartTime(),-120).getTime()>System.currentTimeMillis()){ | 
 |  |  |                         i.setMeetingStatus(4); | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |             } | 
 |  |  |  | 
 |  |  |         }); | 
 |  |  | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 会议预约记录取消 | 
 |  |  |      * | 
 |  |  |      * @param id | 
 |  |  |      * @param userId | 
 |  |  |      */ | 
 |  |  |     @Override | 
 |  |  |     @Transactional(rollbackFor = {Exception.class,BusinessException.class}) | 
 |  |  |     public void reservationCancel(Integer id, Integer userId) { | 
 |  |  |         Bookings bookings = bookingsMapper.selectById(id); | 
 |  |  |     public void reservationCancel(BusinessOverDTO businessOverDTO) { | 
 |  |  |         Bookings bookings = bookingsMapper.selectById(businessOverDTO.getId()); | 
 |  |  |         if (Objects.isNull(bookings)) { | 
 |  |  |             throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(), "未查询到预约记录"); | 
 |  |  |         } | 
 |  |  |         if (!bookings.getCreator().equals(userId)) { | 
 |  |  |         if (!bookings.getCreator().equals(businessOverDTO.getUserId())) { | 
 |  |  |             throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "非你的预约记录,无法进行取消"); | 
 |  |  |         } | 
 |  |  |         if (System.currentTimeMillis() > bookings.getStartTime().getTime()) { | 
 |  |  | 
 |  |  |             throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "本次操作失败,预约状态已流转"); | 
 |  |  |         } | 
 |  |  |         bookings.setCancelTime(new Date()); | 
 |  |  |         bookings.setCancelUser(userId); | 
 |  |  |         bookings.setCancelUser(businessOverDTO.getUserId()); | 
 |  |  |         bookings.setCancelInfo(businessOverDTO.getBusinessRemark()); | 
 |  |  |         bookings.setStatus(MeetConstants.ONE); | 
 |  |  |         bookings.setEditDate(new Date()); | 
 |  |  |         bookings.setEditor(userId); | 
 |  |  |         bookings.setEditor(businessOverDTO.getUserId()); | 
 |  |  |         bookingsMapper.updateById(bookings); | 
 |  |  |         //取消会议 发送取消通知 | 
 |  |  |         this.sendNotice(bookings, 3); | 
 |  |  | 
 |  |  |         sendWxMessage.bookingsCancel(systemUserMapper.selectById(bookings.getCreator()), bookings, roomsMapper.selectById(bookings.getRoomId())); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     @Transactional(rollbackFor = {Exception.class,BusinessException.class}) | 
 |  |  |     public void reservationOver(BusinessOverDTO businessOverDTO) { | 
 |  |  |         if(Objects.isNull(businessOverDTO) | 
 |  |  |             || Objects.isNull(businessOverDTO.getUserId()) | 
 |  |  |             || Objects.isNull(businessOverDTO.getId()) | 
 |  |  |         ){ | 
 |  |  |             throw new BusinessException(ResponseStatus.BAD_REQUEST); | 
 |  |  |         } | 
 |  |  |         Bookings bookings = bookingsMapper.selectById(businessOverDTO.getId()); | 
 |  |  |         if (Objects.isNull(bookings)) { | 
 |  |  |             throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(), "未查询到预约记录"); | 
 |  |  |         } | 
 |  |  |         Long userRelList = userRelMapper.selectCount(new QueryWrapper<UserRel>().lambda() | 
 |  |  |                 .eq(UserRel::getIsdeleted,Constants.ZERO) | 
 |  |  |                 .eq(UserRel::getObjId,bookings.getRoomId()) | 
 |  |  |                 .eq(UserRel::getObjType,Constants.ONE) | 
 |  |  |                 .eq(UserRel::getUserId,businessOverDTO.getUserId())); | 
 |  |  |  | 
 |  |  |         if (!bookings.getCreator().equals(businessOverDTO.getUserId()) && userRelList <= 0) { | 
 |  |  |             throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "非你的预约记录,无法进行该操作"); | 
 |  |  |         } | 
 |  |  |         if (System.currentTimeMillis() < bookings.getStartTime().getTime()) { | 
 |  |  |             throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "会议未开始,无法进行结束,如需该操作请使用取消功能"); | 
 |  |  |         } | 
 |  |  |         if (System.currentTimeMillis() > bookings.getEndTime().getTime()) { | 
 |  |  |             throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "会议已结束,无法进行该操作"); | 
 |  |  |         } | 
 |  |  |         if(!bookings.getStatus().equals(MeetConstants.ZERO)){ | 
 |  |  |             throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "本次操作失败,会议状态已流转"); | 
 |  |  |         } | 
 |  |  |         bookings.setDoneDate(new Date()); | 
 |  |  |         bookings.setDoneUserId(businessOverDTO.getUserId()); | 
 |  |  |         bookings.setStatus(MeetConstants.TWO); | 
 |  |  |         bookings.setEditDate(new Date()); | 
 |  |  |         bookings.setEditor(businessOverDTO.getUserId()); | 
 |  |  |         bookingsMapper.updateById(bookings); | 
 |  |  |  | 
 |  |  |         //查询所有的预约时间 | 
 |  |  |         List<BookingTime> bookingTimeList = bookingTimeJoinMapper.selectJoinList(BookingTime.class, | 
 |  |  |                 new MPJLambdaWrapper<BookingTime>() | 
 |  |  |                         .selectAll(BookingTime.class) | 
 |  |  |                         .selectAs(RoomTime::getEndTime,BookingTime::getEndTime) | 
 |  |  |                         .leftJoin(RoomTime.class,RoomTime::getId,BookingTime::getTimeId) | 
 |  |  |                         .eq(BookingTime::getBookingId,bookings.getId())); | 
 |  |  |         //获取当天  只有当天日期内可以处理 | 
 |  |  |         String today = DateUtil.dateToString(new Date(),"yyyy-mm-dd"); | 
 |  |  |         //循环标记数据为已删除 不再占用 | 
 |  |  |         for (BookingTime bookingTime:bookingTimeList) { | 
 |  |  |             if(DateUtil.getDateFromString(today + " " + bookingTime.getEndTime() +":00").getTime()>System.currentTimeMillis()){ | 
 |  |  |                 bookingTime.setIsdeleted(Constants.ZERO); | 
 |  |  |                 bookingTimeJoinMapper.updateById(bookingTime); | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 定时发送会议 即将开始通知 | 
 |  |  | 
 |  |  |         Notices notices = new Notices(noticeObjectType,bookings.getId(),noticeObjectType.getInfo(),bookings.getCreator(), Constants.ZERO); | 
 |  |  |         noticeList.add(notices); | 
 |  |  |         if(noticeList.size()>0){ | 
 |  |  |             noticesMapper.insertBatchSomeColumn(noticeList); | 
 |  |  |             noticesMapper.insert(noticeList); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | 
 |  |  |     public IPage<UserResponse> getUserPage(PageWrap<UserPageRequest> pageWrap) { | 
 |  |  |         IPage<UserResponse> page = systemUserMapper.getUserPage(pageWrap.toPage(),new QueryWrapper<UserResponse>() | 
 |  |  |                 .and(StringUtils.isNotBlank(pageWrap.getModel().getKeyword()), i -> i.like("c.realName", pageWrap.getModel().getKeyword()) | 
 |  |  |                         .or().like("e.name", pageWrap.getModel().getKeyword()) | 
 |  |  |                         .or().like("d.COMPANY_NAME_PATH", pageWrap.getModel().getKeyword()) | 
 |  |  |                 ) | 
 |  |  |                 .eq("c.DELETED",0) | 
 |  |  |                 .eq("c.status",0) |