1.补充视图和sql

This commit is contained in:
zhangbb 2020-08-29 14:31:35 +08:00
parent e7b40b6be0
commit d89a3fa633
2 changed files with 18 additions and 1 deletions

View File

@ -8,6 +8,7 @@ SELECT
lbc.contract_status AS `contract_status`,
`lbc`.`BUSINESSTYPE` AS `businesstype`,
`lbc`.`SUBJECTID` AS `subjectid`,
`lbc`.`distributor_id` AS `distributor_id`,
`lbc`.`CONTRACT_NUMBER` AS `contract_number`,
`lcf`.`PAYMENT_NUMBER` AS `payment_number`,
IFNULL(`lbu`.`customername`,'') AS `customername`,

View File

@ -307,7 +307,7 @@ DELIMITER ;
-- 客户名称选择对话框
delete from SELECT_CATALOG where selname='SelectCustomerByType';
insert into SELECT_CATALOG (selname,seltype,seldescribe,seltablename,selprimarykey,selbrowsemode,selargs,selhidefield,selcode,selfieldname,selfielddisp,selreturnvalue,selfilterfield,isinuse,mutilorsingle,attribute1,attribute2,attribute3,attribute4,attribute5,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('SelectCustomerByType','Sql','查询承租人名称by客户类型','customer_info','customerid','Grid','','customerid','select customerid,customer_num,customername,itemname from (select ci.customerid,ci.customer_num,ci.customername,cl.itemname from CUSTOMER_INFO ci left join CUSTOMER_TYPE ct on ci.customerid=ct.customerid left join code_library cl on cl.itemno=ci.customertype and cl.codeno=''CustomerType'' where ct.custtype = ''cust_type.cust'' and ct.custstatus=''status02'' union all select di.distributor_no as customerid,di.distributor_coding as customer_num,di.distributor_name as customername,''经销商'' as itemname FROM DISTRIBUTOR_INFO di) O where 1=1','客户ID,客户编号,客户名称,客户类型','','customerid@customername','customername','1','Single','','','','','O.customername@ @ @Contains','SYS_Designer','','2019/12/02 15:03:00','SYS_Designer','2020/08/18 10:37:53','');
Insert Into SELECT_CATALOG (selname,seltype,seldescribe,seltablename,selprimarykey,selbrowsemode,selargs,selhidefield,selcode,selfieldname,selfielddisp,selreturnvalue,selfilterfield,isinuse,mutilorsingle,attribute1,attribute2,attribute3,attribute4,attribute5,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('SelectCustomerByType','Sql','查询承租人名称by客户类型','customer_info','customerid','Grid','','customerid','select customerid,customer_num,customername,itemname from (select ci.customerid,ci.customer_num,ci.customername,cl.itemname from CUSTOMER_INFO ci left join CUSTOMER_TYPE ct on ci.customerid=ct.customerid left join code_library cl on cl.itemno=ci.customertype and cl.codeno=''CustomerType'' where ct.custtype = ''cust_type.cust'' and ct.custstatus=''status02'' union all select di.distributor_no as customerid,di.distributor_coding as customer_num,di.distributor_name as customername,''经销商'' as itemname FROM DISTRIBUTOR_INFO di) O where 1=1','客户ID,客户编号,客户名称,客户类型','','customerid@customername','customername','1','Single','','','','','O.customername@ @ @Contains','SYS_Designer','','2019/12/02 15:03:00','SYS_Designer','2020/08/18 10:37:53','');
-- 资金网银收款菜单
Insert Into AWE_MENU_INFO (menuid,menuname,displayname,sortno,url,urlparam,target,style,isinuse,remark,inputorgid,inputuserid,inputtime,updateorgid,updateuserid,updatetime,accesstype,icon,appicon) Values ('3000100065','资金网银核销','资金网银核销','3000100065','/Common/WorkFlow/ApplyMain.jsp','ComponentName=资金网银收款申请&ComponentType=MainWindow&ApplyType=CapitalCollectionApply&isCache=false',null,null,'1','','','','','','','','10','','');
@ -347,6 +347,22 @@ INSERT INTO `CODE_CATALOG` (`codeno`, `sortno`, `codetypeone`, `codetypetwo`, `c
INSERT INTO `CODE_LIBRARY` (`codeno`, `itemno`, `itemname`, `bankno`, `sortno`, `isinuse`, `itemdescribe`, `itemattribute`, `relativecode`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `inputuser`, `inputorg`, `inputtime`, `updateuser`, `updatetime`, `remark`, `helptext`) VALUES('CapitalCollectionApproveMain','N','当前工作',NULL,'0010','1',NULL,'001',NULL,' and O.ObjectType = \'#ObjectType\' and O.FlowNo=\'#FlowNo\' and O.PhaseNo=\'#PhaseNo\' and O.UserID=\'#UserID\' and (O.FlowState<>\'INPOOL\' or O.FlowState is null) AND (O.FlowState <> \'NOTSELECT\' or O.FlowState is null) ',' and (O.EndTime is null or O.EndTime = \'\') ',NULL,'FundCollectionFlowApproval','/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApprovalList.jsp@FundCollectionFlowApproval',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ObjectWindow',NULL);
INSERT INTO `CODE_LIBRARY` (`codeno`, `itemno`, `itemname`, `bankno`, `sortno`, `isinuse`, `itemdescribe`, `itemattribute`, `relativecode`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `inputuser`, `inputorg`, `inputtime`, `updateuser`, `updatetime`, `remark`, `helptext`) VALUES('CapitalCollectionApproveMain','Y','已完成工作',NULL,'0020','1',NULL,'001',NULL,' and O.ObjectType = \'#ObjectType\' and O.FlowNo=\'#FlowNo\' and O.PhaseNo=\'#PhaseNo\' and O.UserID=\'#UserID\' ',' and O.EndTime is not null and O.EndTime <> \'\' ',NULL,'FundCollectionFlowApproval','/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApprovalList.jsp@FundCollectionFlowApproval',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ObjectWindow',NULL);
-- 把传统网银收款的区分开
-- 新复制了两个流程页签,然后放到传统的里面
Insert Into CODE_CATALOG (codeno,sortno,codetypeone,codetypetwo,codename,codedescribe,codeattribute,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('FundCollectionTradition010','00100090','流程审批页面','网银收款','运营发起','','','SYS_Designer',null,'2020/08/29 14:07:37','SYS_Designer','2020/08/29 14:07:37','');
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('FundCollectionTradition010','001','网银信息','','001','1','/Tenwa/Lease/Flow/Fund/FundCollection/LCEbankTempInfo.jsp@TempletNo=LCEbankTempInfo','','','','','','','','','','','SYS_Designer',null,'2020/08/29 14:07:37','SYS_Designer','2020/08/29 14:07:37','','');
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('FundCollectionTradition010','002','资金收款','','003','1','/Tenwa/Lease/Flow/Fund/FundCollection/FundIncome.jsp@TempletNo=LCFundIncomeTempList','','','','','','','','','','','SYS_Designer',null,'2020/08/29 14:07:37','SYS_Designer','2020/08/29 14:07:37','','');
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('FundCollectionTradition010','003','租金收款','','002','1','/Tenwa/Lease/Flow/Rent/RentIncome/RentIncome.jsp@TempletNo=LCRentIncomeTempList','','','','','','','','','','','SYS_Designer',null,'2020/08/29 14:07:37','SYS_Designer','2020/08/29 14:07:37','','');
Insert Into CODE_CATALOG (codeno,sortno,codetypeone,codetypetwo,codename,codedescribe,codeattribute,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('FundCollectionTradition020','00100100','流程审批页面','网银收款','运营发起','','','SYS_Designer',null,'2020/08/29 14:10:55','SYS_Designer','2020/08/29 14:10:55','');
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('FundCollectionTradition020','001','网银信息','','001','1','/Tenwa/Lease/Flow/Fund/FundCollection/LCEbankTempInfo.jsp@TempletNo=LCEbankTempInfo','','','','','','','','','','','SYS_Designer',null,'2020/08/29 14:10:55','SYS_Designer','2020/08/29 14:10:55','','');
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('FundCollectionTradition020','002','资金收款','','002','1','/Tenwa/Lease/Flow/Fund/FundCollection/LCFundIncomTempList.jsp@TempletNo=LCFundIncomeTempList','','','','','','','','','','','SYS_Designer',null,'2020/08/29 14:10:55','SYS_Designer','2020/08/29 14:10:55','','');
Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('FundCollectionTradition020','003','租金收款','','003','1','/Tenwa/Lease/Flow/Rent/RentIncome/LCRentIncomeTempList.jsp@TempletNo=LCRentIncomeTempList','','','','','','','','','','','SYS_Designer',null,'2020/08/29 14:10:55','SYS_Designer','2020/08/29 14:10:55','','');
UPDATE flow_model SET flowpageconfig='FundCollectionTradition010' WHERE flowno='TFundCollectionFlow' AND phaseno='0010';
UPDATE flow_model SET flowpageconfig='FundCollectionTradition020' WHERE flowno='TFundCollectionFlow' AND phaseno='0020';
-- 关联公司付款信息excel导出
-- 模板
insert into `BF_TEMPLATE` (`ID`, `SERIALNO`, `SORTNUMBER`, `TEMPLATENAME`, `TEMPLATESHOWNAME`, `TEMPLATEPATH`, `TEMPLATETYPE`, `OPERATETYPE`, `CALLBACK`, `CREATEMETHOD`, `DOCTYPE`, `ONECLASSIFY`, `TWOCLASSIFY`, `THREECLASSIFY`, `FOURCLASSIFY`, `TEMPLATEVERSION`, `STATUS`, `REMARK`, `INPUTUSERID`, `INPUTORGID`, `INPUTTIME`, `UPDATEUSERID`, `UPDATEORGID`, `UPDATETIME`, `CREATECONDITION`, `CREATESHEETCONDITION`) values('f4c9efd00c394b35985aa4833c5f7efd',NULL,'','关联公司放款信息','关联公司放款信息.xlsx','关联公司放款内容.xlsx','excel','create','',NULL,'','','','','','1','','','administrator','8009001','2020/08/25 14:27:38','administrator','8009001','2020/08/25 14:43:06','','');