## 任务占用与边界 - 任务名称:聚水潭聚工单-协同工单-打款工单-小额打款页面 - 实际开发者:yueyang - 任务来源/团队分工:退款数据子页面接入 - 目标结果:在“退款”下新增小额打款子页面,读取共享业务镜像,支持分页、筛选、汇总、导出和同步状态提示。 - 预计修改路径:Pages Controller、business_navigation、upstream_mirrors、镜像 Repository、Blade 页面、admin 路由、测试、镜像清单文档。 - 将写入的公共契约:页面 slug、管理路由、镜像数据集注册(jiansun 两张表)、Mirror Repository。 - 仅复用、明确不修改的公共契约:现有共享镜像连接、同步框架、权限校验、导航结构和通用分页/导出模式。 - 数据源、表/视图和字段:jiansun.dbo.jst_workOrderInfo、jiansun.dbo.jst_small_payment_order_map;固定小额打款工单类型 82D94F5C54544EE3833CD8A3AB8B9F73。 - 上游 source_key / scope:source_key=jiansun;沿用团队共享连接 scope。 - 明确不修改的范围:不执行共享数据库迁移、不执行首次全量同步、不修改 .env/APP_KEY、不配置 operations_replica。 ## 开工碰撞检查 - [x] 已执行团队预检并核对 origin/main 与远程任务分支 - [x] 已搜索主线既有页面、接口、Repository 和数据查询 - [x] 已区分将写入与仅复用的公共契约 - [x] 未发现实际写入重叠 ## 实际改动 - 新增退款“小额打款”页面及导航入口。 - 新增 SmallPaymentWorkOrderMirrorRepository:共享镜像分页、稳定排序、筛选、金额汇总、导出行和状态判断。 - 注册 jst_workOrderInfo 与 jst_small_payment_order_map 镜像数据集,并补充真实 businessFieldList 解析字段。 - 增加页面、Repository、导航和同步器相关测试。 ## 验证证据 - 相关测试:19 项通过,143 个断言通过。 - Blade 缓存、PHP 语法检查、git diff --check 通过。 - 实际本地页面已打开,导航显示“小额打款”;首次同步未执行时页面明确显示“业务镜像尚未建立”。 - route:cache 受项目已有重复 livewire.update 路由影响失败,与本次改动无关;普通路由列表和视图缓存正常。 ## 风险检查 - [x] 未提交 .env、密码、Token、私钥、真实财务数据、生产日志或构建产物 - [x] 不涉及共享数据库迁移或生产数据写入 - [x] 前端复用现有 VIP 黑金设计令牌和共享页面结构 ## 合并前复查 - [ ] PR 不再是 WIP,需在完成最终自审和测试后移除 WIP 前缀。 - [ ] Codex 已用 origin/main...任务分支复核完整 diff。 Reviewed-on: http://git.1080p.hk/WuYongJie/CaiWuXiTong/pulls/102
376 lines
22 KiB
PHP
376 lines
22 KiB
PHP
<?php
|
||
|
||
return [
|
||
'connection' => env('BUSINESS_MIRROR_DB_CONNECTION', 'business_mirror'),
|
||
|
||
// 钉钉应付申请流程只同步“应付申请流程”这一固定流程编码,
|
||
// 页面从共享业务镜像读取,不在 HTTP 请求中直连上游。
|
||
'ding_payable_workflows' => [
|
||
'dataset_key' => 'operations_replica.rpt.ding_payable_workflows',
|
||
'source_key' => 'operations_replica',
|
||
'process_code' => 'PROC-39DD70DE-DAB2-4A5F-B8F1-0B0B68BD0C88',
|
||
'target_table' => 'ding_payable_workflow_mirror',
|
||
'batch_size' => (int) env('DING_PAYABLE_WORKFLOW_MIRROR_BATCH_SIZE', 100),
|
||
'max_batches_per_run' => (int) env('DING_PAYABLE_WORKFLOW_MIRROR_MAX_BATCHES', 2),
|
||
],
|
||
|
||
// 只有生产刷新节点写镜像;开发环境和网页请求只读共享结果。
|
||
'refresh_enabled' => env(
|
||
'BUSINESS_MIRROR_REFRESH_ENABLED',
|
||
env('APP_ENV', 'production') === 'production'
|
||
),
|
||
|
||
// 店铺经营报表由生产刷新节点自动完成首次同步并持续增量;开发机只读。
|
||
'store_report' => [
|
||
'enabled' => filter_var(env('STORE_REPORT_MIRROR_ENABLED', true), FILTER_VALIDATE_BOOL),
|
||
'source_key' => 'jiansun',
|
||
'bill_source_object' => 'dbo.jst_originalBillInfo',
|
||
'lifecycle_source_object' => 'dbo.fys_shopInfo_flow',
|
||
'batch_size' => (int) env('STORE_REPORT_MIRROR_BATCH_SIZE', 5000),
|
||
'max_batches_per_run' => (int) env('STORE_REPORT_MIRROR_MAX_BATCHES', 4),
|
||
'lifecycle_batch_size' => (int) env('STORE_REPORT_LIFECYCLE_BATCH_SIZE', 1000),
|
||
'lifecycle_max_batches_per_run' => (int) env('STORE_REPORT_LIFECYCLE_MAX_BATCHES', 5),
|
||
'daily_batch_size' => (int) env('STORE_REPORT_DAILY_BATCH_SIZE', 50000),
|
||
'daily_max_batches_per_run' => (int) env('STORE_REPORT_DAILY_MAX_BATCHES', 10),
|
||
// 原始账单以 Id 追加为主;回看最近行覆盖迟到修正,不扫描 1400 万行更新时间。
|
||
'overlap_rows' => (int) env('STORE_REPORT_MIRROR_OVERLAP_ROWS', 50000),
|
||
],
|
||
|
||
'product_prices' => [
|
||
'dataset_key' => 'supplier-payables.product-prices',
|
||
'source_key' => 'operations_replica',
|
||
'source_object' => 'rpt.Bulk_Price_Limit',
|
||
'batch_size' => (int) env('PRODUCT_PRICE_MIRROR_BATCH_SIZE', 500),
|
||
'max_batches_per_run' => (int) env('PRODUCT_PRICE_MIRROR_MAX_BATCHES', 4),
|
||
// 上游完成记录通常不再变化;仍回看 48 小时,覆盖迟到或修正数据。
|
||
'overlap_hours' => (int) env('PRODUCT_PRICE_MIRROR_OVERLAP_HOURS', 48),
|
||
],
|
||
|
||
'product_catalog' => [
|
||
'dataset_key' => 'operations_replica.rpt.jst_sku',
|
||
'batch_size' => (int) env('PRODUCT_CATALOG_MIRROR_BATCH_SIZE', 1000),
|
||
'max_batches_per_run' => (int) env('PRODUCT_CATALOG_MIRROR_MAX_BATCHES', 5),
|
||
'stale_after_minutes' => (int) env('PRODUCT_CATALOG_MIRROR_STALE_MINUTES', 10),
|
||
'full_reconcile_hours' => (int) env('PRODUCT_CATALOG_MIRROR_FULL_RECONCILE_HOURS', 168),
|
||
// 每周日凌晨 02:00-08:00 可启动到期校准;启动后按断点持续到完成。
|
||
'reconcile_weekday' => (int) env('PRODUCT_CATALOG_MIRROR_RECONCILE_WEEKDAY', 0),
|
||
'reconcile_start_hour' => (int) env('PRODUCT_CATALOG_MIRROR_RECONCILE_START_HOUR', 2),
|
||
'reconcile_window_hours' => (int) env('PRODUCT_CATALOG_MIRROR_RECONCILE_WINDOW_HOURS', 6),
|
||
],
|
||
|
||
'product_purchase_prices' => [
|
||
'dataset_key' => 'product-inventory.purchase-order-prices',
|
||
'source_key' => 'jiansun',
|
||
'source_object' => 'dbo.jst_purchase + dbo.jst_purchaseItem',
|
||
'batch_size' => (int) env('PRODUCT_PURCHASE_PRICE_MIRROR_BATCH_SIZE', 1000),
|
||
'max_batches_per_run' => (int) env('PRODUCT_PURCHASE_PRICE_MIRROR_MAX_BATCHES', 5),
|
||
'overlap_hours' => (int) env('PRODUCT_PURCHASE_PRICE_MIRROR_OVERLAP_HOURS', 48),
|
||
'full_reconcile_hours' => (int) env('PRODUCT_PURCHASE_PRICE_MIRROR_FULL_RECONCILE_HOURS', 168),
|
||
'reconcile_weekday' => (int) env('PRODUCT_PURCHASE_PRICE_MIRROR_RECONCILE_WEEKDAY', 0),
|
||
'reconcile_start_hour' => (int) env('PRODUCT_PURCHASE_PRICE_MIRROR_RECONCILE_START_HOUR', 2),
|
||
'reconcile_window_hours' => (int) env('PRODUCT_PURCHASE_PRICE_MIRROR_RECONCILE_WINDOW_HOURS', 6),
|
||
],
|
||
|
||
'courier_information' => [
|
||
'stale_after_minutes' => (int) env('COURIER_INFORMATION_MIRROR_STALE_MINUTES', 60),
|
||
],
|
||
|
||
/*
|
||
|--------------------------------------------------------------------------
|
||
| 上游原表镜像目录
|
||
|--------------------------------------------------------------------------
|
||
|
|
||
| 页面不能再按“页码 + 筛选条件”临时生成一份快照。这里登记项目代码实际
|
||
| 使用的上游表/视图,由后台按表同步到 caiwu_business_mirror。首次全量
|
||
| 必须显式执行;日常任务只续传已完成首次全量的数据集。
|
||
|
|
||
| watermark_column 为空时按稳定业务键追加,并依靠周期全量校准修正历史
|
||
| 更新和删除;存在可靠更新时间时使用重叠窗口增量同步。
|
||
*/
|
||
'table_sync' => [
|
||
'batch_size' => (int) env('BUSINESS_MIRROR_TABLE_BATCH_SIZE', 500),
|
||
'max_batches_per_run' => (int) env('BUSINESS_MIRROR_TABLE_MAX_BATCHES', 2),
|
||
'max_datasets_per_run' => (int) env('BUSINESS_MIRROR_MAX_DATASETS', 1),
|
||
'overlap_hours' => (int) env('BUSINESS_MIRROR_OVERLAP_HOURS', 48),
|
||
'full_reconcile_hours' => (int) env('BUSINESS_MIRROR_FULL_RECONCILE_HOURS', 168),
|
||
'dedicated_datasets' => [
|
||
'operations_replica.rpt.jst_sku',
|
||
],
|
||
],
|
||
|
||
'datasets' => [
|
||
// 经营分析副本库:组织资料、订单、退款和聚水潭基础数据。
|
||
'operations_replica.rpt.fys_companyInfo' => ['source_key' => 'operations_replica', 'schema' => 'rpt', 'object' => 'fys_companyInfo', 'target' => 'ops_fys_company_info', 'keys' => ['Id'], 'watermark' => 'updateTIme'],
|
||
'operations_replica.rpt.fys_shopInfo' => ['source_key' => 'operations_replica', 'schema' => 'rpt', 'object' => 'fys_shopInfo', 'target' => 'ops_fys_shop_info', 'keys' => ['Id'], 'watermark' => 'updateTime'],
|
||
'operations_replica.rpt.fys_TrademarkInfo' => ['source_key' => 'operations_replica', 'schema' => 'rpt', 'object' => 'fys_TrademarkInfo', 'target' => 'ops_fys_trademark_info', 'keys' => ['Id'], 'watermark' => 'updateTime'],
|
||
'operations_replica.rpt.jst_Orders' => [
|
||
'source_key' => 'operations_replica',
|
||
'schema' => 'rpt',
|
||
'object' => 'jst_Orders',
|
||
'target' => 'ops_jst_orders',
|
||
'keys' => ['Id'],
|
||
'watermark' => 'updateTime',
|
||
'indexes' => [
|
||
['o_id', 'Id'],
|
||
['order_date', 'o_id', 'Id'],
|
||
],
|
||
],
|
||
'operations_replica.rpt.jst_OrderItem' => [
|
||
'source_key' => 'operations_replica',
|
||
'schema' => 'rpt',
|
||
'object' => 'jst_OrderItem',
|
||
'target' => 'ops_jst_order_item',
|
||
'keys' => ['Id'],
|
||
'indexes' => [
|
||
['o_id', 'Id'],
|
||
],
|
||
],
|
||
'operations_replica.rpt.jst_sku' => [
|
||
'source_key' => 'operations_replica',
|
||
'schema' => 'rpt',
|
||
'object' => 'jst_sku',
|
||
'target' => 'ops_jst_sku',
|
||
'keys' => ['autoid'],
|
||
'watermark' => 'modified',
|
||
'indexes' => [
|
||
['sku_type', 'autoid'],
|
||
['sku_type', 'i_id', 'autoid'],
|
||
['sku_type', 'sku_id', 'autoid'],
|
||
['sku_type', 'enabled', 'autoid'],
|
||
['sku_type', 'stock_disabled', 'autoid'],
|
||
],
|
||
],
|
||
'operations_replica.rpt.jst_warehouseInfo' => ['source_key' => 'operations_replica', 'schema' => 'rpt', 'object' => 'jst_warehouseInfo', 'target' => 'ops_jst_warehouse_info', 'keys' => ['Id'], 'watermark' => 'updateTime', 'indexes' => [['wms_co_id', 'Id']]],
|
||
'operations_replica.rpt.jst_skumap' => ['source_key' => 'operations_replica', 'schema' => 'rpt', 'object' => 'jst_skumap', 'target' => 'ops_jst_sku_map', 'keys' => ['shop_id', 'shop_i_id', 'shop_sku_id'], 'watermark' => 'modifiedTime'],
|
||
// item_id 是 nvarchar(100),镜像中按宽表策略保存为 LONGTEXT,不能进入普通索引。
|
||
'operations_replica.rpt.ads_itemid_sales_cost_ratio_v2_di' => ['source_key' => 'operations_replica', 'schema' => 'rpt', 'object' => 'ads_itemid_sales_cost_ratio_v2_di', 'target' => 'ops_item_sales_cost_ratio', 'keys' => ['stat_date', 'item_id'], 'watermark' => 'item_id_update', 'indexes' => [['stat_date', 'push_fee']]],
|
||
'operations_replica.rpt.jst_returnAndRefundInfo' => [
|
||
'source_key' => 'operations_replica',
|
||
'schema' => 'rpt',
|
||
'object' => 'jst_returnAndRefundInfo',
|
||
'target' => 'ops_jst_return_refund_info',
|
||
'keys' => ['Id'],
|
||
'watermark' => 'updateTime',
|
||
'indexes' => [
|
||
['as_date', 'Id'],
|
||
['o_id', 'Id'],
|
||
['as_id', 'Id'],
|
||
],
|
||
],
|
||
'operations_replica.rpt.jst_returnAndRefundItem' => [
|
||
'source_key' => 'operations_replica',
|
||
'schema' => 'rpt',
|
||
'object' => 'jst_returnAndRefundItem',
|
||
'target' => 'ops_jst_return_refund_item',
|
||
'keys' => ['Id'],
|
||
'indexes' => [
|
||
['as_id', 'Id'],
|
||
],
|
||
],
|
||
'operations_replica.rpt.jst_shopInfo' => ['source_key' => 'operations_replica', 'schema' => 'rpt', 'object' => 'jst_shopInfo', 'target' => 'ops_jst_shop_info', 'keys' => ['Id'], 'watermark' => 'updateTime'],
|
||
|
||
// 聚水潭聚工单:协同工单列表。只复制工单查询需要的非敏感字段,
|
||
// 正式 API 从共享镜像关联“仓内未发”类型,不在请求中直连上游。
|
||
'operations_replica.rpt.work_order_main' => [
|
||
'source_key' => 'operations_replica',
|
||
'schema' => 'rpt',
|
||
'object' => 'work_order_main',
|
||
'target' => 'ops_work_order_main',
|
||
'keys' => ['id'],
|
||
'watermark' => 'update_time',
|
||
'columns' => [
|
||
'id', 'work_type', 'order_no', 'title', 'status', 'create_user',
|
||
'expect_minute', 'submit_time', 'expect_end_time', 'end_time',
|
||
'score', 'update_user', 'description', 'is_deleted', 'create_time',
|
||
'update_time',
|
||
],
|
||
'indexes' => [
|
||
['work_type', 'id'],
|
||
['create_time', 'id'],
|
||
],
|
||
],
|
||
'operations_replica.rpt.work_order_sub' => [
|
||
'source_key' => 'operations_replica',
|
||
'schema' => 'rpt',
|
||
'object' => 'work_order_sub',
|
||
'target' => 'ops_work_order_sub',
|
||
'keys' => ['id'],
|
||
'watermark' => 'update_time',
|
||
'columns' => [
|
||
'id', 'sub_order_no', 'main_order_no', 'title', 'assign_user',
|
||
'status', 'expect_minute', 'submit_time', 'expect_end_time',
|
||
'finish_time', 'content', 'notify_submit', 'notify_soon',
|
||
'notify_overdue', 'overdue_notify_count', 'is_deleted',
|
||
'create_time', 'update_time', 'taskid',
|
||
],
|
||
'indexes' => [
|
||
['id'],
|
||
],
|
||
],
|
||
'operations_replica.rpt.work_order_form_config' => [
|
||
'source_key' => 'operations_replica',
|
||
'schema' => 'rpt',
|
||
'object' => 'work_order_form_config',
|
||
'target' => 'ops_work_order_form_config',
|
||
'keys' => ['id'],
|
||
'watermark' => 'update_time',
|
||
'columns' => [
|
||
'id', 'work_type', 'work_type_name', 'group_name', 'icon',
|
||
'icon_color', 'time_limit_options', 'is_enabled', 'form_fields',
|
||
'sort', 'remark', 'create_time', 'update_time',
|
||
'timeout_reminder_count',
|
||
],
|
||
'indexes' => [
|
||
['work_type', 'id'],
|
||
['work_type_name', 'id'],
|
||
],
|
||
],
|
||
'operations_replica.rpt.work_order_form_value' => [
|
||
'source_key' => 'operations_replica',
|
||
'schema' => 'rpt',
|
||
'object' => 'work_order_form_value',
|
||
'target' => 'ops_work_order_form_value',
|
||
'keys' => ['id'],
|
||
'watermark' => null,
|
||
'columns' => [
|
||
'id', 'main_order_no', 'field_code', 'field_name', 'field_value',
|
||
'field_type', 'sort', 'is_deleted', 'create_time',
|
||
],
|
||
'indexes' => [
|
||
['sort', 'id'],
|
||
],
|
||
],
|
||
|
||
// 聚水潭聚工单:协同工单 > 打款工单 > 小额打款。
|
||
// 页面只读共享镜像;businessFieldList 保留上游表单原文,由固定
|
||
// Mirror Repository 解析页面明确使用的字段,不在 HTTP 请求直连上游。
|
||
'jiansun.dbo.jst_workOrderInfo' => [
|
||
'source_key' => 'jiansun',
|
||
'schema' => 'dbo',
|
||
'object' => 'jst_workOrderInfo',
|
||
'target' => 'js_jst_work_order_info',
|
||
'keys' => ['Id'],
|
||
'watermark' => 'updateTime',
|
||
'columns' => [
|
||
'Id', 'woNo', 'woTypeId', 'title', 'content', 'status', 'grade',
|
||
'urging', 'createby', 'executors', 'beginTime', 'endTime',
|
||
'completer', 'completeTime', 'updated', 'created',
|
||
'businessFieldList', 'createTime', 'updateTime',
|
||
],
|
||
'indexes' => [
|
||
['woTypeId', 'woNo', 'Id'],
|
||
['created', 'Id'],
|
||
],
|
||
],
|
||
'jiansun.dbo.jst_small_payment_order_map' => [
|
||
'source_key' => 'jiansun',
|
||
'schema' => 'dbo',
|
||
'object' => 'jst_small_payment_order_map',
|
||
'target' => 'js_jst_small_payment_order_map',
|
||
'keys' => ['woNo'],
|
||
'watermark' => 'updated_at',
|
||
'columns' => [
|
||
'woNo', 'woTypeId', 'transaction_no', 'shop_name',
|
||
'payment_reason', 'title', 'status', 'work_order_create_time',
|
||
'work_order_update_time', 'parse_status', 'parse_error',
|
||
'updated_at',
|
||
],
|
||
'indexes' => [
|
||
['woTypeId', 'work_order_create_time', 'woNo'],
|
||
['status', 'woNo'],
|
||
],
|
||
],
|
||
|
||
// JianSun 旧业务库:营销账单、供应商应付、板材、封边条和库存。
|
||
'jiansun.dbo.tmall_spread_bills' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'tmall_spread_bills', 'target' => 'js_tmall_spread_bills', 'keys' => ['id']],
|
||
'jiansun.dbo.pdd_spread_bills' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'pdd_spread_bills', 'target' => 'js_pdd_spread_bills', 'keys' => ['id'], 'watermark' => 'createTime'],
|
||
'jiansun.dbo.alibaba_bill' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'alibaba_bill', 'target' => 'js_alibaba_bill', 'keys' => ['id']],
|
||
'jiansun.dbo.jd_spreadBills' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'jd_spreadBills', 'target' => 'js_jd_spread_bills', 'keys' => ['id'], 'watermark' => 'updateTime'],
|
||
'jiansun.dbo.jd_costBills' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'jd_costBills', 'target' => 'js_jd_cost_bills', 'keys' => ['id'], 'watermark' => 'creatTime'],
|
||
// 安装明细页面使用已整理的只读视图,避免在 HTTP 请求中临时 JOIN
|
||
// 安装主表和明细表;视图中的安装字段与 Excel 模板字段保持稳定别名。
|
||
'jiansun.dbo.fys_Ticketing_install_view' => [
|
||
'source_key' => 'jiansun',
|
||
'schema' => 'dbo',
|
||
'object' => 'fys_Ticketing_install_view',
|
||
'target' => 'js_fys_ticketing_install_view',
|
||
'keys' => ['Id'],
|
||
'watermark' => null,
|
||
'indexes' => [
|
||
['SubmitTime', 'Id'],
|
||
],
|
||
],
|
||
'jiansun.dbo.fys_Ticketing_install_item' => [
|
||
'source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'fys_Ticketing_install_item',
|
||
'target' => 'js_fys_ticketing_install_item', 'keys' => ['Id'], 'watermark' => 'modifyTime',
|
||
'indexes' => [['guid', 'Id']],
|
||
],
|
||
'jiansun.dbo.finance_purchaseReturn' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'finance_purchaseReturn', 'target' => 'js_finance_purchase_return', 'keys' => ['id']],
|
||
'jiansun.dbo.finance_invoiceDeduction' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'finance_invoiceDeduction', 'target' => 'js_finance_invoice_deduction', 'keys' => ['id'], 'watermark' => 'createTime'],
|
||
'jiansun.dbo.fys_supplierPaymentSummary' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'fys_supplierPaymentSummary', 'target' => 'js_supplier_payment_summary', 'keys' => ['id'], 'watermark' => 'modifiedTime'],
|
||
'jiansun.dbo.finance_advanceLoans' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'finance_advanceLoans', 'target' => 'js_finance_advance_loans', 'keys' => ['id'], 'watermark' => 'createTime'],
|
||
'jiansun.dbo.pm_unOrderDetails' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'pm_unOrderDetails', 'target' => 'js_pm_unorder_details', 'keys' => ['Id']],
|
||
'jiansun.dbo.finance_sampleDeduction' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'finance_sampleDeduction', 'target' => 'js_finance_sample_deduction', 'keys' => ['id'], 'watermark' => 'finishTime'],
|
||
'jiansun.dbo.fys_express_courier_settlement' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'fys_express_courier_settlement', 'target' => 'js_express_courier_settlement', 'keys' => ['Id'], 'watermark' => 'modify_time'],
|
||
'jiansun.dbo.finance_boardDeduction' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'finance_boardDeduction', 'target' => 'js_finance_board_deduction', 'keys' => ['id']],
|
||
'jiansun.dbo.pm_plainPlateData' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'pm_plainPlateData', 'target' => 'js_pm_plain_plate_data', 'keys' => ['Id'], 'watermark' => 'createTime'],
|
||
'jiansun.dbo.pm_boardPurchasePrice' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'pm_boardPurchasePrice', 'target' => 'js_pm_board_purchase_price', 'keys' => ['id'], 'watermark' => 'updateTime'],
|
||
'jiansun.dbo.pm_boardPriceChangeImport' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'pm_boardPriceChangeImport', 'target' => 'js_pm_board_price_change', 'keys' => ['id'], 'watermark' => 'createTime'],
|
||
'jiansun.dbo.pm_boardApplyDetail' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'pm_boardApplyDetail', 'target' => 'js_pm_board_apply_detail', 'keys' => ['Id']],
|
||
'jiansun.dbo.pm_edgeBandData' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'pm_edgeBandData', 'target' => 'js_pm_edge_band_data', 'keys' => ['id'], 'watermark' => 'createTime'],
|
||
'jiansun.dbo.pm_edgeBandApplyDetail' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'pm_edgeBandApplyDetail', 'target' => 'js_pm_edge_band_apply_detail', 'keys' => ['Id']],
|
||
'jiansun.dbo.pm_edgeBandProfitInfo' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'pm_edgeBandProfitInfo', 'target' => 'js_pm_edge_band_profit_info', 'keys' => ['id']],
|
||
'jiansun.dbo.finance_edgeBandDeductio' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'finance_edgeBandDeductio', 'target' => 'js_finance_edge_band_deduction', 'keys' => ['id']],
|
||
'jiansun.dbo.pm_averageUnitPrice' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'pm_averageUnitPrice', 'target' => 'js_pm_average_unit_price', 'keys' => ['id']],
|
||
'jiansun.dbo.pm_boardInventoryDetail_snapshot' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'pm_boardInventoryDetail_snapshot', 'target' => 'js_pm_board_inventory_snapshot', 'keys' => ['id']],
|
||
'jiansun.dbo.fys_supplierGoods_sttlement_purchase' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'fys_supplierGoods_sttlement_purchase', 'target' => 'js_supplier_goods_purchase', 'keys' => ['Id'], 'watermark' => 'createTime'],
|
||
'jiansun.dbo.fys_supplierGoods_sttlement_sale' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'fys_supplierGoods_sttlement_sale', 'target' => 'js_supplier_goods_sale', 'keys' => ['Id'], 'watermark' => 'createTime'],
|
||
'jiansun.dbo.pm_purchaseIn' => ['source_key' => 'jiansun', 'schema' => 'dbo', 'object' => 'pm_purchaseIn', 'target' => 'js_pm_purchase_in', 'keys' => ['id'], 'watermark' => 'updateTime'],
|
||
|
||
// 工作平台 2.0:快递资料及其网点、打款账户。页面只读取共享镜像,
|
||
// 首次使用前需由刷新节点显式执行对应数据集的 --full 同步。
|
||
'jiansun.dbo.wp_express' => [
|
||
'source_key' => 'jiansun',
|
||
'schema' => 'dbo',
|
||
'object' => 'wp_express',
|
||
'target' => 'js_wp_express',
|
||
'keys' => ['Id'],
|
||
'watermark' => 'modified',
|
||
'indexes' => [
|
||
['expcode'],
|
||
['status', 'Id'],
|
||
],
|
||
],
|
||
'jiansun.dbo.wp_express_expNet' => [
|
||
'source_key' => 'jiansun',
|
||
'schema' => 'dbo',
|
||
'object' => 'wp_express_expNet',
|
||
'target' => 'js_wp_express_exp_net',
|
||
'keys' => ['id'],
|
||
'indexes' => [
|
||
['expid', 'id'],
|
||
['status', 'id'],
|
||
],
|
||
],
|
||
'jiansun.dbo.wp_express_account' => [
|
||
'source_key' => 'jiansun',
|
||
'schema' => 'dbo',
|
||
'object' => 'wp_express_account',
|
||
'target' => 'js_wp_express_account',
|
||
'keys' => ['Id'],
|
||
'indexes' => [
|
||
['expcode', 'Id'],
|
||
['accountType', 'Id'],
|
||
],
|
||
],
|
||
'jiansun.dbo.wp_express_extension' => [
|
||
'source_key' => 'jiansun',
|
||
'schema' => 'dbo',
|
||
'object' => 'wp_express_extension',
|
||
'target' => 'js_wp_express_extension',
|
||
'keys' => ['Id'],
|
||
'watermark' => 'modifyTime',
|
||
],
|
||
],
|
||
];
|