public void loadMainRequirePlan(HttpServletResponse response) throws IOException {
Map<String,Object> map=new HashMap<String,Object>();
//根据当前时间查询出数据
SimpleDateFormat sdf =new SimpleDateFormat("yyyy-MM-dd");
String date=/*sdf.format(new Date());*/"2018-03-04";
String date1=date+" 00:00:00";
String date2=date+" 23:59:59";
map.put("date1", date1);
map.put("date2", date2);
map.put("laboratory", laboratory);
//查询出该事件段的所有操作人员
List<VIEW_MakeWorkSheetNew> listConner=vmws.selectConnerName(map);
// 读取模板,写入数据,下载
// path是指欲下载的文件的路径。
File file = new File("C:\\Users\\谢杨华\\Desktop\\模板.xls");
// 读取文件写入数据
InputStream io = new FileInputStream(file);
HSSFWorkbook wbook = new HSSFWorkbook(io);
HSSFSheet sheetModel = wbook.getSheetAt(0);//获取到sheet模板
//隐藏Sheet
wbook.removeSheetAt(0);
for(int s=0;s<listConner.size();s++) {
HSSFSheet sheet = wbook.createSheet(listConner.get(s).getConnerUsername()+"-"+sdf.format(new Date()));
copySheet(wbook, sheetModel, sheet, sheetModel.getFirstRow
Map<String,Object> map=new HashMap<String,Object>();
//根据当前时间查询出数据
SimpleDateFormat sdf =new SimpleDateFormat("yyyy-MM-dd");
String date=/*sdf.format(new Date());*/"2018-03-04";
String date1=date+" 00:00:00";
String date2=date+" 23:59:59";
map.put("date1", date1);
map.put("date2", date2);
map.put("laboratory", laboratory);
//查询出该事件段的所有操作人员
List<VIEW_MakeWorkSheetNew> listConner=vmws.selectConnerName(map);
// 读取模板,写入数据,下载
// path是指欲下载的文件的路径。
File file = new File("C:\\Users\\谢杨华\\Desktop\\模板.xls");
// 读取文件写入数据
InputStream io = new FileInputStream(file);
HSSFWorkbook wbook = new HSSFWorkbook(io);
HSSFSheet sheetModel = wbook.getSheetAt(0);//获取到sheet模板
//隐藏Sheet
wbook.removeSheetAt(0);
for(int s=0;s<listConner.size();s++) {
HSSFSheet sheet = wbook.createSheet(listConner.get(s).getConnerUsername()+"-"+sdf.format(new Date()));
copySheet(wbook, sheetModel, sheet, sheetModel.getFirstRow