diff --git a/ssjygl-xsx-common/src/main/java/com/cowr/ssjygl/stat/customer/CustomerStatService.java b/ssjygl-xsx-common/src/main/java/com/cowr/ssjygl/stat/customer/CustomerStatService.java index fe9a191..4b9d72f 100644 --- a/ssjygl-xsx-common/src/main/java/com/cowr/ssjygl/stat/customer/CustomerStatService.java +++ b/ssjygl-xsx-common/src/main/java/com/cowr/ssjygl/stat/customer/CustomerStatService.java @@ -232,10 +232,10 @@ public class CustomerStatService { row.createCell(a++).setCellValue(i + 1); row.createCell(a++).setCellValue(record.getStr("name")); - row.createCell(a++).setCellValue(DataUtil.getDefaultByRecord(record, "sh_total_cnt")); + row.createCell(a++).setCellValue(record.getInt("sh_total_cnt") == null ? 0 : record.getInt("sh_total_cnt")); row.createCell(a++).setCellValue(DataUtil.getDefaultByRecord(record, "sh_total_weight")); row.createCell(a++).setCellValue(DataUtil.getDefaultByRecord(record, "sh_total_price")); - row.createCell(a++).setCellValue(DataUtil.getDefaultByRecord(record, "yh_total_cnt")); + row.createCell(a++).setCellValue(record.getInt("yh_total_cnt") == null ? 0 : record.getInt("yh_total_cnt")); row.createCell(a++).setCellValue(DataUtil.getDefaultByRecord(record, "yh_total_weight")); row.createCell(a++).setCellValue(DataUtil.getDefaultByRecord(record, "yh_total_price")); row.createCell(a++).setCellValue(DataUtil.getDefaultByRecord(record, "amount"));