fix:20101029升级

*合同统计表增加业务申请号;
*付款申请流程合同基本信息页签里面添加挂靠/网约车信息。
This commit is contained in:
maliang 2020-10-29 17:59:20 +08:00
parent 3911abf900
commit 0ee6960304
2 changed files with 94 additions and 125 deletions

View File

@ -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', '', '', '', '');

View File

@ -37,111 +37,33 @@
<enname>contract_static</enname>
<reportDataSource>2c9023815726a036015726a496b00001</reportDataSource>
<queryType>COMPLEXSQL</queryType>
<sql>SELECT lci.contract_number,&#xD;
lul.customer_name,oi.orgname,oi.orgid,ui.username,&#xD;
lfi.fact_date start_date,&#xD;
summoney.rent vrent,&#xD;
vlrp.fact_rent vfactrent,&#xD;
summoney.rent-vlrp.fact_rent vrentover,&#xD;
summoney.corpus vcorpus,&#xD;
vlrp.fact_corpus vfactcorpus,&#xD;
summoney.corpus-vlrp.fact_corpus vcorpusover,&#xD;
summoney.interest vinterest,&#xD;
vlrp.fact_interest vfactinterest,&#xD;
summoney.interest-vlrp.fact_interest vinterestover,&#xD;
vlrp.penalty vpenalty,&#xD;
vlrp.fact_penalty vfactpenalty,&#xD;
(CASE WHEN vlrp.penalty_over&lt;0 THEN '0' ELSE vlrp.penalty_over END) AS vpenaltyover,&#xD;
ci.customer_num&#xD;
FROM lb_contract_info lci &#xD;
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'&#xD;
LEFT JOIN org_info oi ON lci.project_dept=oi.orgid&#xD;
LEFT JOIN user_info ui ON ui.userid=lci.project_manage&#xD;
LEFT JOIN lb_union_lessee lul ON lci.id=lul.contract_id &#xD;
LEFT JOIN customer_info ci ON ci.customerid=lul.CUSTOMER_ID&#xD;
LEFT JOIN (SELECT t.contract_id,&#xD;
t.payment_number,&#xD;
SUM(t.rent) rent,SUM(t.fact_rent)fact_rent,SUM(t.rent_over)rent_over,&#xD;
SUM(t.corpus)corpus,SUM(t.fact_corpus)fact_corpus,SUM(t.corpus_over)corpus_over,&#xD;
SUM(t.interest)interest,SUM(t.fact_interest)fact_interest,SUM(t.interest_over)interest_over,&#xD;
SUM(t.penalty)penalty,SUM(t.fact_penalty)fact_penalty,SUM(t.penalty_over) penalty_over&#xD;
FROM &#xD;
(&#xD;
SELECT&#xD;
lcf.ID AS id,&#xD;
lbc.PROJECT_ID AS project_id,&#xD;
lbc.ID AS contract_id,&#xD;
lccs.PLAN_STATUS AS contract_status,&#xD;
lbc.CONTRACT_NUMBER AS contract_number,&#xD;
lcf.PAYMENT_NUMBER AS payment_number,&#xD;
IFNULL(lbu.customername,'') AS customername,&#xD;
lbc.PROJECT_NAME AS project_name,&#xD;
lcf.PLAN_LIST AS plan_list,&#xD;
lcf.PLAN_DATE AS plan_date,&#xD;
lcf.RENT AS rent,&#xD;
lcf.CORPUS AS corpus,&#xD;
lcf.INTEREST AS interest,&#xD;
getRentPenalty3(&#xD;
lcf.PAYMENT_NUMBER,lcf.PLAN_LIST,DATE_FORMAT(NOW(),'%Y/%m/%d')) AS penalty,&#xD;
(IFNULL(lcfd.rent,0) + IFNULL(lcfi.rent,0)) AS fact_rent,&#xD;
(IFNULL(lcfd.corpus,0) + IFNULL(lcfi.corpus,0)) AS fact_corpus,&#xD;
(IFNULL(lcfd.interest,0) + IFNULL(lcfi.interest,0)) AS fact_interest,&#xD;
(IFNULL(lcfd.penalty,0) + IFNULL(lcfi.penalty,0)) AS fact_penalty,&#xD;
(IFNULL(lcfd.corpus_adjust,0) + IFNULL(lcfi.corpus_adjust,0)) AS corpus_adjust,&#xD;
(IFNULL(lcfd.interest_adjust,0) + IFNULL(lcfi.interest_adjust,0)) AS interest_adjust,&#xD;
(IFNULL(lcfd.penalty_adjust,0) + IFNULL(lcfi.penalty_adjust,0)) AS penalty_adjust,&#xD;
(lcf.RENT - (IFNULL(lcfd.rent,0) + IFNULL(lcfi.rent,0))) AS rent_over,&#xD;
(lcf.CORPUS - (((IFNULL(lcfd.corpus,0) + IFNULL(lcfi.corpus,0)) + IFNULL(lcfd.corpus_adjust,0)) + IFNULL(lcfi.corpus_adjust,0))) AS corpus_over,&#xD;
(lcf.INTEREST - (((IFNULL(lcfd.interest,0) + IFNULL(lcfi.interest,0)) + IFNULL(lcfd.interest_adjust,0)) + IFNULL(lcfi.interest_adjust,0))) AS interest_over,&#xD;
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,&#xD;
(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)) &gt; 0) THEN '部分回笼' ELSE '未回笼' END) AS planstatus&#xD;
FROM lc_rent_plan lcf&#xD;
LEFT JOIN lb_contract_info lbc ON lcf.CONTRACT_ID = lbc.ID&#xD;
LEFT JOIN lc_calc_condition_status lccs ON lccs.PAYMENT_NUMBER = lcf.PAYMENT_NUMBER&#xD;
LEFT JOIN lb_union_lessee_transfer lbu ON lcf.CONTRACT_ID = lbu.contract_id&#xD;
LEFT JOIN (&#xD;
&#xD;
SELECT&#xD;
lc_rent_income.PAYMENT_NUMBER AS payment_number,&#xD;
lc_rent_income.PLAN_LIST AS plan_list,&#xD;
lc_rent_income.PLAN_ID AS plan_id,&#xD;
SUM(lc_rent_income.RENT) AS rent,&#xD;
SUM(lc_rent_income.CORPUS) AS corpus,&#xD;
SUM(lc_rent_income.INTEREST) AS interest,&#xD;
SUM(lc_rent_income.PENALTY) AS penalty,&#xD;
SUM(lc_rent_income.CORPUS_ADJUST) AS corpus_adjust,&#xD;
SUM(lc_rent_income.INTEREST_ADJUST) AS interest_adjust,&#xD;
SUM(lc_rent_income.PENALTY_ADJUST) AS penalty_adjust&#xD;
FROM lc_rent_income&#xD;
WHERE ROLL_BACK = '0' /~enddate:AND hire_date&lt;='{enddate}'~/&#xD;
GROUP BY lc_rent_income.PAYMENT_NUMBER,lc_rent_income.PLAN_LIST&#xD;
&#xD;
) lcfd ON lcf.PAYMENT_NUMBER = lcfd.payment_number AND lcf.PLAN_LIST = lcfd.plan_list&#xD;
LEFT JOIN (&#xD;
&#xD;
SELECT&#xD;
lc_rent_income_temp.PAYMENT_NUMBER AS payment_number,&#xD;
lc_rent_income_temp.PLAN_LIST AS plan_list,&#xD;
SUM(lc_rent_income_temp.RENT) AS rent,&#xD;
SUM(lc_rent_income_temp.CORPUS) AS corpus,&#xD;
SUM(lc_rent_income_temp.INTEREST) AS interest,&#xD;
SUM(lc_rent_income_temp.PENALTY) AS penalty,&#xD;
SUM(lc_rent_income_temp.CORPUS_ADJUST) AS corpus_adjust,&#xD;
SUM(lc_rent_income_temp.INTEREST_ADJUST) AS interest_adjust,&#xD;
SUM(lc_rent_income_temp.PENALTY_ADJUST) AS penalty_adjust&#xD;
FROM lc_rent_income_temp&#xD;
WHERE IS_FLOWING = 0 AND ROLL_BACK = '0' /~enddate:AND hire_date&lt;='{enddate}'~/&#xD;
GROUP BY lc_rent_income_temp.PAYMENT_NUMBER,lc_rent_income_temp.PLAN_LIST&#xD;
&#xD;
) lcfi ON lcf.PAYMENT_NUMBER = lcfi.payment_number AND lcf.PLAN_LIST = lcfi.plan_list&#xD;
WHERE 1=1 /~enddate:AND lcf.PLAN_DATE&lt;='{enddate}'~/&#xD;
) t GROUP BY t.contract_id) vlrp ON lci.id=vlrp.contract_id&#xD;
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&#xD;
ON summoney.contract_id=lci.ID &#xD;
LEFT JOIN lc_calc_condition lcc ON vlrp.payment_number=lcc.payment_number &#xD;
WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~enddate:AND lfi.fact_date&lt;='{enddate}'~/ GROUP BY lci.inputtime DESC</sql>
<sql>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</sql>
<sqlParamValue>enddate|enddate|enddate|enddate</sqlParamValue>
<columns>
<column>
<id>2c9c81b969188a33016fa8c49ceb0527</id>
<name>subjectname</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>主体名称</label>
<enLabel>subjectname</enLabel>
<width>210</width>
<position>0</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
<isCountSubTotal>false</isCountSubTotal>
<isGroupby>false</isGroupby>
<isMerge>false</isMerge>
<action></action>
<actionParamters></actionParamters>
<actionCondition></actionCondition>
</column>
<column>
<id>402882355dc13db4015dc141dfe10017</id>
<name>orgid</name>
@ -150,7 +72,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
<label>部门ID</label>
<enLabel>orgid</enLabel>
<width>100</width>
<position>19</position>
<position>1</position>
<isVisible>false</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
@ -169,7 +91,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
<label>业务合同号</label>
<enLabel>contract_number</enLabel>
<width>150</width>
<position>20</position>
<position>2</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
@ -180,6 +102,24 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
<actionParamters></actionParamters>
<actionCondition></actionCondition>
</column>
<column>
<id>2c9c81b975203096017573c7f647005b</id>
<name>PROJECT_NO</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>业务申请编号</label>
<enLabel>PROJECT_NO</enLabel>
<width>100</width>
<position>3</position>
<isVisible>true</isVisible>
<color></color>
<isCountSubTotal>false</isCountSubTotal>
<isGroupby>false</isGroupby>
<isMerge>false</isMerge>
<action></action>
<actionParamters></actionParamters>
<actionCondition></actionCondition>
</column>
<column>
<id>2c9c81b5687ebb7e016984567c3202a6</id>
<name>customer_num</name>
@ -188,7 +128,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
<label>客户编码</label>
<enLabel>customer_num</enLabel>
<width>150</width>
<position>21</position>
<position>4</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
@ -207,7 +147,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
<label>客户名称</label>
<enLabel>customer_name</enLabel>
<width>100</width>
<position>22</position>
<position>5</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
@ -226,7 +166,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
<label>经销商SP</label>
<enLabel>orgname</enLabel>
<width>150</width>
<position>23</position>
<position>6</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
@ -245,7 +185,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
<label>报单人</label>
<enLabel>username</enLabel>
<width>100</width>
<position>24</position>
<position>7</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
@ -264,7 +204,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
<label>起租日</label>
<enLabel>start_date</enLabel>
<width>100</width>
<position>25</position>
<position>8</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
@ -283,7 +223,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
<label>租金总额</label>
<enLabel>vrent</enLabel>
<width>100</width>
<position>26</position>
<position>9</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
@ -302,7 +242,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
<label>已收租金</label>
<enLabel>vfactrent</enLabel>
<width>100</width>
<position>27</position>
<position>10</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
@ -321,7 +261,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
<label>租金余额</label>
<enLabel>vrentover</enLabel>
<width>100</width>
<position>28</position>
<position>11</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
@ -340,7 +280,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
<label>本金总额</label>
<enLabel>vcorpus</enLabel>
<width>100</width>
<position>29</position>
<position>12</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
@ -359,7 +299,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
<label>已收本金</label>
<enLabel>vfactcorpus</enLabel>
<width>100</width>
<position>30</position>
<position>13</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
@ -378,7 +318,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
<label>本金余额</label>
<enLabel>vcorpusover</enLabel>
<width>100</width>
<position>31</position>
<position>14</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
@ -397,7 +337,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
<label>利息总额</label>
<enLabel>vinterest</enLabel>
<width>100</width>
<position>32</position>
<position>15</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
@ -416,7 +356,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
<label>已收利息</label>
<enLabel>vfactinterest</enLabel>
<width>100</width>
<position>33</position>
<position>16</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
@ -435,7 +375,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
<label>利息余额</label>
<enLabel>vinterestover</enLabel>
<width>100</width>
<position>34</position>
<position>17</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
@ -454,7 +394,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
<label>应收罚息</label>
<enLabel>vpenalty</enLabel>
<width>100</width>
<position>35</position>
<position>18</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
@ -473,7 +413,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
<label>实收罚息</label>
<enLabel>vfactpenalty</enLabel>
<width>100</width>
<position>36</position>
<position>19</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
@ -492,7 +432,7 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
<label>罚息余额</label>
<enLabel>vpenaltyover</enLabel>
<width>100</width>
<position>37</position>
<position>20</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
@ -550,14 +490,24 @@ WHERE lci.businesstype='1' AND lci.`CONTRACT_STATUS` in ('31','100','105')/~endd
</filter>
<filter>
<id>2c9c81b5687ebb7e01698465314402a8</id>
<name>enddate</name>
<enname>enddate</enname>
<label></label>
<name>start_date</name>
<enname>start_date</enname>
<label>起租</label>
<filterType>FILTER</filterType>
<dbType>STRING</dbType>
<htmlType>DATE</htmlType>
<position>6</position>
</filter>
<filter>
<id>2c9c81b969188a33016fa8c49cea0526</id>
<name>subjectname</name>
<enname>subjectname</enname>
<label>主体名称</label>
<filterType>FILTER</filterType>
<dbType>STRING</dbType>
<htmlType>TEXT</htmlType>
<position>6</position>
</filter>
<filter>
<id>2c9c81b5687ebb7e0169845835c102a7</id>
<name>customer_num</name>