|  | @@ -31,9 +31,11 @@ import com.ym.mec.common.tenant.TenantContextHolder;
 | 
											
												
													
														|  |  import com.ym.mec.im.ImFeignService;
 |  |  import com.ym.mec.im.ImFeignService;
 | 
											
												
													
														|  |  import com.ym.mec.util.collection.MapUtil;
 |  |  import com.ym.mec.util.collection.MapUtil;
 | 
											
												
													
														|  |  import com.ym.mec.util.date.DateUtil;
 |  |  import com.ym.mec.util.date.DateUtil;
 | 
											
												
													
														|  | 
 |  | +import com.ym.mec.util.excel.POIUtil;
 | 
											
												
													
														|  |  import com.ym.mec.util.http.HttpUtil;
 |  |  import com.ym.mec.util.http.HttpUtil;
 | 
											
												
													
														|  |  import org.apache.commons.collections.CollectionUtils;
 |  |  import org.apache.commons.collections.CollectionUtils;
 | 
											
												
													
														|  |  import org.apache.commons.lang3.StringUtils;
 |  |  import org.apache.commons.lang3.StringUtils;
 | 
											
												
													
														|  | 
 |  | +import org.apache.poi.hssf.usermodel.HSSFWorkbook;
 | 
											
												
													
														|  |  import org.redisson.api.RBucket;
 |  |  import org.redisson.api.RBucket;
 | 
											
												
													
														|  |  import org.redisson.api.RLock;
 |  |  import org.redisson.api.RLock;
 | 
											
												
													
														|  |  import org.redisson.api.RMap;
 |  |  import org.redisson.api.RMap;
 | 
											
										
											
												
													
														|  | @@ -45,6 +47,9 @@ import org.springframework.beans.factory.annotation.Autowired;
 | 
											
												
													
														|  |  import org.springframework.stereotype.Service;
 |  |  import org.springframework.stereotype.Service;
 | 
											
												
													
														|  |  import org.springframework.transaction.annotation.Transactional;
 |  |  import org.springframework.transaction.annotation.Transactional;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +import javax.servlet.http.HttpServletResponse;
 | 
											
												
													
														|  | 
 |  | +import java.io.IOException;
 | 
											
												
													
														|  | 
 |  | +import java.io.OutputStream;
 | 
											
												
													
														|  |  import java.io.Serializable;
 |  |  import java.io.Serializable;
 | 
											
												
													
														|  |  import java.util.*;
 |  |  import java.util.*;
 | 
											
												
													
														|  |  import java.util.concurrent.CompletableFuture;
 |  |  import java.util.concurrent.CompletableFuture;
 | 
											
										
											
												
													
														|  | @@ -1264,6 +1269,42 @@ public class ImLiveBroadcastRoomServiceImpl extends ServiceImpl<ImLiveBroadcastR
 | 
											
												
													
														|  |          return PageUtil.pageInfo(page);
 |  |          return PageUtil.pageInfo(page);
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +    /**
 | 
											
												
													
														|  | 
 |  | +     * 导出直播间预约用户信息
 | 
											
												
													
														|  | 
 |  | +     *
 | 
											
												
													
														|  | 
 |  | +     * @param query
 | 
											
												
													
														|  | 
 |  | +     * @param response
 | 
											
												
													
														|  | 
 |  | +     */
 | 
											
												
													
														|  | 
 |  | +    public void exportReservationRoomUser(RoomReservationUserSearch query, HttpServletResponse response) throws IOException {
 | 
											
												
													
														|  | 
 |  | +        //训练营详情-查询条件时间设置
 | 
											
												
													
														|  | 
 |  | +        List<RoomReservationUserVo> list = baseMapper.queryRoomUser(query);
 | 
											
												
													
														|  | 
 |  | +        OutputStream outputStream = response.getOutputStream();
 | 
											
												
													
														|  | 
 |  | +        HSSFWorkbook workbook = null;
 | 
											
												
													
														|  | 
 |  | +        try {
 | 
											
												
													
														|  | 
 |  | +            String[] header = {"编号", "姓名", "手机号", "分部", "声部"};
 | 
											
												
													
														|  | 
 |  | +            String[] body = {"userId", "username", "phone", "organName", "subjectName"};
 | 
											
												
													
														|  | 
 |  | +            workbook = POIUtil.exportExcel(header, body, list);
 | 
											
												
													
														|  | 
 |  | +            response.setContentType("application/octet-stream");
 | 
											
												
													
														|  | 
 |  | +            response.setHeader("Content-Disposition", "attachment;filename=replacement-" + DateUtil.getDate(new Date()) + ".xls");
 | 
											
												
													
														|  | 
 |  | +            response.flushBuffer();
 | 
											
												
													
														|  | 
 |  | +            outputStream = response.getOutputStream();
 | 
											
												
													
														|  | 
 |  | +            workbook.write(outputStream);
 | 
											
												
													
														|  | 
 |  | +            outputStream.flush();
 | 
											
												
													
														|  | 
 |  | +            workbook.close();
 | 
											
												
													
														|  | 
 |  | +        } catch (Exception e) {
 | 
											
												
													
														|  | 
 |  | +            e.printStackTrace();
 | 
											
												
													
														|  | 
 |  | +        } finally {
 | 
											
												
													
														|  | 
 |  | +            if (outputStream != null) {
 | 
											
												
													
														|  | 
 |  | +                try {
 | 
											
												
													
														|  | 
 |  | +                    workbook.close();
 | 
											
												
													
														|  | 
 |  | +                    outputStream.close();
 | 
											
												
													
														|  | 
 |  | +                } catch (IOException e) {
 | 
											
												
													
														|  | 
 |  | +                    e.printStackTrace();
 | 
											
												
													
														|  | 
 |  | +                }
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |      @Override
 |  |      @Override
 | 
											
												
													
														|  |      public PageInfo<LiveRoomGoodsOrderVo> queryLiveRoomGoodsOrderList(LiveRoomGoodsOrderQueryInfo queryInfo) {
 |  |      public PageInfo<LiveRoomGoodsOrderVo> queryLiveRoomGoodsOrderList(LiveRoomGoodsOrderQueryInfo queryInfo) {
 | 
											
												
													
														|  |          PageInfo<LiveRoomGoodsOrderVo> pageInfo = new PageInfo<>(queryInfo.getPage(), queryInfo.getRows());
 |  |          PageInfo<LiveRoomGoodsOrderVo> pageInfo = new PageInfo<>(queryInfo.getPage(), queryInfo.getRows());
 |