业务申请无法提交处理
This commit is contained in:
parent
ff47871346
commit
9abbf621f6
@ -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: 缁忛攢鍟嗙紪鐮<EFBFBD>
|
||||
|
||||
-- comment on column vi_distributor_lines.total not supported: 额度
|
||||
-- comment on column vi_distributor_lines.total not supported: 棰濆害
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user