admin库:
INSERT INTO `dxhy_admin`.`sys_dicttype` (`dicttypeid`, `dicttypename`, `dicttypedesc`, `dicttypecode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `sys_code`) VALUES ('1499650263303180290', '全电发票ALL', '', 'ELECTRIC_INVOICE_ALL', NULL, '', NULL, '', '');
INSERT INTO `dxhy_admin`.`sys_dicttype` (`dicttypeid`, `dicttypename`, `dicttypedesc`, `dicttypecode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `sys_code`) VALUES ('1499650888279642113', '全电发票', NULL, 'ELECTRIC_INVOICE', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `dxhy_admin`.`sys_dicttype` (`dicttypeid`, `dicttypename`, `dicttypedesc`, `dicttypecode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `sys_code`) VALUES ('1500640112948662274', '发票来源', '', 'INVOICE_SOURCE', NULL, '', NULL, '', '');
INSERT INTO `dxhy_admin`.`sys_dicttype` (`dicttypeid`, `dicttypename`, `dicttypedesc`, `dicttypecode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `sys_code`) VALUES ('1500752049069928449', '采集类发票类型All', NULL, 'CJFPLX_ALL', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `dxhy_admin`.`sys_dicttype` (`dicttypeid`, `dicttypename`, `dicttypedesc`, `dicttypecode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `sys_code`) VALUES ('1500755241505697793', '发票类型', '销项票池', 'XXPCLX_ALL', NULL, '', NULL, '', '');
INSERT INTO `dxhy_admin`.`sys_dicttype` (`dicttypeid`, `dicttypename`, `dicttypedesc`, `dicttypecode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `sys_code`) VALUES ('1501375146110267394', '发票类型', '出口转内销-发票手工认证', 'FPLX_CKZNX_ALL', NULL, '', NULL, '', '');
INSERT INTO `dxhy_admin`.`sys_dicttype` (`dicttypeid`, `dicttypename`, `dicttypedesc`, `dicttypecode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `sys_code`) VALUES ('1501481189662306306', '发票类型(销项汇总表-按税率)', NULL, 'INVOICE_TYPE_PC2_ALL', NULL, NULL, NULL, NULL, NULL);



INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1499650938359631873', '1499650888279642113', '全部', '0', NULL, '99', NULL, NULL, NULL, NULL, NULL, 'ELECTRIC_INVOICE');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1499651025588572162', '1499650888279642113', '电子发票(增值税专用发票)', '1', NULL, '31', NULL, NULL, NULL, NULL, NULL, 'ELECTRIC_INVOICE');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1500640230905073666', '1500640112948662274', '全部', '0', NULL, '99', NULL, NULL, NULL, NULL, NULL, 'INVOICE_SOURCE');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1500669217869967361', '1500640112948662274', '税控发票', '1', NULL, '0', NULL, NULL, NULL, NULL, NULL, 'INVOICE_SOURCE');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1500669279991803905', '1500640112948662274', '全电发票', '2', NULL, '1', NULL, NULL, NULL, NULL, NULL, 'INVOICE_SOURCE');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1500716188706058241', '1499650263303180290', '全部', '0', '', '99', NULL, '', NULL, '', NULL, 'ELECTRIC_INVOICE_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1500716269681291266', '1499650263303180290', '电子发票（增值税专用发票）', '1', NULL, '31', NULL, NULL, NULL, NULL, NULL, 'ELECTRIC_INVOICE_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1500716324576342018', '1499650263303180290', '电子发票（普通发票）', '2', NULL, '32', NULL, NULL, NULL, NULL, NULL, 'ELECTRIC_INVOICE_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1500816324576342018', '1500752049069928449', '全部', '0', NULL, '99', NULL, NULL, NULL, NULL, NULL, 'CJFPLX_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1500816324576342019', '1500752049069928449', '增值税专用发票', '1', NULL, '01', NULL, NULL, NULL, NULL, NULL, 'CJFPLX_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1500816324576342020', '1500752049069928449', '机动车销售统一发票', '2', NULL, '03', NULL, NULL, NULL, NULL, NULL, 'CJFPLX_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1500816324576342021', '1500752049069928449', '增值税电子普通发票（通行费）', '3', NULL, '14', NULL, NULL, NULL, NULL, NULL, 'CJFPLX_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1500816324576342022', '1500752049069928449', '增值税电子专用发票', '4', NULL, '08', NULL, NULL, NULL, NULL, NULL, 'CJFPLX_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1500816324576342023', '1500752049069928449', '电子发票（增值税专用发票）', '5', NULL, '31', NULL, NULL, NULL, NULL, NULL, 'CJFPLX_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1516326463778578434', '1500755241505697793', '全部', '1', NULL, '99', NULL, NULL, NULL, NULL, NULL, 'XXPCLX_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1516326511178407937', '1500755241505697793', '增值税普通发票', '2', NULL, '04', NULL, NULL, NULL, NULL, NULL, 'XXPCLX_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1516326563506544641', '1500755241505697793', '增值税专用发票', '3', NULL, '01', NULL, NULL, NULL, NULL, NULL, 'XXPCLX_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1516326606967922690', '1500755241505697793', '机动车销售统一发票', '4', NULL, '03', NULL, NULL, NULL, NULL, NULL, 'XXPCLX_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1516326647778500610', '1500755241505697793', '增值税电子普通发票', '5', NULL, '10', NULL, NULL, NULL, NULL, NULL, 'XXPCLX_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1516326699234222081', '1500755241505697793', '增值税普通发票(卷票)', '6', NULL, '11', NULL, NULL, NULL, NULL, NULL, 'XXPCLX_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1516326751751102465', '1500755241505697793', '增值税电子专用发票', '7', NULL, '08', NULL, NULL, NULL, NULL, NULL, 'XXPCLX_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1516326845036617729', '1500755241505697793', '增值税电子普通发票(通行费)', '8', NULL, '14', NULL, NULL, NULL, NULL, NULL, 'XXPCLX_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1549907897969455106', '1500755241505697793', '二手车销售统一发票', '9', NULL, '15', NULL, NULL, NULL, NULL, NULL, 'XXPCLX_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1549907897969455107', '1500755241505697793', '电子发票（增值税专用发票）', '10', NULL, '31', NULL, NULL, NULL, NULL, NULL, 'XXPCLX_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1549907897969455108', '1500755241505697793', '电子发票（普通发票）', '11', NULL, '32', NULL, NULL, NULL, NULL, NULL, 'XXPCLX_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1559907897969455108', '1501375146110267394', '全部', '1', NULL, '99', NULL, NULL, NULL, NULL, NULL, 'FPLX_CKZNX_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1559907897969455110', '1501375146110267394', '增值税专用发票', '2', NULL, '01', NULL, NULL, NULL, NULL, NULL, 'FPLX_CKZNX_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1559907897969455111', '1501375146110267394', '增值税电子专用发票', '3', NULL, '08', NULL, NULL, NULL, NULL, NULL, 'FPLX_CKZNX_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1559907897969455112', '1501375146110267394', '电子发票（增值税专用发票）', '4', NULL, '31', NULL, NULL, NULL, NULL, NULL, 'FPLX_CKZNX_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1559907897969455113', '1501481189662306306', '全部', '1', NULL, '99', NULL, NULL, NULL, NULL, NULL, 'INVOICE_TYPE_PC2_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1559907897969455114', '1501481189662306306', '增值税普通发票', '2', NULL, '04', NULL, NULL, NULL, NULL, NULL, 'INVOICE_TYPE_PC2_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1559907897969455115', '1501481189662306306', '增值税专用发票', '3', NULL, '01', NULL, NULL, NULL, NULL, NULL, 'INVOICE_TYPE_PC2_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1559907897969455116', '1501481189662306306', '增值税电子普通发票', '4', NULL, '10', NULL, NULL, NULL, NULL, NULL, 'INVOICE_TYPE_PC2_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1559907897969455117', '1501481189662306306', '增值税普通发票(卷票)', '5', NULL, '11', NULL, NULL, NULL, NULL, NULL, 'INVOICE_TYPE_PC2_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1559907897969455118', '1501481189662306306', '增值税电子专用发票', '6', NULL, '08', NULL, NULL, NULL, NULL, NULL, 'INVOICE_TYPE_PC2_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1559907897969455119', '1501481189662306306', '增值税电子普通发票(通行费)', '7', NULL, '14', NULL, NULL, NULL, NULL, NULL, 'INVOICE_TYPE_PC2_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1559907897969455120', '1501481189662306306', '二手车销售统一发票', '8', NULL, '15', NULL, NULL, NULL, NULL, NULL, 'INVOICE_TYPE_PC2_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1559907897969455121', '1501481189662306306', '电子发票（增值税专用发票）', '9', NULL, '31', NULL, NULL, NULL, NULL, NULL, 'INVOICE_TYPE_PC2_ALL');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1559907897969455122', '1501481189662306306', '电子发票（普通发票）', '10', NULL, '32', NULL, NULL, NULL, NULL, NULL, 'INVOICE_TYPE_PC2_ALL');
UPDATE sys_tabulate set titlewidth ='250'  where tabulate_code='invoiceNo';
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1508705906806824961', '1412345496353234946', '电子发票（增值税专用发票）', '10', NULL, '31', NULL, NULL, NULL, NULL, NULL, 'INVOICE_TYPE_VAT');
INSERT INTO `dxhy_admin`.`sys_dictdeta` (`dictid`, `dicttype`, `dictname`, `sortno`, `status`, `dictcode`, `create_time`, `create_by`, `last_modify_time`, `last_modify_by`, `_mycat_op_time`, `dicttypecode`) VALUES ('1508705981830340609', '1412345496353234946', '电子发票（普通发票）', '11', NULL, '32', NULL, NULL, NULL, NULL, NULL, 'INVOICE_TYPE_VAT');



tertiary库：
ALTER table  t_dx_record_invoice MODIFY invoice_no VARCHAR(20);
ALTER table  t_dx_sale_record_invoice MODIFY invoice_no VARCHAR(20);
ALTER table  t_dx_apply_record MODIFY invoice_no VARCHAR(20);
ALTER table  t_dx_check_log MODIFY invoice_no VARCHAR(20);
ALTER table  t_dx_record_invoice_statistics MODIFY invoice_no VARCHAR(20);
ALTER table  t_dx_record_invoice_out MODIFY invoice_no VARCHAR(20);
ALTER table  t_dx_export_invoice MODIFY invoice_no VARCHAR(20);


ALTER table  t_dx_record_invoice add invoice_source VARCHAR(2)  comment  '发票来源 0-税控发票 1-全电发票';
ALTER table  t_dx_sale_record_invoice add invoice_source VARCHAR(2)  comment  '发票来源 0-税控发票 1-全电发票';
ALTER table  t_dx_invoice add invoice_source VARCHAR(2)  comment  '发票来源 0-税控发票 1-全电发票';
ALTER table  t_dx_alltaxes_sale_tax_rate add invoice_source VARCHAR(2)  comment  '发票来源 0-税控发票 1-全电发票';
ALTER table  t_dx_export_invoice add invoice_source VARCHAR(2)  comment  '发票来源 0-税控发票 1-全电发票';


ALTER table  t_dx_record_invoice add bdk_message VARCHAR(30)  comment  '不抵扣原因 1-用于非应税项目2-用于免税项目3-用于集体福利或者个人消费4-遭受非正常损失5-其他';
ALTER table  t_dx_export_invoice add bdk_message VARCHAR(30)  comment  '不抵扣原因 1-用于非应税项目2-用于免税项目3-用于集体福利或者个人消费4-遭受非正常损失5-其他';
ALTER table  t_dx_export_customs add bdk_message VARCHAR(30)  comment  '不抵扣原因 1-用于非应税项目2-用于免税项目3-用于集体福利或者个人消费4-遭受非正常损失5-其他';
ALTER table  t_dx_customs_record add bdk_message VARCHAR(30)  comment  '不抵扣原因 1-用于非应税项目2-用于免税项目3-用于集体福利或者个人消费4-遭受非正常损失5-其他';


dxhy_detail库：
ALTER table  t_dx_record_invoice_detail MODIFY invoice_no VARCHAR(20);








