Commit 9859b12b by zhangyu

导出

parent fd4216a2
...@@ -934,6 +934,6 @@ ...@@ -934,6 +934,6 @@
LEFT JOIN sys_office o LEFT JOIN sys_office o
ON o.id = a.office_id ON o.id = a.office_id
WHERE a.del_flag='0' WHERE a.del_flag='0'
/*AND user_type=6*/ /* AND user_type=6*/
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -1079,7 +1079,7 @@ public class UserController { ...@@ -1079,7 +1079,7 @@ public class UserController {
int rowNum = 1; int rowNum = 1;
// headers表示excel表中第一行的表头 在excel表中添加表头 // headers表示excel表中第一行的表头 在excel表中添加表头
String[] headers = {"归属公司", "归属部门", "登录名", "密码", "工号", "姓名", "邮箱", "电话", "手机", "用户类型", "最后登陆IP", "最后登陆日期", "是否允许登陆", "头像"}; String[] headers = {"归属公司", "归属部门", "登录名", "姓名", "邮箱", "电话", "手机"};
HSSFRow row = sheet.createRow(0); HSSFRow row = sheet.createRow(0);
for (int i = 0; i < headers.length; i++) { for (int i = 0; i < headers.length; i++) {
HSSFCell cell = row.createCell(i); HSSFCell cell = row.createCell(i);
...@@ -1092,17 +1092,17 @@ public class UserController { ...@@ -1092,17 +1092,17 @@ public class UserController {
row1.createCell(0).setCellValue(item.getCompany()); row1.createCell(0).setCellValue(item.getCompany());
row1.createCell(1).setCellValue(item.getOffice()); row1.createCell(1).setCellValue(item.getOffice());
row1.createCell(2).setCellValue(item.getLoginName()); row1.createCell(2).setCellValue(item.getLoginName());
row1.createCell(3).setCellValue(item.getPassword()); /* row1.createCell(3).setCellValue(item.getPassword());
row1.createCell(4).setCellValue(item.getNo()); row1.createCell(4).setCellValue(item.getNo());*/
row1.createCell(5).setCellValue(item.getName()); row1.createCell(5).setCellValue(item.getName());
row1.createCell(6).setCellValue(item.getEmail()); row1.createCell(6).setCellValue(item.getEmail());
row1.createCell(7).setCellValue(item.getPhone()); row1.createCell(7).setCellValue(item.getPhone());
row1.createCell(8).setCellValue(item.getMobile()); row1.createCell(8).setCellValue(item.getMobile());
row1.createCell(9).setCellValue(item.getUserType()); /* row1.createCell(9).setCellValue(item.getUserType());
row1.createCell(10).setCellValue(item.getLoginIp()); row1.createCell(10).setCellValue(item.getLoginIp());
row1.createCell(11).setCellValue(item.getLoginDate()); row1.createCell(11).setCellValue(item.getLoginDate());
row1.createCell(12).setCellValue(item.getLoginFlag()); row1.createCell(12).setCellValue(item.getLoginFlag());
row1.createCell(13).setCellValue(item.getPhoto()); row1.createCell(13).setCellValue(item.getPhoto());*/
rowNum++; rowNum++;
} }
ByteArrayOutputStream os = new ByteArrayOutputStream(); ByteArrayOutputStream os = new ByteArrayOutputStream();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment