2021-11-11 08:48:39 +08:00

92 lines
16 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 添加字段
alter table LB_ACTUAL_PAYMENT_INFO_TEMP add column pay_mode VARCHAR(10) DEFAULT 'cgb' comment '付款方式' ;
alter table LB_ACTUAL_PAYMENT_INFO_TEMP add bank varchar(200) comment '本方银行';
alter table LB_ACTUAL_PAYMENT_INFO_TEMP add account varchar(200) comment '本方账户';
alter table LB_ACTUAL_PAYMENT_INFO_TEMP add acc_number varchar(200) comment '本方帐号';
alter table LB_ACTUAL_PAYMENT_INFO add column pay_mode VARCHAR(10) comment '付款方式' ;
alter table LB_ACTUAL_PAYMENT_INFO add bank varchar(200) comment '本方银行';
alter table LB_ACTUAL_PAYMENT_INFO add account varchar(200) comment '本方账户';
alter table LB_ACTUAL_PAYMENT_INFO add acc_number varchar(200) comment '本方帐号';
-- 修改字段长度
alter table lc_fund_income_callback_detail_temp modify column SQRNBR varchar(50);
alter table lc_fund_income_callback_detail modify column SQRNBR varchar(50);
-- 本次付款明细过滤条件修改
update awe_do_library set isfilter = '0' where dono = 'ActualPaymentCarTempList';
update awe_do_library set isfilter = '1',colfilteroptions ='Like' where dono = 'ActualPaymentCarTempList' and colactualname in ('CUSTOMER_NAME','CONTRACT_NUMBER','REQSTS','ERRTXT');
-- 付款计划
update awe_do_library set isfilter ='0' where dono='VIActualFundPlan';
update awe_do_library set isfilter ='1',colfilteroptions ='Like' where dono='VIActualFundPlan' and colname in ('contract_number','customer_name');
-- 添加状态码字典
INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `inputuser`, `inputtime`) VALUES ('cgb_describe', '104', '操作员错误', '1', 'system', '2021/07/26 17:20:31');
INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `inputuser`, `inputtime`) VALUES ('cgb_describe', '106', '操作员密码错误', '1', 'system', '2021/07/26 17:20:31');
INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `inputuser`, `inputtime`) VALUES ('cgb_describe', '199', '网银其它错误', '1', 'system', '2021/07/26 17:20:31');
INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `inputuser`, `inputtime`) VALUES ('cgb_describe', '218', '重复的流水号', '1', 'system', '2021/07/26 17:20:31');
INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `inputuser`, `inputtime`) VALUES ('cgb_describe', '242', '无符合条件的交易记录', '1', 'system', '2021/07/26 17:20:31');
INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `inputuser`, `inputtime`) VALUES ('cgb_describe', '407', '取证书故障', '1', 'system', '2021/07/26 17:20:31');
INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `inputuser`, `inputtime`) VALUES ('cgb_describe', '419', '签名数据出错', '1', 'system', '2021/07/26 17:20:31');
INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `inputuser`, `inputtime`) VALUES ('cgb_describe', '616', '存在重复的客户批次子流水号', '1', 'system', '2021/07/26 17:20:31');
INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `inputuser`, `inputtime`) VALUES ('cgb_describe', '888', '没有收到主机返回数据', '1', 'system', '2021/07/26 17:20:31');
INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `inputuser`, `inputtime`) VALUES ('cgb_describe', '889', '交易失败', '1', 'system', '2021/07/26 17:20:31');
INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `inputuser`, `inputtime`) VALUES ('cgb_describe', 'A01', '企业客户号不能为空', '1', 'system', '2021/07/26 17:20:31');
INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `inputuser`, `inputtime`) VALUES ('cgb_describe', 'A02', '企业财务系统流水号不能为空,且长度不能大于20', '1', 'system', '2021/07/26 17:20:31');
INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `inputuser`, `inputtime`) VALUES ('cgb_describe', 'A03', '上送账号格式不正确', '1', 'system', '2021/07/26 17:20:31');
INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `inputuser`, `inputtime`) VALUES ('cgb_describe', 'A04', '被查询或转出账号未加挂银企直联', '1', 'system', '2021/07/26 17:20:31');
INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `inputuser`, `inputtime`) VALUES ('cgb_describe', 'A05', '操作员不能为空且长度不能大于大于12', '1', 'system', '2021/07/26 17:20:31');
INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `inputuser`, `inputtime`) VALUES ('cgb_describe', 'A06', '操作员密码不能为空', '1', 'system', '2021/07/26 17:20:31');
INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `inputuser`, `inputtime`) VALUES ('cgb_describe', 'C99', '主机业务处理异常', '1', 'system', '2021/07/26 17:20:31');
INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `inputuser`, `inputtime`) VALUES ('cgb_describe', 'D46', '没有使用该接口的权限', '1', 'system', '2021/07/26 17:20:31');
INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `inputuser`, `inputtime`) VALUES ('cgb_describe', 'E01', '证书有效期已过', '1', 'system', '2021/07/26 17:20:31');
INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `inputuser`, `inputtime`) VALUES ('cgb_describe', 'E02', '该用户没有绑定相关证书', '1', 'system', '2021/07/26 17:20:31');
INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `inputuser`, `inputtime`) VALUES ('cgb_describe', 'E03', '验签失败', '1', 'system', '2021/07/26 17:20:31');
-- 添加选择框
INSERT INTO `apzl`.`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 ('SelectOwnAccountPay', 'Sql', '查询本方账户', '', '', 'Grid', 'String accName', '', 'SELECT acc_number,acc_bank,acc_name FROM own_account WHERE state_=\'0010\' AND acc_type=\'0010\' AND (account_type=\'out_account\' OR account_type=\'inAndOut_account\') and acc_name = \'#accName\'', '开户帐号,开户银行,开户户名', 'acc_number@style={width:200px;}@acc_name@style={width:400px;}', 'acc_number@acc_bank@acc_name', '', '1', 'Single', '', '', '', '', '', 'SYS_Designer', '', '2021/07/23 09:38:25', 'SYS_Designer', '2021/07/23 09:42:57', '');
-- 添加字段
INSERT INTO apzl.awe_do_library (dono, colindex, sortno, isinuse, coltablename, colactualname, colname, coltype, coldefaultvalue, colheader, colunit, colcolumntype, coleditstyle, colcheckformat, colalign, coleditsourcetype, coleditsource, colhtmlstyle, collimit, colvisible, colreadonly, colrequired, colsortable, isfilter, colspan, isautocomplete, groupid, colfilterrefid, inputuser, inputtime, updateuser, updatetime, isaudit, colfilterattrs, isupdate, parentcolindex, tips, colinnerbtevent, colfilteroptions) VALUES ('LBActualPaymentInfoTemp', '1032', '1032', '1', 'O', 'pay_mode', 'pay_mode', 'String', '', '付款方式', '', '1', 'Select', '1', '1', 'CodeTable', 'cmb,招商银企,cgb,广发银企', '', '10', '1', '1', '1', '1', '0', 0, '', '', '', 'SYS_Designer', '2021/07/23 09:12:54', '800901U00000008', '2021/08/25 10:59:42', '0', '', '1', '', '', '', '');
INSERT INTO apzl.awe_do_library (dono, colindex, sortno, isinuse, coltablename, colactualname, colname, coltype, coldefaultvalue, colheader, colunit, colcolumntype, coleditstyle, colcheckformat, colalign, coleditsourcetype, coleditsource, colhtmlstyle, collimit, colvisible, colreadonly, colrequired, colsortable, isfilter, colspan, isautocomplete, groupid, colfilterrefid, inputuser, inputtime, updateuser, updatetime, isaudit, colfilterattrs, isupdate, parentcolindex, tips, colinnerbtevent, colfilteroptions) VALUES ('LBActualPaymentInfoTemp', '1034', '1034', '1', 'O', 'account', 'account', 'String', '', '本方账户', '', '1', 'Text', '1', '1', '', '', 'style={color:black}', '200', '1', '1', '1', '1', '0', 0, '', '', '', 'SYS_Designer', '2021/07/23 09:12:54', '800901U00000008', '2021/08/25 10:59:42', '0', '', '1', '', '', 'selectOwnAccount()', '');
INSERT INTO apzl.awe_do_library (dono, colindex, sortno, isinuse, coltablename, colactualname, colname, coltype, coldefaultvalue, colheader, colunit, colcolumntype, coleditstyle, colcheckformat, colalign, coleditsourcetype, coleditsource, colhtmlstyle, collimit, colvisible, colreadonly, colrequired, colsortable, isfilter, colspan, isautocomplete, groupid, colfilterrefid, inputuser, inputtime, updateuser, updatetime, isaudit, colfilterattrs, isupdate, parentcolindex, tips, colinnerbtevent, colfilteroptions) VALUES ('LBActualPaymentInfoTemp', '1036', '1036', '1', 'O', 'acc_number', 'acc_number', 'String', '', '本方帐号', '', '1', 'Text', '1', '1', '', '', '', '200', '1', '1', '1', '1', '0', 0, '', '', '', 'SYS_Designer', '2021/07/23 09:12:54', '800901U00000008', '2021/08/25 10:59:42', '', '', '1', '', '', '', '');
INSERT INTO apzl.awe_do_library (dono, colindex, sortno, isinuse, coltablename, colactualname, colname, coltype, coldefaultvalue, colheader, colunit, colcolumntype, coleditstyle, colcheckformat, colalign, coleditsourcetype, coleditsource, colhtmlstyle, collimit, colvisible, colreadonly, colrequired, colsortable, isfilter, colspan, isautocomplete, groupid, colfilterrefid, inputuser, inputtime, updateuser, updatetime, isaudit, colfilterattrs, isupdate, parentcolindex, tips, colinnerbtevent, colfilteroptions) VALUES ('LBActualPaymentInfoTemp', '1038', '1038', '1', 'O', 'bank', 'bank', 'String', '', '本方银行', '', '1', 'Text', '1', '1', '', '', '', '200', '1', '1', '1', '1', '0', 0, '', '', '', 'SYS_Designer', '2021/07/23 09:12:54', '800901U00000008', '2021/08/25 10:59:42', '', '', '1', '', '', '', '');
-- 添加广发银企日志
CREATE TABLE `lb_cgb_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` varchar(10) DEFAULT NULL COMMENT '类型 pay:转账,query:查询',
`flow_unid` varchar(50) DEFAULT NULL COMMENT '流程id',
`batch_no` varchar(50) DEFAULT NULL COMMENT '批次号',
`req_msg` mediumtext,
`ret_msg` text,
`req_time` varchar(50) DEFAULT NULL COMMENT '发起时间',
`ret_time` varchar(50) DEFAULT NULL COMMENT '返回时间',
`serial_num` varchar(50) DEFAULT NULL COMMENT '序号',
PRIMARY KEY (`id`),
KEY `idx_no_num` (`batch_no`,`serial_num`)
);
-- 添加品牌视图
create view vi_car_brand as select `apzl`.`lb_cardata_brand`.`brandid` AS `brandid`,
`apzl`.`lb_cardata_brand`.`brandname` AS `brandname`,
'乘用车' AS `cartype`,
'CYC' AS `cartypea`
from `apzl`.`lb_cardata_brand`
union all select `apzl`.`lb_cardata_commercial_brand`.`brand_id` AS `brand_id`,
`apzl`.`lb_cardata_commercial_brand`.`brand_name` AS `brand_name`,
'商用车' AS ``,
'SYC' AS `SYC`
from `apzl`.`lb_cardata_commercial_brand`;
-- 添加车型选择框
INSERT INTO apzl.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 ('SelectCardataBrandNew', 'Sql', '选择车品牌', '', 'ID', 'Grid', '', 'brandid,cartypea', 'SELECT brandid,brandname,cartype,cartypea FROM vi_car_brand', '汽车ID,汽车品牌,汽车类型,汽车类型标识', '', 'brandid@brandname@cartype@cartypea', 'brandname,cartype', '1', 'Single', '', '', '', '', '', 'SYS_Designer', '', '2018/05/30 15:27:26', 'SYS_Designer', '2021/06/01 17:46:54', '');
INSERT INTO apzl.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 ('SelectCardataSeriesCYC', 'Sql', '选择车系', null, 'ID', 'Grid', 'String brandid', 'seriesid', 'select se.seriesid,se.seriesname from lb_cardata_series se WHERE se.seriesname IS NOT NULL AND se.brandid=''#brandid'' ORDER BY se.seriesname DESC', '系列ID,汽车系列', null, 'seriesid@seriesname', 'seriesname', '1', 'Single', null, null, null, null, 'seriesname@ @ @Contains', 'SYS_Designer', null, '2018/05/31 11:29:51', 'SYS_Designer', '2018/07/23 16:45:04', null);
INSERT INTO apzl.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 ('SelectCardataSeriesSYC', 'Sql', '选择车系', null, 'ID', 'Grid', 'String brandid', 'seriesid', 'select se.series_id as seriesid,se.series_name as seriesname from lb_cardata_commercial_series se WHERE se.series_name IS NOT NULL AND se.brand_id=''#brandid'' ORDER BY se.series_name DESC', '系列ID,汽车系列', null, 'seriesid@seriesname', 'seriesname', '1', 'Single', null, null, null, null, 'seriesname@ @ @Contains', 'SYS_Designer', null, '2018/05/31 11:29:51', 'SYS_Designer', '2018/07/23 16:45:04', null);
INSERT INTO apzl.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 ('SelectCardataModelCYC', 'Sql', '选择车型', null, 'ID', 'Grid', 'String seriesid', 'modelid,price,liter,geartype,cartype,vehicletype,vehiclelevel', 'SELECT mo.modelid,mo.modelname,mo.price,mo.liter,mo.geartype,''乘用车'' as cartype, '''' as vehicletype, '''' as vehiclelevel FROM lb_cardata_model mo WHERE mo.modelname IS NOT NULL and mo.seriesid=''#seriesid'' ORDER BY mo.modelname DESC', '车型ID,汽车类型,指导价,排量,档位,车辆类型,商用车设备类型,商用车设备级别', 'modelname@style={width:450px;}', 'modelid@modelname@price@liter@geartype@cartype@vehicletype@vehiclelevel', 'modelname', '1', 'Single', null, null, null, null, null, 'SYS_Designer', null, '2018/05/31 17:04:29', 'SYS_Designer', '2018/07/23 15:36:09', null);
INSERT INTO apzl.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 ('SelectCardataModelSYC', 'Sql', '选择车型', null, 'ID', 'Grid', 'String seriesid', 'modelid,price,liter,geartype,cartype,vehicletype,vehiclelevel', 'SELECT mo.model_id as modelid,mo.model_name as modelname,mo.price,mo.liter,'''' as geartype, ''商用车'' cartype,mo.vehicle_type as vehicletype,mo.level as vehiclelevel FROM lb_cardata_commercial_model mo WHERE mo.model_name IS NOT NULL and mo.series_id=''#seriesid'' ORDER BY mo.model_name DESC', '车型ID,汽车类型,指导价,排量,档位,车辆类型,商用车设备类型,商用车设备级别', 'modelname@style={width:450px;}', 'modelid@modelname@price@liter@geartype@cartype@vehicletype@vehiclelevel', 'modelname', '1', 'Single', null, null, null, null, null, 'SYS_Designer', null, '2018/05/31 17:04:29', 'SYS_Designer', '2018/07/23 15:36:09', null);