查询bug

parent 53a998a8
...@@ -448,14 +448,15 @@ public class UserQueryLogController { ...@@ -448,14 +448,15 @@ public class UserQueryLogController {
for (int i = 0; i < uqls.size(); i++) for (int i = 0; i < uqls.size(); i++)
{ {
row = sheet.createRow((int) i + 1); row = sheet.createRow((int) i + 1);
UserQueryInfo user = (UserQueryInfo) uqls.get(i); UserQueryInfo user = uqls.get(i);
// 第四步,创建单元格,并设置值 // 第四步,创建单元格,并设置值
row.createCell(0).setCellValue( user.getUserId()); if(user!=null){
row.createCell(1).setCellValue(user.getPhoneNo()); row.createCell(0).setCellValue(user.getUserId());
row.createCell(2).setCellValue(user.getIdNo()); row.createCell(1).setCellValue(user.getPhoneNo());
row.createCell(3).setCellValue(user.getBankCards()); row.createCell(2).setCellValue(user.getIdNo());
row.createCell(4).setCellValue(user.getAddress()); row.createCell(3).setCellValue(user.getBankCards());
row.createCell(4).setCellValue(user.getAddress());
}
} }
// 第六步,将文件存到指定位置 // 第六步,将文件存到指定位置
try try
......
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