查询bug

parent 8b9814e5
......@@ -451,11 +451,36 @@ public class UserQueryLogController {
UserQueryInfo user = uqls.get(i);
// 第四步,创建单元格,并设置值
if(user!=null&&row!=null){
row.createCell(0).setCellValue(user.getUserId());
row.createCell(1).setCellValue(user.getPhoneNo());
row.createCell(2).setCellValue(user.getIdNo());
row.createCell(3).setCellValue(user.getBankCards());
row.createCell(4).setCellValue(user.getAddress());
HSSFCell cell0= row.createCell(0);
if(cell0!=null){
cell0.setCellValue(user.getUserId());
}
HSSFCell cell1= row.createCell(1);
if(cell1!=null){
cell1.setCellValue(user.getPhoneNo());
}
HSSFCell cell2= row.createCell(2);
if(cell2!=null){
cell2.setCellValue(user.getIdNo());
}
HSSFCell cell3= row.createCell(3);
if(cell3!=null){
cell3.setCellValue(user.getBankCards());
}
HSSFCell cell4= row.createCell(4);
if(cell4!=null){
cell4.setCellValue(user.getAddress());
}
// row.createCell(0).setCellValue();
// row.createCell(1).setCellValue(user.getPhoneNo());
// row.createCell(2).setCellValue(user.getIdNo());
// row.createCell(3).setCellValue(user.getBankCards());
// row.createCell(4).setCellValue(user.getAddress());
}
}
// 第六步,将文件存到指定位置
......
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