From 940a0b8e4dc52f19ab9c4911219113e8e079b94d Mon Sep 17 00:00:00 2001 From: sunyuchao Date: Thu, 2 Jul 2020 18:30:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=93=E9=AA=8C=E7=89=88=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=9C=8B=E5=AD=97=E6=AE=B5=E6=B2=A1=E6=9C=89=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC=E5=BC=95=E8=B5=B7=E7=9A=84=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/project/ProjectDao.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml b/epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml index 5f78474374..108f2add31 100644 --- a/epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml +++ b/epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml @@ -9,11 +9,11 @@ agency_id AS "agencyId", project_total AS "projectTotal", DATE_FORMAT(date_id, '%Y.%m.%d') AS "dateName", - pending_total AS "pendingTotal", + IFNULL(pending_total,0) AS "pendingTotal", /*CAST(pending_ratio AS DECIMAL (9, 2)) AS "pendingRatioInt",*/ - pending_ratio AS "pendingRatioInt", - closed_total AS "closedTotal", - closed_ratio AS "closedRatioInt" + IFNULL(pending_ratio,0) AS "pendingRatioInt", + IFNULL(closed_total,0) AS "closedTotal", + IFNULL(closed_ratio,0) AS "closedRatioInt" FROM fact_agency_project_daily WHERE