查询cell类型bug

parent 7626d009
......@@ -453,27 +453,27 @@ public class UserQueryLogController {
if(user!=null&&row!=null){
HSSFCell cell0= row.createCell(0);
if(cell0!=null){
cell0.setCellValue(user.getUserId());
cell0.setCellValue(user.getUserId()==null?" ":String.valueOf(user.getUserId()));//user.getUserId()==null?" ":String.valueOf(user.getUserId())
}
HSSFCell cell1= row.createCell(1);
if(cell1!=null){
cell1.setCellValue(user.getPhoneNo());
cell1.setCellValue(user.getPhoneNo()==null?" ":user.getPhoneNo());
}
HSSFCell cell2= row.createCell(2);
if(cell2!=null){
cell2.setCellValue(user.getIdNo());
cell2.setCellValue(user.getIdNo()==null?" ":user.getIdNo());
}
HSSFCell cell3= row.createCell(3);
if(cell3!=null){
cell3.setCellValue(user.getBankCards());
cell3.setCellValue(user.getBankCards()==null?" ":user.getBankCards());
}
HSSFCell cell4= row.createCell(4);
if(cell4!=null){
cell4.setCellValue(user.getAddress());
cell4.setCellValue(user.getAddress()==null?" ":user.getAddress());
}
// row.createCell(0).setCellValue();
......
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