From 9104c4992e0283866d7fd36fcf797e43f15318ce Mon Sep 17 00:00:00 2001 From: wuwenxiong <646448316@qq.com> Date: Tue, 15 Feb 2022 16:51:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=AF=B9=E8=B4=A6=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E5=AF=BC=E5=87=BA=E8=BF=90=E8=BE=93=E6=AC=A1=E6=95=B0?= =?UTF-8?q?=E4=B8=8D=E5=AF=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/cowr/ssjygl/stat/customer/CustomerStatService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"));