| | |
| | | bookings.setIsdeleted(MeetConstants.ZERO); |
| | | bookings.setStatus(MeetConstants.ZERO); |
| | | bookingsMapper.insert(bookings); |
| | | bookings.setManagerInfo(user.getRealname()); |
| | | //更新会议室预定时间段 |
| | | updateBookingTimes(bookings, user); |
| | | //添加管理人员 |
| | |
| | | if(Constants.equalsInteger(bookings.getJoinNotice(),Constants.ZERO)){ |
| | | this.sendNotice(bookings, MeetConstants.TWO); |
| | | } |
| | | SystemUser systemUser = systemUserMapper.selectById(bookings.getUserId()); |
| | | SystemUser systemUser = systemUserMapper.selectById(user.getId()); |
| | | this.sendWxNotice(bookings,Objects.isNull(systemUser)||StringUtils.isBlank(systemUser.getOpenid())?null:systemUser.getOpenid(),Constants.ZERO); |
| | | |
| | | return bookings.getId(); |
| | |
| | | bookings.setStatus(MeetConstants.ONE); |
| | | bookings.setEditDate(new Date()); |
| | | bookings.setEditor(businessOverDTO.getUserId()); |
| | | Rooms rooms = roomsMapper.selectById(bookings.getRoomId()); |
| | | if(Objects.nonNull(rooms)){ |
| | | bookings.setRoomName(rooms.getName()); |
| | | } |
| | | bookingsMapper.updateById(bookings); |
| | | //取消会议 发送取消通知 |
| | | if(Constants.equalsInteger(bookings.getJoinNotice(),Constants.ZERO)){ |
| | |
| | | .isNotNull(SystemUser::getOpenid) |
| | | ); |
| | | List<String> openIdList = userRelList.stream().map(i->i.getOpenid()).collect(Collectors.toList()); |
| | | if(StringUtils.isNotBlank(openid)){ |
| | | openIdList.add(openid); |
| | | openIdList.add(openid); |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isEmpty(openIdList)){ |
| | | return; |
| | | } |
| | | Set<String> openIds = new HashSet<String>(openIdList); |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(openIds)){ |