退货数据显示为负数
This commit is contained in:
@@ -45,10 +45,12 @@ public class FileUtils {
|
|||||||
cell.setCellValue(value);
|
cell.setCellValue(value);
|
||||||
|
|
||||||
if (j == 10 && !"0".equals(value)) {
|
if (j == 10 && !"0".equals(value)) {
|
||||||
|
cell.setCellValue("-" + value);
|
||||||
setCellBackground(cell, IndexedColors.YELLOW, workbook);
|
setCellBackground(cell, IndexedColors.YELLOW, workbook);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (j == 11 && !"0.00".equals(value)) {
|
if (j == 11 && !"0.00".equals(value)) {
|
||||||
|
cell.setCellValue("-" + value);
|
||||||
setCellBackground(cell, IndexedColors.YELLOW, workbook);
|
setCellBackground(cell, IndexedColors.YELLOW, workbook);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user