
-------------------------------------------------------------- 注意 --------------------------------------------------------------





-- 卡扣核销菜单及权限


-- 第一次修改了menuid只执行第一次之后删掉
delete from AWE_MENU_INFO where menuid='2500100190';
delete from AWE_Role_Menu where menuid='2500100190';

-- 上面的删除语句执行后，删除或注释掉，就不用了
-- delete from AWE_MENU_INFO where menuid='30001001900090';
-- delete from AWE_Role_Menu where menuid='30001001900090';

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 ('30001001900090','卡扣核销','卡扣核销','30001001900090','/Tenwa/Lease/Flow/Rent/CardDeduct/LcCardDeductDataList.jsp','','_self','','1','',null,'SYS_Designer','2018/08/04 11:11:09',null,'SYS_Designer','2019/03/08 17:48:03','10','','');
Insert Into AWE_Role_Menu (roleid,menuid) Values ('099','30001001900090');
Insert Into AWE_Role_Menu (roleid,menuid) Values ('299','30001001900090');
Insert Into AWE_Role_Menu (roleid,menuid) Values ('399','30001001900090');



-- 卡扣核销申请菜单及权限



-- 第一次修改了menuid只执行第一次之后删掉
delete from AWE_MENU_INFO where menuid='40003001100030';
delete from AWE_Role_Menu where menuid='40003001100030';

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 ('30001001900080','卡扣核销申请','卡扣核销申请','30001001900080','/Common/WorkFlow/ApplyMain.jsp','ComponentName=卡扣核销申请&ComponentType=MainWindow&ApplyType=CardIncomeApply&isCache=false','_self','','1','',null,'SYS_Designer','2017/06/30 13:43:53',null,'SYS_Designer','2019/03/08 17:48:03','10','','');
Insert Into AWE_Role_Menu (roleid,menuid) Values ('099','30001001900080');
Insert Into AWE_Role_Menu (roleid,menuid) Values ('299','30001001900080');
Insert Into AWE_Role_Menu (roleid,menuid) Values ('399','30001001900080');



-- 卡扣核销数据导出菜单及权限



-- 第一次修改了menuid只执行第一次之后删掉
delete from AWE_MENU_INFO where menuid='40003001100010';
delete from AWE_Role_Menu where menuid='40003001100010';

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 ('30001001900100','卡扣数据导出','卡扣数据导出','30001001900100','/Tenwa/Lease/Flow/Rent/CardDeduct/LCCardDeductMain.jsp','isCache=false','_self','','1','',null,'SYS_Designer','2017/06/28 10:50:49',null,'SYS_Designer','2019/03/08 17:48:03','10','','');
Insert Into AWE_Role_Menu (roleid,menuid) Values ('099','30001001900100');
Insert Into AWE_Role_Menu (roleid,menuid) Values ('299','30001001900100');
Insert Into AWE_Role_Menu (roleid,menuid) Values ('399','30001001900100');



-- 卡扣数据导入菜单及权限

-- 第一次修改了menuid只执行第一次之后删掉
delete from AWE_MENU_INFO where menuid='40003001100020';
delete from AWE_Role_Menu where menuid='40003001100020';

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 ('30001001900110','卡扣数据导入','卡扣数据导入','30001001900110','/Tenwa/Lease/Flow/Rent/CardDeduct/LCCardDeductDocList.jsp','isCache=false','_self','','1','',null,'SYS_Designer','2017/06/29 10:44:52',null,'SYS_Designer','2019/03/08 17:48:03','10','','');
Insert Into AWE_Role_Menu (roleid,menuid) Values ('099','30001001900110');
Insert Into AWE_Role_Menu (roleid,menuid) Values ('299','30001001900110');
Insert Into AWE_Role_Menu (roleid,menuid) Values ('399','30001001900110');





-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------






-- 经销商页签问题

CREATE OR REPLACE VIEW VI_DISTRIBUTOR_INFO AS
(
SELECT DI.DISTRIBUTOR_NO AS DISTRIBUTOR_NO,
       DI.DISTRIBUTOR_CODING AS DISTRIBUTOR_CODING,
       LCI.DISTRIBUTOR_ID AS DISTRIBUTOR_ID,
       DI.DISTRIBUTOR_NAME AS DISTRIBUTOR_NAME,
       DI.TOTAL AS TOTAL,
       ROUND((SUM(IFNULL(LRP.CORPUS, 0)) - SUM(IFNULL(LRI.CORPUS, 0))), 2) AS CORPUS,
       IFNULL(LCC.CLEAN_LEASE_MONEY, 0) AS CLEAN_LEASE_MONEY,
  ROUND(IFNULL(DI.TOTAL,0) - SUM(IFNULL(LRP.CORPUS, 0))+SUM(IFNULL(LRI.CORPUS, 0))-IFNULL(LCC.CLEAN_LEASE_MONEY,0),2)AS SURPLUS_SUM 
FROM APZL.DISTRIBUTOR_INFO DI
LEFT JOIN APZL.LB_CONTRACT_INFO LCI ON LCI.DISTRIBUTOR_ID = DI.DISTRIBUTOR_NO
LEFT JOIN (
    SELECT APZL.LC_RENT_PLAN.CONTRACT_ID AS CONTRACT_ID, SUM(APZL.LC_RENT_PLAN.CORPUS) AS CORPUS
    FROM APZL.LC_RENT_PLAN
    GROUP BY APZL.LC_RENT_PLAN.CONTRACT_ID
) LRP ON LRP.CONTRACT_ID = LCI.ID
LEFT JOIN (
    SELECT APZL.LC_RENT_INCOME.CONTRACT_ID AS CONTRACT_ID, SUM(APZL.LC_RENT_INCOME.CORPUS) AS CORPUS
    FROM APZL.LC_RENT_INCOME
    GROUP BY APZL.LC_RENT_INCOME.CONTRACT_ID
) LRI ON LRI.CONTRACT_ID = LRP.CONTRACT_ID
LEFT JOIN (
    SELECT LPI.DISTRIBUTOR_ID          AS DISTRIBUTOR_ID,
           SUM(LCCT.CLEAN_LEASE_MONEY) AS CLEAN_LEASE_MONEY
    FROM APZL.LC_PROJ_CONDITION LCCT
    LEFT JOIN APZL.LB_PROJECT_INFO LPI ON LPI.ID = LCCT.PROJECT_ID
    LEFT JOIN APZL.LB_CONTRACT_INFO LCI ON LCCT.PROJECT_ID = LCI.PROJECT_ID
    WHERE (LCI.CONTRACT_STATUS = '21' OR ISNULL(LCI.ID))
      AND LPI.PROJECT_STATUS = '13'
      AND LPI.BUSINESSTYPE = 1
    GROUP BY LPI.DISTRIBUTOR_ID
) LCC ON LCC.DISTRIBUTOR_ID = DI.DISTRIBUTOR_NO
GROUP BY DI.DISTRIBUTOR_NAME, DI.DISTRIBUTOR_NO
    );




-- 基础节点
insert into `PRD_NODEINFO` (`nodeid`, `nodename`, `sortno`, `isinuse`, `itemdescribe`, `inputuserid`, `inputorgid`, `inputtime`, `updateuserid`, `updatetime`, `initscript`, `exportscript`, `phasescript`, `deletescript`, `remark`, `formalClass`, `querycondition`) values('00160','经销商信息','00160','1','/Tenwa/Lease/Flow/RentCollection/rentcollection/DistributorInformation.jsp','administrator','8009001','2019/11/13','administrator','2019/11/21','','','','','','','');









-- 放款后督分单 or 邮寄归档分单 菜单
delete from awe_menu_info where menuid='3000500080';
delete from awe_menu_info where menuid='3000500090';
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('3000500080','放款后督分单','放款后督分单','3000100240','/FlowTest/FlowArchiveSingle.jsp','soft=放款后督分单&isCache=false','_self','','1','',NULL,'SYS_Designer','2019/11/27 15:05:14',NULL,'SYS_Designer','2019/11/27 15:05:23','10','','');
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('3000500090','邮寄归档分单','邮寄归档分单','3000500090','/FlowTest/MailFilingSingle.jsp','soft=邮寄归档分单&isCache=false','_self','','1','',NULL,'SYS_Designer','2019/11/30 20:20:19',NULL,'SYS_Designer','2019/12/01 10:44:43','10','','');


-- 放款后督分单 or 邮寄归档分单 权限
delete from awe_role_menu where menuid='3000500080';
delete from awe_role_menu where menuid='3000500090';

insert into `awe_role_menu` (`roleid`, `menuid`) values('099','3000500080');
insert into `awe_role_menu` (`roleid`, `menuid`) values('299','3000500080');
insert into `awe_role_menu` (`roleid`, `menuid`) values('399','3000500080');
insert into `awe_role_menu` (`roleid`, `menuid`) values('800901R00000001','3000500080');
insert into `awe_role_menu` (`roleid`, `menuid`) values('099','3000500090');
insert into `awe_role_menu` (`roleid`, `menuid`) values('299','3000500090');
insert into `awe_role_menu` (`roleid`, `menuid`) values('399','3000500090');
insert into `awe_role_menu` (`roleid`, `menuid`) values('800901R00000001','3000500090');
insert into `awe_role_menu` (`roleid`, `menuid`) values('800R00000018','3000500090');







-- 邮寄档案分担模板
delete from AWE_DO_CATALOG where dono='MailSingle';
delete from awe_do_library where dono='MailSingle';

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 ('MailSingle','邮寄归档分单',null,'30090',null,'1','1','default','jbo.sys.VI_FLOW_MONITORING','O ','O.APPLYTYPE=''MortgageFileMailApply'' and (O.endtime IS NULL OR O.endtime ='''')','','O.BEGINTIME desc','',null,'SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','','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 ('MailSingle','0010','0010','1','O','OBJECTNO','OBJECTNO','String','','对象编号','','1','Text','1','1','','','','20','1','0','0','1','1',0,'','','','SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','0','','1','','','','Like');
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 ('MailSingle','0015','0015','1','','''''','ACTION','String','','操作','','1','Text','1','1','','','',null,'1','0','0','1','0',0,'','','','SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','','','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 ('MailSingle','0020','0020','1','O','FLOW_KEY','FLOW_KEY','String','','项目/合同号','','1','Text','1','1','','','','20','1','0','0','1','1',0,'','','','SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','0','','1','','','','Like');
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 ('MailSingle','0030','0030','1','O','PROJ_NAME','PROJ_NAME','String','','项目名称','','1','Text','1','1','','','','20','1','0','0','1','1',0,'','','','SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','0','','1','','','','Like');
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 ('MailSingle','0040','0040','1','O','FLOW_NAME','FLOW_NAME','String','','流程名称','','1','Text','1','1','','','','20','1','0','0','1','1',0,'','','','SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','0','','1','','','','Like');
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 ('MailSingle','0050','0050','1','O','PHASENAME','PHASENAME','String','','当前任务名称','','1','Text','1','1','','','','20','1','0','0','1','1',0,'','','','SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','0','','1','','','','Like');
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 ('MailSingle','0060','0060','1','O','USERNAME','USERNAME','String','','当前处理人','','1','Text','1','1','','','','20','1','0','0','1','1',0,'','','','SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','0','','1','','','','Like');
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 ('MailSingle','0070','0070','1','O','BEGINTIME','BEGINTIME','String','','任务开始时间','','1','Text','1','1','','','','20','1','0','0','1','1',0,'','','','SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','0','','1','','','','Area');
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 ('MailSingle','0080','0080','1','O','ENDTIME','ENDTIME','String','','任务结束时间','','1','Text','1','1','','','','20','1','0','0','1','0',0,'','','','SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','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 ('MailSingle','0090','0090','1','O','PHASENO','PHASENO','String','','当前阶段号','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','','','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 ('MailSingle','0100','0100','1','O','OBJECTTYPE','OBJECTTYPE','String','','当前阶段号','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','','','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 ('MailSingle','0110','0110','1','O','PHASETYPE','PHASETYPE','String','','阶段类型','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','','','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 ('MailSingle','0120','0120','1','O','APPLYTYPE','APPLYTYPE','String','','申请类型','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','','','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 ('MailSingle','0130','0130','1','O','FLOWNO','FLOWNO','String','','当前流程号','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','','','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 ('MailSingle','0140','0140','1','O','FLOWNAME','FLOWNAME','String','','当前流程名称','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','','','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 ('MailSingle','0150','0150','1','O','flow_unid','flow_unid','String','','流程编号','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','','','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 ('MailSingle','0160','0160','1','O','proj_id','proj_id','String','','项目编号','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','','','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 ('MailSingle','0170','0170','1','O','contract_id','contract_id','String','','合同编号','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','','','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 ('MailSingle','0180','0180','1','O','SERIALNO','SERIALNO','String','','流水号','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','','','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 ('MailSingle','0190','0190','1','O','RELATIVESERIALNO','RELATIVESERIALNO','String','','上一流水号','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','','','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 ('MailSingle','0200','0200','1','O','USERID','USERID','String','','承办人编号','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/12/01 10:34:51','SYS_Designer','2019/12/01 10:34:51','','','1','','','','');







-- 放款后督分担模板
delete from AWE_DO_CATALOG where dono='ArchiveSingle';
delete from awe_do_library where dono='ArchiveSingle';




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 ('ArchiveSingle','放款后督分单',null,'30090',null,'1','1','default','jbo.sys.VI_FLOW_MONITORING','O ','O.APPLYTYPE=''MortgageFileApply'' and (O.endtime IS NULL OR O.endtime ='''')','','O.BEGINTIME desc','',null,'SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:37','','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 ('ArchiveSingle','0010','0010','1','O','OBJECTNO','OBJECTNO','String','','对象编号','','1','Text','1','1','','','','20','1','0','0','1','1',0,'','','','SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:37','0','','1','','','','Like');
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 ('ArchiveSingle','0015','0015','1','','''''','ACTION','String','','操作','','1','Text','1','1','','','',null,'1','0','0','1','0',0,'','','','SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:37','','','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 ('ArchiveSingle','0020','0020','1','O','FLOW_KEY','FLOW_KEY','String','','项目/合同号','','1','Text','1','1','','','','20','1','0','0','1','1',0,'','','','SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:37','0','','1','','','','Like');
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 ('ArchiveSingle','0030','0030','1','O','PROJ_NAME','PROJ_NAME','String','','项目名称','','1','Text','1','1','','','','20','1','0','0','1','1',0,'','','','SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:37','0','','1','','','','Like');
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 ('ArchiveSingle','0040','0040','1','O','FLOW_NAME','FLOW_NAME','String','','流程名称','','1','Text','1','1','','','','20','1','0','0','1','1',0,'','','','SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:37','0','','1','','','','Like');
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 ('ArchiveSingle','0050','0050','1','O','PHASENAME','PHASENAME','String','','当前任务名称','','1','Text','1','1','','','','20','1','0','0','1','1',0,'','','','SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:37','0','','1','','','','Like');
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 ('ArchiveSingle','0060','0060','1','O','USERNAME','USERNAME','String','','当前处理人','','1','Text','1','1','','','','20','1','0','0','1','1',0,'','','','SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:37','0','','1','','','','Like');
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 ('ArchiveSingle','0070','0070','1','O','BEGINTIME','BEGINTIME','String','','任务开始时间','','1','Text','1','1','','','','20','1','0','0','1','1',0,'','','','SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:37','0','','1','','','','Area');
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 ('ArchiveSingle','0080','0080','1','O','ENDTIME','ENDTIME','String','','任务结束时间','','1','Text','1','1','','','','20','1','0','0','1','0',0,'','','','SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:37','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 ('ArchiveSingle','0090','0090','1','O','PHASENO','PHASENO','String','','当前阶段号','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:37','','','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 ('ArchiveSingle','0100','0100','1','O','OBJECTTYPE','OBJECTTYPE','String','','当前阶段号','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:38','','','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 ('ArchiveSingle','0110','0110','1','O','PHASETYPE','PHASETYPE','String','','阶段类型','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:38','','','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 ('ArchiveSingle','0120','0120','1','O','APPLYTYPE','APPLYTYPE','String','','申请类型','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:38','','','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 ('ArchiveSingle','0130','0130','1','O','FLOWNO','FLOWNO','String','','当前流程号','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:38','','','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 ('ArchiveSingle','0140','0140','1','O','FLOWNAME','FLOWNAME','String','','当前流程名称','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:38','','','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 ('ArchiveSingle','0150','0150','1','O','flow_unid','flow_unid','String','','流程编号','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:38','','','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 ('ArchiveSingle','0160','0160','1','O','proj_id','proj_id','String','','项目编号','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:38','','','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 ('ArchiveSingle','0170','0170','1','O','contract_id','contract_id','String','','合同编号','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:38','','','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 ('ArchiveSingle','0180','0180','1','O','SERIALNO','SERIALNO','String','','流水号','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:38','','','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 ('ArchiveSingle','0190','0190','1','O','RELATIVESERIALNO','RELATIVESERIALNO','String','','上一流水号','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:38','','','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 ('ArchiveSingle','0200','0200','1','O','USERID','USERID','String','','承办人编号','','1','Text','1','1','','','','20','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/27 16:45:01','SYS_Designer','2019/11/27 17:15:38','','','1','','','','');





-- 短信发送取消设置模板







-- DROP TABLE send_text_mmessage; 

CREATE TABLE `send_text_mmessage` (
  `id` varchar(32) NOT NULL COMMENT '标识',
  `channel_name` varchar(50) DEFAULT NULL COMMENT '渠道名称',
  `channel_no` varchar(32) DEFAULT NULL COMMENT '渠道编号',
  `channel_code` varchar(32) DEFAULT NULL COMMENT '渠道编码',
  `inputuserid` varchar(32) DEFAULT NULL COMMENT '登记人',
  `inputorgid` varchar(32) DEFAULT NULL COMMENT '登记部门',
  `inputtime` varchar(32) DEFAULT NULL COMMENT '登记时间',
  `updateuserid` varchar(32) DEFAULT NULL COMMENT '更新人',
  `updateorgid` varchar(32) DEFAULT NULL COMMENT '更新部门',
  `updatetime` varchar(32) DEFAULT NULL COMMENT '更新时间',
  `msg_type` varchar(500) DEFAULT NULL COMMENT '短信类型',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;






-- 短信发送取消设置模板

delete from AWE_DO_CATALOG where dono='SendTextMmessageList';
delete from awe_do_library where dono='SendTextMmessageList';

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('SendTextMmessageList','短信发送',NULL,'30020',NULL,'1','1','default','jbo.app.tenwa.customer.SEND_TEXT_MMESSAGE','O','','','','',NULL,'SYS_Designer','2019/11/16 11:28:09','SYS_Designer','2019/11/16 14:22:46','','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('SendTextMmessageList','0010','0010','1','O','id','id','String','','标识','','1','Text','1','1','','','','32','0','0','0','1','0','0','','','','SYS_Designer','2019/11/16 11:31:14','SYS_Designer','2019/11/16 14:22:46','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('SendTextMmessageList','0020','0020','1','O','channel_name','channel_name','String','','渠道名称','','1','Text','1','1','','','','50','1','0','0','1','0','0','','','','SYS_Designer','2019/11/16 11:31:14','SYS_Designer','2019/11/16 14:22:46','','','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('SendTextMmessageList','0030','0030','1','O','channel_no','channel_no','String','','渠道编号','','1','Text','1','1','','','','32','1','0','0','1','0','0','','','','SYS_Designer','2019/11/16 11:31:14','SYS_Designer','2019/11/16 14:22:46','','','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('SendTextMmessageList','0035','0035','1','O','channel_code','channel_code','String','','渠道编码','','1','Text','1','1','','','','32','0','0','0','1','0','0','','','','SYS_Designer','2019/12/11 09:46:03','SYS_Designer','2019/12/11 09:46:03','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('SendTextMmessageList','0070','0070','1','O','updateuserid','updateuserid','String','','更新人','','1','Text','1','1','','','','32','0','0','0','1','0','0','','','','SYS_Designer','2019/11/16 11:31:14','SYS_Designer','2019/12/01 15:31:06','','','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('SendTextMmessageList','0080','0080','1','O','updateorgid','updateorgid','String','','更新部门','','1','Text','1','1','','','','32','0','0','0','1','0','0','','','','SYS_Designer','2019/11/16 11:31:14','SYS_Designer','2019/12/01 15:31:06','','','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('SendTextMmessageList','0090','0090','1','O','updatetime','updatetime','String','','更新时间','','1','Text','1','1','','','','32','0','0','0','1','0','0','','','','SYS_Designer','2019/11/16 11:31:14','SYS_Designer','2019/12/01 15:31:06','','','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('SendTextMmessageList','0100','0100','1','O','inputuserid','inputuserid','String','','登记人','','1','Text','1','1','','','','32','0','0','0','1','0','0','','','','SYS_Designer','2019/11/16 14:41:47','SYS_Designer','2019/12/01 15:31:06','','','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('SendTextMmessageList','0110','0110','1','O','inputorgid','inputorgid','String','','登记部门','','1','Text','1','1','','','','32','0','0','0','1','0','0','','','','SYS_Designer','2019/11/16 14:41:47','SYS_Designer','2019/12/01 15:31:06','','','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('SendTextMmessageList','0120','0120','1','O','inputtime','inputtime','String','','登记时间','','1','Text','1','1','','','','32','0','0','0','1','0','0','','','','SYS_Designer','2019/11/16 14:41:47','SYS_Designer','2019/12/01 15:31:06','','','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('SendTextMmessageList','0130','0040','1','O','msg_type','msg_type','String','','短信类型','','1','Checkbox','1','1','Code','MsgType','','40','0','0','0','1','1','0','','','','SYS_Designer','2019/12/01 10:40:40','SYS_Designer','2019/12/20 14:50:18','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('SendTextMmessageList','0135','0135','1','','com.tenwa.customer.controller.group.SelectSendMessageType.selectSendMessage(msg_type)','msgtype','String','','短信类型','','1','Checkbox','1','1','','','','40','1','0','0','1','1','0','','','','SYS_Designer','2019/12/20 13:55:47','SYS_Designer','2019/12/20 13:57:01','0','','1','','','','');









delete from AWE_DO_CATALOG where dono='SendTextMmessageInfo';
delete from awe_do_library where dono='SendTextMmessageInfo';
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('SendTextMmessageInfo','短信发送',NULL,'30020',NULL,'1','2','default','jbo.app.tenwa.customer.SEND_TEXT_MMESSAGE','O','ID=:ID','','','com.amarsoft.awe.dw.handler.impl.CommonHandler',NULL,'SYS_Designer','2019/11/16 11:28:36','SYS_Designer','2019/11/16 14:26:11','','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('SendTextMmessageInfo','0010','0010','1','O','id','id','String','','标识','','1','Text','1','1','','','','32','0','0','0','1','0','0','','','','SYS_Designer','2019/11/16 11:31:14','SYS_Designer','2019/11/16 14:26:11','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('SendTextMmessageInfo','0020','0020','1','O','channel_name','channel_name','String','','渠道名称','','1','Text','1','1','','','','50','1','1','0','1','0','0','','','','SYS_Designer','2019/11/16 11:31:14','SYS_Designer','2019/11/23 18:11:09','0','','1','','','selectdistributor()','');
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('SendTextMmessageInfo','0030','0030','1','O','channel_no','channel_no','String','','渠道编号','','1','Text','1','1','','','','32','1','1','0','1','0','0','','','','SYS_Designer','2019/11/16 11:31:14','SYS_Designer','2019/11/23 17:54:19','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('SendTextMmessageInfo','0035','0035','1','O','channel_code','channel_code','String','','渠道编码','','1','Text','1','1','','','','32','0','0','0','1','0','0','','','','SYS_Designer','2019/12/11 09:37:08','SYS_Designer','2019/12/11 09:44:03','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('SendTextMmessageInfo','0070','0070','1','O','updateuserid','updateuserid','String','','更新人','','1','Text','1','1','','','','32','0','1','0','1','0','0','','','','SYS_Designer','2019/11/16 11:31:14','SYS_Designer','2019/12/01 15:31:06','','','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('SendTextMmessageInfo','0080','0080','1','O','updateorgid','updateorgid','String','','更新部门','','1','Text','1','1','','','','32','0','1','0','1','0','0','','','','SYS_Designer','2019/11/16 11:31:14','SYS_Designer','2019/12/01 15:31:06','','','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('SendTextMmessageInfo','0090','0090','1','O','updatetime','updatetime','String','','更新时间','','1','Text','1','1','','','','32','0','1','0','1','0','0','','','','SYS_Designer','2019/11/16 11:31:14','SYS_Designer','2019/12/01 15:31:06','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('SendTextMmessageInfo','0100','0100','1','O','inputuserid','inputuserid','String','','登记人','','1','Text','1','1','','','','32','0','1','0','1','0','0','','','','SYS_Designer','2019/11/16 14:41:47','SYS_Designer','2019/12/01 15:31:06','','','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('SendTextMmessageInfo','0110','0110','1','O','inputorgid','inputorgid','String','','登记部门','','1','Text','1','1','','','','32','0','1','0','1','0','0','','','','SYS_Designer','2019/11/16 14:41:47','SYS_Designer','2019/12/01 15:31:06','','','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('SendTextMmessageInfo','0120','0120','1','O','inputtime','inputtime','String','','登记时间','','1','Text','1','1','','','','32','0','1','0','1','0','0','','','','SYS_Designer','2019/11/16 14:41:47','SYS_Designer','2019/12/01 15:31:06','','','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('SendTextMmessageInfo','0130','0040','1','O','msg_type','msg_type','String','','短信类型','','1','Checkbox','1','1','Code','MsgType','','500','1','0','1','1','0','0','','','','SYS_Designer','2019/12/01 10:44:15','SYS_Designer','2019/12/20 15:11:21','0','','1','','','','');








-- 短信发送取消设置数据字典
delete from CODE_CATALOG where codeno='MsgType';
delete from Code_Library where codeno='MsgType';

Insert Into CODE_CATALOG (codeno,sortno,codetypeone,codetypetwo,codename,codedescribe,codeattribute,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('MsgType','10000039','APP配置','短信模板','短信类型',null,null,'SYS_Designer',null,'2017/08/18 08:51:35','SYS_Designer','2017/08/18 08:51:35',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 ('MsgType','adjustinterest_msg','调息提醒(调息日前五天)',null,'0080','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2017/08/18 09:12:34','SYS_Designer','2018/08/01 17:25:25',null,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 ('MsgType','adjust_msg_ct','调息提醒(调息日前五天)-传统',null,'0250','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2018/09/28 15:11:11','SYS_Designer','2018/09/28 15:11:11',null,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 ('MsgType','back_day','扣款失败提醒',null,'0160','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2018/07/12 16:21:29','SYS_Designer','2018/08/01 17:35:23',null,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 ('MsgType','birthday_msg','客户生日提醒',null,'0130','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2017/08/18 09:10:56','SYS_Designer','2018/06/20 15:11:54',null,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 ('MsgType','changApplication','业务变更修改扣款卡信息','','0330','1','','','','','','','','','','','','SYS_Designer',null,'2019/08/20 10:04:56','SYS_Designer','2019/08/20 10:04:56','','');
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 ('MsgType','contract','合同制作扣款卡签约验证',null,'0170','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2018/07/25 16:20:22','SYS_Designer','2018/08/07 16:17:48',null,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 ('MsgType','cutpay_change','扣款卡变更',null,'0180','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2018/07/26 09:27:09','SYS_Designer','2018/07/26 09:27:09',null,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 ('MsgType','holiday_autumn','中秋提醒',null,'0150','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2017/08/18 09:11:09','SYS_Designer','2018/06/20 15:11:54',null,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 ('MsgType','holiday_autum_ct','中秋-传统',null,'0320','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2018/09/28 16:32:07','SYS_Designer','2018/09/28 16:51:28',null,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 ('MsgType','holiday_nyd','元旦提醒',null,'0140','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2017/08/18 09:10:56','SYS_Designer','2018/06/20 15:11:54',null,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 ('MsgType','holiday_ny_ct','元旦-传统',null,'0310','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2018/09/28 16:31:00','SYS_Designer','2018/09/28 16:51:28',null,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 ('MsgType','Ins_expirat_seven','保险7天到期(保险到期日前七天)',null,'0120','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2018/06/20 11:39:32','SYS_Designer','2018/08/01 17:26:32',null,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 ('MsgType','Ins_expirat_thirty','保险30天到期(保险到期日前30天)',null,'0110','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2018/06/20 11:38:35','SYS_Designer','2018/08/01 17:27:12',null,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 ('MsgType','Ins_seven_ct','保险7天到期-传统',null,'0300','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2018/09/28 15:17:31','SYS_Designer','2018/09/28 15:17:31',null,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 ('MsgType','Ins_thirty_ct','保险30天到期-传统',null,'0290','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2018/09/28 15:16:55','SYS_Designer','2018/09/28 15:16:55',null,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 ('MsgType','MankeContract','合同制作扣款卡改变发短信','','0340','1','','','','','','','','','','','','SYS_Designer',null,'2019/08/24 16:51:12','SYS_Designer','2019/08/24 16:51:12','','');
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 ('MsgType','onhire_ct','合同起租提醒-传统',null,'0200','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2018/09/28 14:59:12','SYS_Designer','2018/09/28 15:01:54',null,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 ('MsgType','onhire_msg','合同起租提醒(准备寄送起租通知书前)',null,'0040','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2017/08/18 09:11:09','SYS_Designer','2018/07/31 14:10:45',null,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 ('MsgType','onhire_msg_seven','还款前七天(前三期还款)',null,'0041','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2018/06/20 15:09:41','SYS_Designer','2018/08/01 17:23:32',null,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 ('MsgType','onhire_seven_ct','还款前十五天-传统',null,'0210','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2018/09/28 15:01:05','SYS_Designer','2018/09/28 16:26:10',null,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 ('MsgType','over_day','逾期三天至十天',null,'0190','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2018/08/14 14:34:32','SYS_Designer','2018/08/14 14:34:32',null,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 ('MsgType','rent_msg','还款前三天提醒',null,'0050','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2017/08/18 09:12:04','SYS_Designer','2018/06/20 15:01:53',null,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 ('MsgType','rent_msg_ct','还款前三天-传统',null,'0220','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2018/09/28 15:03:30','SYS_Designer','2018/09/28 15:03:30',null,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 ('MsgType','rent_msg_one','还款前一天提醒(前三期还款)',null,'0051','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2018/06/20 15:04:47','SYS_Designer','2018/08/01 17:28:28',null,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 ('MsgType','rent_one_ct','还款前一天(前三期)-传统',null,'0230','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2018/09/28 15:04:45','SYS_Designer','2018/09/28 15:04:45',null,null);






create or replace VIEW VI_LC_AUDIT_RENT_PLAN as
(
	SELECT
		`lcrp`.`ID` AS `id`,
		`lci`.`distributor_id` AS `DISTRIBUTOR_ID`,
		`lci`.`PROJECT_ID` AS `PROJECT_ID`,
		`lcrp`.`CONTRACT_ID` AS `contract_id`,
		`lci`.`CONTRACT_NUMBER` AS `contract_number`,
		`lul`.`CUSTOMER_ID` AS `customer_id`,
		`lul`.`CUSTOMER_NAME` AS `CUSTOMER_NAME`,
		`lcrp`.`PLAN_LIST` AS `plan_list`,
		`lcrp`.`PLAN_DATE` AS `plan_date`,
		(
			`lcrp`.`RENT` + `nvl` (`virp`.`penalty_over`, 0)
		) AS `fact_rent`,
		`lcrp`.`CORPUS` AS `fact_corpus`,
		`lcrp`.`INTEREST` AS `fact_interest`,
		(
			`virp`.`rent_over` + `nvl` (`virp`.`penalty_over`, 0)
		) AS `rent`,
		`lcrp`.`RENT` AS `plan_rent`,
		`virp`.`corpus_over` AS `corpus`,
		`virp`.`interest_over` AS `interest`,
		`nvl` (`virp`.`penalty_over`, 0) AS `penalty`,
		`cat`.`bank_name` AS `bank_name`,
		`cat`.`account` AS `account`,
		`cat`.`acc_number` AS `acc_number`,
		`cat`.`mobile` AS `mobile`,
		ifnull(`cat`.`SIGN_STATUS`, 'N') AS `sign_status`,
		ifnull(`lcrp`.`AUDIT_STATE`, 'N') AS `AUDIT_STATE`,
		ifnull(
			`lcrp`.`COLLECT_STATUS`,
			'未收款'
		) AS `COLLECT_STATUS`,
		ifnull(`lcrp`.`COLLECT_MSG`, '') AS `COLLECT_MSG`,
		`lcrp`.`FAILURE_TIME` AS `FAILURE_TIME`,
		`lcrp`.`FAILURE_REASON` AS `FAILURE_REASON`,
		`lcrp`.`BATCH_STATUS` AS `BATCH_STATUS`,
		`lcrp`.`BATCH_NO` AS `BATCH_NO`,
		`lcrp`.`batch_sn` AS `BATCH_SN`
	FROM
		(
			(
				(
					(
						(
							`apzl`.`lc_rent_plan` `lcrp`
							LEFT JOIN (
								SELECT
									`apzl`.`lc_rent_income`.`PAYMENT_NUMBER` AS `payment_number`,
									`apzl`.`lc_rent_income`.`PLAN_LIST` AS `plan_list`,
									`apzl`.`lc_rent_income`.`PLAN_ID` AS `plan_id`,
									sum(
										`apzl`.`lc_rent_income`.`RENT`
									) AS `rent`,
									sum(
										`apzl`.`lc_rent_income`.`CORPUS`
									) AS `corpus`,
									sum(
										`apzl`.`lc_rent_income`.`INTEREST`
									) AS `interest`,
									sum(
										`apzl`.`lc_rent_income`.`PENALTY`
									) AS `penalty`,
									sum(
										`apzl`.`lc_rent_income`.`CORPUS_ADJUST`
									) AS `corpus_adjust`,
									sum(
										`apzl`.`lc_rent_income`.`INTEREST_ADJUST`
									) AS `interest_adjust`,
									sum(
										`apzl`.`lc_rent_income`.`PENALTY_ADJUST`
									) AS `penalty_adjust`
								FROM
									`apzl`.`lc_rent_income`
								WHERE
									(
										`apzl`.`lc_rent_income`.`ROLL_BACK` = '0'
									)
								GROUP BY
									`apzl`.`lc_rent_income`.`PAYMENT_NUMBER`,
									`apzl`.`lc_rent_income`.`PLAN_LIST`,
									`apzl`.`lc_rent_income`.`PLAN_ID`
							) `lcfi` ON (
								(
									(
										`lcrp`.`PAYMENT_NUMBER` = `lcfi`.`payment_number`
									)
									AND (
										`lcrp`.`PLAN_LIST` = `lcfi`.`plan_list`
									)
									AND (
										`lcrp`.`ID` = `lcfi`.`plan_id`
									)
								)
							)
						)
						LEFT JOIN `apzl`.`vi_lc_rent_plan` `virp` ON ((`virp`.`id` = `lcrp`.`ID`))
					)
					LEFT JOIN `apzl`.`lb_contract_info` `lci` ON (
						(
							`lci`.`ID` = `lcrp`.`CONTRACT_ID`
						)
					)
				)
				LEFT JOIN `apzl`.`lb_union_lessee` `lul` ON (
					(
						`lul`.`CONTRACT_ID` = `lci`.`ID`
					)
				)
			)
			LEFT JOIN (
				SELECT DISTINCT
					`apzl`.`customer_account`.`bank_name` AS `bank_name`,
					`apzl`.`customer_account`.`account` AS `account`,
					`apzl`.`customer_account`.`acc_number` AS `acc_number`,
					`apzl`.`customer_account`.`customerid` AS `customerid`,
					`apzl`.`customer_account`.`acc_type` AS `acc_type`,
					`apzl`.`customer_account`.`MOBILE` AS `mobile`,
					`apzl`.`customer_account`.`sign_status` AS `SIGN_STATUS`,
					`apzl`.`customer_account`.`CONTRACT_ID` AS `contract_id`
				FROM
					`apzl`.`customer_account`
			) `cat` ON (
				(
					(`cat`.`acc_type` = 'Debit')
					AND (
						`cat`.`contract_id` = `lcrp`.`CONTRACT_ID`
					)
				)
			)
		)
	WHERE
		(
			(
				`lci`.`CONTRACT_STATUS` = '31'
			)
			AND (`lci`.`BUSINESSTYPE` = '1')
			AND (`virp`.`rent_over` > 0)
		)
);
























-- 自动卡扣取消设置模板

-- DROP TABLE deductions_way; 
CREATE TABLE `deductions_way` (
  `id` varchar(32) NOT NULL COMMENT '标识',
  `dealers_number` varchar(200) DEFAULT NULL COMMENT '渠道编号',
  `distributor_id` varchar(32) DEFAULT NULL COMMENT '渠道编码',
  `dealers_name` varchar(200) DEFAULT NULL COMMENT '渠道名称',
  `Whether_to_enable` varchar(32) DEFAULT NULL COMMENT '是否启用',
  `inputuserid` varchar(32) DEFAULT NULL COMMENT '登记人',
  `inputorgid` varchar(32) DEFAULT NULL COMMENT '登记部门',
  `inputtime` varchar(32) DEFAULT NULL COMMENT '登记时间',
  `updateuserid` varchar(32) DEFAULT NULL COMMENT '更新人',
  `updateorgid` varchar(32) DEFAULT NULL COMMENT '更新部门',
  `updatetime` varchar(32) DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;









-- 自动卡扣取消设置模板目录list

delete from awe_do_catalog where dono='DeductionsWayInfo';
delete from awe_do_library where dono='DeductionsWayInfo';

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('DeductionsWayInfo','扣款方式',NULL,'30020',NULL,'1','2','default','jbo.app.tenwa.customer.DEDUCTIONS_WAY','O','ID=:ID','','','com.amarsoft.awe.dw.handler.impl.CommonHandler',NULL,'SYS_Designer','2019/11/25 09:32:30','SYS_Designer','2019/11/25 16:35:43','','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('DeductionsWayInfo','0010','0010','1','O','id','id','String','','标识','','1','Text','1','1','','','','32','0','0','0','1','0','0','','','','SYS_Designer','2019/11/25 09:34:12','SYS_Designer','2019/11/25 16:35:43','','','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('DeductionsWayInfo','0020','0020','1','O','dealers_number','dealers_number','String','','渠道编号','','1','Text','1','1','','','','200','1','1','0','1','0','0','','','','SYS_Designer','2019/11/25 09:34:12','SYS_Designer','2019/11/30 18:25:20','0','','1','','','selectdeductions()','');
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('DeductionsWayInfo','0030','0030','1','O','dealers_name','dealers_name','String','','渠道名称','','1','Text','1','1','','','','200','1','1','0','1','0','0','','','','SYS_Designer','2019/11/25 09:34:12','SYS_Designer','2019/11/30 18:25:20','','','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('DeductionsWayInfo','0035','0035','1','O','distributor_id','distributor_id','String','','渠道编码','','1','Text','1','1','','','','32','0','0','0','1','0','0','','','','SYS_Designer','2019/12/03 14:26:53','SYS_Designer','2019/12/03 16:02:57','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('DeductionsWayInfo','0040','0040','1','O','inputuserid','inputuserid','String','','登记人','','1','Text','1','1','','','','32','0','1','0','1','0','0','','','','SYS_Designer','2019/11/25 09:34:12','SYS_Designer','2019/11/30 18:31:27','','','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('DeductionsWayInfo','0050','0050','1','O','inputorgid','inputorgid','String','','登记部门','','1','Text','1','1','','','','32','0','1','0','1','0','0','','','','SYS_Designer','2019/11/25 09:34:12','SYS_Designer','2019/11/30 18:31:27','','','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('DeductionsWayInfo','0060','0060','1','O','inputtime','inputtime','String','','登记时间','','1','Text','1','1','','','','32','0','1','0','1','0','0','','','','SYS_Designer','2019/11/25 09:34:12','SYS_Designer','2019/11/30 18:31:27','','','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('DeductionsWayInfo','0070','0070','1','O','updateuserid','updateuserid','String','','更新人','','1','Text','1','1','','','','32','0','1','0','1','0','0','','','','SYS_Designer','2019/11/25 09:34:12','SYS_Designer','2019/11/30 18:31:27','','','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('DeductionsWayInfo','0080','0080','1','O','updateorgid','updateorgid','String','','更新部门','','1','Text','1','1','','','','32','0','1','0','1','0','0','','','','SYS_Designer','2019/11/25 09:34:12','SYS_Designer','2019/11/30 18:31:27','','','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('DeductionsWayInfo','0090','0090','1','O','updatetime','updatetime','String','','更新时间','','1','Text','1','1','','','','32','0','1','0','1','0','0','','','','SYS_Designer','2019/11/25 09:34:12','SYS_Designer','2019/11/30 18:31:27','','','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('DeductionsWayInfo','0100','0100','1','O','Whether_to_enable','Whether_to_enable','String','','是否取消','','1','Radiobox','1','1','Code','YesOrNo','','32','1','0','1','1','0','0','','','','SYS_Designer','2019/11/30 18:31:27','SYS_Designer','2019/12/07 17:24:54','0','','1','','','','');



















-- 自动卡扣取消设置模板list

delete from awe_do_catalog where dono='DeductionsWayList';
delete from awe_do_library where dono='DeductionsWayList';

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('DeductionsWayList','扣款方式',NULL,'30020',NULL,'1','2','default','jbo.app.tenwa.customer.DEDUCTIONS_WAY','O','','','','',NULL,'SYS_Designer','2019/11/25 09:32:46','SYS_Designer','2019/11/25 16:35:43','','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('DeductionsWayList','0010','0010','1','O','id','id','String','','标识','','1','Text','1','1','','','','32','0','0','0','1','0','0','','','','SYS_Designer','2019/11/25 09:34:12','SYS_Designer','2019/11/25 16:35:43','','','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('DeductionsWayList','0020','0020','1','O','dealers_number','dealers_number','String','','渠道编号','','1','Text','1','1','','','','200','1','0','0','1','0','0','','','','SYS_Designer','2019/11/25 09:34:12','SYS_Designer','2019/11/25 16:35:43','','','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('DeductionsWayList','0030','0030','1','O','dealers_name','dealers_name','String','','渠道名称','','1','Text','1','1','','','','200','1','0','0','1','0','0','','','','SYS_Designer','2019/11/25 09:34:12','SYS_Designer','2019/11/25 16:35:43','','','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('DeductionsWayList','0040','0040','1','O','inputuserid','inputuserid','String','','登记人','','1','Text','1','1','','','','32','0','0','0','1','0','0','','','','SYS_Designer','2019/11/25 09:34:12','SYS_Designer','2019/11/30 18:31:27','','','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('DeductionsWayList','0050','0050','1','O','inputorgid','inputorgid','String','','登记部门','','1','Text','1','1','','','','32','0','0','0','1','0','0','','','','SYS_Designer','2019/11/25 09:34:12','SYS_Designer','2019/11/30 18:31:27','','','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('DeductionsWayList','0060','0060','1','O','inputtime','inputtime','String','','登记时间','','1','Text','1','1','','','','32','0','0','0','1','0','0','','','','SYS_Designer','2019/11/25 09:34:12','SYS_Designer','2019/11/30 18:31:27','','','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('DeductionsWayList','0070','0070','1','O','updateuserid','updateuserid','String','','更新人','','1','Text','1','1','','','','32','0','0','0','1','0','0','','','','SYS_Designer','2019/11/25 09:34:12','SYS_Designer','2019/11/30 18:31:27','','','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('DeductionsWayList','0080','0080','1','O','updateorgid','updateorgid','String','','更新部门','','1','Text','1','1','','','','32','0','0','0','1','0','0','','','','SYS_Designer','2019/11/25 09:34:12','SYS_Designer','2019/11/30 18:31:27','','','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('DeductionsWayList','0090','0090','1','O','updatetime','updatetime','String','','更新时间','','1','Text','1','1','','','','32','0','0','0','1','0','0','','','','SYS_Designer','2019/11/25 09:34:12','SYS_Designer','2019/11/30 18:31:27','','','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('DeductionsWayList','0100','0100','1','O','Whether_to_enable','Whether_to_enable','String','','是否取消','','1','Radiobox','1','1','Code','YesOrNo','','32','1','0','0','1','0','0','','','','SYS_Designer','2019/11/30 18:31:27','SYS_Designer','2019/11/30 18:31:27','','','1','','','','');



-- 自动卡扣数据字典



delete from CODE_CATALOG where codeno='YesOrNo';
delete from Code_Library where codeno='YesOrNo';
Insert Into CODE_CATALOG (codeno,sortno,codetypeone,codetypetwo,codename,codedescribe,codeattribute,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('YesOrNo','00203100','1.基础配置','模板管理','选择类型',null,null,'SYS_Designer',null,'2017/05/11 17:10:47','SYS_Designer','2017/05/11 17:11:30',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 ('YesOrNo','N','否','','0020','1','','','','','','','','','','','','SYS_Designer',null,'2017/05/11 17:10:47','SYS_Designer','2019/12/26 15:03:04','','');
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 ('YesOrNo','Y','是','','0010','1','','','','','','','','','','','','SYS_Designer',null,'2017/05/11 17:10:47','SYS_Designer','2019/12/26 15:03:04','','');













-- 短信发送取消设置

delete from awe_menu_info where menuid='980150';
delete from awe_role_menu where menuid='980150';

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('980150','短信发送取消设置','短信发送取消设置','980150','/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/LSendTextMmessageList.jsp','','_self','','1','',NULL,'SYS_Designer','2019/11/16 12:08:19',NULL,'SYS_Designer','2019/11/16 12:08:19','10','','');

insert into `awe_role_menu` (`roleid`, `menuid`) values('099','980150');
insert into `awe_role_menu` (`roleid`, `menuid`) values('299','980150');
insert into `awe_role_menu` (`roleid`, `menuid`) values('399','980150');



-- 自动卡扣取消设置

delete from awe_menu_info where menuid='980160';
delete from awe_role_menu where menuid='980160';

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('980160','自动卡扣取消设置','自动卡扣取消设置','980160','/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/LDeductionsWayList.jsp','','_self','','1','',NULL,'SYS_Designer','2019/11/25 16:15:51',NULL,'SYS_Designer','2019/12/05 09:14:26','10','','');

insert into `awe_role_menu` (`roleid`, `menuid`) values('099','980160');
insert into `awe_role_menu` (`roleid`, `menuid`) values('299','980160');
insert into `awe_role_menu` (`roleid`, `menuid`) values('399','980160');



-- 短信发送取消设置选择对话框

delete from SELECT_CATALOG where selname='SelectDeductions';
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 ('SelectDeductions','Sql','扣款方式','deductions_way','','Grid','','distributor_no','select distributor_coding,distributor_name,distributor_no from distributor_info','渠道商编码,渠道商名称,经销商id','distributor_coding@style={width:250px}','distributor_coding@distributor_name@distributor_no','distributor_name,distributor_coding','1','Single','','','','','','SYS_Designer','','2019/11/30 18:16:44','SYS_Designer','2019/12/03 16:03:32','');


-- 自动卡扣取消设置选择对话框




delete from SELECT_CATALOG where selname='SelectDealers';
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 ('SelectDealers','Sql','查询渠道商信息','distributor_info','','Grid','','distributor_no','select distributor_name,distributor_coding,distributor_no from distributor_info','渠道名称,渠道编号,渠道编码','distributor_name@style={width:250px}','distributor_name@distributor_coding@distributor_no','distributor_name,distributor_coding','1','Single','','','','','','SYS_Designer','','2019/11/23 18:09:05','SYS_Designer','2019/12/11 09:38:49','');







-- 扣款渠道手续费率维护表

CREATE TABLE `lpoundage_maintenance` (
  `id` varchar(32) NOT NULL COMMENT '标识',
  `start_date` varchar(32) DEFAULT NULL COMMENT '开始日期',
  `expiry_date` varchar(32) DEFAULT NULL COMMENT '终止日期',
  `validity_date` varchar(50) DEFAULT NULL COMMENT '有效期',
  `subject` varchar(50) DEFAULT NULL COMMENT '主体',
  `charge_channel` varchar(50) DEFAULT NULL COMMENT '扣款渠道',
  `charge_way` varchar(50) DEFAULT NULL COMMENT '扣款方式',
  `rate` varchar(50) DEFAULT NULL COMMENT '费率',
  `inputuserid` varchar(32) DEFAULT NULL COMMENT '登记人',
  `inputorgid` varchar(32) DEFAULT NULL COMMENT '登记部门',
  `inputtime` varchar(32) DEFAULT NULL COMMENT '登记时间',
  `updateuserid` varchar(32) DEFAULT NULL COMMENT '更新人',
  `updateorgid` varchar(32) DEFAULT NULL COMMENT '更新部门',
  `updatetime` varchar(32) DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;









-- 扣款渠道手续费率维护菜单及权限
delete from awe_menu_info where menuid='980140' and menuname='扣款渠道手续费率维护';
delete from awe_role_menu where menuid='980140';

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('980140','扣款渠道手续费率维护','扣款渠道手续费率维护','980140','/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/PoundageMaintenanceList.jsp','','_self','','1','',NULL,'SYS_Designer','2019/11/13 20:39:13',NULL,'SYS_Designer','2019/11/13 20:39:13','10','','');
insert into `awe_role_menu` (`roleid`, `menuid`) values('099','980140');
insert into `awe_role_menu` (`roleid`, `menuid`) values('299','980140');
insert into `awe_role_menu` (`roleid`, `menuid`) values('399','980140');





-- 扣款渠道手续费率维护info模板

delete from awe_do_catalog where dono='LPoundageMaintenanceInfo';
delete from awe_do_library where dono='LPoundageMaintenanceInfo';


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 ('LPoundageMaintenanceInfo','扣款渠道手续费率维护',null,'30020',null,'1','2','default','jbo.app.tenwa.customer.LPOUNDAGE_MAINTENANCE','O','ID=:ID','','','com.amarsoft.awe.dw.handler.impl.CommonHandler',null,'SYS_Designer','2019/11/13 20:20:25','SYS_Designer','2019/11/16 14:26:11','','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 ('LPoundageMaintenanceInfo','0010','0010','1','O','id','id','String','','标识','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:25','administrator','2019/12/06 18:11:49','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 ('LPoundageMaintenanceInfo','0015','0015','1','O','start_date','start_date','String','','开始日期','','1','Date','3','1','','','','32','1','0','1','1','0',0,'','','','SYS_Designer','2019/11/25 17:52:30','SYS_Designer','2019/12/06 20:23:58','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 ('LPoundageMaintenanceInfo','0016','0016','1','O','expiry_date','expiry_date','String','','终止日期','','1','Date','3','1','','','','32','1','0','1','1','0',0,'','','','SYS_Designer','2019/11/25 17:52:30','SYS_Designer','2019/12/06 20:23:58','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 ('LPoundageMaintenanceInfo','0020','0020','1','O','validity_date','validity_date','String','','有效期','','1','Text','1','1','','','','50','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:25','administrator','2019/12/06 18:11:49','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 ('LPoundageMaintenanceInfo','0030','0030','1','O','subject','subject','String','','主体','','1','Text','1','1','','','','50','0','1','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:25','administrator','2019/12/06 18:11:49','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 ('LPoundageMaintenanceInfo','0040','0040','1','O','charge_channel','charge_channel','String','','扣款渠道','','1','Select','1','1','Code','charge_channel','','50','1','0','1','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:25','administrator','2019/12/06 18:11:49','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 ('LPoundageMaintenanceInfo','0050','0050','1','O','charge_way','charge_way','String','','扣款方式','','1','Select','1','1','Code','charge_way','','50','1','0','1','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:25','administrator','2019/12/06 18:11:49','','','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 ('LPoundageMaintenanceInfo','0060','0060','1','O','rate','rate','Number','','费率','%','1','Text','2','1','','','','50','1','0','1','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:25','SYS_Designer','2019/12/06 20:16:08','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 ('LPoundageMaintenanceInfo','0100','0100','1','O','updateuserid','updateuserid','String','','更新人','','1','Text','1','1','','','','32','0','1','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:25','SYS_Designer','2019/12/20 11:00:21','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 ('LPoundageMaintenanceInfo','0110','0110','1','O','updateorgid','updateorgid','String','','更新部门','','1','Text','1','1','','','','32','0','1','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:25','administrator','2019/12/06 18:11:49','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 ('LPoundageMaintenanceInfo','0120','0120','1','O','updatetime','updatetime','String','','更新时间','','1','Text','3','1','','','','32','0','1','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:25','SYS_Designer','2019/12/20 11:00:21','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 ('LPoundageMaintenanceInfo','0130','0130','1','O','inputuserid','inputuserid','String','','登记人','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/16 14:41:47','SYS_Designer','2019/12/20 11:00:21','','','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 ('LPoundageMaintenanceInfo','0140','0140','1','O','inputorgid','inputorgid','String','','登记部门','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/16 14:41:47','administrator','2019/12/06 18:11:49','','','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 ('LPoundageMaintenanceInfo','0150','0150','1','O','inputtime','inputtime','String','','登记时间','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/16 14:41:47','SYS_Designer','2019/12/20 11:00:21','','','1','','','','');




-- 扣款渠道手续费率维护list模板

delete from awe_do_catalog where dono='LPoundageMaintenanceList';
delete from awe_do_library where dono='LPoundageMaintenanceList';

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 ('LPoundageMaintenanceList','扣款渠道手续费率维护',null,'30020',null,'1','1','default','jbo.app.tenwa.customer.LPOUNDAGE_MAINTENANCE','O','','','','',null,'SYS_Designer','2019/11/13 20:20:04','SYS_Designer','2019/11/16 14:26:11','','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 ('LPoundageMaintenanceList','0010','0010','1','O','id','id','String','','标识','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:04','administrator','2019/12/06 18:08:48','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 ('LPoundageMaintenanceList','0015','0015','1','O','start_date','start_date','String','','开始日期','','1','Text','1','1','','','','32','1','0','0','1','0',0,'','','','SYS_Designer','2019/11/25 17:52:50','administrator','2019/12/06 18:08:48','','','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 ('LPoundageMaintenanceList','0016','0016','1','O','expiry_date','expiry_date','String','','终止日期','','1','Text','1','1','','','','32','1','0','0','1','0',0,'','','','SYS_Designer','2019/11/25 17:52:50','administrator','2019/12/06 18:08:48','','','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 ('LPoundageMaintenanceList','0020','0020','1','O','validity_date','validity_date','String','','有效期','','1','Text','1','1','','','','50','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:04','administrator','2019/12/06 18:08:48','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 ('LPoundageMaintenanceList','0030','0030','1','O','subject','subject','String','','主体','','1','Text','1','1','','','','50','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:04','SYS_Designer','2019/12/07 14:41:43','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 ('LPoundageMaintenanceList','0040','0040','1','O','charge_channel','charge_channel','String','','扣款渠道','','1','Select','1','1','Code','charge_channel','','50','1','0','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:04','administrator','2019/12/06 18:08:48','','','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 ('LPoundageMaintenanceList','0050','0050','1','O','charge_way','charge_way','String','','扣款方式','','1','Select','1','1','Code','charge_way','','50','1','0','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:04','administrator','2019/12/06 18:08:48','','','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 ('LPoundageMaintenanceList','0060','0060','1','O','rate','rate','String','','费率','%','1','Text','1','1','','','','50','1','0','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:04','SYS_Designer','2019/12/20 11:13:45','','','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 ('LPoundageMaintenanceList','0100','0100','1','O','updateuserid','updateuserid','String','','更新人','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:04','SYS_Designer','2019/12/20 11:06:22','','','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 ('LPoundageMaintenanceList','0110','0110','1','O','updateorgid','updateorgid','String','','更新部门','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:04','administrator','2019/12/06 18:08:48','','','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 ('LPoundageMaintenanceList','0120','0095','1','O','updatetime','updatetime','String','','更新时间','','1','Text','1','1','','','','32','1','0','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:20:04','SYS_Designer','2019/12/20 11:07:51','','','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 ('LPoundageMaintenanceList','0130','0130','1','O','inputuserid','inputuserid','String','','登记人','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/16 14:41:47','SYS_Designer','2019/12/20 11:06:22','','','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 ('LPoundageMaintenanceList','0140','0140','1','O','inputorgid','inputorgid','String','','登记部门','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/16 14:41:47','administrator','2019/12/06 18:08:48','','','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 ('LPoundageMaintenanceList','0150','0080','1','O','inputtime','inputtime','String','','登记时间','','1','Text','1','1','','','','32','1','0','0','1','0',0,'','','','SYS_Designer','2019/11/16 14:41:47','SYS_Designer','2019/12/20 11:07:51','','','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 ('LPoundageMaintenanceList','0160','0090','1','','NameManager.getUserName(updateuserid)','updateuserid_n','String','','更新人','','1','Text','1','1','','','','32','1','0','0','1','0',0,'','','','SYS_Designer','2019/12/20 11:04:59','SYS_Designer','2019/12/20 11:07:51','','','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 ('LPoundageMaintenanceList','0170','0070','1','','NameManager.getUserName(inputuserid)','inputuserid_n','String','','登记人','','1','Text','1','1','','','','32','1','0','0','1','0',0,'','','','SYS_Designer','2019/12/20 11:04:59','SYS_Designer','2019/12/20 11:07:51','','','1','','','','');













-- 费率维护扣款渠道数据字典
delete from CODE_CATALOG where codeno='charge_channel';
delete from Code_Library where codeno='charge_channel';

Insert Into CODE_CATALOG (codeno,sortno,codetypeone,codetypetwo,codename,codedescribe,codeattribute,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('charge_channel','0011','费率维护','参数定义','扣款渠道','','','SYS_Designer',null,'2019/12/06 10:41:42','SYS_Designer','2019/12/06 10:41:42','');
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 ('charge_channel','gzyl','广州银联','','0010','1','','','','','','','','','','','','SYS_Designer',null,'2019/12/06 10:41:42','SYS_Designer','2019/12/12 19:04:25','','');
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 ('charge_channel','wx','微信','','0020','1','','','','','','','','','','','','SYS_Designer',null,'2019/12/06 10:41:42','SYS_Designer','2019/12/12 19:04:25','','');
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 ('charge_channel','wysk','网银回款','','0030','1','','','','','','','','','','','','SYS_Designer',null,'2019/12/16 10:00:51','SYS_Designer','2019/12/16 11:56:51','','');






-- 费率维护扣款渠道数据字典
delete from CODE_CATALOG where codeno='charge_way';
delete from Code_Library where codeno='charge_way';


Insert Into CODE_CATALOG (codeno,sortno,codetypeone,codetypetwo,codename,codedescribe,codeattribute,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('charge_way','0012','费率维护','参数定义','扣款方式','','','SYS_Designer',null,'2019/12/06 10:45:39','SYS_Designer','2019/12/06 10:45:39','');
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 ('charge_way','AutoBuckle','自动卡扣','','0040','1','','','','gzyl','','','','','','','','SYS_Designer',null,'2019/12/06 10:52:30','SYS_Designer','2019/12/12 19:06:36','','');
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 ('charge_way','Collection','网银回款','','0050','1','','','','wysk','','','','','','','','SYS_Designer',null,'2019/12/16 10:02:11','SYS_Designer','2019/12/16 11:56: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 ('charge_way','WXPay','微信支付','','0010','1','','','','wx','','','','','','','','SYS_Designer',null,'2019/12/06 10:45:39','SYS_Designer','2019/12/06 10:54:03','','');
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 ('charge_way','WXUnionPay','主动支付','','0020','1','','','','gzyl','','','','','','','','SYS_Designer',null,'2019/12/06 10:45:39','SYS_Designer','2019/12/12 19:12:48','','');



-- 上传模板数据字典
delete from code_library where codeno='DocList' and itemno='030';
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('DocList','030','合同模板',NULL,'030','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'SYS_Designer',NULL,'2019/12/02 18:24:43','SYS_Designer','2019/12/02 18:24:43',NULL,NULL);

delete from code_library where codeno='DocList' and itemno='030001';
delete from code_library where codeno='DocList' and itemno='030002';
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 ('DocList','030001','深圳',null,'030001','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2019/12/02 19:04:43','SYS_Designer','2019/12/02 19:04:43',null,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 ('DocList','030002','天津',null,'030001','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2019/12/02 19:04:43','SYS_Designer','2019/12/02 19:04:43',null,null);

-- 北汽回租系统合同制作
update BF_TEMPLATE set DOCTYPE='030',ONECLASSIFY='030001',remark='深圳' where id='115905186577406ea5414dd14e592e7d';
-- 商用车回租合同模板
update BF_TEMPLATE set DOCTYPE='030',ONECLASSIFY='030001',remark='深圳' where id='35aab6dbac5f4ba292cd67a0914eae2e';
-- 大通
update BF_TEMPLATE set DOCTYPE='030',ONECLASSIFY='030001',remark='深圳' where id='51a5f03ebe3b45cc8ae2b32fdaeceeae';
-- 合同(售后回租)
update BF_TEMPLATE set DOCTYPE='030',ONECLASSIFY='030001',remark='深圳' where id='641c55a1168f4a488a5028ee68870156';
-- 北汽售后回租模板
update BF_TEMPLATE set DOCTYPE='030',ONECLASSIFY='030001',remark='深圳' where id='7cd0bccfc26b4a71aeb159cf36d7bc4f';
-- 保值租赁
update BF_TEMPLATE set DOCTYPE='030',ONECLASSIFY='030001',remark='深圳' where id='91c7718aa925428ca312e343d1f5149f';
-- 凯捷合同模板
update BF_TEMPLATE set DOCTYPE='030',ONECLASSIFY='030001',remark='深圳' where id='a4fcbd2990d1479a9ba8ce440155f2f0';
-- 网约车合同模板
update BF_TEMPLATE set DOCTYPE='030',ONECLASSIFY='030001',remark='深圳' where id='c8d5b729a0954482877c26a1293b766b';



-- 经销商名称长度由80改为200
ALTER TABLE DISTRIBUTOR_INFO MODIFY COLUMN DISTRIBUTOR_NAME varchar(200) comment '经销商名称';
ALTER TABLE DISTRIBUTOR_INFO_CHANGE MODIFY COLUMN DISTRIBUTOR_NAME varchar(200) comment '经销商名称';
ALTER TABLE DISTRIBUTOR_INFO_TEMP MODIFY COLUMN DISTRIBUTOR_NAME varchar(200) comment '经销商名称';
ALTER TABLE DISTRIBUTOR_INFO_CHANGE_TEMP MODIFY COLUMN DISTRIBUTOR_NAME varchar(200) comment '经销商名称';
ALTER TABLE DISTRIBUTOR_INFO_HIS MODIFY COLUMN DISTRIBUTOR_NAME varchar(200) comment '经销商名称';










