diff --git a/src_sql/投产SQL/v20201022/maliang20201022_已上线.sql b/src_sql/投产SQL/v20201022/maliang20201022_已上线.sql
index 1845d77a5..1968fe185 100644
--- a/src_sql/投产SQL/v20201022/maliang20201022_已上线.sql
+++ b/src_sql/投产SQL/v20201022/maliang20201022_已上线.sql
@@ -38,3 +38,22 @@ INSERT INTO `apzl`.`awe_do_library`(`dono`, `colindex`, `sortno`, `isinuse`, `co
INSERT INTO `apzl`.`scenario_model`(`scenarioid`, `modelid`, `sortno`, `modelname`, `modeldescribe`, `modeltype`, `subtypeno`, `runcondition`, `status`, `nopassdeal`, `passdeal`, `passmessage`, `nopassmessage`, `executescript`, `remark`, `inputuser`, `inputorg`, `inputtime`, `updateuser`, `updatetime`, `groupid`, `modelkind`, `bizviewer`) VALUES ('ʼϹ鵵', '0040', '0040', 'Ϣյʱ', 'ʼʱ䡢յʱ', '20', '', '', '1', '10', NULL, 'д', 'ûдյʱ䣬', 'SELECT CASE WHEN COUNT(1)>0 THEN \'true\' ELSE \'false\' END FROM LB_FILE_MAILARCHIVING_INFO_TEMP l WHERE l.flowunid = \'#{ObjectNo}\' AND l.expnumber IS NOT NULL AND l.expcompany IS NOT NULL AND l.EXPSTRATDATE IS NOT NULL AND l.EXPENDDATE IS NOT NULL AND l.EXPENDDATE<>\'\' AND l.EXPENDDATE<>\'null\'', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+INSERT INTO `apzl`.`awe_do_group`(`dono`, `dockid`, `dockname`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `inputorg`, `sortno`, `grouphead`, `groupfoot`, `groupbody`, `colcount`, `styleid`, `isexpand`, `groupbody1`, `groupbody2`) VALUES ('LB_CONTRACT_INFO_PAY', '0080', 'ҿ/ԼϢ', 'SYS_Designer', '2020/03/16 14:47:23', 'SYS_Designer', '2020/03/16 14:47:23', '', '0070', '', '', '', 2, '', '', '', '');
+
+INSERT INTO `apzl`.`awe_do_library`(`dono`, `colindex`, `sortno`, `isinuse`, `coltablename`, `colactualname`, `colname`, `coltype`, `coldefaultvalue`, `colheader`, `colunit`, `colcolumntype`, `coleditstyle`, `colcheckformat`, `colalign`, `coleditsourcetype`, `coleditsource`, `colhtmlstyle`, `collimit`, `colvisible`, `colreadonly`, `colrequired`, `colsortable`, `isfilter`, `colspan`, `isautocomplete`, `groupid`, `colfilterrefid`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `isaudit`, `colfilterattrs`, `isupdate`, `parentcolindex`, `tips`, `colinnerbtevent`, `colfilteroptions`) VALUES ('LB_CONTRACT_INFO_PAY', '4630', '4630', '1', 'lpi', 'IS_NETCAR', 'IS_NETCAR', 'String', '0', 'Ƿҿ/Լ', NULL, '1', 'Radiobox', '1', '1', 'Code', 'TrueFalse', NULL, '20', '1', '0', '1', '1', '0', 0, NULL, '0080', NULL, 'SYS_Designer', '2018/10/08 17:07:47', 'administrator', '2020/06/16 09:15:12', '0', NULL, '1', NULL, NULL, NULL, NULL);
+
+INSERT INTO `apzl`.`awe_do_library`(`dono`, `colindex`, `sortno`, `isinuse`, `coltablename`, `colactualname`, `colname`, `coltype`, `coldefaultvalue`, `colheader`, `colunit`, `colcolumntype`, `coleditstyle`, `colcheckformat`, `colalign`, `coleditsourcetype`, `coleditsource`, `colhtmlstyle`, `collimit`, `colvisible`, `colreadonly`, `colrequired`, `colsortable`, `isfilter`, `colspan`, `isautocomplete`, `groupid`, `colfilterrefid`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `isaudit`, `colfilterattrs`, `isupdate`, `parentcolindex`, `tips`, `colinnerbtevent`, `colfilteroptions`) VALUES ('LB_CONTRACT_INFO_PAY', '4740', '4740', '1', 'lpi', 'IS_OPERATION', 'IS_OPERATION', 'String', '', 'ǷΪӪ', '', '1', 'Radiobox', '1', '1', 'Code', 'TrueFalse', '', '20', '1', '0', '0', '1', '0', 0, NULL, '0080', '', 'SYS_Designer', '2018/10/08 17:07:47', 'administrator', '2020/06/16 09:15:12', '0', '', '1', '', '', '', NULL);
+INSERT INTO `apzl`.`awe_do_library`(`dono`, `colindex`, `sortno`, `isinuse`, `coltablename`, `colactualname`, `colname`, `coltype`, `coldefaultvalue`, `colheader`, `colunit`, `colcolumntype`, `coleditstyle`, `colcheckformat`, `colalign`, `coleditsourcetype`, `coleditsource`, `colhtmlstyle`, `collimit`, `colvisible`, `colreadonly`, `colrequired`, `colsortable`, `isfilter`, `colspan`, `isautocomplete`, `groupid`, `colfilterrefid`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `isaudit`, `colfilterattrs`, `isupdate`, `parentcolindex`, `tips`, `colinnerbtevent`, `colfilteroptions`) VALUES ('LB_CONTRACT_INFO_PAY', '4850', '4850', '1', 'lpi', 'IS_AFFILIATED', 'IS_AFFILIATED', 'String', '', 'Ƿҿ/ڵ', '', '1', 'Radiobox', '1', '1', 'Code', 'TrueFalse', '', '20', '1', '0', '0', '1', '0', 0, '', '0080', '', 'SYS_Designer', '2018/10/08 17:07:47', 'administrator', '2020/06/16 09:15:12', '0', '', '1', '', '', '', '');
+INSERT INTO `apzl`.`awe_do_library`(`dono`, `colindex`, `sortno`, `isinuse`, `coltablename`, `colactualname`, `colname`, `coltype`, `coldefaultvalue`, `colheader`, `colunit`, `colcolumntype`, `coleditstyle`, `colcheckformat`, `colalign`, `coleditsourcetype`, `coleditsource`, `colhtmlstyle`, `collimit`, `colvisible`, `colreadonly`, `colrequired`, `colsortable`, `isfilter`, `colspan`, `isautocomplete`, `groupid`, `colfilterrefid`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `isaudit`, `colfilterattrs`, `isupdate`, `parentcolindex`, `tips`, `colinnerbtevent`, `colfilteroptions`) VALUES ('LB_CONTRACT_INFO_PAY', '4960', '4960', '1', 'lpi', 'IS_OPERATION_QUALIFICATION', 'IS_OPERATION_QUALIFICATION', 'String', '', '/ҿǷȡóӪ', '', '1', 'Radiobox', '1', '1', 'Code', 'TrueFalse', '', '20', '1', '0', '0', '1', '0', 0, '', '0080', '', 'SYS_Designer', '2018/10/08 17:07:47', 'administrator', '2020/06/16 09:15:12', '0', '', '1', '', '', '', '');
+INSERT INTO `apzl`.`awe_do_library`(`dono`, `colindex`, `sortno`, `isinuse`, `coltablename`, `colactualname`, `colname`, `coltype`, `coldefaultvalue`, `colheader`, `colunit`, `colcolumntype`, `coleditstyle`, `colcheckformat`, `colalign`, `coleditsourcetype`, `coleditsource`, `colhtmlstyle`, `collimit`, `colvisible`, `colreadonly`, `colrequired`, `colsortable`, `isfilter`, `colspan`, `isautocomplete`, `groupid`, `colfilterrefid`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `isaudit`, `colfilterattrs`, `isupdate`, `parentcolindex`, `tips`, `colinnerbtevent`, `colfilteroptions`) VALUES ('LB_CONTRACT_INFO_PAY', '5060', '5060', '1', 'lpi', 'AFFILIATEDNAME', 'AFFILIATEDNAME', 'String', '', 'ҿ', '', '1', 'Text', '1', '1', '', '', '', '200', '1', '0', '0', '1', '0', 0, '', '0080', '', 'SYS_Designer', '2018/10/08 17:07:47', 'administrator', '2020/06/16 09:15:12', '0', '', '1', '', '', 'select()', '');
+INSERT INTO `apzl`.`awe_do_library`(`dono`, `colindex`, `sortno`, `isinuse`, `coltablename`, `colactualname`, `colname`, `coltype`, `coldefaultvalue`, `colheader`, `colunit`, `colcolumntype`, `coleditstyle`, `colcheckformat`, `colalign`, `coleditsourcetype`, `coleditsource`, `colhtmlstyle`, `collimit`, `colvisible`, `colreadonly`, `colrequired`, `colsortable`, `isfilter`, `colspan`, `isautocomplete`, `groupid`, `colfilterrefid`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `isaudit`, `colfilterattrs`, `isupdate`, `parentcolindex`, `tips`, `colinnerbtevent`, `colfilteroptions`) VALUES ('LB_CONTRACT_INFO_PAY', '5070', '5070', '1', 'lpi', 'TRANSPORTCERTID', 'TRANSPORTCERTID', 'String', NULL, '·֤պ', NULL, '1', 'Text', '1', '1', NULL, NULL, NULL, '50', '1', '0', '0', '1', '0', 0, NULL, '0080', NULL, 'SYS_Designer', '2018/10/08 17:07:47', 'administrator', '2020/06/16 09:15:12', '0', NULL, '1', NULL, NULL, NULL, NULL);
+INSERT INTO `apzl`.`awe_do_library`(`dono`, `colindex`, `sortno`, `isinuse`, `coltablename`, `colactualname`, `colname`, `coltype`, `coldefaultvalue`, `colheader`, `colunit`, `colcolumntype`, `coleditstyle`, `colcheckformat`, `colalign`, `coleditsourcetype`, `coleditsource`, `colhtmlstyle`, `collimit`, `colvisible`, `colreadonly`, `colrequired`, `colsortable`, `isfilter`, `colspan`, `isautocomplete`, `groupid`, `colfilterrefid`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `isaudit`, `colfilterattrs`, `isupdate`, `parentcolindex`, `tips`, `colinnerbtevent`, `colfilteroptions`) VALUES ('LB_CONTRACT_INFO_PAY', '5080', '5080', '1', 'lpi', 'TRANSPORTDATE', 'TRANSPORTDATE', 'String', NULL, '·֤Ч', NULL, '1', 'Date', '1', '1', NULL, NULL, NULL, '20', '1', '0', '0', '1', '0', 0, NULL, '0080', NULL, 'SYS_Designer', '2018/10/18 18:31:11', '8006U00000009', '2018/11/07 14:39:10', '0', NULL, '1', NULL, NULL, NULL, NULL);
+INSERT INTO `apzl`.`awe_do_library`(`dono`, `colindex`, `sortno`, `isinuse`, `coltablename`, `colactualname`, `colname`, `coltype`, `coldefaultvalue`, `colheader`, `colunit`, `colcolumntype`, `coleditstyle`, `colcheckformat`, `colalign`, `coleditsourcetype`, `coleditsource`, `colhtmlstyle`, `collimit`, `colvisible`, `colreadonly`, `colrequired`, `colsortable`, `isfilter`, `colspan`, `isautocomplete`, `groupid`, `colfilterrefid`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `isaudit`, `colfilterattrs`, `isupdate`, `parentcolindex`, `tips`, `colinnerbtevent`, `colfilteroptions`) VALUES ('LB_CONTRACT_INFO_PAY', '5290', '5290', '1', 'lpi', 'NETCERTNAME', 'NETCERTNAME', 'String', 'Ӫҵִ', '֤', '', '1', 'Text', '1', '1', '', '', '', '32', '1', '1', '0', '1', '0', 0, '', '0080', '', 'SYS_Designer', '2018/10/18 19:14:12', 'SYS_Designer', '2020/06/14 11:39:38', '0', '', '1', '', '', '', '');
+INSERT INTO `apzl`.`awe_do_library`(`dono`, `colindex`, `sortno`, `isinuse`, `coltablename`, `colactualname`, `colname`, `coltype`, `coldefaultvalue`, `colheader`, `colunit`, `colcolumntype`, `coleditstyle`, `colcheckformat`, `colalign`, `coleditsourcetype`, `coleditsource`, `colhtmlstyle`, `collimit`, `colvisible`, `colreadonly`, `colrequired`, `colsortable`, `isfilter`, `colspan`, `isautocomplete`, `groupid`, `colfilterrefid`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `isaudit`, `colfilterattrs`, `isupdate`, `parentcolindex`, `tips`, `colinnerbtevent`, `colfilteroptions`) VALUES ('LB_CONTRACT_INFO_PAY', '5300', '5300', '1', 'lpi', 'NETCERTID', 'NETCERTID', 'String', '', '֤պ', '', '1', 'Text', '1', '1', '', '', '', '32', '1', '0', '0', '1', '0', 0, '', '0080', '', 'SYS_Designer', '2018/10/18 19:14:12', 'SYS_Designer', '2020/06/14 11:39:38', '0', '', '1', '', '', '', '');
+INSERT INTO `apzl`.`awe_do_library`(`dono`, `colindex`, `sortno`, `isinuse`, `coltablename`, `colactualname`, `colname`, `coltype`, `coldefaultvalue`, `colheader`, `colunit`, `colcolumntype`, `coleditstyle`, `colcheckformat`, `colalign`, `coleditsourcetype`, `coleditsource`, `colhtmlstyle`, `collimit`, `colvisible`, `colreadonly`, `colrequired`, `colsortable`, `isfilter`, `colspan`, `isautocomplete`, `groupid`, `colfilterrefid`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `isaudit`, `colfilterattrs`, `isupdate`, `parentcolindex`, `tips`, `colinnerbtevent`, `colfilteroptions`) VALUES ('LB_CONTRACT_INFO_PAY', '5400', '5400', '1', 'lpi', 'LEGALPERSONNAME', 'LEGALPERSONNAME', 'String', '', '/Ӫ', '', '1', 'Text', '1', '1', '', '', '', '200', '1', '0', '0', '1', '0', 0, '', '0080', '', 'SYS_Designer', '2018/10/08 17:07:47', 'SYS_Designer', '2020/06/14 11:39:38', '0', '', '1', '', '', '', '');
+INSERT INTO `apzl`.`awe_do_library`(`dono`, `colindex`, `sortno`, `isinuse`, `coltablename`, `colactualname`, `colname`, `coltype`, `coldefaultvalue`, `colheader`, `colunit`, `colcolumntype`, `coleditstyle`, `colcheckformat`, `colalign`, `coleditsourcetype`, `coleditsource`, `colhtmlstyle`, `collimit`, `colvisible`, `colreadonly`, `colrequired`, `colsortable`, `isfilter`, `colspan`, `isautocomplete`, `groupid`, `colfilterrefid`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `isaudit`, `colfilterattrs`, `isupdate`, `parentcolindex`, `tips`, `colinnerbtevent`, `colfilteroptions`) VALUES ('LB_CONTRACT_INFO_PAY', '5410', '5410', '1', 'lpi', 'LEGALPERSONID', 'LEGALPERSONID', 'String', '', '/Ӫ֤', '', '1', 'Text', '1', '1', '', '', '', '32', '1', '0', '0', '1', '0', 0, '', '0080', '', 'SYS_Designer', '2018/10/18 18:31:11', 'SYS_Designer', '2020/06/14 11:39:38', '0', '', '1', '', '', '', '');
+INSERT INTO `apzl`.`awe_do_library`(`dono`, `colindex`, `sortno`, `isinuse`, `coltablename`, `colactualname`, `colname`, `coltype`, `coldefaultvalue`, `colheader`, `colunit`, `colcolumntype`, `coleditstyle`, `colcheckformat`, `colalign`, `coleditsourcetype`, `coleditsource`, `colhtmlstyle`, `collimit`, `colvisible`, `colreadonly`, `colrequired`, `colsortable`, `isfilter`, `colspan`, `isautocomplete`, `groupid`, `colfilterrefid`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `isaudit`, `colfilterattrs`, `isupdate`, `parentcolindex`, `tips`, `colinnerbtevent`, `colfilteroptions`) VALUES ('LB_CONTRACT_INFO_PAY', '5510', '5510', '1', 'lpi', 'AFFILIATEDDATE', 'AFFILIATEDDATE', 'String', '', 'ҿעʱ', '', '1', 'Date', '1', '1', '', '', '', '32', '1', '0', '0', '1', '0', 0, '', '0080', '', 'SYS_Designer', '2018/10/08 17:07:47', 'SYS_Designer', '2020/06/14 11:39:38', '0', '', '1', '', '', '', '');
+INSERT INTO `apzl`.`awe_do_library`(`dono`, `colindex`, `sortno`, `isinuse`, `coltablename`, `colactualname`, `colname`, `coltype`, `coldefaultvalue`, `colheader`, `colunit`, `colcolumntype`, `coleditstyle`, `colcheckformat`, `colalign`, `coleditsourcetype`, `coleditsource`, `colhtmlstyle`, `collimit`, `colvisible`, `colreadonly`, `colrequired`, `colsortable`, `isfilter`, `colspan`, `isautocomplete`, `groupid`, `colfilterrefid`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `isaudit`, `colfilterattrs`, `isupdate`, `parentcolindex`, `tips`, `colinnerbtevent`, `colfilteroptions`) VALUES ('LB_CONTRACT_INFO_PAY', '5620', '5620', '1', 'lpi', 'AFFILIATEDENDDATE', 'AFFILIATEDENDDATE', 'String', '', 'Ӫ', '', '1', 'Date', '1', '1', '', '', '', '32', '1', '0', '0', '1', '0', 0, '', '0080', '', 'SYS_Designer', '2018/10/08 17:07:47', 'SYS_Designer', '2020/06/14 11:39:38', '0', '', '1', '', '', '', '');
+INSERT INTO `apzl`.`awe_do_library`(`dono`, `colindex`, `sortno`, `isinuse`, `coltablename`, `colactualname`, `colname`, `coltype`, `coldefaultvalue`, `colheader`, `colunit`, `colcolumntype`, `coleditstyle`, `colcheckformat`, `colalign`, `coleditsourcetype`, `coleditsource`, `colhtmlstyle`, `collimit`, `colvisible`, `colreadonly`, `colrequired`, `colsortable`, `isfilter`, `colspan`, `isautocomplete`, `groupid`, `colfilterrefid`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `isaudit`, `colfilterattrs`, `isupdate`, `parentcolindex`, `tips`, `colinnerbtevent`, `colfilteroptions`) VALUES ('LB_CONTRACT_INFO_PAY', '5730', '5730', '1', 'lpi', 'REGISTEREDMONEY', 'REGISTEREDMONEY', 'Number', '', 'עʱ', 'Ԫ', '1', 'Text', '2', '1', '', '', '', '32', '1', '0', '0', '1', '0', 0, '', '0080', '', 'SYS_Designer', '2018/10/08 17:07:47', 'SYS_Designer', '2020/06/14 11:39:38', '0', '', '1', '', '', '', '');
+INSERT INTO `apzl`.`awe_do_library`(`dono`, `colindex`, `sortno`, `isinuse`, `coltablename`, `colactualname`, `colname`, `coltype`, `coldefaultvalue`, `colheader`, `colunit`, `colcolumntype`, `coleditstyle`, `colcheckformat`, `colalign`, `coleditsourcetype`, `coleditsource`, `colhtmlstyle`, `collimit`, `colvisible`, `colreadonly`, `colrequired`, `colsortable`, `isfilter`, `colspan`, `isautocomplete`, `groupid`, `colfilterrefid`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `isaudit`, `colfilterattrs`, `isupdate`, `parentcolindex`, `tips`, `colinnerbtevent`, `colfilteroptions`) VALUES ('LB_CONTRACT_INFO_PAY', '5840', '5840', '1', 'lpi', 'AFFILIATEDACTUALADDRESS', 'AFFILIATEDACTUALADDRESS', 'String', '', 'ҿʵʾӪַ', '', '1', 'Text', '1', '1', '', '', '', '400', '1', '0', '0', '1', '0', 0, '', '0080', '', 'SYS_Designer', '2018/10/08 17:07:47', 'SYS_Designer', '2020/06/14 11:39:38', '', '', '1', '', '', '', '');
+INSERT INTO `apzl`.`awe_do_library`(`dono`, `colindex`, `sortno`, `isinuse`, `coltablename`, `colactualname`, `colname`, `coltype`, `coldefaultvalue`, `colheader`, `colunit`, `colcolumntype`, `coleditstyle`, `colcheckformat`, `colalign`, `coleditsourcetype`, `coleditsource`, `colhtmlstyle`, `collimit`, `colvisible`, `colreadonly`, `colrequired`, `colsortable`, `isfilter`, `colspan`, `isautocomplete`, `groupid`, `colfilterrefid`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `isaudit`, `colfilterattrs`, `isupdate`, `parentcolindex`, `tips`, `colinnerbtevent`, `colfilteroptions`) VALUES ('LB_CONTRACT_INFO_PAY', '5950', '5950', '1', 'lpi', 'AFFILIATEDADDRESS', 'AFFILIATEDADDRESS', 'String', '', 'ҿעַ', '', '1', 'Text', '1', '1', '', '', '', '400', '1', '0', '0', '1', '0', 0, '', '0080', '', 'SYS_Designer', '2018/10/08 17:07:47', 'SYS_Designer', '2020/06/14 11:39:38', '', '', '1', '', '', '', '');
diff --git a/报表/汽车类报表一/合同统计表_汽车类.xml b/报表/汽车类报表一/合同统计表_汽车类.xml
index 259942cef..08f584296 100644
--- a/报表/汽车类报表一/合同统计表_汽车类.xml
+++ b/报表/汽车类报表一/合同统计表_汽车类.xml
@@ -37,111 +37,33 @@
contract_static
2c9023815726a036015726a496b00001
COMPLEXSQL
- SELECT lci.contract_number,
-lul.customer_name,oi.orgname,oi.orgid,ui.username,
-lfi.fact_date start_date,
-summoney.rent vrent,
-vlrp.fact_rent vfactrent,
-summoney.rent-vlrp.fact_rent vrentover,
-summoney.corpus vcorpus,
-vlrp.fact_corpus vfactcorpus,
-summoney.corpus-vlrp.fact_corpus vcorpusover,
-summoney.interest vinterest,
-vlrp.fact_interest vfactinterest,
-summoney.interest-vlrp.fact_interest vinterestover,
-vlrp.penalty vpenalty,
-vlrp.fact_penalty vfactpenalty,
-(CASE WHEN vlrp.penalty_over<0 THEN '0' ELSE vlrp.penalty_over END) AS vpenaltyover,
-ci.customer_num
-FROM lb_contract_info lci
-LEFT JOIN lc_fund_income lfi ON lfi.CONTRACT_ID=lci.ID AND lfi.fee_type='feetype10' AND lfi.`ROLL_BACK`=0 AND lfi.`PAY_STATUS`='have_paid'
-LEFT JOIN org_info oi ON lci.project_dept=oi.orgid
-LEFT JOIN user_info ui ON ui.userid=lci.project_manage
-LEFT JOIN lb_union_lessee lul ON lci.id=lul.contract_id
-LEFT JOIN customer_info ci ON ci.customerid=lul.CUSTOMER_ID
-LEFT JOIN (SELECT t.contract_id,
-t.payment_number,
-SUM(t.rent) rent,SUM(t.fact_rent)fact_rent,SUM(t.rent_over)rent_over,
-SUM(t.corpus)corpus,SUM(t.fact_corpus)fact_corpus,SUM(t.corpus_over)corpus_over,
-SUM(t.interest)interest,SUM(t.fact_interest)fact_interest,SUM(t.interest_over)interest_over,
-SUM(t.penalty)penalty,SUM(t.fact_penalty)fact_penalty,SUM(t.penalty_over) penalty_over
-FROM
-(
-SELECT
- lcf.ID AS id,
- lbc.PROJECT_ID AS project_id,
- lbc.ID AS contract_id,
- lccs.PLAN_STATUS AS contract_status,
- lbc.CONTRACT_NUMBER AS contract_number,
- lcf.PAYMENT_NUMBER AS payment_number,
- IFNULL(lbu.customername,'') AS customername,
- lbc.PROJECT_NAME AS project_name,
- lcf.PLAN_LIST AS plan_list,
- lcf.PLAN_DATE AS plan_date,
- lcf.RENT AS rent,
- lcf.CORPUS AS corpus,
- lcf.INTEREST AS interest,
- getRentPenalty3(
-lcf.PAYMENT_NUMBER,lcf.PLAN_LIST,DATE_FORMAT(NOW(),'%Y/%m/%d')) AS penalty,
- (IFNULL(lcfd.rent,0) + IFNULL(lcfi.rent,0)) AS fact_rent,
- (IFNULL(lcfd.corpus,0) + IFNULL(lcfi.corpus,0)) AS fact_corpus,
- (IFNULL(lcfd.interest,0) + IFNULL(lcfi.interest,0)) AS fact_interest,
- (IFNULL(lcfd.penalty,0) + IFNULL(lcfi.penalty,0)) AS fact_penalty,
- (IFNULL(lcfd.corpus_adjust,0) + IFNULL(lcfi.corpus_adjust,0)) AS corpus_adjust,
- (IFNULL(lcfd.interest_adjust,0) + IFNULL(lcfi.interest_adjust,0)) AS interest_adjust,
- (IFNULL(lcfd.penalty_adjust,0) + IFNULL(lcfi.penalty_adjust,0)) AS penalty_adjust,
- (lcf.RENT - (IFNULL(lcfd.rent,0) + IFNULL(lcfi.rent,0))) AS rent_over,
- (lcf.CORPUS - (((IFNULL(lcfd.corpus,0) + IFNULL(lcfi.corpus,0)) + IFNULL(lcfd.corpus_adjust,0)) + IFNULL(lcfi.corpus_adjust,0))) AS corpus_over,
- (lcf.INTEREST - (((IFNULL(lcfd.interest,0) + IFNULL(lcfi.interest,0)) + IFNULL(lcfd.interest_adjust,0)) + IFNULL(lcfi.interest_adjust,0))) AS interest_over,
- ROUND((getRentPenalty3(lcf.PAYMENT_NUMBER,lcf.PLAN_LIST,DATE_FORMAT(NOW(),'%Y/%m/%d')) - ((IFNULL(lcfd.penalty,0) + IFNULL(lcfi.penalty,0)) + (IFNULL(lcfd.penalty_adjust,0) + IFNULL(lcfi.penalty_adjust,0)))),2) AS penalty_over,
- (CASE WHEN (((IFNULL(lcfd.rent,0) + IFNULL(lcfi.rent,0)) = lcf.RENT) AND (ROUND((getRentPenalty3(lcf.PAYMENT_NUMBER,lcf.PLAN_LIST,DATE_FORMAT(NOW(),'%Y/%m/%d')) - ((IFNULL(lcfd.penalty,0) + IFNULL(lcfi.penalty,0)) + (IFNULL(lcfd.penalty_adjust,0) + IFNULL(lcfi.penalty_adjust,0)))),2) = '0.00')) THEN '已回笼' WHEN ((IFNULL(lcfd.rent,0) + IFNULL(lcfi.rent,0)) > 0) THEN '部分回笼' ELSE '未回笼' END) AS planstatus
-FROM lc_rent_plan lcf
-LEFT JOIN lb_contract_info lbc ON lcf.CONTRACT_ID = lbc.ID
-LEFT JOIN lc_calc_condition_status lccs ON lccs.PAYMENT_NUMBER = lcf.PAYMENT_NUMBER
-LEFT JOIN lb_union_lessee_transfer lbu ON lcf.CONTRACT_ID = lbu.contract_id
-LEFT JOIN (
-
-SELECT
- lc_rent_income.PAYMENT_NUMBER AS payment_number,
- lc_rent_income.PLAN_LIST AS plan_list,
- lc_rent_income.PLAN_ID AS plan_id,
- SUM(lc_rent_income.RENT) AS rent,
- SUM(lc_rent_income.CORPUS) AS corpus,
- SUM(lc_rent_income.INTEREST) AS interest,
- SUM(lc_rent_income.PENALTY) AS penalty,
- SUM(lc_rent_income.CORPUS_ADJUST) AS corpus_adjust,
- SUM(lc_rent_income.INTEREST_ADJUST) AS interest_adjust,
- SUM(lc_rent_income.PENALTY_ADJUST) AS penalty_adjust
-FROM lc_rent_income
-WHERE ROLL_BACK = '0' /~enddate:AND hire_date<='{enddate}'~/
-GROUP BY lc_rent_income.PAYMENT_NUMBER,lc_rent_income.PLAN_LIST
-
-) lcfd ON lcf.PAYMENT_NUMBER = lcfd.payment_number AND lcf.PLAN_LIST = lcfd.plan_list
-LEFT JOIN (
-
-SELECT
- lc_rent_income_temp.PAYMENT_NUMBER AS payment_number,
- lc_rent_income_temp.PLAN_LIST AS plan_list,
- SUM(lc_rent_income_temp.RENT) AS rent,
- SUM(lc_rent_income_temp.CORPUS) AS corpus,
- SUM(lc_rent_income_temp.INTEREST) AS interest,
- SUM(lc_rent_income_temp.PENALTY) AS penalty,
- SUM(lc_rent_income_temp.CORPUS_ADJUST) AS corpus_adjust,
- SUM(lc_rent_income_temp.INTEREST_ADJUST) AS interest_adjust,
- SUM(lc_rent_income_temp.PENALTY_ADJUST) AS penalty_adjust
-FROM lc_rent_income_temp
-WHERE IS_FLOWING = 0 AND ROLL_BACK = '0' /~enddate:AND hire_date<='{enddate}'~/
-GROUP BY lc_rent_income_temp.PAYMENT_NUMBER,lc_rent_income_temp.PLAN_LIST
-
-) lcfi ON lcf.PAYMENT_NUMBER = lcfi.payment_number AND lcf.PLAN_LIST = lcfi.plan_list
- WHERE 1=1 /~enddate:AND lcf.PLAN_DATE<='{enddate}'~/
- ) t GROUP BY t.contract_id) vlrp ON lci.id=vlrp.contract_id
- LEFT JOIN (SELECT contract_id,SUM(rent) AS rent,SUM(corpus) AS corpus,SUM(interest) AS interest FROM lc_rent_plan GROUP BY contract_id) summoney
- ON summoney.contract_id=lci.ID
-LEFT JOIN lc_calc_condition lcc ON vlrp.payment_number=lcc.payment_number
-WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~enddate:AND lfi.fact_date<='{enddate}'~/ GROUP BY lci.inputtime DESC
+ SELECT
+ t.*,lpi.PROJECT_NO
+FROM
+ contract_statis_car t
+ LEFT JOIN lb_contract_info lci ON t.CONTRACT_NUMBER = lci.CONTRACT_NUMBER
+LEFT JOIN lb_project_info lpi ON lci.project_id = lpi.id
enddate|enddate|enddate|enddate
+
+ 2c9c81b969188a33016fa8c49ceb0527
+ subjectname
+ STRING
+
+
+ subjectname
+ 210
+ 0
+ true
+
+ false
+ false
+ false
+ false
+
+
+
+
402882355dc13db4015dc141dfe10017
orgid
@@ -150,7 +72,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
orgid
100
- 19
+ 1
false
false
@@ -169,7 +91,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
contract_number
150
- 20
+ 2
true
false
@@ -180,6 +102,24 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
+
+ 2c9c81b975203096017573c7f647005b
+ PROJECT_NO
+ STRING
+
+
+ PROJECT_NO
+ 100
+ 3
+ true
+
+ false
+ false
+ false
+
+
+
+
2c9c81b5687ebb7e016984567c3202a6
customer_num
@@ -188,7 +128,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
customer_num
150
- 21
+ 4
true
false
@@ -207,7 +147,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
customer_name
100
- 22
+ 5
true
false
@@ -226,7 +166,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
orgname
150
- 23
+ 6
true
false
@@ -245,7 +185,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
username
100
- 24
+ 7
true
false
@@ -264,7 +204,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
start_date
100
- 25
+ 8
true
false
@@ -283,7 +223,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
vrent
100
- 26
+ 9
true
false
@@ -302,7 +242,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
vfactrent
100
- 27
+ 10
true
false
@@ -321,7 +261,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
vrentover
100
- 28
+ 11
true
false
@@ -340,7 +280,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
vcorpus
100
- 29
+ 12
true
false
@@ -359,7 +299,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
vfactcorpus
100
- 30
+ 13
true
false
@@ -378,7 +318,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
vcorpusover
100
- 31
+ 14
true
false
@@ -397,7 +337,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
vinterest
100
- 32
+ 15
true
false
@@ -416,7 +356,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
vfactinterest
100
- 33
+ 16
true
false
@@ -435,7 +375,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
vinterestover
100
- 34
+ 17
true
false
@@ -454,7 +394,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
vpenalty
100
- 35
+ 18
true
false
@@ -473,7 +413,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
vfactpenalty
100
- 36
+ 19
true
false
@@ -492,7 +432,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
vpenaltyover
100
- 37
+ 20
true
false
@@ -550,14 +490,24 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
2c9c81b5687ebb7e01698465314402a8
- enddate
- enddate
-
+ start_date
+ start_date
+
FILTER
STRING
DATE
6
+
+ 2c9c81b969188a33016fa8c49cea0526
+ subjectname
+ subjectname
+
+ FILTER
+ STRING
+ TEXT
+ 6
+
2c9c81b5687ebb7e0169845835c102a7
customer_num