You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
229 lines
13 KiB
229 lines
13 KiB
<?xml version="1.0"?>
|
|
<!DOCTYPE mycat:schema SYSTEM "schema.dtd">
|
|
<mycat:schema xmlns:mycat="http://io.mycat/">
|
|
<!--去掉 sqlMaxLimit 返回所有 -->
|
|
<schema name="sales_order" checkSQLschema="true">
|
|
|
|
<!--******************* 全局表,所有节点都会存储 start *******************-->
|
|
<!--认证表-->
|
|
<table name="authentication" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--二维码配置主表-->
|
|
<table name="ewm_config" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--二维码配置明细表-->
|
|
<table name="ewm_config_item" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--二维码公众号配置表-->
|
|
<table name="ewm_gzh_config" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--发票快递表-->
|
|
<table name="fp_express" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--快递公司表-->
|
|
<table name="fp_kdbm" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--发票邮寄表-->
|
|
<table name="fp_sender" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--拆分规则表-->
|
|
<table name="rule_split" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--发票预警表-->
|
|
<table name="saler_warning" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--推送企业信息表-->
|
|
<table name="push_info" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--发票预警表-->
|
|
<table name="invoice_warning_info" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--字典表-->
|
|
<table name="sys_dictionary" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--税号队列表-->
|
|
<table name="sys_nsr_queue" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--税号队列配置表-->
|
|
<table name="sys_queue_config" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--税号队列配置表-->
|
|
<table name="sys_qd_queue_config" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--红字申请单下载表-->
|
|
<table name="special_invoice_reversal_download" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--红字申请单主表-->
|
|
<table name="special_invoice_reversal" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--红字申请单明细表-->
|
|
<table name="special_invoice_reversal_item" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--税编基础表-->
|
|
<table name="tax_class_code" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--用户引导表-->
|
|
<table name="user_guider" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--车辆税编表-->
|
|
<table name="vehicles_code" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--车辆类型表-->
|
|
<table name="vehicles_type" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--车辆产地表-->
|
|
<table name="vehicles_produce_area" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--车辆生产厂家表-->
|
|
<table name="vehicles_manufacturer" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--本地打印设置表-->
|
|
<table name="local_print_config" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--基础信息表-->
|
|
<table name="sys_base_info" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--开票组织管理表-->
|
|
<table name="sys_group_management" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--发票开票点表-->
|
|
<table name="invoice_kpd_info" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
|
|
|
|
<!--电子签章表-->
|
|
<table name="ele_signature" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--企业信息表-->
|
|
<table name="enterprise_info" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--发票申领信息表-->
|
|
<table name="fpsl_info" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--发票申领明细信息表-->
|
|
<table name="fpsl_item_info" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--发票申领设置表-->
|
|
<table name="invoice_application_info" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--销项后台-上线企业主表-->
|
|
<table name="invoice_count" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--销项后台-上线企业明细表-->
|
|
<table name="invoice_count_item" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--UT1000p盘阵管理-->
|
|
<table name="pzgl" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--渠道配置信息表-->
|
|
<table name="qd_config" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--服平台接入配置信息表-->
|
|
<table name="qfpt_jrpz" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--企服平台授权管理信息表-->
|
|
<table name="qfpt_sqgl" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--UT1000税盘初始化-->
|
|
<table name="qycsh_info" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--字典数据表-->
|
|
<table name="sys_dict" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--菜单管理-->
|
|
<table name="sys_menu" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--角色与菜单对应关系-->
|
|
<table name="sys_user_menu" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--用户表-->
|
|
<table name="user_info" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--方格日志-->
|
|
<table name="yw_fgrz" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--主控信息-->
|
|
<table name="zkxx" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
<!--主控信息-->
|
|
<table name="zkxx_manager_info" primaryKey="id" type="global" dataNode="dn$1-4"/>
|
|
|
|
|
|
<!-- 一共24张全局表 -->
|
|
<!--******************* 全局表,所有节点都会存储 end *******************-->
|
|
|
|
|
|
<!--******************* 分库 start *******************-->
|
|
<!--验签失败数据表-->
|
|
<table name="check_fail_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--业务类型表-->
|
|
<table name="business_type_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--购货方信息表-->
|
|
<table name="buyer_manage_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--商品信息表-->
|
|
<table name="commodity_code" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--开票人表-->
|
|
<table name="drawer_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--发票类型扩展表-->
|
|
<table name="invoice_type_code_ext" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--纸票作废表-->
|
|
<table name="paper_invalid_invoice_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--批量开票请求批次表-->
|
|
<table name="invoice_batch_request" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--批量开票请求明细表-->
|
|
<table name="invoice_batch_request_item" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--批量订单请求批次表-->
|
|
<table name="order_batch_request" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--订单机动车信息表-->
|
|
<table name="order_info_jdc" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--订单二手车信息表-->
|
|
<table name="order_info_esc" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--订单数电信息表-->
|
|
<table name="order_info_qd" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--订单数电发附加要素信息表-->
|
|
<table name="order_info_qd_fjys" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--订单数电特定业务信息表-->
|
|
<table name="order_info_qd_tdyw" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--订单数电差额征税信息表-->
|
|
<table name="order_info_qd_cezs" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--订单信息表-->
|
|
<table name="order_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--订单处理表-->
|
|
<table name="order_invoice_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--订单明细表-->
|
|
<table name="order_item_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--订单原始订单扩展表-->
|
|
<table name="order_orgin_extend_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--订单处理表-->
|
|
<table name="order_process_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--订单处理表-->
|
|
<table name="order_process_info_ext" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--订单二维码扩展表-->
|
|
<table name="order_qrcode_extend" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--静态码二维码主表-->
|
|
<table name="quick_response_code_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--静态码二维码明细表-->
|
|
<table name="quick_response_code_item_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--全税项目统计汇总表-->
|
|
<table name="invoice_item_request" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--全税率金额统计汇总表-->
|
|
<table name="invoice_taxrate_request" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--订单开票量统计表-->
|
|
<table name="order_invoice_statistics" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--订单开票量统计明细表-->
|
|
<table name="order_invoice_statistics_item" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--历史发票信息主表-->
|
|
<table name="history_invoice_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--历史发票信息明细表-->
|
|
<table name="history_invoice_item_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--订单数电医疗信息表-->
|
|
<table name="order_info_qd_yl" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--订单数电医疗收费明细信息表-->
|
|
<table name="order_info_qd_ylzysfmx" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--订单数电医疗省市自定义要素信息表-->
|
|
<table name="order_info_qd_ylsszdyys" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--订单数电共同购买方表-->
|
|
<table name="order_info_qd_gtgmf" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!--订单数电代收车船税信息表-->
|
|
<table name="order_info_qd_dsccs" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
|
|
<!-- 一共32张分表 -->
|
|
<!--******************* 分库 end *******************-->
|
|
</schema>
|
|
|
|
|
|
<dataNode name="dn1" dataHost="db1" database="sales_order_mycat1"/>
|
|
<dataNode name="dn2" dataHost="db2" database="sales_order_mycat2"/>
|
|
<dataNode name="dn3" dataHost="db3" database="sales_order_mycat3"/>
|
|
<dataNode name="dn4" dataHost="db4" database="sales_order_mycat4"/>
|
|
|
|
|
|
<!--配置不同数据库连接,根据大区对应多套数据库-->
|
|
<dataHost name="db1" maxCon="1000" minCon="10" balance="0"
|
|
writeType="0" dbType="mysql" dbDriver="native" switchType="1" slaveThreshold="100">
|
|
<heartbeat>select user()</heartbeat>
|
|
<writeHost host="sales_order_host1" url="10.1.1.224:3306" user="dxhy" password="Dxhy@123">
|
|
<!--<readHost host="hostS1" url="10.1.21.86:3306" password="123" user="dxhy"/>-->
|
|
</writeHost>
|
|
</dataHost>
|
|
|
|
<dataHost name="db2" maxCon="1000" minCon="10" balance="0"
|
|
writeType="0" dbType="mysql" dbDriver="native" switchType="1" slaveThreshold="100">
|
|
<heartbeat>select user()</heartbeat>
|
|
<writeHost host="sales_order_host2" url="10.1.1.224:3306" user="dxhy" password="Dxhy@123">
|
|
<!--<readHost host="hostS1" url="10.1.21.86:3306" password="123" user="dxhy"/>-->
|
|
</writeHost>
|
|
</dataHost>
|
|
|
|
|
|
<dataHost name="db3" maxCon="1000" minCon="10" balance="0"
|
|
writeType="0" dbType="mysql" dbDriver="native" switchType="1" slaveThreshold="100">
|
|
<heartbeat>select user()</heartbeat>
|
|
<writeHost host="sales_order_host3" url="10.1.1.224:3306" user="dxhy" password="Dxhy@123">
|
|
<!--<readHost host="hostS1" url="10.1.21.86:3306" password="123" user="dxhy"/>-->
|
|
</writeHost>
|
|
</dataHost>
|
|
|
|
<dataHost name="db4" maxCon="1000" minCon="10" balance="0"
|
|
writeType="0" dbType="mysql" dbDriver="native" switchType="1" slaveThreshold="100">
|
|
<heartbeat>select user()</heartbeat>
|
|
<writeHost host="sales_order_host3" url="10.1.1.224:3306" user="dxhy" password="Dxhy@123">
|
|
<!--<readHost host="hostS1" url="10.1.21.86:3306" password="123" user="dxhy"/>-->
|
|
</writeHost>
|
|
</dataHost>
|
|
|
|
|
|
</mycat:schema>
|
|
|