/*
SQLyog Ultimate v13.1.1 (64 bit)
MySQL - 8.0.27 : Database - xxl_job
*********************************************************************
*/

/*!40101 SET NAMES utf8 */;

/*!40101 SET SQL_MODE = ''*/;

/*!40014 SET @OLD_UNIQUE_CHECKS = @@UNIQUE_CHECKS, UNIQUE_CHECKS = 0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS = @@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS = 0 */;
/*!40101 SET @OLD_SQL_MODE = @@SQL_MODE, SQL_MODE = 'NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES = @@SQL_NOTES, SQL_NOTES = 0 */;
CREATE DATABASE IF NOT EXISTS `xxl_job` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

USE `xxl_job`;

/*Table structure for table `xxl_job_group` */

DROP TABLE IF EXISTS `xxl_job_group`;

CREATE TABLE `xxl_job_group`
(
    `id`           int         NOT NULL AUTO_INCREMENT,
    `app_name`     varchar(64) NOT NULL COMMENT '执行器AppName',
    `title`        varchar(12) NOT NULL COMMENT '执行器名称',
    `address_type` tinyint     NOT NULL DEFAULT '0' COMMENT '执行器地址类型：0=自动注册、1=手动录入',
    `address_list` text COMMENT '执行器地址列表，多地址逗号分隔',
    `update_time`  datetime             DEFAULT NULL,
    PRIMARY KEY (`id`)
) ENGINE = InnoDB
  AUTO_INCREMENT = 3
  DEFAULT CHARSET = utf8mb4
  COLLATE = utf8mb4_general_ci;

/*Data for the table `xxl_job_group` */

insert into `xxl_job_group`(`id`, `app_name`, `title`, `address_type`, `address_list`, `update_time`)
values (2, 'mall4j-bbc', 'mall4j商城系统', 0, '', '2021-11-25 11:19:02');

/*Table structure for table `xxl_job_info` */

DROP TABLE IF EXISTS `xxl_job_info`;

CREATE TABLE `xxl_job_info`
(
    `id`                        int          NOT NULL AUTO_INCREMENT,
    `job_group`                 int          NOT NULL COMMENT '执行器主键ID',
    `job_desc`                  varchar(255) NOT NULL,
    `add_time`                  datetime              DEFAULT NULL,
    `update_time`               datetime              DEFAULT NULL,
    `author`                    varchar(64)           DEFAULT NULL COMMENT '作者',
    `alarm_email`               varchar(255)          DEFAULT NULL COMMENT '报警邮件',
    `schedule_type`             varchar(50)  NOT NULL DEFAULT 'NONE' COMMENT '调度类型',
    `schedule_conf`             varchar(128)          DEFAULT NULL COMMENT '调度配置，值含义取决于调度类型',
    `misfire_strategy`          varchar(50)  NOT NULL DEFAULT 'DO_NOTHING' COMMENT '调度过期策略',
    `executor_route_strategy`   varchar(50)           DEFAULT NULL COMMENT '执行器路由策略',
    `executor_handler`          varchar(255)          DEFAULT NULL COMMENT '执行器任务handler',
    `executor_param`            varchar(512)          DEFAULT NULL COMMENT '执行器任务参数',
    `executor_block_strategy`   varchar(50)           DEFAULT NULL COMMENT '阻塞处理策略',
    `executor_timeout`          int          NOT NULL DEFAULT '0' COMMENT '任务执行超时时间，单位秒',
    `executor_fail_retry_count` int          NOT NULL DEFAULT '0' COMMENT '失败重试次数',
    `glue_type`                 varchar(50)  NOT NULL COMMENT 'GLUE类型',
    `glue_source`               mediumtext COMMENT 'GLUE源代码',
    `glue_remark`               varchar(128)          DEFAULT NULL COMMENT 'GLUE备注',
    `glue_updatetime`           datetime              DEFAULT NULL COMMENT 'GLUE更新时间',
    `child_jobid`               varchar(255)          DEFAULT NULL COMMENT '子任务ID，多个逗号分隔',
    `trigger_status`            tinyint      NOT NULL DEFAULT '0' COMMENT '调度状态：0-停止，1-运行',
    `trigger_last_time`         bigint       NOT NULL DEFAULT '0' COMMENT '上次调度时间',
    `trigger_next_time`         bigint       NOT NULL DEFAULT '0' COMMENT '下次调度时间',
    PRIMARY KEY (`id`)
) ENGINE = InnoDB
  AUTO_INCREMENT = 30
  DEFAULT CHARSET = utf8mb4
  COLLATE = utf8mb4_general_ci;

/*Data for the table `xxl_job_info` */

insert into `xxl_job_info`(`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`,
                           `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`,
                           `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`,
                           `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`,
                           `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`)
values (2, 2, '设置店铺的过期优惠券为过期状态，改变店铺库存为0优惠券的状态(设为取消投放状态)', '2021-11-25 10:32:49',
        '2021-11-25 11:12:12', 'admin', '', 'CRON', '0 0/1 * * * ?', 'DO_NOTHING', 'FIRST', 'changeCoupon', '',
        'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2021-11-25 10:32:49', '', 1, 1637810340000,
        1637810400000),
       (3, 2, '删除用户失效30天以上的优惠券', '2021-11-25 10:35:32', '2021-11-25 11:12:08', 'admin', '', 'CRON',
        '0 0 0/1 * * ?', 'DO_NOTHING', 'FIRST', 'deleteCouponUser', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '',
        'GLUE代码初始化', '2021-11-25 10:35:32', '', 1, 0, 1637812800000),
       (4, 2, '改变用户优惠券的状态(设为失效状态)', '2021-11-25 10:36:07', '2021-11-25 11:12:03', 'admin', '', 'CRON',
        '0 * * * * ?', 'DO_NOTHING', 'FIRST', 'changeCouponUser', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '',
        'GLUE代码初始化', '2021-11-25 10:36:07', '', 1, 1637810340000, 1637810400000),
       (5, 2, '投放优惠券', '2021-11-25 10:36:34', '2021-11-25 11:12:01', 'admin', '', 'CRON', '0 1/30 * * * ?',
        'DO_NOTHING', 'FIRST', 'putOnCoupon', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化',
        '2021-11-25 10:36:34', '', 1, 1637810340000, 1637810400000),
       (6, 2, '取消超时未支付订单', '2021-11-25 10:39:58', '2021-11-25 11:11:59', 'admin', '', 'CRON', '0 * * * * ?',
        'DO_NOTHING', 'FIRST', 'cancelOrder', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化',
        '2021-11-25 10:39:58', '', 1, 1637810340000, 1637810400000),
       (7, 2, '系统自动确认收货订单', '2021-11-25 10:40:20', '2021-11-25 11:11:56', 'admin', '', 'CRON',
        '0 0/5 * * * ?', 'DO_NOTHING', 'FIRST', 'confirmOrder', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '',
        'GLUE代码初始化', '2021-11-25 10:40:20', '', 1, 1637810100000, 1637810400000),
       (8, 2, '1分钟执行一次订单催付通知，对没支付的订单发送通知', '2021-11-25 10:41:25', '2021-11-25 11:11:54', 'admin',
        '', 'CRON', '0 0/1 * * * ?', 'DO_NOTHING', 'FIRST', 'pressPayOrder', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '',
        'GLUE代码初始化', '2021-11-25 10:41:25', '', 1, 1637810340000, 1637810400000),
       (9, 2, '每天00:00:05执行一遍订单结算定时任务', '2021-11-25 10:42:07', '2021-11-25 11:11:51', 'admin', '', 'CRON',
        '5 0 0 * * ? *', 'DO_NOTHING', 'FIRST', 'orderCommissionSettlement', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '',
        'GLUE代码初始化', '2021-11-25 10:42:07', '', 1, 0, 1637856005000),
       (10, 2, '活动结束任务：处理所有未成团的拼团单（退款处理）、清除物品拼团活动ID、处理拼团单（退款处理）',
        '2021-11-25 10:43:22', '2021-11-25 11:11:48', 'admin', '', 'CRON', '0 * * * * ? *', 'DO_NOTHING', 'FIRST',
        'activityFinish', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2021-11-25 10:43:22', '', 1,
        1637810340000, 1637810400000),
       (11, 2, '团购活动失效，活动商品恢复为普通商品', '2021-11-25 10:43:51', '2021-11-25 11:11:45', 'admin', '', 'CRON',
        '0 1/30 * * * ?', 'DO_NOTHING', 'FIRST', 'activityFinishAndProdChange', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN',
        '', 'GLUE代码初始化', '2021-11-25 10:43:51', '', 1, 1637810340000, 1637810400000),
       (12, 2, '取消申请退款超时的订单，无论该超时订单处于任何状态', '2021-11-25 10:45:21', '2021-11-25 11:11:43',
        'admin', '', 'CRON', '0 0/5 * * * ?', 'DO_NOTHING', 'FIRST', 'cancelWhenTimeOut', '', 'SERIAL_EXECUTION', 0, 0,
        'BEAN', '', 'GLUE代码初始化', '2021-11-25 10:45:21', '', 1, 1637810100000, 1637810400000),
       (13, 2, '退款临近超时提醒,每12小时执行发送一次提醒', '2021-11-25 10:46:01', '2021-11-25 11:11:40', 'admin', '',
        'CRON', '0 0 9,21 * * ?', 'DO_NOTHING', 'FIRST', 'pressRefundOrder', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '',
        'GLUE代码初始化', '2021-11-25 10:46:01', '', 1, 0, 1637845200000),
       (14, 2, '秒杀取消超时未支付订单', '2021-11-25 10:47:58', '2021-11-25 11:11:37', 'admin', '', 'CRON',
        '0 0/1 * * * ?', 'DO_NOTHING', 'FIRST', 'cancelSeckillOrder', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '',
        'GLUE代码初始化', '2021-11-25 10:47:58', '', 1, 1637810340000, 1637810400000),
       (15, 2, '秒杀活动结束时，秒杀商品改变为普通商品', '2021-11-25 10:48:19', '2021-11-25 11:11:35', 'admin', '',
        'CRON', '0 1/30 * * * ?', 'DO_NOTHING', 'FIRST', 'seckillFinish', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '',
        'GLUE代码初始化', '2021-11-25 10:48:19', '', 1, 1637810340000, 1637810400000),
       (16, 2, '用户会员到期重置会员的任务', '2021-11-25 10:50:07', '2021-11-25 11:11:33', 'admin', '', 'CRON',
        '0 1 0 * * ? *', 'DO_NOTHING', 'FIRST', 'vipUserClear', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '',
        'GLUE代码初始化', '2021-11-25 10:50:07', '', 1, 0, 1637856060000),
       (17, 2, '积分过期每年结算', '2021-11-25 10:50:29', '2021-11-25 11:11:28', 'admin', '', 'CRON', '0 0 0 1 1 ? *',
        'DO_NOTHING', 'FIRST', 'scoreExpireTask', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化',
        '2021-11-25 10:50:29', '', 1, 0, 1640966400000),
       (18, 2, '将缓存中的用户操作记录插入到数据库(数据统计)', '2021-11-25 10:51:30', '2021-11-25 11:11:25', 'admin',
        '', 'CRON', '0 0/5 * * * ?', 'DO_NOTHING', 'FIRST', 'insertFlowAnalysisLog', '', 'SERIAL_EXECUTION', 0, 0,
        'BEAN', '', 'GLUE代码初始化', '2021-11-25 10:51:30', '', 1, 1637810100000, 1637810400000),
       (19, 2, '统计前一天的记录数据，储存到对应的数据表中(数据统计)', '2021-11-25 10:51:58', '2021-11-25 11:11:22',
        'admin', '', 'CRON', '0 0 3 * * ? ', 'DO_NOTHING', 'FIRST', 'statisticalFlowData', '', 'SERIAL_EXECUTION', 0, 0,
        'BEAN', '', 'GLUE代码初始化', '2021-11-25 10:51:58', '', 1, 1637810340000, 1637810400000),
       (24, 2, '每一分钟执行一次预售商品检查', '2021-11-25 10:55:50', '2021-11-25 11:11:04', 'admin', '', 'CRON',
        '0 0/1 * * * ? ', 'DO_NOTHING', 'FIRST', 'recoveryPreSaleProd', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '',
        'GLUE代码初始化', '2021-11-25 10:55:50', '', 1, 1637810340000, 1637810400000),
       (25, 2, '每一分钟检查一次核销时间过期的虚拟商品并进行下架', '2021-11-25 10:56:21', '2021-11-25 11:11:01',
        'admin', '', 'CRON', '0 0/1 * * * ?', 'DO_NOTHING', 'FIRST', 'offlineExpireVirtualProd', '', 'SERIAL_EXECUTION',
        0, 0, 'BEAN', '', 'GLUE代码初始化', '2021-11-25 10:56:21', '', 1, 1637810340000, 1637810400000),
       (26, 2, '满减活动过期后，关闭活动', '2021-11-25 10:57:01', '2021-11-25 11:10:59', 'admin', '', 'CRON',
        '0 1/30 * * * ?', 'DO_NOTHING', 'FIRST', 'closeDiscount', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '',
        'GLUE代码初始化', '2021-11-25 10:57:01', '', 1, 1637810340000, 1637810400000),
       (28, 2, '根据签约时间改变店铺状态', '2021-11-25 10:59:37', '2021-11-25 11:10:54', 'admin', '', 'CRON',
        '0 30 0 * * ? *', 'DO_NOTHING', 'FIRST', 'changeShopStatusByContractTime', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN',
        '', 'GLUE代码初始化', '2021-11-25 10:59:37', '', 1, 0, 1637857800000),
       (29, 2, '推送未发送的消息', '2021-11-25 11:00:42', '2021-11-25 11:10:51', 'admin', '', 'CRON', '0 0/1 * * * ?',
        'DO_NOTHING', 'FIRST', 'sendMessage', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化',
        '2021-11-25 11:00:42', '', 1, 1637810340000, 1637810400000),
       (30, 2, '关闭已经结束的赠品活动', '2021-12-03 09:35:47', '2021-12-03 09:53:13', 'admin', '', 'CRON',
        '0 1/30 * * * ?', 'DO_NOTHING', 'FIRST', 'closeGiveaway', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '',
        'GLUE代码初始化', '2021-12-03 09:35:47', '', 1, 1639448700000, 1639448760000),
       (31, 2, '关闭已经结束的套餐活动', '2021-12-14 10:24:47', '2021-12-14 10:24:52', 'admin', '', 'CRON',
        '0 1/30 * * * ?', 'DO_NOTHING', 'FIRST', 'closeCombo', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '',
        'GLUE代码初始化', '2021-12-14 10:24:47', '', 1, 1639448700000, 1639448760000),
       (33, 2, '查询商家转账情况', '2022-04-14 13:34:25', '2022-05-19 14:00:16', 'admin', '', 'CRON', '0 30 0 * * ?',
        'DO_NOTHING', 'FIRST', 'queryAndUpdateEntPay', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化',
        '2022-04-14 13:34:25', '', 1, 0, '1652977800000'),
       (34, 2, '满减活动开启，删除商家活动缓存', '2022-09-19 14:02:48', '2022-09-19 14:02:48', 'admin', '', 'CRON',
        '0 0/1 * * * ?', 'DO_NOTHING', 'FIRST', 'startDiscount', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '',
        'GLUE代码初始化', '2022-09-19 14:02:48', '', 1, 1663568280000, 1663568340000),
       (35, 2, '启用未开启的赠品活动', '2022-10-08 09:10:27', '2022-10-08 09:11:36', 'admin', '', 'CRON',
        '0 1/30 * * * ?', 'DO_NOTHING', 'FIRST', 'enableGiveaway', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '',
        'GLUE代码初始化', '2022-10-08 09:10:27', '', 1, 1665208680000, 1665208740000),
       (36, 2, '开启到了活动时间未开启的套餐活动', '2022-09-29 16:27:28', '2022-09-29 17:22:21', 'admin', '', 'CRON',
        '0 1/30 * * * ?', 'DO_NOTHING', 'FIRST', 'enableCombo', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '',
        'GLUE代码初始化', '2022-09-29 16:27:28', '', 1, 0, 0),
       (37, 2, '检验商品es库存及销量', '2022-11-24 13:49:31', '2022-11-24 13:50:38', 'admin', '', 'CRON',
        '0 0/5 * * * ?', 'DO_NOTHING', 'FIRST', 'verifyProdStockAndSold', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '',
        'GLUE代码初始化', '2022-11-24 13:49:31', '', 1, 1669271400000, 1669271700000),
       (38, 2, '统计店铺商品销量', '2023-03-19 14:02:48', '2023-03-19 14:02:48', 'admin', '', 'CRON', '30 0 0 * * ? *',
        'DO_NOTHING', 'FIRST', 'calculateShopSoldNum', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化',
        '2023-03-19 14:02:48', '', 1, 1663568280000, 1663568340000),
       (41, 2, '定时改变直播间状态', '2023-07-21 17:08:16', '2023-07-24 10:24:59', 'admin', '', 'CRON',
        '0 0/30 * * * ? ', 'DO_NOTHING', 'FIRST', 'changeLiveRoomStatus', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '',
        'GLUE代码初始化', '2023-07-21 17:08:16', '', 1, 0, 0),
       (42, 2, '发放退款', '2023-09-07 09:16:24', '2023-09-07 11:35:33', 'admin', '', 'CRON', '0 0/1 * * * ?', 'DO_NOTHING',
        'FIRST', 'refundRequest', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2023-09-07 09:16:24', '',
        1, 1694068500000, 1694068560000),
       (43, 2, '小程序发货虚拟订单和自提订单定时任务', '2023-09-15 13:53:42', '2023-09-15 14:06:19', 'admin', '', 'CRON',
        '0 0/1 * * * ?', 'DO_NOTHING', 'FIRST', 'wxAppShipment', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '',
        'GLUE代码初始化', '2023-09-15 13:53:42', '', 1, 0, 0),
       (44, 2, '支付宝退款订单查单', '2023-09-07 09:16:50', '2023-09-07 11:15:16', 'admin', '', 'CRON', '0 0/1 * * * ?',
        'DO_NOTHING', 'FIRST', 'updateAliPayRefundStatus', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化',
        '2023-09-07 09:16:50', '', 1, 1694068500000, 1694068560000),
       (45, 2, '执行平台介入超时处理，超时默认平台拒绝退款', '2023-10-09 16:20:28', '2023-10-09 16:20:28', 'admin', '', 'CRON', '0 0/1 * * * ?',
        'DO_NOTHING', 'FIRST', 'refundInterventionTimeOut', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化',
        '2023-10-09 16:20:28', '', 1, 1701833880000, 1701833940000),
       (46, 2, '用户创建通联会员', '2023-11-10 14:30:03', '2023-11-10 14:51:03', 'admin', '', 'CRON', '0 0/10 * * * ? *',
        'DO_NOTHING', 'FIRST', 'createAllinpayMember', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化',
        '2023-11-10 14:30:03', '', 0, 0, 1699599600000),
        (47,2, '改变弹窗广告状态', '2024-01-17 10:07:30', '2024-01-17 10:07:30', 'admin', '', 'CRON',
            '0 0/30 * * * ?', 'DO_NOTHING', 'FIRST', 'changePopup', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN',
            '', 'GLUE代码初始化', '2023-12-25 10:07:30', '', 1, 0, 0),
        (49,2, '确认收货30天自动好评', '2024-03-06 10:07:30', '2024-03-06 10:07:30', 'admin', '', 'CRON',
            '0 0 * * * ?', 'DO_NOTHING', 'FIRST', 'autoProdGoodComm', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN',
            '', 'GLUE代码初始化', '2023-12-25 10:07:30', '', 1, 0, 0),
        (50,2, '同步商品和门店的数据到es(es开启或关闭时，需执行一次)', '2024-03-15 10:07:30', '2024-03-15 10:07:30', 'admin', '', 'CRON',
            '0 0/30 * * * ?', 'DO_NOTHING', 'FIRST', 'syncDataToEs', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN',
            '', 'GLUE代码初始化', '2023-12-25 10:07:30', '', 0, 0, 0),
        (52,2, '退款订单库存处理', '2024-03-06 10:07:30', '2024-03-06 10:07:30', 'admin', '', 'CRON',
            '0 0/5 * * * ?', 'DO_NOTHING', 'FIRST', 'refundOrderStock', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN',
            '', 'GLUE代码初始化', '2023-12-25 10:07:30', '', 1, 0, 0),
        (53,2, '恢复商品sku库存', '2024-03-06 10:07:30', '2024-03-06 10:07:30', 'admin', '', 'CRON',
            '0 0/5 * * * ?', 'DO_NOTHING', 'FIRST', 'restoreStock', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN',
            '', 'GLUE代码初始化', '2023-12-25 10:07:30', '', 0, 0, 0),
        (54,2,'待发货订单发货超时处理','2024-02-23 16:27:12','2024-02-23 16:27:12','admin','','CRON',
           '0 0/1 * * * ?','DO_NOTHING','FIRST','handleDeliveryTimeOutOrder','','SERIAL_EXECUTION','0','0',
           'BEAN','','GLUE代码初始化','2024-02-23 16:27:12','','1','0','0'),
        (55,2,'恢复悟空im的频道, 执行任务后要清除token，让用户全部下线','2024-02-23 16:27:12','2024-02-23 16:27:12','admin','',
           'CRON','0 0 0 1 1 ?','DO_NOTHING','FIRST','restoreChannelData','','SERIAL_EXECUTION','0','0','BEAN',
           '','GLUE代码初始化','2024-02-23 16:27:12','','0','0','0'),
        (56,2,'虚拟商品到期未使用自动退款','2024-07-02 16:55:04','2024-07-02 16:55:47','admin',
        '','CRON','0 0/1 * * * ?','DO_NOTHING','FIRST','handleExpireUnusedVirtualOrder','',
        'SERIAL_EXECUTION','0','0','BEAN','','GLUE代码初始化','2024-07-02 16:55:04','','1','0','0'),
        (57,2,'获取一天前申请提现还未成功的提现申请,将提现冻结金额回退(通联环境)','2024-07-09 15:14:57','2024-07-09 15:15:29','admin',
            '','CRON','0 0/5 * * * ?','DO_NOTHING','FIRST','returnAmountByTimeOut','','SERIAL_EXECUTION','0','0','BEAN',
            '','GLUE代码初始化','2024-07-09 15:14:57','','0','0','0'),
        (58,2, '过期卡券商品，减少库存', '2024-07-16 10:58:11', '2024-07-16 10:58:19', 'admin',
            '', 'CRON', '0 0/1 * * * ?', 'DO_NOTHING', 'FIRST', 'overdueVoucher', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN',
            '', 'GLUE代码初始化', '2024-07-16 10:58:11', '', 1, '0', '0'),
       (60,2, '检查商家聚水潭授权是否已经过期，过期则自动关闭', '2024-10-17 13:42:21', '2024-10-17 13:43:00', 'admin', '', 'CRON',
            '0 0/1 0 * * ?', 'DO_NOTHING', 'FIRST', 'checkShopJstConfigExpire', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN',
            '', 'GLUE代码初始化', '2024-10-17 13:42:21', '', 0, 1729184340000, 1729267200000),
       (61,2, '每分钟更新直播间状态：到了开播时间，更新为直播中，到了直播结束时间，更新为已结束', '2024-09-14 09:26:03', '2024-09-18 09:23:38', 'admin',
        '', 'CRON', '0 * * * * ?', 'DO_NOTHING', 'FIRST', 'changeLiveCoomStatus', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN',
        '', 'GLUE代码初始化', '2024-09-14 09:26:03', '', 1, 1727074800000, 1727074860000),
       (62,2,'查询一个小时前待审核的商家在通联那边的审核状态,如果已经是全部审核通过需要将商家的审核状态改成以通过(开启通联后需要开启此定时任务)','2024-12-19 17:14:32','2024-12-20 15:17:52','admin','','CRON','0 1 * * * ?','DO_NOTHING','FIRST','checkAllinpayShopStatus','','SERIAL_EXECUTION','0','0','BEAN','','GLUE代码初始化','2024-12-19 17:14:32','','0','0','0'),
       (63,2,'通联的商家影印件上传,定时任务20s执行一次,每个图片需要间隔5s(开启通联后需要开启此定时任务)','2024-12-19 10:38:34','2024-12-19 10:38:34','admin','','CRON','0/20 * * * * ?','DO_NOTHING','FIRST','uploadFileToAllinpay','','SERIAL_EXECUTION','0','0','BEAN','','GLUE代码初始化','2024-12-19 10:38:34','','0','0','0'),
       (64, 2, '更新商品库存、销量', '2025-03-01 10:32:49',
        '2025-03-01 11:12:12', 'admin', '', 'CRON', '0 0/1 * * * ?', 'DO_NOTHING', 'FIRST', 'handleSkuStockChange', '',
        'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2021-11-25 10:32:49', '', 1, 1637810340000,
        1637810400000),
       (65, 2, '执行通联订单的平台转账','2025-04-01 11:12:18','2025-04-01 11:12:18','admin','','CRON','0 0 1 * * ?','DO_NOTHING','FIRST','doAllinpayPlatformTransfer','','SERIAL_EXECUTION','0','0','BEAN','','GLUE代码初始化','2025-04-01 11:12:18','','0','0','0'),
       (66, 2, '店铺销量初始化统计', '2025-04-07 10:04:38', '2025-04-07 10:04:38', 'admin', '', 'NONE', '', 'DO_NOTHING', 'FIRST', 'initShopSoldNum', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2025-04-07 10:04:38', '', 0, 0, 0),
(67,2,'解锁创建失败订单的redis库存记录','2025-08-19 16:54:50','2025-08-21 14:30:10','admin','','CRON','0 0 * * * ?','DO_NOTHING','FIRST','unLockOrderSkuStock','','SERIAL_EXECUTION','0','0','BEAN','','GLUE代码初始化','2025-08-19 16:54:50','','1','0','1755759600000');




/*Table structure for table `xxl_job_lock` */

DROP TABLE IF EXISTS `xxl_job_lock`;

CREATE TABLE `xxl_job_lock`
(
    `lock_name` varchar(50) NOT NULL COMMENT '锁名称',
    PRIMARY KEY (`lock_name`)
) ENGINE = InnoDB
  DEFAULT CHARSET = utf8mb4
  COLLATE = utf8mb4_general_ci;

/*Data for the table `xxl_job_lock` */

insert into `xxl_job_lock`(`lock_name`)
values ('schedule_lock');

/*Table structure for table `xxl_job_log` */

DROP TABLE IF EXISTS `xxl_job_log`;

CREATE TABLE `xxl_job_log`
(
    `id`                        bigint  NOT NULL AUTO_INCREMENT,
    `job_group`                 int     NOT NULL COMMENT '执行器主键ID',
    `job_id`                    int     NOT NULL COMMENT '任务，主键ID',
    `executor_address`          varchar(255)     DEFAULT NULL COMMENT '执行器地址，本次执行的地址',
    `executor_handler`          varchar(255)     DEFAULT NULL COMMENT '执行器任务handler',
    `executor_param`            varchar(512)     DEFAULT NULL COMMENT '执行器任务参数',
    `executor_sharding_param`   varchar(20)      DEFAULT NULL COMMENT '执行器任务分片参数，格式如 1/2',
    `executor_fail_retry_count` int     NOT NULL DEFAULT '0' COMMENT '失败重试次数',
    `trigger_time`              datetime         DEFAULT NULL COMMENT '调度-时间',
    `trigger_code`              int     NOT NULL COMMENT '调度-结果',
    `trigger_msg`               text COMMENT '调度-日志',
    `handle_time`               datetime         DEFAULT NULL COMMENT '执行-时间',
    `handle_code`               int     NOT NULL COMMENT '执行-状态',
    `handle_msg`                text COMMENT '执行-日志',
    `alarm_status`              tinyint NOT NULL DEFAULT '0' COMMENT '告警状态：0-默认、1-无需告警、2-告警成功、3-告警失败',
    PRIMARY KEY (`id`),
    KEY `I_trigger_time` (`trigger_time`),
    KEY `I_handle_code` (`handle_code`)
) ENGINE = InnoDB
  AUTO_INCREMENT = 135
  DEFAULT CHARSET = utf8mb4
  COLLATE = utf8mb4_general_ci;

/*Data for the table `xxl_job_log` */

/*Table structure for table `xxl_job_log_report` */

DROP TABLE IF EXISTS `xxl_job_log_report`;

CREATE TABLE `xxl_job_log_report`
(
    `id`            int NOT NULL AUTO_INCREMENT,
    `trigger_day`   datetime     DEFAULT NULL COMMENT '调度-时间',
    `running_count` int NOT NULL DEFAULT '0' COMMENT '运行中-日志数量',
    `suc_count`     int NOT NULL DEFAULT '0' COMMENT '执行成功-日志数量',
    `fail_count`    int NOT NULL DEFAULT '0' COMMENT '执行失败-日志数量',
    `update_time`   datetime     DEFAULT NULL,
    PRIMARY KEY (`id`),
    UNIQUE KEY `i_trigger_day` (`trigger_day`) USING BTREE
) ENGINE = InnoDB
  AUTO_INCREMENT = 4
  DEFAULT CHARSET = utf8mb4
  COLLATE = utf8mb4_general_ci;

/*Data for the table `xxl_job_log_report` */

/*Table structure for table `xxl_job_logglue` */

DROP TABLE IF EXISTS `xxl_job_logglue`;

CREATE TABLE `xxl_job_logglue`
(
    `id`          int          NOT NULL AUTO_INCREMENT,
    `job_id`      int          NOT NULL COMMENT '任务，主键ID',
    `glue_type`   varchar(50) DEFAULT NULL COMMENT 'GLUE类型',
    `glue_source` mediumtext COMMENT 'GLUE源代码',
    `glue_remark` varchar(128) NOT NULL COMMENT 'GLUE备注',
    `add_time`    datetime    DEFAULT NULL,
    `update_time` datetime    DEFAULT NULL,
    PRIMARY KEY (`id`)
) ENGINE = InnoDB
  DEFAULT CHARSET = utf8mb4
  COLLATE = utf8mb4_general_ci;

/*Data for the table `xxl_job_logglue` */

/*Table structure for table `xxl_job_registry` */

DROP TABLE IF EXISTS `xxl_job_registry`;

CREATE TABLE `xxl_job_registry`
(
    `id`             int          NOT NULL AUTO_INCREMENT,
    `registry_group` varchar(50)  NOT NULL,
    `registry_key`   varchar(255) NOT NULL,
    `registry_value` varchar(255) NOT NULL,
    `update_time`    datetime DEFAULT NULL,
    PRIMARY KEY (`id`),
    KEY `i_g_k_v` (`registry_group`, `registry_key`, `registry_value`)
) ENGINE = InnoDB
  AUTO_INCREMENT = 4
  DEFAULT CHARSET = utf8mb4
  COLLATE = utf8mb4_general_ci;

/*Data for the table `xxl_job_registry` */

/*Table structure for table `xxl_job_user` */

DROP TABLE IF EXISTS `xxl_job_user`;

CREATE TABLE `xxl_job_user`
(
    `id`         int         NOT NULL AUTO_INCREMENT,
    `username`   varchar(50) NOT NULL COMMENT '账号',
    `password`   varchar(50) NOT NULL COMMENT '密码',
    `role`       tinyint     NOT NULL COMMENT '角色：0-普通用户、1-管理员',
    `permission` varchar(255) DEFAULT NULL COMMENT '权限：执行器ID列表，多个逗号分割',
    PRIMARY KEY (`id`),
    UNIQUE KEY `i_username` (`username`) USING BTREE
) ENGINE = InnoDB
  AUTO_INCREMENT = 2
  DEFAULT CHARSET = utf8mb4
  COLLATE = utf8mb4_general_ci;

/*Data for the table `xxl_job_user` */
# 密码hn02le.34lkdLKD
insert into `xxl_job_user`(`id`, `username`, `password`, `role`, `permission`)
values (1, 'admin', '5d10634cf16a4311bcf541e227be0665', 1, NULL);

/*!40101 SET SQL_MODE = @OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS = @OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS = @OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES = @OLD_SQL_NOTES */;
