From f56102848db9c80e353d7f9cd2f9d727948bc8d1 Mon Sep 17 00:00:00 2001 From: zhangbb Date: Mon, 21 Sep 2020 13:57:53 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=A1=A5=E5=85=85sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src_sql/投产SQL/v20200915/zhangbb0915-2.sql | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src_sql/投产SQL/v20200915/zhangbb0915-2.sql b/src_sql/投产SQL/v20200915/zhangbb0915-2.sql index b1b650328..00b0f3633 100644 --- a/src_sql/投产SQL/v20200915/zhangbb0915-2.sql +++ b/src_sql/投产SQL/v20200915/zhangbb0915-2.sql @@ -127,7 +127,7 @@ Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualn delete from AWE_DO_CATALOG where dono='SplittingChargeTempList'; delete from awe_do_library where dono='SplittingChargeTempList'; -Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcount,modeid,jboclass,jbofrom,jbowhere,jbogroup,jboorder,businessprocess,exportflag,inputuser,inputtime,updateuser,updatetime,remark,isvalidate,parent) Values ('SplittingChargeTempList','·ÖÈóÖ§¸¶ÁÙʱ±í',null,'30',null,'1','1','default','jbo.com.tenwa.entity.comm.flow.LC_SPLITTING_PAY_TEMP','O left join jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO lci on lci.id=O.contract_id LEFT JOIN jbo.app.tenwa.customer.DISTRIBUTOR_INFO di ON di.distributor_no = lci.distributor_id LEFT JOIN jbo.com.tenwa.lease.comm.LB_UNION_LESSEE lul ON lul.contract_id = lci.id and lul.is_main=''Y''','O.flowunid=:flowunid','','','',null,'SYS_Designer','2020/09/07 21:05:13','SYS_Designer','2020/09/09 09:53:00','','1',''); +Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcount,modeid,jboclass,jbofrom,jbowhere,jbogroup,jboorder,businessprocess,exportflag,inputuser,inputtime,updateuser,updatetime,remark,isvalidate,parent) Values ('SplittingChargeTempList','·ÖÈóÖ§¸¶ÁÙʱ±í',null,'30',null,'1','1','default','jbo.com.tenwa.entity.comm.flow.LC_SPLITTING_PAY_TEMP','O left join jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO lci on lci.id=O.contract_id LEFT JOIN jbo.app.tenwa.customer.DISTRIBUTOR_INFO di ON di.distributor_no = lci.distributor_id LEFT JOIN jbo.com.tenwa.lease.comm.LB_UNION_LESSEE lul ON lul.contract_id = lci.id and lul.is_main=''Y''','O.flowunid=:flowunid and O.plan_id is null','','','',null,'SYS_Designer','2020/09/07 21:05:13','SYS_Designer','2020/09/18 17:59:47','','1',''); Insert Into 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 ('SplittingChargeTempList','1010','1010','1','di','distributor_name','distributor_name','String','','ÇþµÀÉÌ','','1','Text','1','1','','','','20','1','1','0','1','0',1,'0','','','SYS_Designer','2020/09/07 20:59:59','SYS_Designer','2020/09/09 09:53:45','0','','1','','','',''); Insert Into 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 ('SplittingChargeTempList','1020','1020','1','lci','contract_no','contract_no','String','','ºÏͬ±àºÅ','','1','Text','1','1','','','','32','1','1','0','1','0',1,'0','','','SYS_Designer','2020/09/07 20:59:59','SYS_Designer','2020/09/09 09:53:00','0','','1','','','',''); Insert Into 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 ('SplittingChargeTempList','1030','1030','1','lul','customer_name','customer_name','String','','¿Í»§Ãû³Æ','','1','Text','1','1','','','','20','1','1','0','1','0',1,'0','','','SYS_Designer','2020/09/07 20:59:59','SYS_Designer','2020/09/09 09:53:00','0','','1','','','',''); @@ -151,8 +151,17 @@ Insert Into SELECT_CATALOG (selname,seltype,seldescribe,seltablename,selprimaryk delete from CODE_CATALOG where codeno='OtherPayFlow0010'; delete from Code_Library where codeno='OtherPayFlow0010'; Insert Into CODE_CATALOG (codeno,sortno,codetypeone,codetypetwo,codename,codedescribe,codeattribute,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('OtherPayFlow0010','999999999999','Á÷³ÌÉóÅúÒ³Ãæ','ÆäËû¸¶¿îÁ÷³Ì','ÔËÓª²¿·¢Æð','','','SYS_Designer',null,'2019/12/05 15:09:51','SYS_Designer','2019/12/05 15:09:51',''); -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 ('OtherPayFlow0010','0010','·ÖÈóÒ³Ãæ','','0010','2','/Tenwa/Lease/Flow/Rent/RentReback/Splitting.jsp','','','','','','','','','','','SYS_Designer',null,'2019/12/05 15:09:51','SYS_Designer','2020/09/09 10:38:13','',''); +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 ('OtherPayFlow0010','0010','·ÖÈóÒ³Ãæ','','0010','1','/Tenwa/Lease/Flow/Rent/RentReback/Splitting.jsp','','','','','','','','','','','SYS_Designer',null,'2019/12/05 15:09:51','SYS_Designer','2020/09/09 10:38:13','',''); 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 ('OtherPayFlow0010','0020','¶àÓ໹¿îÍË»Ø','','0020','1','/Tenwa/Lease/Flow/Rent/RentReback/SurplusReback.jsp','','','','','','','','','','','SYS_Designer',null,'2019/12/06 16:38:10','SYS_Designer','2019/12/06 16:48:02','',''); 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 ('OtherPayFlow0010','0030','·ÖÈóÖ§¸¶','','0030','1','/Tenwa/Lease/Flow/Rent/RentReback/SplittingCharge.jsp','','','','','','','','','','','SYS_Designer',null,'2020/09/01 17:50:07','SYS_Designer','2020/09/01 17:51:37','',''); +-- Ìí¼ÓË÷Òý +ALTER TABLE LC_COMMISSION_CHARGE_CONFIG ADD INDEX idx_product_id(product_id) ,ADD INDEX idx_distributor_id(distributor_id),ADD INDEX idx_incomeNumber(income_number); +ALTER TABLE lc_calc_condition ADD INDEX idx_contract_id(CONTRACT_ID); + +-- LCSplittingPayTempListÄ£°å +delete from AWE_DO_CATALOG where dono='LCSplittingPayTempList'; +Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcount,modeid,jboclass,jbofrom,jbowhere,jbogroup,jboorder,businessprocess,exportflag,inputuser,inputtime,updateuser,updatetime,remark,isvalidate,parent) Values ('LCSplittingPayTempList','·ÖÈóÖ§¸¶ÁÙʱ±í',null,'30',null,'1','1','default','jbo.com.tenwa.entity.comm.flow.LC_SPLITTING_PAY_TEMP','O left join jbo.app.tenwa.calc.LC_RENT_PLAN lrp ON lrp.id=O.plan_id left join jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO lci on lci.id=lrp.contract_id LEFT JOIN jbo.app.tenwa.customer.DISTRIBUTOR_INFO di ON di.distributor_no = lci.distributor_id LEFT JOIN jbo.com.tenwa.lease.comm.LB_UNION_LESSEE lul ON lul.contract_id = lci.id LEFT JOIN jbo.app.tenwa.customer.CUSTOMER_INFO ci ON lul.CUSTOMER_ID = ci.customerid ','O.flowunid=:flowunid and O.plan_id is not null','','lrp.contract_id,lrp.plan_list','',null,'SYS_Designer','2019/12/07 11:38:51','SYS_Designer','2020/09/18 17:58:50','','1',''); + +--