From 9abbf621f6d059e3099de67d7d0dd5de8e685754 Mon Sep 17 00:00:00 2001 From: xiezhiwen Date: Wed, 25 Dec 2019 16:27:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E7=94=B3=E8=AF=B7=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=8F=90=E4=BA=A4=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src_sql/view/vi_distributor_lines.sql | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src_sql/view/vi_distributor_lines.sql b/src_sql/view/vi_distributor_lines.sql index 9a6f90e74..aa51f1c02 100644 --- a/src_sql/view/vi_distributor_lines.sql +++ b/src_sql/view/vi_distributor_lines.sql @@ -4,7 +4,8 @@ SELECT DI.DISTRIBUTOR_NO sum(ifnull(LCC.CLEAN_LEASE_MONEY, 0)) AS USEDLINES, (CASE WHEN ((DI.TOTAL = '') OR (DI.TOTAL = NULL)) THEN '' - ELSE round((ifnull(DI.TOTAL, 0) - sum(ifnull(LCC.CLEAN_LEASE_MONEY, 0))), 2) END) AS RELINES + ELSE round((ifnull(DI.TOTAL, 0) - sum(ifnull(LCC.CLEAN_LEASE_MONEY, 0))), 2) END) AS RELINES, + DI.CHANNELTYPE AS CHANNELTYPE FROM ((((APZL.DISTRIBUTOR_INFO DI LEFT JOIN APZL.LB_CONTRACT_INFO LCI ON ((LCI.DISTRIBUTOR_ID = DI.DISTRIBUTOR_NO))) LEFT JOIN APZL.LC_CALC_CONDITION LCC ON ((LCI.ID = LCC.CONTRACT_ID))) LEFT JOIN ( SELECT max(APZL.LB_FILE_ARCHIVING_INFO.MORTGAGE_COMPLETION_TIME) AS MORTGAGE_COMPLETION_TIME, APZL.LB_FILE_ARCHIVING_INFO.CONTRACT_ID AS CONTRACT_ID @@ -15,7 +16,7 @@ LEFT JOIN APZL.PRD_SPECIFIC_LIBRARY PSL ON (((PSL.BUSINESSTYPE = convert(LCI.PRO WHERE ((LCI.CONTRACT_STATUS = 31) AND (isnull(LFAI.MORTGAGE_COMPLETION_TIME) OR (LFAI.MORTGAGE_COMPLETION_TIME = ''))) GROUP BY DI.DISTRIBUTOR_NO); --- comment on column vi_distributor_lines.distributor_no not supported: 经销商编码 +-- comment on column vi_distributor_lines.distributor_no not supported: 缁忛攢鍟嗙紪鐮� --- comment on column vi_distributor_lines.total not supported: 额度 +-- comment on column vi_distributor_lines.total not supported: 棰濆害