瀏覽代碼

Since paymentMilesrtone is not mandatory field, so add null checking when reading corressponding cell value

tags/Baseline_30082024_BACKEND_UAT
MSI\2Fi 1 年之前
父節點
當前提交
4123c27a5e
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/main/java/com/ffii/tsms/modules/project/service/InvoiceService.kt

+ 1
- 1
src/main/java/com/ffii/tsms/modules/project/service/InvoiceService.kt 查看文件

@@ -404,7 +404,7 @@ open class InvoiceService(
team = ExcelUtils.getCell(sheet, i, 3).stringCellValue
stage = ExcelUtils.getCell(sheet, i, 4).numericCellValue.toString()
paymentMilestone = ExcelUtils.getCell(sheet, i, 5).stringCellValue
paymentMilestoneDate = ExcelUtils.getCell(sheet, i, 6).dateCellValue.toInstant().atZone(ZoneId.systemDefault()).toLocalDate()
paymentMilestoneDate = ExcelUtils.getCell(sheet, i, 6).dateCellValue?.toInstant()?.atZone(ZoneId.systemDefault())?.toLocalDate()
client = ExcelUtils.getCell(sheet, i, 7).stringCellValue
address = ExcelUtils.getCell(sheet, i, 8).stringCellValue
attention = ExcelUtils.getCell(sheet, i, 9).stringCellValue


Loading…
取消
儲存