|
|
|
@ -5006,7 +5006,7 @@ public class CoDelExcelServiceImpl implements CoDelExcelService { |
|
|
|
|
|
|
|
String[] headers = new String[]{ |
|
|
|
"核销单号", "开票日期", "运输", "订货人", "收货人", "目的港", |
|
|
|
"件数", "净重", "毛重kg", "体积", "数量pcs", "币种", "总价", |
|
|
|
"托数(PLT)", "箱数(CTN)", "净重", "毛重kg", "体积", "数量pcs", "币种", "总价", |
|
|
|
"发票号", "提单编号", "出口日期", "报关单号", "税务发票号码", "备注" |
|
|
|
}; |
|
|
|
|
|
|
|
@ -5141,7 +5141,8 @@ public class CoDelExcelServiceImpl implements CoDelExcelService { |
|
|
|
setImportExportTextCell(dataRow, c++, r.getOrdererName(), st.dataStyle()); |
|
|
|
setImportExportTextCell(dataRow, c++, r.getConsignee(), st.dataStyle()); |
|
|
|
setImportExportTextCell(dataRow, c++, r.getDestination(), st.dataStyle()); |
|
|
|
setImportExportIntCell(dataRow, c++, r.getPackageQty(), st.dataStyle()); |
|
|
|
setImportExportPositiveIntCell(dataRow, c++, r.getPackageQty(), st.dataStyle()); |
|
|
|
setImportExportIntCell(dataRow, c++, r.getBoxQty(), st.dataStyle()); |
|
|
|
setImportExportDecimalCell(dataRow, c++, r.getNetWeight(), st.weightStyle()); |
|
|
|
setImportExportDecimalCell(dataRow, c++, r.getGrossWeight(), st.weightStyle()); |
|
|
|
setImportExportDecimalCell(dataRow, c++, r.getTotalVolume(), st.volumeStyle()); |
|
|
|
@ -5241,6 +5242,20 @@ public class CoDelExcelServiceImpl implements CoDelExcelService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 托数列特殊处理:空值或0都显示为空白,避免导出出现无意义的0。 |
|
|
|
*/ |
|
|
|
private static void setImportExportPositiveIntCell(XSSFRow row, int col, Integer val, CellStyle style) { |
|
|
|
XSSFCell cell = row.createCell(col); |
|
|
|
if (val != null && val > 0) { |
|
|
|
cell.setCellValue(val.doubleValue()); |
|
|
|
cell.setCellStyle(style); |
|
|
|
} else { |
|
|
|
cell.setCellValue(""); |
|
|
|
cell.setCellStyle(style); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private static void setImportExportQtyCell(XSSFRow row, int col, BigDecimal val, CellStyle qtyStyle) { |
|
|
|
XSSFCell cell = row.createCell(col); |
|
|
|
if (val != null) { |
|
|
|
|