INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`, `source`, `at_time`, `up_time`)
VALUES ('rpc_warning', 'RPC调用失败报警', 'rpc_warning', 'email', 'RPC调用失败报警
>业务:{title}
>单据:{bill_bn}
>接口名:{method}
>错误信息:{errmsg}', '1', 'system', '2024-08-13 00:00:00', '2024-08-13 00:00:00');
INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`, `source`, `at_time`, `up_time`)
VALUES ('wms_consign_notify', 'WMS发货失败报警', 'wms_delivery_consign', 'email', 'WMS发货失败报警
>发货单:{delivery_bn}
>错误信息:{errmsg}', '1', 'system', '2024-03-07 00:00:00', '2024-03-07 00:00:00');
INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`, `source`, `at_time`, `up_time`)
VALUES ('wms_reship_notify', 'WMS退货失败报警', 'wms_reship_finish', 'email', 'WMS退货失败报警
>退货单:{reship_bn}
>错误信息:{errmsg}', '1', 'system', '2024-03-07 00:00:00', '2024-03-07 00:00:00');
INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`, `source`, `at_time`, `up_time`)
VALUES ('wms_stockchange_notify', 'WMS异动失败报警', 'wms_stock_change', 'email', 'WMS异动失败报警
>单据:{order_code}
>类型:{order_type}
>批次:{batch_code}
>仓库:{warehouse}
>物料:{product_bn}
>错误信息:{errmsg}', '1', 'system', '2024-03-07 00:00:00', '2024-03-07 00:00:00');
INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`, `source`, `at_time`, `up_time`)
VALUES ('wms_stockin_notify', 'WMS入库失败报警', 'wms_stockin_finish', 'email', 'WMS入库失败报警
>入库单:{io_bn}
>错误信息:{errmsg}', '1', 'system', '2024-03-07 00:00:00', '2024-03-07 00:00:00');
INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`, `source`, `at_time`, `up_time`)
VALUES ('wms_stockout_notify', 'WMS出库失败报警', 'wms_stockout_finish', 'email', 'WMS出库失败报警
>入库单:{io_bn}
>错误信息:{errmsg}', '1', 'system', '2024-03-07 00:00:00', '2024-03-07 00:00:00');
INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`, `source`, `at_time`, `up_time`)
VALUES ('wms_stockprocess_notify', 'WMS加工单确认失败报警', 'wms_stockprocess_confirm', 'email', 'WMS加工单确认失败报警
>加工单:{mp_bn}
>错误信息:{errmsg}', '1', 'system', '2024-03-07 00:00:00', '2024-03-07 00:00:00');
INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`, `source`, `at_time`, `up_time`)
VALUES ('wms_transferorder_notify', 'WMS移库失败报警', 'wms_transferorder_finish', 'email', 'WMS移库失败报警
>移库单:{stockdump_bn}
>错误信息:{errmsg}', '1', 'system', '2024-03-07 00:00:00', '2024-03-07 00:00:00');
INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`, `source`, `at_time`, `up_time`)
VALUES ('pos_stock_notify', 'POS库存同步通知', 'pos_stock_sync', 'email', 'POS库存同步失败通知
>门店:{store_bn}
>仓库:{branch_bn}
>PageNo:{page_no}
>错误信息:{errmsg}', '1', 'system', '2024-03-07 00:00:00', '2024-03-07 00:00:00');
INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`, `source`, `at_time`, `up_time`)
VALUES ('pos_o2oundelivery_notify', 'POS现货订单未发货报警', 'pos_o2oundelivery', 'email', 'POS现货订单未发货报警
>现货未发货订单号为:{order_bns}', '1', 'system', '2024-03-07 00:00:00',
'2024-03-07 00:00:00');
INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`, `source`, `at_time`, `up_time`)
VALUES ('process_undelivery_notify', '未发货订单通知', 'process_undelivery', 'email', '{content}', '1', 'system',
'2024-03-07 00:00:00', '2024-03-07 00:00:00');
INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`, `source`, `at_time`, `up_time`)
VALUES ('under_safty_inventory_notify', '低于安全库存报警', 'under_safty_inventory', 'email',
'<{仓库名称:{branch_name},商品编码:{bn},商品名称:{goods_name},库存数量:{store},安全库存:{safe_store}}>',
'1', 'system', '2024-03-07 00:00:00', '2024-03-07 00:00:00');
INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`, `source`, `at_time`, `up_time`)
VALUES ('stock_diff_alarm', '实物库存差异报警', 'stock_diff_alarm', 'email', '实物库存差异报警
>日期:{stock_date}
>渠道:{channel_bn}
>仓库:{warehouse_code}
>错误信息:{errmsg}', '1', 'system', '2024-03-07 00:00:00', '2024-03-07 00:00:00');
INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`, `source`, `at_time`, `up_time`)
VALUES ('stock_sync_notify', '平台库存同步失败报警', 'stock_sync', 'email', '平台库存同步失败报警
>日期:{stock_date}
>错误信息:{errmsg}', '1', 'system', '2024-03-07 00:00:00', '2024-03-07 00:00:00');
INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`, `source`, `at_time`, `up_time`)
VALUES ('system_message_notify', '系统消息通知', 'system_message', 'email', '系统消息通知
>消息内容:{errmsg}', '1', 'system', '2024-03-07 00:00:00', '2024-03-07 00:00:00');
-- 新增发货单取消成功通知模板
INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`, `source`, `at_time`, `up_time`)
VALUES ('delivery_cancel_success_notify', '发货单取消成功通知', 'delivery_cancel_success', 'email', '发货单取消成功通知
>发货单号:{delivery_bn}
>仓库:{branch_name}
>取消时间:{cancel_time}
>原因:{memo}', '1', 'system', '2024-12-19 00:00:00', '2024-12-19 00:00:00');
-- 新增退货单取消成功通知模板
INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`, `source`, `at_time`, `up_time`)
VALUES ('reship_cancel_success_notify', '退货单取消成功通知', 'reship_cancel_success', 'email', '退货单取消成功通知
>退货单号:{reship_bn}
>仓库:{branch_name}
>取消时间:{cancel_time}
>原因:{memo}', '1', 'system', '2024-12-19 00:00:00', '2024-12-19 00:00:00');
INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`,
`source`, `at_time`, `up_time`)
VALUES ('invoice_result_error_notify', '发票处理失败报警', 'invoice_result_error', 'workwx', '发票处理失败报警
>发票操作类型:{invoice_type}
>订单号:{order_bn}
>错误信息:{errmsg}', '1', 'system', '2024-05-08 10:22:23', '2024-05-08 10:22:23');
INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`, `source`, `at_time`, `up_time`)
VALUES ('store_freeze_abnormal', '库存或冻结消费异常报警', 'store_freeze_abnormal', 'workwx', '**仓库存冻结差异报警**
>{errmsg}', '1', 'system', '2024-10-11 00:00:00', '2024-10-11 00:00:00');
INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`, `source`, `at_time`, `up_time`)
VALUES ('process_accountorders_notify', '实销实结未同步报警', 'rpc_accountorders', 'email', '实销实结未同步报警
>未同步订单号为:{order_bns}', '1', 'system', '2025-05-09 00:00:00',
'2025-05-09 00:00:00');
INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`,
`source`, `at_time`, `up_time`)
VALUES ('order_360buy_delivery_error', '【京东】订单挂起不可以发货', 'order_360buy_delivery_error', 'workwx', '以下订单挂起不可以发货:
>订单号:{order_bn}', '1', 'system', '2024-05-08 10:22:23', '2024-05-08 10:22:23');
-- 库存回写监控模板
INSERT INTO `sdb_monitor_event_template`(`template_bn`, `template_name`, `event_type`, `send_type`, `content`, `status`, `source`, `at_time`, `up_time`)
VALUES ('inventory_calc_error', '库存计算异常报警', 'inventory_calc_error', 'email', '库存计算异常报警
>时间:{datetime}
>商品编码:{product_bn}
>店铺ID:{shop_id}
>店铺名称:{shop_name}
>异常信息:{error_message}
>异常位置:{error_location}
>规则信息:{regulation_info}', '1', 'system', '2024-12-19 00:00:00', '2024-12-19 00:00:00');