fix:20101029升级
*合同统计表增加业务申请号; *付款申请流程合同基本信息页签里面添加挂靠/网约车信息。
This commit is contained in:
parent
3911abf900
commit
0ee6960304
@ -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', '', '', '', '');
|
||||
|
||||
@ -37,111 +37,33 @@
|
||||
<enname>contract_static</enname>
|
||||
<reportDataSource>2c9023815726a036015726a496b00001</reportDataSource>
|
||||
<queryType>COMPLEXSQL</queryType>
|
||||
<sql>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</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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user