|
|
@ -148,8 +148,6 @@ public class ScmVehRebateRest implements ScmVehRebateFeign { |
|
|
|
tempRow.setHeight((short) 500); |
|
|
|
// 循环单元格填入数据
|
|
|
|
for (int j = 0; j < 30; j++) { |
|
|
|
//列宽自适应,j为自适应的列,true就是自适应,false就是不自适应,默认不自适应
|
|
|
|
sheet.autoSizeColumn(j, true); |
|
|
|
XSSFCell tempCell = tempRow.createCell(j); |
|
|
|
tempCell.setCellStyle(contentStyle); |
|
|
|
String tempValue = ""; |
|
|
@ -246,6 +244,8 @@ public class ScmVehRebateRest implements ScmVehRebateFeign { |
|
|
|
break; |
|
|
|
} |
|
|
|
tempCell.setCellValue(tempValue); |
|
|
|
//列宽自适应,j为自适应的列,true就是自适应,false就是不自适应,默认不自适应
|
|
|
|
sheet.autoSizeColumn(j, true); |
|
|
|
} |
|
|
|
} |
|
|
|
//导出到浏览器下载
|
|
|
@ -350,8 +350,6 @@ public class ScmVehRebateRest implements ScmVehRebateFeign { |
|
|
|
tempRow.setHeight((short) 500); |
|
|
|
// 循环单元格填入数据
|
|
|
|
for (int j = 0; j < 26; j++) { |
|
|
|
//列宽自适应,j为自适应的列,true就是自适应,false就是不自适应,默认不自适应
|
|
|
|
sheet.autoSizeColumn(j, true); |
|
|
|
XSSFCell tempCell = tempRow.createCell(j); |
|
|
|
tempCell.setCellStyle(contentStyle); |
|
|
|
String tempValue = ""; |
|
|
@ -436,6 +434,8 @@ public class ScmVehRebateRest implements ScmVehRebateFeign { |
|
|
|
break; |
|
|
|
} |
|
|
|
tempCell.setCellValue(tempValue); |
|
|
|
//列宽自适应,j为自适应的列,true就是自适应,false就是不自适应,默认不自适应
|
|
|
|
sheet.autoSizeColumn(j, true); |
|
|
|
} |
|
|
|
} |
|
|
|
//导出到浏览器下载
|
|
|
@ -502,8 +502,6 @@ public class ScmVehRebateRest implements ScmVehRebateFeign { |
|
|
|
tempRow.setHeight((short) 500); |
|
|
|
// 循环单元格填入数据
|
|
|
|
for (int j = 0; j < 26; j++) { |
|
|
|
//列宽自适应,j为自适应的列,true就是自适应,false就是不自适应,默认不自适应
|
|
|
|
sheet.autoSizeColumn(j, true); |
|
|
|
XSSFCell tempCell = tempRow.createCell(j); |
|
|
|
tempCell.setCellStyle(contentStyle); |
|
|
|
String tempValue = ""; |
|
|
@ -588,6 +586,8 @@ public class ScmVehRebateRest implements ScmVehRebateFeign { |
|
|
|
break; |
|
|
|
} |
|
|
|
tempCell.setCellValue(tempValue); |
|
|
|
//列宽自适应,j为自适应的列,true就是自适应,false就是不自适应,默认不自适应
|
|
|
|
sheet.autoSizeColumn(j, true); |
|
|
|
} |
|
|
|
} |
|
|
|
//导出到浏览器下载
|
|
|
@ -633,7 +633,7 @@ public class ScmVehRebateRest implements ScmVehRebateFeign { |
|
|
|
ScmVehRebate scmVehRebate = scmVehRebateService.fetchBySid(sid); |
|
|
|
Integer state = scmVehRebate.getState(); |
|
|
|
if (state != 0) { |
|
|
|
return rb.setMsg("请选择状态为未预提的记录删除"); |
|
|
|
return rb.setMsg("请选择流程状态为未预提的记录删除"); |
|
|
|
} |
|
|
|
} |
|
|
|
scmVehRebateService.delBySids(sids); |
|
|
@ -733,7 +733,6 @@ public class ScmVehRebateRest implements ScmVehRebateFeign { |
|
|
|
cellStyle.setBorderLeft(BorderStyle.THIN); //左边框
|
|
|
|
cellStyle.setBorderRight(BorderStyle.THIN); //右边框
|
|
|
|
cellStyle.setBorderTop(BorderStyle.THIN); //上边框
|
|
|
|
|
|
|
|
// 生成12号字体
|
|
|
|
XSSFFont font = wb.createFont(); |
|
|
|
font.setColor((short) 8); |
|
|
|