Commit 0e24994c92c82599a201965c6b38d1dd503b0ee7
Merge branch 'master-jdk17' of https://gitee.com/zhijiantianya/ruoyi-vue-pro into develop
Showing
112 changed files
with
762 additions
and
990 deletions
Too many changes.
To preserve performance only 100 of 112 files are displayed.
sql/mysql/quartz.sql
| 1 | 1 | /* |
| 2 | - 注意:仅仅需要 Quartz 定时任务的场景,可选!!! | |
| 2 | + Navicat Premium Data Transfer | |
| 3 | 3 | |
| 4 | - Date: 30/04/2024 09:54:18 | |
| 4 | + Source Server : 127.0.0.1 MySQL | |
| 5 | + Source Server Type : MySQL | |
| 6 | + Source Server Version : 80200 (8.2.0) | |
| 7 | + Source Host : 127.0.0.1:3306 | |
| 8 | + Source Schema : ruoyi-vue-pro | |
| 9 | + | |
| 10 | + Target Server Type : MySQL | |
| 11 | + Target Server Version : 80200 (8.2.0) | |
| 12 | + File Encoding : 65001 | |
| 13 | + | |
| 14 | + Date: 24/07/2024 08:52:41 | |
| 5 | 15 | */ |
| 6 | 16 | |
| 7 | 17 | SET NAMES utf8mb4; |
| 8 | 18 | SET FOREIGN_KEY_CHECKS = 0; |
| 9 | 19 | |
| 10 | 20 | -- ---------------------------- |
| 11 | --- Table structure for qrtz_blob_triggers | |
| 12 | --- ---------------------------- | |
| 13 | -DROP TABLE IF EXISTS `qrtz_blob_triggers`; | |
| 14 | -CREATE TABLE `qrtz_blob_triggers` | |
| 15 | -( | |
| 16 | - `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 17 | - `trigger_name` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 18 | - `trigger_group` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 19 | - `blob_data` blob NULL, | |
| 20 | - PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE, | |
| 21 | - INDEX `sched_name` (`sched_name` ASC, `trigger_name` ASC, `trigger_group` ASC) USING BTREE, | |
| 22 | - CONSTRAINT `qrtz_blob_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT | |
| 23 | -) ENGINE = InnoDB | |
| 24 | - CHARACTER SET = utf8mb4 | |
| 25 | - COLLATE = utf8mb4_unicode_ci; | |
| 21 | +-- Table structure for QRTZ_BLOB_TRIGGERS | |
| 22 | +-- ---------------------------- | |
| 23 | +DROP TABLE IF EXISTS `QRTZ_BLOB_TRIGGERS`; | |
| 24 | +CREATE TABLE `QRTZ_BLOB_TRIGGERS` ( | |
| 25 | + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 26 | + `TRIGGER_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 27 | + `TRIGGER_GROUP` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 28 | + `BLOB_DATA` blob NULL, | |
| 29 | + PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE, | |
| 30 | + INDEX `SCHED_NAME`(`SCHED_NAME` ASC, `TRIGGER_NAME` ASC, `TRIGGER_GROUP` ASC) USING BTREE, | |
| 31 | + CONSTRAINT `qrtz_blob_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT | |
| 32 | +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci; | |
| 26 | 33 | |
| 27 | 34 | -- ---------------------------- |
| 28 | --- Records of qrtz_blob_triggers | |
| 35 | +-- Records of QRTZ_BLOB_TRIGGERS | |
| 29 | 36 | -- ---------------------------- |
| 30 | --- @format:off | |
| 31 | 37 | BEGIN; |
| 32 | 38 | COMMIT; |
| 33 | --- @formatter:on | |
| 34 | 39 | |
| 35 | 40 | -- ---------------------------- |
| 36 | 41 | -- Table structure for QRTZ_CALENDARS |
| 37 | 42 | -- ---------------------------- |
| 38 | -DROP TABLE IF EXISTS `qrtz_calendars`; | |
| 39 | -CREATE TABLE `qrtz_calendars` | |
| 40 | -( | |
| 41 | - `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 42 | - `calendar_name` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 43 | - `calendar` blob NOT NULL, | |
| 44 | - PRIMARY KEY (`sched_name`, `calendar_name`) USING BTREE | |
| 45 | -) ENGINE = InnoDB | |
| 46 | - CHARACTER SET = utf8mb4 | |
| 47 | - COLLATE = utf8mb4_unicode_ci; | |
| 43 | +DROP TABLE IF EXISTS `QRTZ_CALENDARS`; | |
| 44 | +CREATE TABLE `QRTZ_CALENDARS` ( | |
| 45 | + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 46 | + `CALENDAR_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 47 | + `CALENDAR` blob NOT NULL, | |
| 48 | + PRIMARY KEY (`SCHED_NAME`, `CALENDAR_NAME`) USING BTREE | |
| 49 | +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci; | |
| 48 | 50 | |
| 49 | 51 | -- ---------------------------- |
| 50 | --- Records of qrtz_calendars | |
| 52 | +-- Records of QRTZ_CALENDARS | |
| 51 | 53 | -- ---------------------------- |
| 52 | --- @format:off | |
| 53 | 54 | BEGIN; |
| 54 | 55 | COMMIT; |
| 55 | --- @formatter:on | |
| 56 | 56 | |
| 57 | 57 | -- ---------------------------- |
| 58 | --- Table structure for qrtz_cron_triggers | |
| 59 | --- ---------------------------- | |
| 60 | -DROP TABLE IF EXISTS `qrtz_cron_triggers`; | |
| 61 | -CREATE TABLE `qrtz_cron_triggers` | |
| 62 | -( | |
| 63 | - `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 64 | - `trigger_name` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 65 | - `trigger_group` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 66 | - `cron_expression` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 67 | - `time_zone_id` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 68 | - PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE, | |
| 69 | - CONSTRAINT `qrtz_cron_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT | |
| 70 | -) ENGINE = InnoDB | |
| 71 | - CHARACTER SET = utf8mb4 | |
| 72 | - COLLATE = utf8mb4_unicode_ci; | |
| 58 | +-- Table structure for QRTZ_CRON_TRIGGERS | |
| 59 | +-- ---------------------------- | |
| 60 | +DROP TABLE IF EXISTS `QRTZ_CRON_TRIGGERS`; | |
| 61 | +CREATE TABLE `QRTZ_CRON_TRIGGERS` ( | |
| 62 | + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 63 | + `TRIGGER_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 64 | + `TRIGGER_GROUP` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 65 | + `CRON_EXPRESSION` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 66 | + `TIME_ZONE_ID` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 67 | + PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE, | |
| 68 | + CONSTRAINT `qrtz_cron_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT | |
| 69 | +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci; | |
| 73 | 70 | |
| 74 | 71 | -- ---------------------------- |
| 75 | --- Records of qrtz_cron_triggers | |
| 72 | +-- Records of QRTZ_CRON_TRIGGERS | |
| 76 | 73 | -- ---------------------------- |
| 77 | --- @format:off | |
| 78 | 74 | BEGIN; |
| 79 | -INSERT INTO `qrtz_cron_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `cron_expression`, `time_zone_id`) VALUES ('schedulerName', 'accessLogCleanJob', 'DEFAULT', '0 0 0 * * ?', 'Asia/Shanghai'); | |
| 80 | -INSERT INTO `qrtz_cron_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `cron_expression`, `time_zone_id`) VALUES ('schedulerName', 'brokerageRecordUnfreezeJob', 'DEFAULT', '0 * * * * ?', 'Asia/Shanghai'); | |
| 81 | -INSERT INTO `qrtz_cron_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `cron_expression`, `time_zone_id`) VALUES ('schedulerName', 'errorLogCleanJob', 'DEFAULT', '0 0 0 * * ?', 'Asia/Shanghai'); | |
| 82 | -INSERT INTO `qrtz_cron_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `cron_expression`, `time_zone_id`) VALUES ('schedulerName', 'jobLogCleanJob', 'DEFAULT', '0 0 0 * * ?', 'Asia/Shanghai'); | |
| 83 | -INSERT INTO `qrtz_cron_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `cron_expression`, `time_zone_id`) VALUES ('schedulerName', 'payNotifyJob', 'DEFAULT', '* * * * * ?', 'Asia/Shanghai'); | |
| 84 | -INSERT INTO `qrtz_cron_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `cron_expression`, `time_zone_id`) VALUES ('schedulerName', 'payOrderExpireJob', 'DEFAULT', '0 0/1 * * * ?', 'Asia/Shanghai'); | |
| 85 | -INSERT INTO `qrtz_cron_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `cron_expression`, `time_zone_id`) VALUES ('schedulerName', 'payOrderSyncJob', 'DEFAULT', '0 0/1 * * * ?', 'Asia/Shanghai'); | |
| 86 | -INSERT INTO `qrtz_cron_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `cron_expression`, `time_zone_id`) VALUES ('schedulerName', 'payRefundSyncJob', 'DEFAULT', '0 0/1 * * * ?', 'Asia/Shanghai'); | |
| 87 | -INSERT INTO `qrtz_cron_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `cron_expression`, `time_zone_id`) VALUES ('schedulerName', 'tradeOrderAutoCancelJob', 'DEFAULT', '0 * * * * ?', 'Asia/Shanghai'); | |
| 88 | -INSERT INTO `qrtz_cron_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `cron_expression`, `time_zone_id`) VALUES ('schedulerName', 'tradeOrderAutoCommentJob', 'DEFAULT', '0 * * * * ?', 'Asia/Shanghai'); | |
| 89 | -INSERT INTO `qrtz_cron_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `cron_expression`, `time_zone_id`) VALUES ('schedulerName', 'tradeOrderAutoReceiveJob', 'DEFAULT', '0 * * * * ?', 'Asia/Shanghai'); | |
| 75 | +INSERT INTO `QRTZ_CRON_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`, `CRON_EXPRESSION`, `TIME_ZONE_ID`) VALUES ('schedulerName', 'accessLogCleanJob', 'DEFAULT', '0 0 0 * * ?', 'Asia/Shanghai'), ('schedulerName', 'brokerageRecordUnfreezeJob', 'DEFAULT', '0 * * * * ?', 'Asia/Shanghai'), ('schedulerName', 'errorLogCleanJob', 'DEFAULT', '0 0 0 * * ?', 'Asia/Shanghai'), ('schedulerName', 'jobLogCleanJob', 'DEFAULT', '0 0 0 * * ?', 'Asia/Shanghai'), ('schedulerName', 'payNotifyJob', 'DEFAULT', '* * * * * ?', 'Asia/Shanghai'), ('schedulerName', 'payOrderExpireJob', 'DEFAULT', '0 0/1 * * * ?', 'Asia/Shanghai'), ('schedulerName', 'payOrderSyncJob', 'DEFAULT', '0 0/1 * * * ?', 'Asia/Shanghai'), ('schedulerName', 'payRefundSyncJob', 'DEFAULT', '0 0/1 * * * ?', 'Asia/Shanghai'), ('schedulerName', 'tradeOrderAutoCancelJob', 'DEFAULT', '0 * * * * ?', 'Asia/Shanghai'), ('schedulerName', 'tradeOrderAutoCommentJob', 'DEFAULT', '0 * * * * ?', 'Asia/Shanghai'), ('schedulerName', 'tradeOrderAutoReceiveJob', 'DEFAULT', '0 * * * * ?', 'Asia/Shanghai'); | |
| 90 | 76 | COMMIT; |
| 91 | --- @formatter:on | |
| 92 | 77 | |
| 93 | 78 | -- ---------------------------- |
| 94 | --- Table structure for qrtz_fired_triggers | |
| 95 | --- ---------------------------- | |
| 96 | -DROP TABLE IF EXISTS `qrtz_fired_triggers`; | |
| 97 | -CREATE TABLE `qrtz_fired_triggers` | |
| 98 | -( | |
| 99 | - `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 100 | - `entry_id` varchar(95) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 101 | - `trigger_name` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 102 | - `trigger_group` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 103 | - `instance_name` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 104 | - `fired_time` bigint NOT NULL, | |
| 105 | - `sched_time` bigint NOT NULL, | |
| 106 | - `priority` int NOT NULL, | |
| 107 | - `state` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 108 | - `job_name` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 109 | - `job_group` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 110 | - `is_nonconcurrent` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 111 | - `requests_recovery` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 112 | - PRIMARY KEY (`sched_name`, `entry_id`) USING BTREE, | |
| 113 | - INDEX `idx_qrtz_ft_trig_inst_name` (`sched_name` ASC, `instance_name` ASC) USING BTREE, | |
| 114 | - INDEX `idx_qrtz_ft_inst_job_req_rcvry` (`sched_name` ASC, `instance_name` ASC, `requests_recovery` ASC) USING BTREE, | |
| 115 | - INDEX `idx_qrtz_ft_j_g` (`sched_name` ASC, `job_name` ASC, `job_group` ASC) USING BTREE, | |
| 116 | - INDEX `idx_qrtz_ft_jg` (`sched_name` ASC, `job_group` ASC) USING BTREE, | |
| 117 | - INDEX `idx_qrtz_ft_t_g` (`sched_name` ASC, `trigger_name` ASC, `trigger_group` ASC) USING BTREE, | |
| 118 | - INDEX `idx_qrtz_ft_tg` (`sched_name` ASC, `trigger_group` ASC) USING BTREE | |
| 119 | -) ENGINE = InnoDB | |
| 120 | - CHARACTER SET = utf8mb4 | |
| 121 | - COLLATE = utf8mb4_unicode_ci; | |
| 79 | +-- Table structure for QRTZ_FIRED_TRIGGERS | |
| 80 | +-- ---------------------------- | |
| 81 | +DROP TABLE IF EXISTS `QRTZ_FIRED_TRIGGERS`; | |
| 82 | +CREATE TABLE `QRTZ_FIRED_TRIGGERS` ( | |
| 83 | + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 84 | + `ENTRY_ID` varchar(95) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 85 | + `TRIGGER_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 86 | + `TRIGGER_GROUP` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 87 | + `INSTANCE_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 88 | + `FIRED_TIME` bigint NOT NULL, | |
| 89 | + `SCHED_TIME` bigint NOT NULL, | |
| 90 | + `PRIORITY` int NOT NULL, | |
| 91 | + `STATE` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 92 | + `JOB_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 93 | + `JOB_GROUP` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 94 | + `IS_NONCONCURRENT` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 95 | + `REQUESTS_RECOVERY` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 96 | + PRIMARY KEY (`SCHED_NAME`, `ENTRY_ID`) USING BTREE, | |
| 97 | + INDEX `IDX_QRTZ_FT_TRIG_INST_NAME`(`SCHED_NAME` ASC, `INSTANCE_NAME` ASC) USING BTREE, | |
| 98 | + INDEX `IDX_QRTZ_FT_INST_JOB_REQ_RCVRY`(`SCHED_NAME` ASC, `INSTANCE_NAME` ASC, `REQUESTS_RECOVERY` ASC) USING BTREE, | |
| 99 | + INDEX `IDX_QRTZ_FT_J_G`(`SCHED_NAME` ASC, `JOB_NAME` ASC, `JOB_GROUP` ASC) USING BTREE, | |
| 100 | + INDEX `IDX_QRTZ_FT_JG`(`SCHED_NAME` ASC, `JOB_GROUP` ASC) USING BTREE, | |
| 101 | + INDEX `IDX_QRTZ_FT_T_G`(`SCHED_NAME` ASC, `TRIGGER_NAME` ASC, `TRIGGER_GROUP` ASC) USING BTREE, | |
| 102 | + INDEX `IDX_QRTZ_FT_TG`(`SCHED_NAME` ASC, `TRIGGER_GROUP` ASC) USING BTREE | |
| 103 | +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci; | |
| 122 | 104 | |
| 123 | 105 | -- ---------------------------- |
| 124 | --- Records of qrtz_fired_triggers | |
| 106 | +-- Records of QRTZ_FIRED_TRIGGERS | |
| 125 | 107 | -- ---------------------------- |
| 126 | --- @format:off | |
| 127 | 108 | BEGIN; |
| 128 | 109 | COMMIT; |
| 129 | --- @formatter:on | |
| 130 | 110 | |
| 131 | 111 | -- ---------------------------- |
| 132 | --- Table structure for qrtz_job_details | |
| 133 | --- ---------------------------- | |
| 134 | -DROP TABLE IF EXISTS `qrtz_job_details`; | |
| 135 | -CREATE TABLE `qrtz_job_details` | |
| 136 | -( | |
| 137 | - `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 138 | - `job_name` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 139 | - `job_group` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 140 | - `description` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 141 | - `job_class_name` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 142 | - `is_durable` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 143 | - `is_nonconcurrent` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 144 | - `is_update_data` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 145 | - `requests_recovery` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 146 | - `job_data` blob NULL, | |
| 147 | - PRIMARY KEY (`sched_name`, `job_name`, `job_group`) USING BTREE, | |
| 148 | - INDEX `idx_qrtz_j_req_recovery` (`sched_name` ASC, `requests_recovery` ASC) USING BTREE, | |
| 149 | - INDEX `idx_qrtz_j_grp` (`sched_name` ASC, `job_group` ASC) USING BTREE | |
| 150 | -) ENGINE = InnoDB | |
| 151 | - CHARACTER SET = utf8mb4 | |
| 152 | - COLLATE = utf8mb4_unicode_ci; | |
| 112 | +-- Table structure for QRTZ_JOB_DETAILS | |
| 113 | +-- ---------------------------- | |
| 114 | +DROP TABLE IF EXISTS `QRTZ_JOB_DETAILS`; | |
| 115 | +CREATE TABLE `QRTZ_JOB_DETAILS` ( | |
| 116 | + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 117 | + `JOB_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 118 | + `JOB_GROUP` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 119 | + `DESCRIPTION` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 120 | + `JOB_CLASS_NAME` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 121 | + `IS_DURABLE` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 122 | + `IS_NONCONCURRENT` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 123 | + `IS_UPDATE_DATA` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 124 | + `REQUESTS_RECOVERY` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 125 | + `JOB_DATA` blob NULL, | |
| 126 | + PRIMARY KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) USING BTREE, | |
| 127 | + INDEX `IDX_QRTZ_J_REQ_RECOVERY`(`SCHED_NAME` ASC, `REQUESTS_RECOVERY` ASC) USING BTREE, | |
| 128 | + INDEX `IDX_QRTZ_J_GRP`(`SCHED_NAME` ASC, `JOB_GROUP` ASC) USING BTREE | |
| 129 | +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci; | |
| 153 | 130 | |
| 154 | 131 | -- ---------------------------- |
| 155 | --- Records of qrtz_job_details | |
| 132 | +-- Records of QRTZ_JOB_DETAILS | |
| 156 | 133 | -- ---------------------------- |
| 157 | --- @format:off | |
| 158 | 134 | BEGIN; |
| 159 | -INSERT INTO `qrtz_job_details` (`sched_name`, `job_name`, `job_group`, `description`, `job_class_name`, `is_durable`, `is_nonconcurrent`, `is_update_data`, `requests_recovery`, `job_data`) VALUES ('schedulerName', 'accessLogCleanJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000197400104A4F425F48414E444C45525F4E414D457400116163636573734C6F67436C65616E4A6F627800); | |
| 160 | -INSERT INTO `qrtz_job_details` (`sched_name`, `job_name`, `job_group`, `description`, `job_class_name`, `is_durable`, `is_nonconcurrent`, `is_update_data`, `requests_recovery`, `job_data`) VALUES ('schedulerName', 'brokerageRecordUnfreezeJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000187400104A4F425F48414E444C45525F4E414D4574001A62726F6B65726167655265636F7264556E667265657A654A6F627800); | |
| 161 | -INSERT INTO `qrtz_job_details` (`sched_name`, `job_name`, `job_group`, `description`, `job_class_name`, `is_durable`, `is_nonconcurrent`, `is_update_data`, `requests_recovery`, `job_data`) VALUES ('schedulerName', 'errorLogCleanJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B0200007870000000000000001A7400104A4F425F48414E444C45525F4E414D457400106572726F724C6F67436C65616E4A6F627800); | |
| 162 | -INSERT INTO `qrtz_job_details` (`sched_name`, `job_name`, `job_group`, `description`, `job_class_name`, `is_durable`, `is_nonconcurrent`, `is_update_data`, `requests_recovery`, `job_data`) VALUES ('schedulerName', 'jobLogCleanJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B0200007870000000000000001B7400104A4F425F48414E444C45525F4E414D4574000E6A6F624C6F67436C65616E4A6F627800); | |
| 163 | -INSERT INTO `qrtz_job_details` (`sched_name`, `job_name`, `job_group`, `description`, `job_class_name`, `is_durable`, `is_nonconcurrent`, `is_update_data`, `requests_recovery`, `job_data`) VALUES ('schedulerName', 'payNotifyJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000057400104A4F425F48414E444C45525F4E414D4574000C7061794E6F746966794A6F627800); | |
| 164 | -INSERT INTO `qrtz_job_details` (`sched_name`, `job_name`, `job_group`, `description`, `job_class_name`, `is_durable`, `is_nonconcurrent`, `is_update_data`, `requests_recovery`, `job_data`) VALUES ('schedulerName', 'payOrderExpireJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000127400104A4F425F48414E444C45525F4E414D457400117061794F726465724578706972654A6F627800); | |
| 165 | -INSERT INTO `qrtz_job_details` (`sched_name`, `job_name`, `job_group`, `description`, `job_class_name`, `is_durable`, `is_nonconcurrent`, `is_update_data`, `requests_recovery`, `job_data`) VALUES ('schedulerName', 'payOrderSyncJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000117400104A4F425F48414E444C45525F4E414D4574000F7061794F7264657253796E634A6F627800); | |
| 166 | -INSERT INTO `qrtz_job_details` (`sched_name`, `job_name`, `job_group`, `description`, `job_class_name`, `is_durable`, `is_nonconcurrent`, `is_update_data`, `requests_recovery`, `job_data`) VALUES ('schedulerName', 'payRefundSyncJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000137400104A4F425F48414E444C45525F4E414D45740010706179526566756E6453796E634A6F627800); | |
| 167 | -INSERT INTO `qrtz_job_details` (`sched_name`, `job_name`, `job_group`, `description`, `job_class_name`, `is_durable`, `is_nonconcurrent`, `is_update_data`, `requests_recovery`, `job_data`) VALUES ('schedulerName', 'tradeOrderAutoCancelJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000157400104A4F425F48414E444C45525F4E414D4574001774726164654F726465724175746F43616E63656C4A6F627800); | |
| 168 | -INSERT INTO `qrtz_job_details` (`sched_name`, `job_name`, `job_group`, `description`, `job_class_name`, `is_durable`, `is_nonconcurrent`, `is_update_data`, `requests_recovery`, `job_data`) VALUES ('schedulerName', 'tradeOrderAutoCommentJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000177400104A4F425F48414E444C45525F4E414D4574001874726164654F726465724175746F436F6D6D656E744A6F627800); | |
| 169 | -INSERT INTO `qrtz_job_details` (`sched_name`, `job_name`, `job_group`, `description`, `job_class_name`, `is_durable`, `is_nonconcurrent`, `is_update_data`, `requests_recovery`, `job_data`) VALUES ('schedulerName', 'tradeOrderAutoReceiveJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000167400104A4F425F48414E444C45525F4E414D4574001874726164654F726465724175746F526563656976654A6F627800); | |
| 135 | +INSERT INTO `QRTZ_JOB_DETAILS` (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`, `DESCRIPTION`, `JOB_CLASS_NAME`, `IS_DURABLE`, `IS_NONCONCURRENT`, `IS_UPDATE_DATA`, `REQUESTS_RECOVERY`, `JOB_DATA`) VALUES ('schedulerName', 'accessLogCleanJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000197400104A4F425F48414E444C45525F4E414D457400116163636573734C6F67436C65616E4A6F627800), ('schedulerName', 'brokerageRecordUnfreezeJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000187400104A4F425F48414E444C45525F4E414D4574001A62726F6B65726167655265636F7264556E667265657A654A6F627800), ('schedulerName', 'errorLogCleanJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B0200007870000000000000001A7400104A4F425F48414E444C45525F4E414D457400106572726F724C6F67436C65616E4A6F627800), ('schedulerName', 'jobLogCleanJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B0200007870000000000000001B7400104A4F425F48414E444C45525F4E414D4574000E6A6F624C6F67436C65616E4A6F627800), ('schedulerName', 'payNotifyJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000057400104A4F425F48414E444C45525F4E414D4574000C7061794E6F746966794A6F627800), ('schedulerName', 'payOrderExpireJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000127400104A4F425F48414E444C45525F4E414D457400117061794F726465724578706972654A6F627800), ('schedulerName', 'payOrderSyncJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000117400104A4F425F48414E444C45525F4E414D4574000F7061794F7264657253796E634A6F627800), ('schedulerName', 'payRefundSyncJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000137400104A4F425F48414E444C45525F4E414D45740010706179526566756E6453796E634A6F627800), ('schedulerName', 'tradeOrderAutoCancelJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000157400104A4F425F48414E444C45525F4E414D4574001774726164654F726465724175746F43616E63656C4A6F627800), ('schedulerName', 'tradeOrderAutoCommentJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000177400104A4F425F48414E444C45525F4E414D4574001874726164654F726465724175746F436F6D6D656E744A6F627800), ('schedulerName', 'tradeOrderAutoReceiveJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', '0', '1', '1', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000027400064A4F425F49447372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000167400104A4F425F48414E444C45525F4E414D4574001874726164654F726465724175746F526563656976654A6F627800); | |
| 170 | 136 | COMMIT; |
| 171 | --- @formatter:on | |
| 172 | 137 | |
| 173 | 138 | -- ---------------------------- |
| 174 | --- Table structure for qrtz_locks | |
| 175 | --- ---------------------------- | |
| 176 | -DROP TABLE IF EXISTS `qrtz_locks`; | |
| 177 | -CREATE TABLE `qrtz_locks` | |
| 178 | -( | |
| 179 | - `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 180 | - `lock_name` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 181 | - PRIMARY KEY (`sched_name`, `lock_name`) USING BTREE | |
| 182 | -) ENGINE = InnoDB | |
| 183 | - CHARACTER SET = utf8mb4 | |
| 184 | - COLLATE = utf8mb4_unicode_ci; | |
| 139 | +-- Table structure for QRTZ_LOCKS | |
| 140 | +-- ---------------------------- | |
| 141 | +DROP TABLE IF EXISTS `QRTZ_LOCKS`; | |
| 142 | +CREATE TABLE `QRTZ_LOCKS` ( | |
| 143 | + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 144 | + `LOCK_NAME` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 145 | + PRIMARY KEY (`SCHED_NAME`, `LOCK_NAME`) USING BTREE | |
| 146 | +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci; | |
| 185 | 147 | |
| 186 | 148 | -- ---------------------------- |
| 187 | --- Records of qrtz_locks | |
| 149 | +-- Records of QRTZ_LOCKS | |
| 188 | 150 | -- ---------------------------- |
| 189 | --- @format:off | |
| 190 | 151 | BEGIN; |
| 191 | -INSERT INTO `qrtz_locks` (`sched_name`, `lock_name`) VALUES ('schedulerName', 'STATE_ACCESS'); | |
| 192 | -INSERT INTO `qrtz_locks` (`sched_name`, `lock_name`) VALUES ('schedulerName', 'TRIGGER_ACCESS'); | |
| 152 | +INSERT INTO `QRTZ_LOCKS` (`SCHED_NAME`, `LOCK_NAME`) VALUES ('schedulerName', 'STATE_ACCESS'), ('schedulerName', 'TRIGGER_ACCESS'); | |
| 193 | 153 | COMMIT; |
| 194 | --- @formatter:on | |
| 195 | 154 | |
| 196 | 155 | -- ---------------------------- |
| 197 | --- Table structure for qrtz_paused_trigger_grps | |
| 198 | --- ---------------------------- | |
| 199 | -DROP TABLE IF EXISTS `qrtz_paused_trigger_grps`; | |
| 200 | -CREATE TABLE `qrtz_paused_trigger_grps` | |
| 201 | -( | |
| 202 | - `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 203 | - `trigger_group` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 204 | - PRIMARY KEY (`sched_name`, `trigger_group`) USING BTREE | |
| 205 | -) ENGINE = InnoDB | |
| 206 | - CHARACTER SET = utf8mb4 | |
| 207 | - COLLATE = utf8mb4_unicode_ci; | |
| 156 | +-- Table structure for QRTZ_PAUSED_TRIGGER_GRPS | |
| 157 | +-- ---------------------------- | |
| 158 | +DROP TABLE IF EXISTS `QRTZ_PAUSED_TRIGGER_GRPS`; | |
| 159 | +CREATE TABLE `QRTZ_PAUSED_TRIGGER_GRPS` ( | |
| 160 | + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 161 | + `TRIGGER_GROUP` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 162 | + PRIMARY KEY (`SCHED_NAME`, `TRIGGER_GROUP`) USING BTREE | |
| 163 | +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci; | |
| 208 | 164 | |
| 209 | 165 | -- ---------------------------- |
| 210 | --- Records of qrtz_paused_trigger_grps | |
| 166 | +-- Records of QRTZ_PAUSED_TRIGGER_GRPS | |
| 211 | 167 | -- ---------------------------- |
| 212 | --- @format:off | |
| 213 | 168 | BEGIN; |
| 214 | 169 | COMMIT; |
| 215 | --- @formatter:on | |
| 216 | 170 | |
| 217 | 171 | -- ---------------------------- |
| 218 | 172 | -- Table structure for QRTZ_SCHEDULER_STATE |
| 219 | 173 | -- ---------------------------- |
| 220 | -DROP TABLE IF EXISTS `qrtz_scheduler_state`; | |
| 221 | -CREATE TABLE `qrtz_scheduler_state` | |
| 222 | -( | |
| 223 | - `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 224 | - `instance_name` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 225 | - `last_checkin_time` bigint NOT NULL, | |
| 226 | - `checkin_interval` bigint NOT NULL, | |
| 227 | - PRIMARY KEY (`sched_name`, `instance_name`) USING BTREE | |
| 228 | -) ENGINE = InnoDB | |
| 229 | - CHARACTER SET = utf8mb4 | |
| 230 | - COLLATE = utf8mb4_unicode_ci; | |
| 174 | +DROP TABLE IF EXISTS `QRTZ_SCHEDULER_STATE`; | |
| 175 | +CREATE TABLE `QRTZ_SCHEDULER_STATE` ( | |
| 176 | + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 177 | + `INSTANCE_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 178 | + `LAST_CHECKIN_TIME` bigint NOT NULL, | |
| 179 | + `CHECKIN_INTERVAL` bigint NOT NULL, | |
| 180 | + PRIMARY KEY (`SCHED_NAME`, `INSTANCE_NAME`) USING BTREE | |
| 181 | +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci; | |
| 231 | 182 | |
| 232 | 183 | -- ---------------------------- |
| 233 | --- Records of qrtz_scheduler_state | |
| 184 | +-- Records of QRTZ_SCHEDULER_STATE | |
| 234 | 185 | -- ---------------------------- |
| 235 | --- @format:off | |
| 236 | 186 | BEGIN; |
| 237 | -INSERT INTO `qrtz_scheduler_state` (`sched_name`, `instance_name`, `last_checkin_time`, `checkin_interval`) VALUES ('schedulerName', 'MacBook-Pro.local1713489703551', 1713742509534, 15000); | |
| 187 | +INSERT INTO `QRTZ_SCHEDULER_STATE` (`SCHED_NAME`, `INSTANCE_NAME`, `LAST_CHECKIN_TIME`, `CHECKIN_INTERVAL`) VALUES ('schedulerName', 'MacBook-Pro.local1713489703551', 1713742509534, 15000); | |
| 238 | 188 | COMMIT; |
| 239 | --- @formatter:on | |
| 240 | 189 | |
| 241 | 190 | -- ---------------------------- |
| 242 | --- Table structure for qrtz_simple_triggers | |
| 243 | --- ---------------------------- | |
| 244 | -DROP TABLE IF EXISTS `qrtz_simple_triggers`; | |
| 245 | -CREATE TABLE `qrtz_simple_triggers` | |
| 246 | -( | |
| 247 | - `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 248 | - `trigger_name` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 249 | - `trigger_group` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 250 | - `repeat_count` bigint NOT NULL, | |
| 251 | - `repeat_interval` bigint NOT NULL, | |
| 252 | - `times_triggered` bigint NOT NULL, | |
| 253 | - PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE, | |
| 254 | - CONSTRAINT `qrtz_simple_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT | |
| 255 | -) ENGINE = InnoDB | |
| 256 | - CHARACTER SET = utf8mb4 | |
| 257 | - COLLATE = utf8mb4_unicode_ci; | |
| 191 | +-- Table structure for QRTZ_SIMPLE_TRIGGERS | |
| 192 | +-- ---------------------------- | |
| 193 | +DROP TABLE IF EXISTS `QRTZ_SIMPLE_TRIGGERS`; | |
| 194 | +CREATE TABLE `QRTZ_SIMPLE_TRIGGERS` ( | |
| 195 | + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 196 | + `TRIGGER_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 197 | + `TRIGGER_GROUP` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 198 | + `REPEAT_COUNT` bigint NOT NULL, | |
| 199 | + `REPEAT_INTERVAL` bigint NOT NULL, | |
| 200 | + `TIMES_TRIGGERED` bigint NOT NULL, | |
| 201 | + PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE, | |
| 202 | + CONSTRAINT `qrtz_simple_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT | |
| 203 | +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci; | |
| 258 | 204 | |
| 259 | 205 | -- ---------------------------- |
| 260 | 206 | -- Records of QRTZ_SIMPLE_TRIGGERS |
| 261 | 207 | -- ---------------------------- |
| 262 | --- @format:off | |
| 263 | 208 | BEGIN; |
| 264 | 209 | COMMIT; |
| 265 | --- @formatter:on | |
| 266 | 210 | |
| 267 | 211 | -- ---------------------------- |
| 268 | --- Table structure for qrtz_simprop_triggers | |
| 269 | --- ---------------------------- | |
| 270 | -DROP TABLE IF EXISTS `qrtz_simprop_triggers`; | |
| 271 | -CREATE TABLE `qrtz_simprop_triggers` | |
| 272 | -( | |
| 273 | - `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 274 | - `trigger_name` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 275 | - `trigger_group` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 276 | - `str_prop_1` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 277 | - `str_prop_2` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 278 | - `str_prop_3` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 279 | - `int_prop_1` int NULL DEFAULT NULL, | |
| 280 | - `int_prop_2` int NULL DEFAULT NULL, | |
| 281 | - `long_prop_1` bigint NULL DEFAULT NULL, | |
| 282 | - `long_prop_2` bigint NULL DEFAULT NULL, | |
| 283 | - `dec_prop_1` decimal(13, 4) NULL DEFAULT NULL, | |
| 284 | - `dec_prop_2` decimal(13, 4) NULL DEFAULT NULL, | |
| 285 | - `bool_prop_1` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 286 | - `bool_prop_2` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 287 | - PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE, | |
| 288 | - CONSTRAINT `qrtz_simprop_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT | |
| 289 | -) ENGINE = InnoDB | |
| 290 | - CHARACTER SET = utf8mb4 | |
| 291 | - COLLATE = utf8mb4_unicode_ci; | |
| 212 | +-- Table structure for QRTZ_SIMPROP_TRIGGERS | |
| 213 | +-- ---------------------------- | |
| 214 | +DROP TABLE IF EXISTS `QRTZ_SIMPROP_TRIGGERS`; | |
| 215 | +CREATE TABLE `QRTZ_SIMPROP_TRIGGERS` ( | |
| 216 | + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 217 | + `TRIGGER_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 218 | + `TRIGGER_GROUP` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 219 | + `STR_PROP_1` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 220 | + `STR_PROP_2` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 221 | + `STR_PROP_3` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 222 | + `INT_PROP_1` int NULL DEFAULT NULL, | |
| 223 | + `INT_PROP_2` int NULL DEFAULT NULL, | |
| 224 | + `LONG_PROP_1` bigint NULL DEFAULT NULL, | |
| 225 | + `LONG_PROP_2` bigint NULL DEFAULT NULL, | |
| 226 | + `DEC_PROP_1` decimal(13, 4) NULL DEFAULT NULL, | |
| 227 | + `DEC_PROP_2` decimal(13, 4) NULL DEFAULT NULL, | |
| 228 | + `BOOL_PROP_1` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 229 | + `BOOL_PROP_2` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 230 | + PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE, | |
| 231 | + CONSTRAINT `qrtz_simprop_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT | |
| 232 | +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci; | |
| 292 | 233 | |
| 293 | 234 | -- ---------------------------- |
| 294 | --- Records of qrtz_simprop_triggers | |
| 235 | +-- Records of QRTZ_SIMPROP_TRIGGERS | |
| 295 | 236 | -- ---------------------------- |
| 296 | --- @formatter:off | |
| 297 | 237 | BEGIN; |
| 298 | 238 | COMMIT; |
| 299 | --- @formatter:on | |
| 300 | 239 | |
| 301 | 240 | -- ---------------------------- |
| 302 | --- Table structure for qrtz_triggers | |
| 303 | --- ---------------------------- | |
| 304 | -DROP TABLE IF EXISTS `qrtz_triggers`; | |
| 305 | -CREATE TABLE `qrtz_triggers` | |
| 306 | -( | |
| 307 | - `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 308 | - `trigger_name` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 309 | - `trigger_group` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 310 | - `job_name` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 311 | - `job_group` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 312 | - `description` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 313 | - `next_fire_time` bigint NULL DEFAULT NULL, | |
| 314 | - `prev_fire_time` bigint NULL DEFAULT NULL, | |
| 315 | - `priority` int NULL DEFAULT NULL, | |
| 316 | - `trigger_state` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 317 | - `trigger_type` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 318 | - `start_time` bigint NOT NULL, | |
| 319 | - `end_time` bigint NULL DEFAULT NULL, | |
| 320 | - `calendar_name` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 321 | - `misfire_instr` smallint NULL DEFAULT NULL, | |
| 322 | - `job_data` blob NULL, | |
| 323 | - PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE, | |
| 324 | - INDEX `idx_qrtz_t_j` (`sched_name` ASC, `job_name` ASC, `job_group` ASC) USING BTREE, | |
| 325 | - INDEX `idx_qrtz_t_jg` (`sched_name` ASC, `job_group` ASC) USING BTREE, | |
| 326 | - INDEX `idx_qrtz_t_c` (`sched_name` ASC, `calendar_name` ASC) USING BTREE, | |
| 327 | - INDEX `idx_qrtz_t_g` (`sched_name` ASC, `trigger_group` ASC) USING BTREE, | |
| 328 | - INDEX `idx_qrtz_t_state` (`sched_name` ASC, `trigger_state` ASC) USING BTREE, | |
| 329 | - INDEX `idx_qrtz_t_n_state` (`sched_name` ASC, `trigger_name` ASC, `trigger_group` ASC, `trigger_state` | |
| 330 | - ASC) USING BTREE, | |
| 331 | - INDEX `idx_qrtz_t_n_g_state` (`sched_name` ASC, `trigger_group` ASC, `trigger_state` ASC) USING BTREE, | |
| 332 | - INDEX `idx_qrtz_t_next_fire_time` (`sched_name` ASC, `next_fire_time` ASC) USING BTREE, | |
| 333 | - INDEX `idx_qrtz_t_nft_st` (`sched_name` ASC, `trigger_state` ASC, `next_fire_time` ASC) USING BTREE, | |
| 334 | - INDEX `idx_qrtz_t_nft_misfire` (`sched_name` ASC, `misfire_instr` ASC, `next_fire_time` ASC) USING BTREE, | |
| 335 | - INDEX `idx_qrtz_t_nft_st_misfire` (`sched_name` ASC, `misfire_instr` ASC, `next_fire_time` ASC, `trigger_state` | |
| 336 | - ASC) USING BTREE, | |
| 337 | - INDEX `idx_qrtz_t_nft_st_misfire_grp` (`sched_name` ASC, `misfire_instr` ASC, `next_fire_time` ASC, `trigger_group` | |
| 338 | - ASC, `trigger_state` ASC) USING BTREE, | |
| 339 | - CONSTRAINT `qrtz_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `job_name`, `job_group`) REFERENCES `qrtz_job_details` (`sched_name`, `job_name`, `job_group`) ON DELETE RESTRICT ON UPDATE RESTRICT | |
| 340 | -) ENGINE = InnoDB | |
| 341 | - CHARACTER SET = utf8mb4 | |
| 342 | - COLLATE = utf8mb4_unicode_ci; | |
| 241 | +-- Table structure for QRTZ_TRIGGERS | |
| 242 | +-- ---------------------------- | |
| 243 | +DROP TABLE IF EXISTS `QRTZ_TRIGGERS`; | |
| 244 | +CREATE TABLE `QRTZ_TRIGGERS` ( | |
| 245 | + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 246 | + `TRIGGER_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 247 | + `TRIGGER_GROUP` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 248 | + `JOB_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 249 | + `JOB_GROUP` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 250 | + `DESCRIPTION` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 251 | + `NEXT_FIRE_TIME` bigint NULL DEFAULT NULL, | |
| 252 | + `PREV_FIRE_TIME` bigint NULL DEFAULT NULL, | |
| 253 | + `PRIORITY` int NULL DEFAULT NULL, | |
| 254 | + `TRIGGER_STATE` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 255 | + `TRIGGER_TYPE` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, | |
| 256 | + `START_TIME` bigint NOT NULL, | |
| 257 | + `END_TIME` bigint NULL DEFAULT NULL, | |
| 258 | + `CALENDAR_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, | |
| 259 | + `MISFIRE_INSTR` smallint NULL DEFAULT NULL, | |
| 260 | + `JOB_DATA` blob NULL, | |
| 261 | + PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE, | |
| 262 | + INDEX `IDX_QRTZ_T_J`(`SCHED_NAME` ASC, `JOB_NAME` ASC, `JOB_GROUP` ASC) USING BTREE, | |
| 263 | + INDEX `IDX_QRTZ_T_JG`(`SCHED_NAME` ASC, `JOB_GROUP` ASC) USING BTREE, | |
| 264 | + INDEX `IDX_QRTZ_T_C`(`SCHED_NAME` ASC, `CALENDAR_NAME` ASC) USING BTREE, | |
| 265 | + INDEX `IDX_QRTZ_T_G`(`SCHED_NAME` ASC, `TRIGGER_GROUP` ASC) USING BTREE, | |
| 266 | + INDEX `IDX_QRTZ_T_STATE`(`SCHED_NAME` ASC, `TRIGGER_STATE` ASC) USING BTREE, | |
| 267 | + INDEX `IDX_QRTZ_T_N_STATE`(`SCHED_NAME` ASC, `TRIGGER_NAME` ASC, `TRIGGER_GROUP` ASC, `TRIGGER_STATE` ASC) USING BTREE, | |
| 268 | + INDEX `IDX_QRTZ_T_N_G_STATE`(`SCHED_NAME` ASC, `TRIGGER_GROUP` ASC, `TRIGGER_STATE` ASC) USING BTREE, | |
| 269 | + INDEX `IDX_QRTZ_T_NEXT_FIRE_TIME`(`SCHED_NAME` ASC, `NEXT_FIRE_TIME` ASC) USING BTREE, | |
| 270 | + INDEX `IDX_QRTZ_T_NFT_ST`(`SCHED_NAME` ASC, `TRIGGER_STATE` ASC, `NEXT_FIRE_TIME` ASC) USING BTREE, | |
| 271 | + INDEX `IDX_QRTZ_T_NFT_MISFIRE`(`SCHED_NAME` ASC, `MISFIRE_INSTR` ASC, `NEXT_FIRE_TIME` ASC) USING BTREE, | |
| 272 | + INDEX `IDX_QRTZ_T_NFT_ST_MISFIRE`(`SCHED_NAME` ASC, `MISFIRE_INSTR` ASC, `NEXT_FIRE_TIME` ASC, `TRIGGER_STATE` ASC) USING BTREE, | |
| 273 | + INDEX `IDX_QRTZ_T_NFT_ST_MISFIRE_GRP`(`SCHED_NAME` ASC, `MISFIRE_INSTR` ASC, `NEXT_FIRE_TIME` ASC, `TRIGGER_GROUP` ASC, `TRIGGER_STATE` ASC) USING BTREE, | |
| 274 | + CONSTRAINT `qrtz_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) REFERENCES `QRTZ_JOB_DETAILS` (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT | |
| 275 | +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci; | |
| 343 | 276 | |
| 344 | 277 | -- ---------------------------- |
| 345 | --- Records of qrtz_triggers | |
| 278 | +-- Records of QRTZ_TRIGGERS | |
| 346 | 279 | -- ---------------------------- |
| 347 | --- @format:off | |
| 348 | 280 | BEGIN; |
| 349 | -INSERT INTO `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `job_name`, `job_group`, `description`, `next_fire_time`, `prev_fire_time`, `priority`, `trigger_state`, `trigger_type`, `start_time`, `end_time`, `calendar_name`, `misfire_instr`, `job_data`) VALUES ('schedulerName', 'accessLogCleanJob', 'DEFAULT', 'accessLogCleanJob', 'DEFAULT', NULL, 1696348800000, -1, 5, 'PAUSED', 'CRON', 1696301981000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D7400007400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E547371007E000A000000037800); | |
| 350 | -INSERT INTO `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `job_name`, `job_group`, `description`, `next_fire_time`, `prev_fire_time`, `priority`, `trigger_state`, `trigger_type`, `start_time`, `end_time`, `calendar_name`, `misfire_instr`, `job_data`) VALUES ('schedulerName', 'brokerageRecordUnfreezeJob', 'DEFAULT', 'brokerageRecordUnfreezeJob', 'DEFAULT', NULL, 1695909720000, -1, 5, 'PAUSED', 'CRON', 1695909706000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D7400007400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E547371007E000A000000037800); | |
| 351 | -INSERT INTO `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `job_name`, `job_group`, `description`, `next_fire_time`, `prev_fire_time`, `priority`, `trigger_state`, `trigger_type`, `start_time`, `end_time`, `calendar_name`, `misfire_instr`, `job_data`) VALUES ('schedulerName', 'errorLogCleanJob', 'DEFAULT', 'errorLogCleanJob', 'DEFAULT', NULL, 1696348800000, -1, 5, 'PAUSED', 'CRON', 1696302043000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D7400007400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E547371007E000A000000037800); | |
| 352 | -INSERT INTO `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `job_name`, `job_group`, `description`, `next_fire_time`, `prev_fire_time`, `priority`, `trigger_state`, `trigger_type`, `start_time`, `end_time`, `calendar_name`, `misfire_instr`, `job_data`) VALUES ('schedulerName', 'jobLogCleanJob', 'DEFAULT', 'jobLogCleanJob', 'DEFAULT', NULL, 1696348800000, -1, 5, 'PAUSED', 'CRON', 1696302092000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D7400007400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E547371007E000A000000037800); | |
| 353 | -INSERT INTO `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `job_name`, `job_group`, `description`, `next_fire_time`, `prev_fire_time`, `priority`, `trigger_state`, `trigger_type`, `start_time`, `end_time`, `calendar_name`, `misfire_instr`, `job_data`) VALUES ('schedulerName', 'payNotifyJob', 'DEFAULT', 'payNotifyJob', 'DEFAULT', NULL, 1688907102000, 1688907101000, 5, 'PAUSED', 'CRON', 1635294882000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D707400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E5471007E000B7800); | |
| 354 | -INSERT INTO `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `job_name`, `job_group`, `description`, `next_fire_time`, `prev_fire_time`, `priority`, `trigger_state`, `trigger_type`, `start_time`, `end_time`, `calendar_name`, `misfire_instr`, `job_data`) VALUES ('schedulerName', 'payOrderExpireJob', 'DEFAULT', 'payOrderExpireJob', 'DEFAULT', NULL, 1690011600000, -1, 5, 'PAUSED', 'CRON', 1690011553000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D707400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E5471007E000B7800); | |
| 355 | -INSERT INTO `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `job_name`, `job_group`, `description`, `next_fire_time`, `prev_fire_time`, `priority`, `trigger_state`, `trigger_type`, `start_time`, `end_time`, `calendar_name`, `misfire_instr`, `job_data`) VALUES ('schedulerName', 'payOrderSyncJob', 'DEFAULT', 'payOrderSyncJob', 'DEFAULT', NULL, 1690011600000, 1690011540000, 5, 'PAUSED', 'CRON', 1690007785000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D707400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E5471007E000B7800); | |
| 356 | -INSERT INTO `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `job_name`, `job_group`, `description`, `next_fire_time`, `prev_fire_time`, `priority`, `trigger_state`, `trigger_type`, `start_time`, `end_time`, `calendar_name`, `misfire_instr`, `job_data`) VALUES ('schedulerName', 'payRefundSyncJob', 'DEFAULT', 'payRefundSyncJob', 'DEFAULT', NULL, 1690117560000, 1690117500000, 5, 'PAUSED', 'CRON', 1690117424000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D707400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E5471007E000B7800); | |
| 357 | -INSERT INTO `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `job_name`, `job_group`, `description`, `next_fire_time`, `prev_fire_time`, `priority`, `trigger_state`, `trigger_type`, `start_time`, `end_time`, `calendar_name`, `misfire_instr`, `job_data`) VALUES ('schedulerName', 'tradeOrderAutoCancelJob', 'DEFAULT', 'tradeOrderAutoCancelJob', 'DEFAULT', NULL, 1695727440000, 1695727380000, 5, 'PAUSED', 'CRON', 1695656605000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D7400007400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E547371007E000A000000037800); | |
| 358 | -INSERT INTO `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `job_name`, `job_group`, `description`, `next_fire_time`, `prev_fire_time`, `priority`, `trigger_state`, `trigger_type`, `start_time`, `end_time`, `calendar_name`, `misfire_instr`, `job_data`) VALUES ('schedulerName', 'tradeOrderAutoCommentJob', 'DEFAULT', 'tradeOrderAutoCommentJob', 'DEFAULT', NULL, 1695783840000, 1695783780000, 5, 'PAUSED', 'CRON', 1695742709000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D7400007400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E547371007E000A000000037800); | |
| 359 | -INSERT INTO `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`, `job_name`, `job_group`, `description`, `next_fire_time`, `prev_fire_time`, `priority`, `trigger_state`, `trigger_type`, `start_time`, `end_time`, `calendar_name`, `misfire_instr`, `job_data`) VALUES ('schedulerName', 'tradeOrderAutoReceiveJob', 'DEFAULT', 'tradeOrderAutoReceiveJob', 'DEFAULT', NULL, 1695742740000, 1695742680000, 5, 'PAUSED', 'CRON', 1695727433000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D7400007400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E547371007E000A000000037800); | |
| 281 | +INSERT INTO `QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`, `JOB_NAME`, `JOB_GROUP`, `DESCRIPTION`, `NEXT_FIRE_TIME`, `PREV_FIRE_TIME`, `PRIORITY`, `TRIGGER_STATE`, `TRIGGER_TYPE`, `START_TIME`, `END_TIME`, `CALENDAR_NAME`, `MISFIRE_INSTR`, `JOB_DATA`) VALUES ('schedulerName', 'accessLogCleanJob', 'DEFAULT', 'accessLogCleanJob', 'DEFAULT', NULL, 1696348800000, -1, 5, 'PAUSED', 'CRON', 1696301981000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D7400007400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E547371007E000A000000037800), ('schedulerName', 'brokerageRecordUnfreezeJob', 'DEFAULT', 'brokerageRecordUnfreezeJob', 'DEFAULT', NULL, 1695909720000, -1, 5, 'PAUSED', 'CRON', 1695909706000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D7400007400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E547371007E000A000000037800), ('schedulerName', 'errorLogCleanJob', 'DEFAULT', 'errorLogCleanJob', 'DEFAULT', NULL, 1696348800000, -1, 5, 'PAUSED', 'CRON', 1696302043000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D7400007400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E547371007E000A000000037800), ('schedulerName', 'jobLogCleanJob', 'DEFAULT', 'jobLogCleanJob', 'DEFAULT', NULL, 1696348800000, -1, 5, 'PAUSED', 'CRON', 1696302092000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D7400007400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E547371007E000A000000037800), ('schedulerName', 'payNotifyJob', 'DEFAULT', 'payNotifyJob', 'DEFAULT', NULL, 1688907102000, 1688907101000, 5, 'PAUSED', 'CRON', 1635294882000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D707400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E5471007E000B7800), ('schedulerName', 'payOrderExpireJob', 'DEFAULT', 'payOrderExpireJob', 'DEFAULT', NULL, 1690011600000, -1, 5, 'PAUSED', 'CRON', 1690011553000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D707400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E5471007E000B7800), ('schedulerName', 'payOrderSyncJob', 'DEFAULT', 'payOrderSyncJob', 'DEFAULT', NULL, 1690011600000, 1690011540000, 5, 'PAUSED', 'CRON', 1690007785000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D707400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E5471007E000B7800), ('schedulerName', 'payRefundSyncJob', 'DEFAULT', 'payRefundSyncJob', 'DEFAULT', NULL, 1690117560000, 1690117500000, 5, 'PAUSED', 'CRON', 1690117424000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D707400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E5471007E000B7800), ('schedulerName', 'tradeOrderAutoCancelJob', 'DEFAULT', 'tradeOrderAutoCancelJob', 'DEFAULT', NULL, 1695727440000, 1695727380000, 5, 'PAUSED', 'CRON', 1695656605000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D7400007400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E547371007E000A000000037800), ('schedulerName', 'tradeOrderAutoCommentJob', 'DEFAULT', 'tradeOrderAutoCommentJob', 'DEFAULT', NULL, 1695783840000, 1695783780000, 5, 'PAUSED', 'CRON', 1695742709000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D7400007400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E547371007E000A000000037800), ('schedulerName', 'tradeOrderAutoReceiveJob', 'DEFAULT', 'tradeOrderAutoReceiveJob', 'DEFAULT', NULL, 1695742740000, 1695742680000, 5, 'PAUSED', 'CRON', 1695727433000, 0, NULL, 0, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C770800000010000000037400114A4F425F48414E444C45525F504152414D7400007400124A4F425F52455452595F494E54455256414C737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000074000F4A4F425F52455452595F434F554E547371007E000A000000037800); | |
| 360 | 282 | COMMIT; |
| 361 | --- @formatter:on | |
| 362 | 283 | |
| 363 | -SET FOREIGN_KEY_CHECKS = 1; | |
| 364 | 284 | \ No newline at end of file |
| 285 | +SET FOREIGN_KEY_CHECKS = 1; | ... | ... |
sql/mysql/ruoyi-vue-pro.sql
| ... | ... | @@ -11,7 +11,7 @@ |
| 11 | 11 | Target Server Version : 80200 (8.2.0) |
| 12 | 12 | File Encoding : 65001 |
| 13 | 13 | |
| 14 | - Date: 07/07/2024 18:29:17 | |
| 14 | + Date: 28/07/2024 23:20:28 | |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | 17 | SET NAMES utf8mb4; |
| ... | ... | @@ -49,7 +49,7 @@ CREATE TABLE `infra_api_access_log` ( |
| 49 | 49 | `tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号', |
| 50 | 50 | PRIMARY KEY (`id`) USING BTREE, |
| 51 | 51 | INDEX `idx_create_time`(`create_time` ASC) USING BTREE |
| 52 | -) ENGINE = InnoDB AUTO_INCREMENT = 35940 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'API 访问日志表'; | |
| 52 | +) ENGINE = InnoDB AUTO_INCREMENT = 35942 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'API 访问日志表'; | |
| 53 | 53 | |
| 54 | 54 | -- ---------------------------- |
| 55 | 55 | -- Records of infra_api_access_log |
| ... | ... | @@ -91,7 +91,7 @@ CREATE TABLE `infra_api_error_log` ( |
| 91 | 91 | `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除', |
| 92 | 92 | `tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号', |
| 93 | 93 | PRIMARY KEY (`id`) USING BTREE |
| 94 | -) ENGINE = InnoDB AUTO_INCREMENT = 17761 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '系统异常日志'; | |
| 94 | +) ENGINE = InnoDB AUTO_INCREMENT = 19166 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '系统异常日志'; | |
| 95 | 95 | |
| 96 | 96 | -- ---------------------------- |
| 97 | 97 | -- Records of infra_api_error_log |
| ... | ... | @@ -128,7 +128,7 @@ CREATE TABLE `infra_codegen_column` ( |
| 128 | 128 | `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', |
| 129 | 129 | `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除', |
| 130 | 130 | PRIMARY KEY (`id`) USING BTREE |
| 131 | -) ENGINE = InnoDB AUTO_INCREMENT = 2440 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '代码生成表字段定义'; | |
| 131 | +) ENGINE = InnoDB AUTO_INCREMENT = 2470 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '代码生成表字段定义'; | |
| 132 | 132 | |
| 133 | 133 | -- ---------------------------- |
| 134 | 134 | -- Records of infra_codegen_column |
| ... | ... | @@ -166,7 +166,7 @@ CREATE TABLE `infra_codegen_table` ( |
| 166 | 166 | `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', |
| 167 | 167 | `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除', |
| 168 | 168 | PRIMARY KEY (`id`) USING BTREE |
| 169 | -) ENGINE = InnoDB AUTO_INCREMENT = 184 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '代码生成表定义'; | |
| 169 | +) ENGINE = InnoDB AUTO_INCREMENT = 186 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '代码生成表定义'; | |
| 170 | 170 | |
| 171 | 171 | -- ---------------------------- |
| 172 | 172 | -- Records of infra_codegen_table |
| ... | ... | @@ -199,7 +199,7 @@ CREATE TABLE `infra_config` ( |
| 199 | 199 | -- Records of infra_config |
| 200 | 200 | -- ---------------------------- |
| 201 | 201 | BEGIN; |
| 202 | -INSERT INTO `infra_config` (`id`, `category`, `type`, `name`, `config_key`, `value`, `visible`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2, 'biz', 1, '用户管理-账号初始密码', 'sys.user.init-password', '123456', b'0', '初始化密码 123456', 'admin', '2021-01-05 17:03:48', '1', '2024-04-03 17:22:28', b'0'); | |
| 202 | +INSERT INTO `infra_config` (`id`, `category`, `type`, `name`, `config_key`, `value`, `visible`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2, 'biz', 1, '用户管理-账号初始密码', 'system.user.init-password', '123456', b'0', '初始化密码 123456', 'admin', '2021-01-05 17:03:48', '1', '2024-07-20 17:22:47', b'0'); | |
| 203 | 203 | INSERT INTO `infra_config` (`id`, `category`, `type`, `name`, `config_key`, `value`, `visible`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (7, 'url', 2, 'MySQL 监控的地址', 'url.druid', '', b'1', '', '1', '2023-04-07 13:41:16', '1', '2023-04-07 14:33:38', b'0'); |
| 204 | 204 | INSERT INTO `infra_config` (`id`, `category`, `type`, `name`, `config_key`, `value`, `visible`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (8, 'url', 2, 'SkyWalking 监控的地址', 'url.skywalking', '', b'1', '', '1', '2023-04-07 13:41:16', '1', '2023-04-07 14:57:03', b'0'); |
| 205 | 205 | INSERT INTO `infra_config` (`id`, `category`, `type`, `name`, `config_key`, `value`, `visible`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (9, 'url', 2, 'Spring Boot Admin 监控的地址', 'url.spring-boot-admin', '', b'1', '', '1', '2023-04-07 13:41:16', '1', '2023-04-07 14:52:07', b'0'); |
| ... | ... | @@ -250,7 +250,7 @@ CREATE TABLE `infra_file` ( |
| 250 | 250 | `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', |
| 251 | 251 | `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除', |
| 252 | 252 | PRIMARY KEY (`id`) USING BTREE |
| 253 | -) ENGINE = InnoDB AUTO_INCREMENT = 1397 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '文件表'; | |
| 253 | +) ENGINE = InnoDB AUTO_INCREMENT = 1447 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '文件表'; | |
| 254 | 254 | |
| 255 | 255 | -- ---------------------------- |
| 256 | 256 | -- Records of infra_file |
| ... | ... | @@ -438,7 +438,7 @@ CREATE TABLE `system_dict_data` ( |
| 438 | 438 | `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', |
| 439 | 439 | `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除', |
| 440 | 440 | PRIMARY KEY (`id`) USING BTREE |
| 441 | -) ENGINE = InnoDB AUTO_INCREMENT = 1555 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '字典数据表'; | |
| 441 | +) ENGINE = InnoDB AUTO_INCREMENT = 1588 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '字典数据表'; | |
| 442 | 442 | |
| 443 | 443 | -- ---------------------------- |
| 444 | 444 | -- Records of system_dict_data |
| ... | ... | @@ -490,7 +490,7 @@ INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `st |
| 490 | 490 | INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (62, 0, '未处理', '0', 'infra_api_error_log_process_status', 0, 'primary', '', NULL, '', '2021-02-26 07:07:19', '1', '2022-02-16 20:14:17', b'0'); |
| 491 | 491 | INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (63, 1, '已处理', '1', 'infra_api_error_log_process_status', 0, 'success', '', NULL, '', '2021-02-26 07:07:26', '1', '2022-02-16 20:14:08', b'0'); |
| 492 | 492 | INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (64, 2, '已忽略', '2', 'infra_api_error_log_process_status', 0, 'danger', '', NULL, '', '2021-02-26 07:07:34', '1', '2022-02-16 20:14:14', b'0'); |
| 493 | -INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (66, 2, '阿里云', 'ALIYUN', 'system_sms_channel_code', 0, 'primary', '', NULL, '1', '2021-04-05 01:05:26', '1', '2022-02-16 10:09:52', b'0'); | |
| 493 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (66, 1, '阿里云', 'ALIYUN', 'system_sms_channel_code', 0, 'primary', '', NULL, '1', '2021-04-05 01:05:26', '1', '2024-07-22 22:23:25', b'0'); | |
| 494 | 494 | INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (67, 1, '验证码', '1', 'system_sms_template_type', 0, 'warning', '', NULL, '1', '2021-04-05 21:50:57', '1', '2022-02-16 12:48:30', b'0'); |
| 495 | 495 | INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (68, 2, '通知', '2', 'system_sms_template_type', 0, 'primary', '', NULL, '1', '2021-04-05 21:51:08', '1', '2022-02-16 12:48:27', b'0'); |
| 496 | 496 | INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (69, 0, '营销', '3', 'system_sms_template_type', 0, 'danger', '', NULL, '1', '2021-04-05 21:51:15', '1', '2022-02-16 12:48:22', b'0'); |
| ... | ... | @@ -605,8 +605,8 @@ INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `st |
| 605 | 605 | INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1206, 30, '已完成', '30', 'trade_order_status', 0, 'success', '', '交易订单状态 - 已完成', '1', '2022-12-10 16:50:30', '1', '2022-12-10 16:51:06', b'0'); |
| 606 | 606 | INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1207, 40, '已取消', '40', 'trade_order_status', 0, 'danger', '', '交易订单状态 - 已取消', '1', '2022-12-10 16:50:50', '1', '2022-12-10 16:51:00', b'0'); |
| 607 | 607 | INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1208, 0, '未售后', '0', 'trade_order_item_after_sale_status', 0, 'info', '', '交易订单项的售后状态 - 未售后', '1', '2022-12-10 20:58:42', '1', '2022-12-10 20:59:29', b'0'); |
| 608 | -INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1209, 1, '售后中', '1', 'trade_order_item_after_sale_status', 0, 'primary', '', '交易订单项的售后状态 - 售后中', '1', '2022-12-10 20:59:21', '1', '2022-12-10 20:59:21', b'0'); | |
| 609 | -INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1210, 2, '已退款', '2', 'trade_order_item_after_sale_status', 0, 'success', '', '交易订单项的售后状态 - 已退款', '1', '2022-12-10 20:59:46', '1', '2022-12-10 20:59:46', b'0'); | |
| 608 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1209, 10, '售后中', '10', 'trade_order_item_after_sale_status', 0, 'primary', '', '交易订单项的售后状态 - 售后中', '1', '2022-12-10 20:59:21', '1', '2024-07-21 17:01:24', b'0'); | |
| 609 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1210, 20, '已退款', '20', 'trade_order_item_after_sale_status', 0, 'success', '', '交易订单项的售后状态 - 已退款', '1', '2022-12-10 20:59:46', '1', '2024-07-21 17:01:35', b'0'); | |
| 610 | 610 | INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1211, 1, '完全匹配', '1', 'mp_auto_reply_request_match', 0, 'primary', '', '公众号自动回复的请求关键字匹配模式 - 完全匹配', '1', '2023-01-16 23:30:39', '1', '2023-01-16 23:31:00', b'0'); |
| 611 | 611 | INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1212, 2, '半匹配', '2', 'mp_auto_reply_request_match', 0, 'success', '', '公众号自动回复的请求关键字匹配模式 - 半匹配', '1', '2023-01-16 23:30:55', '1', '2023-01-16 23:31:10', b'0'); |
| 612 | 612 | INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1213, 1, '文本', 'text', 'mp_message_type', 0, 'default', '', '公众号的消息类型 - 文本', '1', '2023-01-17 22:17:32', '1', '2023-01-17 22:17:39', b'0'); |
| ... | ... | @@ -741,7 +741,6 @@ INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `st |
| 741 | 741 | INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1457, 2, '现金', '2', 'crm_receivable_return_type', 0, 'default', '', '', '1', '2023-10-18 21:54:41', '1', '2023-10-18 21:54:41', b'0'); |
| 742 | 742 | INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1458, 3, '邮政汇款', '3', 'crm_receivable_return_type', 0, 'default', '', '', '1', '2023-10-18 21:54:53', '1', '2023-10-18 21:54:53', b'0'); |
| 743 | 743 | INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1459, 4, '电汇', '4', 'crm_receivable_return_type', 0, 'default', '', '', '1', '2023-10-18 21:55:07', '1', '2023-10-18 21:55:07', b'0'); |
| 744 | -INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1460, 5, '网上转账', '5', 'crm_receivable_return_type', 0, 'default', '', '', '1', '2023-10-18 21:55:24', '1', '2023-10-18 21:55:24', b'0'); | |
| 745 | 744 | INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1461, 1, '个', '1', 'crm_product_unit', 0, '', '', '', '1', '2023-12-05 23:02:26', '1', '2023-12-05 23:02:26', b'0'); |
| 746 | 745 | INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1462, 2, '块', '2', 'crm_product_unit', 0, '', '', '', '1', '2023-12-05 23:02:34', '1', '2023-12-05 23:02:34', b'0'); |
| 747 | 746 | INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1463, 3, '只', '3', 'crm_product_unit', 0, '', '', '', '1', '2023-12-05 23:02:57', '1', '2023-12-05 23:02:57', b'0'); |
| ... | ... | @@ -827,6 +826,38 @@ INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `st |
| 827 | 826 | INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1552, 8, 'Suno', 'Suno', 'ai_platform', 0, '', '', '', '1', '2024-06-29 09:13:36', '1', '2024-06-29 09:13:41', b'0'); |
| 828 | 827 | INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1553, 9, 'DeepSeek', 'DeepSeek', 'ai_platform', 0, '', '', '', '1', '2024-07-06 12:04:30', '1', '2024-07-06 12:05:20', b'0'); |
| 829 | 828 | INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1554, 10, '智谱', 'ZhiPu', 'ai_platform', 0, '', '', '', '1', '2024-07-06 18:00:35', '1', '2024-07-06 18:00:35', b'0'); |
| 829 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1555, 4, '长', '4', 'ai_write_length', 0, '', '', '', '1', '2024-07-07 15:49:03', '1', '2024-07-07 15:49:03', b'0'); | |
| 830 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1556, 5, '段落', '5', 'ai_write_format', 0, '', '', '', '1', '2024-07-07 15:49:54', '1', '2024-07-07 15:49:54', b'0'); | |
| 831 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1557, 6, '文章', '6', 'ai_write_format', 0, '', '', '', '1', '2024-07-07 15:50:05', '1', '2024-07-07 15:50:05', b'0'); | |
| 832 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1558, 7, '博客文章', '7', 'ai_write_format', 0, '', '', '', '1', '2024-07-07 15:50:23', '1', '2024-07-07 15:50:23', b'0'); | |
| 833 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1559, 8, '想法', '8', 'ai_write_format', 0, '', '', '', '1', '2024-07-07 15:50:31', '1', '2024-07-07 15:50:31', b'0'); | |
| 834 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1560, 9, '大纲', '9', 'ai_write_format', 0, '', '', '', '1', '2024-07-07 15:50:37', '1', '2024-07-07 15:50:37', b'0'); | |
| 835 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1561, 1, '自动', '1', 'ai_write_tone', 0, '', '', '', '1', '2024-07-07 15:51:06', '1', '2024-07-07 15:51:06', b'0'); | |
| 836 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1562, 2, '友善', '2', 'ai_write_tone', 0, '', '', '', '1', '2024-07-07 15:51:19', '1', '2024-07-07 15:51:19', b'0'); | |
| 837 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1563, 3, '随意', '3', 'ai_write_tone', 0, '', '', '', '1', '2024-07-07 15:51:27', '1', '2024-07-07 15:51:27', b'0'); | |
| 838 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1564, 4, '友好', '4', 'ai_write_tone', 0, '', '', '', '1', '2024-07-07 15:51:37', '1', '2024-07-07 15:51:37', b'0'); | |
| 839 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1565, 5, '专业', '5', 'ai_write_tone', 0, '', '', '', '1', '2024-07-07 15:51:49', '1', '2024-07-07 15:52:02', b'0'); | |
| 840 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1566, 6, '诙谐', '6', 'ai_write_tone', 0, '', '', '', '1', '2024-07-07 15:52:15', '1', '2024-07-07 15:52:15', b'0'); | |
| 841 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1567, 7, '有趣', '7', 'ai_write_tone', 0, '', '', '', '1', '2024-07-07 15:52:24', '1', '2024-07-07 15:52:24', b'0'); | |
| 842 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1568, 8, '正式', '8', 'ai_write_tone', 0, '', '', '', '1', '2024-07-07 15:54:33', '1', '2024-07-07 15:54:33', b'0'); | |
| 843 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1569, 5, '段落', '5', 'ai_write_format', 0, '', '', '', '1', '2024-07-07 15:49:54', '1', '2024-07-07 15:49:54', b'0'); | |
| 844 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1570, 1, '自动', '1', 'ai_write_format', 0, '', '', '', '1', '2024-07-07 15:19:34', '1', '2024-07-07 15:19:34', b'0'); | |
| 845 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1571, 2, '电子邮件', '2', 'ai_write_format', 0, '', '', '', '1', '2024-07-07 15:19:50', '1', '2024-07-07 15:49:30', b'0'); | |
| 846 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1572, 3, '消息', '3', 'ai_write_format', 0, '', '', '', '1', '2024-07-07 15:20:01', '1', '2024-07-07 15:49:38', b'0'); | |
| 847 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1573, 4, '评论', '4', 'ai_write_format', 0, '', '', '', '1', '2024-07-07 15:20:13', '1', '2024-07-07 15:49:45', b'0'); | |
| 848 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1574, 1, '自动', '1', 'ai_write_language', 0, '', '', '', '1', '2024-07-07 15:44:18', '1', '2024-07-07 15:44:18', b'0'); | |
| 849 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1575, 2, '中文', '2', 'ai_write_language', 0, '', '', '', '1', '2024-07-07 15:44:28', '1', '2024-07-07 15:44:28', b'0'); | |
| 850 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1576, 3, '英文', '3', 'ai_write_language', 0, '', '', '', '1', '2024-07-07 15:44:37', '1', '2024-07-07 15:44:37', b'0'); | |
| 851 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1577, 4, '韩语', '4', 'ai_write_language', 0, '', '', '', '1', '2024-07-07 15:46:28', '1', '2024-07-07 15:46:28', b'0'); | |
| 852 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1578, 5, '日语', '5', 'ai_write_language', 0, '', '', '', '1', '2024-07-07 15:46:44', '1', '2024-07-07 15:46:44', b'0'); | |
| 853 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1579, 1, '自动', '1', 'ai_write_length', 0, '', '', '', '1', '2024-07-07 15:48:34', '1', '2024-07-07 15:48:34', b'0'); | |
| 854 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1580, 2, '短', '2', 'ai_write_length', 0, '', '', '', '1', '2024-07-07 15:48:44', '1', '2024-07-07 15:48:44', b'0'); | |
| 855 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1581, 3, '中等', '3', 'ai_write_length', 0, '', '', '', '1', '2024-07-07 15:48:52', '1', '2024-07-07 15:48:52', b'0'); | |
| 856 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1582, 4, '长', '4', 'ai_write_length', 0, '', '', '', '1', '2024-07-07 15:49:03', '1', '2024-07-07 15:49:03', b'0'); | |
| 857 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1584, 1, '撰写', '1', 'ai_write_type', 0, '', '', '', '1', '2024-07-10 21:26:00', '1', '2024-07-10 21:26:00', b'0'); | |
| 858 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1585, 2, '回复', '2', 'ai_write_type', 0, '', '', '', '1', '2024-07-10 21:26:06', '1', '2024-07-10 21:26:06', b'0'); | |
| 859 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1586, 2, '腾讯云', 'TENCENT', 'system_sms_channel_code', 0, '', '', '', '1', '2024-07-22 22:23:16', '1', '2024-07-22 22:23:16', b'0'); | |
| 860 | +INSERT INTO `system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1587, 3, '华为云', 'HUAWEI', 'system_sms_channel_code', 0, '', '', '', '1', '2024-07-22 22:23:46', '1', '2024-07-22 22:23:53', b'0'); | |
| 830 | 861 | COMMIT; |
| 831 | 862 | |
| 832 | 863 | -- ---------------------------- |
| ... | ... | @@ -846,7 +877,7 @@ CREATE TABLE `system_dict_type` ( |
| 846 | 877 | `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除', |
| 847 | 878 | `deleted_time` datetime NULL DEFAULT NULL COMMENT '删除时间', |
| 848 | 879 | PRIMARY KEY (`id`) USING BTREE |
| 849 | -) ENGINE = InnoDB AUTO_INCREMENT = 624 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '字典类型表'; | |
| 880 | +) ENGINE = InnoDB AUTO_INCREMENT = 629 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '字典类型表'; | |
| 850 | 881 | |
| 851 | 882 | -- ---------------------------- |
| 852 | 883 | -- Records of system_dict_type |
| ... | ... | @@ -939,6 +970,11 @@ INSERT INTO `system_dict_type` (`id`, `name`, `type`, `status`, `remark`, `creat |
| 939 | 970 | INSERT INTO `system_dict_type` (`id`, `name`, `type`, `status`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `deleted_time`) VALUES (621, 'AI 绘画状态', 'ai_image_status', 0, '', '1', '2024-06-26 20:51:23', '1', '2024-06-26 20:51:23', b'0', '1970-01-01 00:00:00'); |
| 940 | 971 | INSERT INTO `system_dict_type` (`id`, `name`, `type`, `status`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `deleted_time`) VALUES (622, 'AI 音乐状态', 'ai_music_status', 0, '', '1', '2024-06-27 22:45:07', '1', '2024-06-28 00:56:27', b'0', '1970-01-01 00:00:00'); |
| 941 | 972 | INSERT INTO `system_dict_type` (`id`, `name`, `type`, `status`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `deleted_time`) VALUES (623, 'AI 音乐生成模式', 'ai_generate_mode', 0, '', '1', '2024-06-27 22:46:21', '1', '2024-06-28 01:22:29', b'0', '1970-01-01 00:00:00'); |
| 973 | +INSERT INTO `system_dict_type` (`id`, `name`, `type`, `status`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `deleted_time`) VALUES (624, '写作语气', 'ai_write_tone', 0, '', '1', '2024-07-07 15:19:02', '1', '2024-07-07 15:19:02', b'0', '1970-01-01 00:00:00'); | |
| 974 | +INSERT INTO `system_dict_type` (`id`, `name`, `type`, `status`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `deleted_time`) VALUES (625, '写作语言', 'ai_write_language', 0, '', '1', '2024-07-07 15:18:52', '1', '2024-07-07 15:18:52', b'0', '1970-01-01 00:00:00'); | |
| 975 | +INSERT INTO `system_dict_type` (`id`, `name`, `type`, `status`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `deleted_time`) VALUES (626, '写作长度', 'ai_write_length', 0, '', '1', '2024-07-07 15:18:41', '1', '2024-07-07 15:18:41', b'0', '1970-01-01 00:00:00'); | |
| 976 | +INSERT INTO `system_dict_type` (`id`, `name`, `type`, `status`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `deleted_time`) VALUES (627, '写作格式', 'ai_write_format', 0, '', '1', '2024-07-07 15:14:34', '1', '2024-07-07 15:14:34', b'0', '1970-01-01 00:00:00'); | |
| 977 | +INSERT INTO `system_dict_type` (`id`, `name`, `type`, `status`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `deleted_time`) VALUES (628, 'AI 写作类型', 'ai_write_type', 0, '', '1', '2024-07-10 21:25:29', '1', '2024-07-10 21:25:29', b'0', '1970-01-01 00:00:00'); | |
| 942 | 978 | COMMIT; |
| 943 | 979 | |
| 944 | 980 | -- ---------------------------- |
| ... | ... | @@ -962,7 +998,7 @@ CREATE TABLE `system_login_log` ( |
| 962 | 998 | `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除', |
| 963 | 999 | `tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号', |
| 964 | 1000 | PRIMARY KEY (`id`) USING BTREE |
| 965 | -) ENGINE = InnoDB AUTO_INCREMENT = 3177 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '系统访问记录'; | |
| 1001 | +) ENGINE = InnoDB AUTO_INCREMENT = 3261 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '系统访问记录'; | |
| 966 | 1002 | |
| 967 | 1003 | -- ---------------------------- |
| 968 | 1004 | -- Records of system_login_log |
| ... | ... | @@ -995,7 +1031,7 @@ CREATE TABLE `system_mail_account` ( |
| 995 | 1031 | -- Records of system_mail_account |
| 996 | 1032 | -- ---------------------------- |
| 997 | 1033 | BEGIN; |
| 998 | -INSERT INTO `system_mail_account` (`id`, `mail`, `username`, `password`, `host`, `port`, `ssl_enable`, `starttls_enable`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1, '7684413@qq.com', '7684413@qq.com', '1234576', '127.0.0.1', 8080, b'0', b'0', '1', '2023-01-25 17:39:52', '1', '2024-04-24 09:13:56', b'0'); | |
| 1034 | +INSERT INTO `system_mail_account` (`id`, `mail`, `username`, `password`, `host`, `port`, `ssl_enable`, `starttls_enable`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1, '7684413@qq.com', '7684413@qq.com', '1234576', '127.0.0.1', 8080, b'0', b'0', '1', '2023-01-25 17:39:52', '1', '2024-07-27 22:39:12', b'0'); | |
| 999 | 1035 | INSERT INTO `system_mail_account` (`id`, `mail`, `username`, `password`, `host`, `port`, `ssl_enable`, `starttls_enable`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2, 'ydym_test@163.com', 'ydym_test@163.com', 'WBZTEINMIFVRYSOE', 'smtp.163.com', 465, b'1', b'0', '1', '2023-01-26 01:26:03', '1', '2023-04-12 22:39:38', b'0'); |
| 1000 | 1036 | INSERT INTO `system_mail_account` (`id`, `mail`, `username`, `password`, `host`, `port`, `ssl_enable`, `starttls_enable`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (3, '76854114@qq.com', '3335', '11234', 'yunai1.cn', 466, b'0', b'0', '1', '2023-01-27 15:06:38', '1', '2023-01-27 07:08:36', b'1'); |
| 1001 | 1037 | INSERT INTO `system_mail_account` (`id`, `mail`, `username`, `password`, `host`, `port`, `ssl_enable`, `starttls_enable`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (4, '7685413x@qq.com', '2', '3', '4', 5, b'1', b'0', '1', '2023-04-12 23:05:06', '1', '2023-04-12 15:05:11', b'1'); |
| ... | ... | @@ -1093,7 +1129,7 @@ CREATE TABLE `system_menu` ( |
| 1093 | 1129 | `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', |
| 1094 | 1130 | `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除', |
| 1095 | 1131 | PRIMARY KEY (`id`) USING BTREE |
| 1096 | -) ENGINE = InnoDB AUTO_INCREMENT = 2792 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '菜单权限表'; | |
| 1132 | +) ENGINE = InnoDB AUTO_INCREMENT = 2798 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '菜单权限表'; | |
| 1097 | 1133 | |
| 1098 | 1134 | -- ---------------------------- |
| 1099 | 1135 | -- Records of system_menu |
| ... | ... | @@ -1445,7 +1481,7 @@ INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_i |
| 1445 | 1481 | INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2156, '查询项目', 'report:go-view-project:query', 3, 0, 2153, '', '', '', NULL, 0, b'1', b'1', b'1', '1', '2023-02-07 19:25:53', '1', '2023-02-07 19:25:53', b'0'); |
| 1446 | 1482 | INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2157, '使用 SQL 查询数据', 'report:go-view-data:get-by-sql', 3, 3, 2153, '', '', '', NULL, 0, b'1', b'1', b'1', '1', '2023-02-07 19:26:15', '1', '2023-02-07 19:26:15', b'0'); |
| 1447 | 1483 | INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2158, '使用 HTTP 查询数据', 'report:go-view-data:get-by-http', 3, 4, 2153, '', '', '', NULL, 0, b'1', b'1', b'1', '1', '2023-02-07 19:26:35', '1', '2023-02-07 19:26:35', b'0'); |
| 1448 | -INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2159, 'Boot 开发文档', '', 1, 1, 0, 'https://doc.iocoder.cn/', 'ep:document', NULL, NULL, 0, b'1', b'1', b'1', '1', '2023-02-10 22:46:28', '1', '2023-12-02 21:32:20', b'0'); | |
| 1484 | +INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2159, 'Boot 开发文档', '', 1, 1, 0, 'https://doc.iocoder.cn/', 'ep:document', NULL, NULL, 0, b'1', b'1', b'1', '1', '2023-02-10 22:46:28', '1', '2024-07-28 11:36:48', b'0'); | |
| 1449 | 1485 | INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2160, 'Cloud 开发文档', '', 1, 2, 0, 'https://cloud.iocoder.cn', 'ep:document-copy', NULL, NULL, 0, b'1', b'1', b'1', '1', '2023-02-10 22:47:07', '1', '2023-12-02 21:32:29', b'0'); |
| 1450 | 1486 | INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2161, '接入示例', '', 1, 99, 1117, 'demo', 'fa-solid:dragon', 'pay/demo/index', NULL, 0, b'1', b'1', b'1', '', '2023-02-11 14:21:42', '1', '2024-01-18 23:50:00', b'0'); |
| 1451 | 1487 | INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2162, '商品导出', 'product:spu:export', 3, 5, 2014, '', '', '', NULL, 0, b'1', b'1', b'1', '', '2022-07-30 14:22:58', '', '2022-07-30 14:22:58', b'0'); |
| ... | ... | @@ -1921,6 +1957,12 @@ INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_i |
| 1921 | 1957 | INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2789, '音乐查询', 'ai:music:query', 3, 1, 2788, '', '', '', NULL, 0, b'1', b'1', b'1', '', '2024-06-27 15:03:33', '', '2024-06-27 15:03:33', b'0'); |
| 1922 | 1958 | INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2790, '音乐更新', 'ai:music:update', 3, 3, 2788, '', '', '', NULL, 0, b'1', b'1', b'1', '', '2024-06-27 15:03:33', '', '2024-06-27 15:03:33', b'0'); |
| 1923 | 1959 | INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2791, '音乐删除', 'ai:music:delete', 3, 4, 2788, '', '', '', NULL, 0, b'1', b'1', b'1', '', '2024-06-27 15:03:33', '', '2024-06-27 15:03:33', b'0'); |
| 1960 | +INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2792, 'AI 写作', '', 2, 3, 2758, 'write', 'fa-solid:book-reader', 'ai/write/index/index.vue', 'AiWrite', 0, b'1', b'1', b'1', '1', '2024-07-08 09:26:44', '1', '2024-07-16 13:03:06', b'0'); | |
| 1961 | +INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2793, '写作管理', '', 2, 13, 2760, 'write', 'fa:bookmark-o', 'ai/write/manager/index.vue', 'AiWriteManager', 0, b'1', b'1', b'1', '', '2024-07-10 13:24:34', '1', '2024-07-10 21:31:59', b'0'); | |
| 1962 | +INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2794, 'AI 写作查询', 'ai:write:query', 3, 1, 2793, '', '', '', NULL, 0, b'1', b'1', b'1', '', '2024-07-10 13:24:34', '', '2024-07-10 13:24:34', b'0'); | |
| 1963 | +INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2795, 'AI 写作删除', 'ai:write:delete', 3, 4, 2793, '', '', '', NULL, 0, b'1', b'1', b'1', '', '2024-07-10 13:24:34', '', '2024-07-10 13:24:34', b'0'); | |
| 1964 | +INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2796, 'AI 音乐', '', 2, 4, 2758, 'music', 'fa:music', 'ai/music/index/index.vue', 'AiWrite', 0, b'1', b'1', b'1', '1', '2024-07-17 09:21:12', '1', '2024-07-17 09:36:12', b'0'); | |
| 1965 | +INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2797, '客服中心', '', 2, 100, 2362, 'kefu', 'fa-solid:user-alt', 'mall/promotion/kefu/index', 'KeFu', 0, b'1', b'1', b'1', '1', '2024-07-17 23:49:05', '1', '2024-07-17 23:49:16', b'0'); | |
| 1924 | 1966 | COMMIT; |
| 1925 | 1967 | |
| 1926 | 1968 | -- ---------------------------- |
| ... | ... | @@ -2042,7 +2084,7 @@ CREATE TABLE `system_oauth2_access_token` ( |
| 2042 | 2084 | PRIMARY KEY (`id`) USING BTREE, |
| 2043 | 2085 | INDEX `idx_access_token`(`access_token` ASC) USING BTREE, |
| 2044 | 2086 | INDEX `idx_refresh_token`(`refresh_token` ASC) USING BTREE |
| 2045 | -) ENGINE = InnoDB AUTO_INCREMENT = 7699 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'OAuth2 访问令牌'; | |
| 2087 | +) ENGINE = InnoDB AUTO_INCREMENT = 8784 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'OAuth2 访问令牌'; | |
| 2046 | 2088 | |
| 2047 | 2089 | -- ---------------------------- |
| 2048 | 2090 | -- Records of system_oauth2_access_token |
| ... | ... | @@ -2164,7 +2206,7 @@ CREATE TABLE `system_oauth2_refresh_token` ( |
| 2164 | 2206 | `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除', |
| 2165 | 2207 | `tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号', |
| 2166 | 2208 | PRIMARY KEY (`id`) USING BTREE |
| 2167 | -) ENGINE = InnoDB AUTO_INCREMENT = 1539 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'OAuth2 刷新令牌'; | |
| 2209 | +) ENGINE = InnoDB AUTO_INCREMENT = 1598 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'OAuth2 刷新令牌'; | |
| 2168 | 2210 | |
| 2169 | 2211 | -- ---------------------------- |
| 2170 | 2212 | -- Records of system_oauth2_refresh_token |
| ... | ... | @@ -2197,7 +2239,7 @@ CREATE TABLE `system_operate_log` ( |
| 2197 | 2239 | `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除', |
| 2198 | 2240 | `tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号', |
| 2199 | 2241 | PRIMARY KEY (`id`) USING BTREE |
| 2200 | -) ENGINE = InnoDB AUTO_INCREMENT = 9038 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '操作日志记录 V2 版本'; | |
| 2242 | +) ENGINE = InnoDB AUTO_INCREMENT = 9053 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '操作日志记录 V2 版本'; | |
| 2201 | 2243 | |
| 2202 | 2244 | -- ---------------------------- |
| 2203 | 2245 | -- Records of system_operate_log |
| ... | ... | @@ -2265,7 +2307,7 @@ BEGIN; |
| 2265 | 2307 | INSERT INTO `system_role` (`id`, `name`, `code`, `sort`, `data_scope`, `data_scope_dept_ids`, `status`, `type`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (1, '超级管理员', 'super_admin', 1, 1, '', 0, 1, '超级管理员', 'admin', '2021-01-05 17:03:48', '', '2022-02-22 05:08:21', b'0', 1); |
| 2266 | 2308 | INSERT INTO `system_role` (`id`, `name`, `code`, `sort`, `data_scope`, `data_scope_dept_ids`, `status`, `type`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (2, '普通角色', 'common', 2, 2, '', 0, 1, '普通角色', 'admin', '2021-01-05 17:03:48', '', '2022-02-22 05:08:20', b'0', 1); |
| 2267 | 2309 | INSERT INTO `system_role` (`id`, `name`, `code`, `sort`, `data_scope`, `data_scope_dept_ids`, `status`, `type`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (3, 'CRM 管理员', 'crm_admin', 2, 1, '', 0, 1, 'CRM 专属角色', '1', '2024-02-24 10:51:13', '1', '2024-02-24 02:51:32', b'0', 1); |
| 2268 | -INSERT INTO `system_role` (`id`, `name`, `code`, `sort`, `data_scope`, `data_scope_dept_ids`, `status`, `type`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (101, '测试账号', 'test', 0, 1, '[]', 0, 2, '我想测试', '', '2021-01-06 13:49:35', '1', '2024-03-24 22:22:45', b'0', 1); | |
| 2310 | +INSERT INTO `system_role` (`id`, `name`, `code`, `sort`, `data_scope`, `data_scope_dept_ids`, `status`, `type`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (101, '测试账号', 'test', 0, 2, '[105,106,107]', 0, 2, '', '', '2021-01-06 13:49:35', '1', '2024-07-27 23:30:47', b'0', 1); | |
| 2269 | 2311 | INSERT INTO `system_role` (`id`, `name`, `code`, `sort`, `data_scope`, `data_scope_dept_ids`, `status`, `type`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (109, '租户管理员', 'tenant_admin', 0, 1, '', 0, 1, '系统自动生成', '1', '2022-02-22 00:56:14', '1', '2022-02-22 00:56:14', b'0', 121); |
| 2270 | 2312 | INSERT INTO `system_role` (`id`, `name`, `code`, `sort`, `data_scope`, `data_scope_dept_ids`, `status`, `type`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (111, '租户管理员', 'tenant_admin', 0, 1, '', 0, 1, '系统自动生成', '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', b'0', 122); |
| 2271 | 2313 | COMMIT; |
| ... | ... | @@ -2285,7 +2327,7 @@ CREATE TABLE `system_role_menu` ( |
| 2285 | 2327 | `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除', |
| 2286 | 2328 | `tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号', |
| 2287 | 2329 | PRIMARY KEY (`id`) USING BTREE |
| 2288 | -) ENGINE = InnoDB AUTO_INCREMENT = 5779 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '角色和菜单关联表'; | |
| 2330 | +) ENGINE = InnoDB AUTO_INCREMENT = 5793 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '角色和菜单关联表'; | |
| 2289 | 2331 | |
| 2290 | 2332 | -- ---------------------------- |
| 2291 | 2333 | -- Records of system_role_menu |
| ... | ... | @@ -2852,7 +2894,6 @@ INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_t |
| 2852 | 2894 | INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (3010, 109, 1067, '1', '2023-12-02 23:41:02', '1', '2023-12-02 23:41:02', b'0', 121); |
| 2853 | 2895 | INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (3011, 109, 1070, '1', '2023-12-02 23:41:02', '1', '2023-12-02 23:41:02', b'0', 121); |
| 2854 | 2896 | INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (3012, 109, 1075, '1', '2023-12-02 23:41:02', '1', '2023-12-02 23:41:02', b'0', 121); |
| 2855 | -INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (3013, 109, 1076, '1', '2023-12-02 23:41:02', '1', '2023-12-02 23:41:02', b'0', 121); | |
| 2856 | 2897 | INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (3014, 109, 1077, '1', '2023-12-02 23:41:02', '1', '2023-12-02 23:41:02', b'0', 121); |
| 2857 | 2898 | INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (3015, 109, 1078, '1', '2023-12-02 23:41:02', '1', '2023-12-02 23:41:02', b'0', 121); |
| 2858 | 2899 | INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (3016, 109, 1082, '1', '2023-12-02 23:41:02', '1', '2023-12-02 23:41:02', b'0', 121); |
| ... | ... | @@ -2928,7 +2969,6 @@ INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_t |
| 2928 | 2969 | INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (3086, 111, 1067, '1', '2023-12-02 23:41:02', '1', '2023-12-02 23:41:02', b'0', 122); |
| 2929 | 2970 | INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (3087, 111, 1070, '1', '2023-12-02 23:41:02', '1', '2023-12-02 23:41:02', b'0', 122); |
| 2930 | 2971 | INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (3088, 111, 1075, '1', '2023-12-02 23:41:02', '1', '2023-12-02 23:41:02', b'0', 122); |
| 2931 | -INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (3089, 111, 1076, '1', '2023-12-02 23:41:02', '1', '2023-12-02 23:41:02', b'0', 122); | |
| 2932 | 2972 | INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (3090, 111, 1077, '1', '2023-12-02 23:41:02', '1', '2023-12-02 23:41:02', b'0', 122); |
| 2933 | 2973 | INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (3091, 111, 1078, '1', '2023-12-02 23:41:02', '1', '2023-12-02 23:41:02', b'0', 122); |
| 2934 | 2974 | INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (3092, 111, 1082, '1', '2023-12-02 23:41:02', '1', '2023-12-02 23:41:02', b'0', 122); |
| ... | ... | @@ -3114,6 +3154,20 @@ INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_t |
| 3114 | 3154 | INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (4280, 111, 1222, '1', '2024-03-30 17:53:18', '1', '2024-03-30 17:53:18', b'0', 122); |
| 3115 | 3155 | INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (5777, 101, 2739, '1', '2024-04-30 09:38:37', '1', '2024-04-30 09:38:37', b'0', 1); |
| 3116 | 3156 | INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (5778, 101, 2740, '1', '2024-04-30 09:38:37', '1', '2024-04-30 09:38:37', b'0', 1); |
| 3157 | +INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (5779, 2, 2739, '1', '2024-07-07 20:39:38', '1', '2024-07-07 20:39:38', b'0', 1); | |
| 3158 | +INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (5780, 2, 2740, '1', '2024-07-07 20:39:38', '1', '2024-07-07 20:39:38', b'0', 1); | |
| 3159 | +INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (5781, 2, 2758, '1', '2024-07-07 20:39:38', '1', '2024-07-07 20:39:38', b'0', 1); | |
| 3160 | +INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (5782, 2, 2759, '1', '2024-07-07 20:39:38', '1', '2024-07-07 20:39:38', b'0', 1); | |
| 3161 | +INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (5783, 2, 2362, '1', '2024-07-07 20:39:38', '1', '2024-07-07 20:39:38', b'0', 1); | |
| 3162 | +INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (5784, 2, 2387, '1', '2024-07-07 20:39:38', '1', '2024-07-07 20:39:38', b'0', 1); | |
| 3163 | +INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (5785, 2, 2030, '1', '2024-07-07 20:39:38', '1', '2024-07-07 20:39:38', b'0', 1); | |
| 3164 | +INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (5786, 101, 2758, '1', '2024-07-07 20:39:55', '1', '2024-07-07 20:39:55', b'0', 1); | |
| 3165 | +INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (5787, 101, 2759, '1', '2024-07-07 20:39:55', '1', '2024-07-07 20:39:55', b'0', 1); | |
| 3166 | +INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (5788, 101, 2783, '1', '2024-07-07 20:39:55', '1', '2024-07-07 20:39:55', b'0', 1); | |
| 3167 | +INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (5789, 109, 2739, '1', '2024-07-13 22:37:24', '1', '2024-07-13 22:37:24', b'0', 121); | |
| 3168 | +INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (5790, 109, 2740, '1', '2024-07-13 22:37:24', '1', '2024-07-13 22:37:24', b'0', 121); | |
| 3169 | +INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (5791, 111, 2739, '1', '2024-07-13 22:37:24', '1', '2024-07-13 22:37:24', b'0', 122); | |
| 3170 | +INSERT INTO `system_role_menu` (`id`, `role_id`, `menu_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (5792, 111, 2740, '1', '2024-07-13 22:37:24', '1', '2024-07-13 22:37:24', b'0', 122); | |
| 3117 | 3171 | COMMIT; |
| 3118 | 3172 | |
| 3119 | 3173 | -- ---------------------------- |
| ... | ... | @@ -3168,7 +3222,7 @@ CREATE TABLE `system_sms_code` ( |
| 3168 | 3222 | `tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号', |
| 3169 | 3223 | PRIMARY KEY (`id`) USING BTREE, |
| 3170 | 3224 | INDEX `idx_mobile`(`mobile` ASC) USING BTREE COMMENT '手机号' |
| 3171 | -) ENGINE = InnoDB AUTO_INCREMENT = 615 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '手机验证码'; | |
| 3225 | +) ENGINE = InnoDB AUTO_INCREMENT = 628 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '手机验证码'; | |
| 3172 | 3226 | |
| 3173 | 3227 | -- ---------------------------- |
| 3174 | 3228 | -- Records of system_sms_code |
| ... | ... | @@ -3209,7 +3263,7 @@ CREATE TABLE `system_sms_log` ( |
| 3209 | 3263 | `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', |
| 3210 | 3264 | `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除', |
| 3211 | 3265 | PRIMARY KEY (`id`) USING BTREE |
| 3212 | -) ENGINE = InnoDB AUTO_INCREMENT = 972 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '短信日志'; | |
| 3266 | +) ENGINE = InnoDB AUTO_INCREMENT = 987 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '短信日志'; | |
| 3213 | 3267 | |
| 3214 | 3268 | -- ---------------------------- |
| 3215 | 3269 | -- Records of system_sms_log |
| ... | ... | @@ -3374,8 +3428,8 @@ CREATE TABLE `system_tenant` ( |
| 3374 | 3428 | -- ---------------------------- |
| 3375 | 3429 | BEGIN; |
| 3376 | 3430 | INSERT INTO `system_tenant` (`id`, `name`, `contact_user_id`, `contact_name`, `contact_mobile`, `status`, `website`, `package_id`, `expire_time`, `account_count`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1, '芋道源码', NULL, '芋艿', '17321315478', 0, 'www.iocoder.cn', 0, '2099-02-19 17:14:16', 9999, '1', '2021-01-05 17:03:47', '1', '2023-11-06 11:41:41', b'0'); |
| 3377 | -INSERT INTO `system_tenant` (`id`, `name`, `contact_user_id`, `contact_name`, `contact_mobile`, `status`, `website`, `package_id`, `expire_time`, `account_count`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (121, '小租户', 110, '小王2', '15601691300', 0, 'zsxq.iocoder.cn', 111, '2024-03-11 00:00:00', 20, '1', '2022-02-22 00:56:14', '1', '2024-05-04 22:37:03', b'0'); | |
| 3378 | -INSERT INTO `system_tenant` (`id`, `name`, `contact_user_id`, `contact_name`, `contact_mobile`, `status`, `website`, `package_id`, `expire_time`, `account_count`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (122, '测试租户', 113, '芋道', '15601691300', 0, 'test.iocoder.cn', 111, '2022-04-29 00:00:00', 50, '1', '2022-03-07 21:37:58', '1', '2024-05-04 22:36:09', b'0'); | |
| 3431 | +INSERT INTO `system_tenant` (`id`, `name`, `contact_user_id`, `contact_name`, `contact_mobile`, `status`, `website`, `package_id`, `expire_time`, `account_count`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (121, '小租户', 110, '小王2', '15601691300', 0, 'zsxq.iocoder.cn', 111, '2025-03-11 00:00:00', 20, '1', '2022-02-22 00:56:14', '1', '2024-07-20 22:21:53', b'0'); | |
| 3432 | +INSERT INTO `system_tenant` (`id`, `name`, `contact_user_id`, `contact_name`, `contact_mobile`, `status`, `website`, `package_id`, `expire_time`, `account_count`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (122, '测试租户', 113, '芋道', '15601691300', 0, 'test.iocoder.cn', 111, '2022-04-29 00:00:00', 50, '1', '2022-03-07 21:37:58', '1', '2024-07-20 15:51:18', b'0'); | |
| 3379 | 3433 | COMMIT; |
| 3380 | 3434 | |
| 3381 | 3435 | -- ---------------------------- |
| ... | ... | @@ -3400,7 +3454,7 @@ CREATE TABLE `system_tenant_package` ( |
| 3400 | 3454 | -- Records of system_tenant_package |
| 3401 | 3455 | -- ---------------------------- |
| 3402 | 3456 | BEGIN; |
| 3403 | -INSERT INTO `system_tenant_package` (`id`, `name`, `status`, `remark`, `menu_ids`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (111, '普通套餐', 0, '小功能', '[1,2,5,1031,1032,1033,1034,1035,1036,1037,1038,1039,1050,1051,1052,1053,1054,1056,1057,1058,1059,1060,1063,1064,1065,1066,1067,1070,1075,1076,1077,1078,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1118,1119,1120,100,101,102,103,106,107,110,111,112,113,1138,114,1139,115,1140,116,1141,1142,1143,2713,2714,2715,2716,2717,2718,2720,1185,2721,1186,2722,1187,2723,1188,2724,1189,2725,1190,2726,1191,2727,2472,1192,2728,1193,2729,1194,2730,1195,2731,1196,2732,1197,2733,2478,1198,2734,2479,1199,2735,2480,1200,2481,1201,2482,1202,2483,2484,2485,2486,2487,1207,2488,1208,2489,1209,2490,1210,2491,1211,2492,1212,2493,1213,2494,2495,1215,1216,2497,1217,1218,1219,1220,1221,1222,1224,1225,1226,1227,1228,1229,1237,1238,1239,1240,1241,1242,1243,2525,1255,1256,1001,1257,1002,1258,1003,1259,1004,1260,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020]', '1', '2022-02-22 00:54:00', '1', '2024-03-30 17:53:17', b'0'); | |
| 3457 | +INSERT INTO `system_tenant_package` (`id`, `name`, `status`, `remark`, `menu_ids`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (111, '普通套餐', 0, '小功能', '[1,2,5,1031,1032,1033,1034,1035,1036,1037,1038,1039,1050,1051,1052,1053,1054,1056,1057,1058,1059,1060,1063,1064,1065,1066,1067,1070,1075,1077,1078,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1118,1119,1120,100,101,102,103,106,107,110,111,112,113,1138,114,1139,115,1140,116,1141,1142,1143,2713,2714,2715,2716,2717,2718,2720,1185,2721,1186,2722,1187,2723,1188,2724,1189,2725,1190,2726,1191,2727,2472,1192,2728,1193,2729,1194,2730,1195,2731,1196,2732,1197,2733,2478,1198,2734,2479,1199,2735,2480,1200,2481,1201,2482,1202,2483,2739,2484,2740,2485,2486,2487,1207,2488,1208,2489,1209,2490,1210,2491,1211,2492,1212,2493,1213,2494,2495,1215,1216,2497,1217,1218,1219,1220,1221,1222,1224,1225,1226,1227,1228,1229,1237,1238,1239,1240,1241,1242,1243,2525,1255,1256,1001,1257,1002,1258,1003,1259,1004,1260,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020]', '1', '2022-02-22 00:54:00', '1', '2024-07-13 22:37:24', b'0'); | |
| 3404 | 3458 | COMMIT; |
| 3405 | 3459 | |
| 3406 | 3460 | -- ---------------------------- |
| ... | ... | @@ -3418,7 +3472,7 @@ CREATE TABLE `system_user_post` ( |
| 3418 | 3472 | `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除', |
| 3419 | 3473 | `tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号', |
| 3420 | 3474 | PRIMARY KEY (`id`) USING BTREE |
| 3421 | -) ENGINE = InnoDB AUTO_INCREMENT = 125 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户岗位表'; | |
| 3475 | +) ENGINE = InnoDB AUTO_INCREMENT = 126 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户岗位表'; | |
| 3422 | 3476 | |
| 3423 | 3477 | -- ---------------------------- |
| 3424 | 3478 | -- Records of system_user_post |
| ... | ... | @@ -3432,6 +3486,7 @@ INSERT INTO `system_user_post` (`id`, `user_id`, `post_id`, `creator`, `create_t |
| 3432 | 3486 | INSERT INTO `system_user_post` (`id`, `user_id`, `post_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (119, 114, 5, '1', '2024-03-24 20:45:51', '1', '2024-03-24 20:45:51', b'0', 1); |
| 3433 | 3487 | INSERT INTO `system_user_post` (`id`, `user_id`, `post_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (123, 115, 1, '1', '2024-04-04 09:37:14', '1', '2024-04-04 09:37:14', b'0', 1); |
| 3434 | 3488 | INSERT INTO `system_user_post` (`id`, `user_id`, `post_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (124, 115, 2, '1', '2024-04-04 09:37:14', '1', '2024-04-04 09:37:14', b'0', 1); |
| 3489 | +INSERT INTO `system_user_post` (`id`, `user_id`, `post_id`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (125, 1, 2, '1', '2024-07-13 22:31:39', '1', '2024-07-13 22:31:39', b'0', 1); | |
| 3435 | 3490 | COMMIT; |
| 3436 | 3491 | |
| 3437 | 3492 | -- ---------------------------- |
| ... | ... | @@ -3504,14 +3559,14 @@ CREATE TABLE `system_users` ( |
| 3504 | 3559 | -- Records of system_users |
| 3505 | 3560 | -- ---------------------------- |
| 3506 | 3561 | BEGIN; |
| 3507 | -INSERT INTO `system_users` (`id`, `username`, `password`, `nickname`, `remark`, `dept_id`, `post_ids`, `email`, `mobile`, `sex`, `avatar`, `status`, `login_ip`, `login_date`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (1, 'admin', '$2a$10$mRMIYLDtRHlf6.9ipiqH1.Z.bh/R9dO9d5iHiGYPigi6r5KOoR2Wm', '芋道源码', '管理员', 103, '[1]', 'aoteman@126.com', '18818260277', 2, 'http://test.yudao.iocoder.cn/96c787a2ce88bf6d0ce3cd8b6cf5314e80e7703cd41bf4af8cd2e2909dbd6b6d.png', 0, '0:0:0:0:0:0:0:1', '2024-07-07 17:15:51', 'admin', '2021-01-05 17:03:47', NULL, '2024-07-07 17:15:51', b'0', 1); | |
| 3562 | +INSERT INTO `system_users` (`id`, `username`, `password`, `nickname`, `remark`, `dept_id`, `post_ids`, `email`, `mobile`, `sex`, `avatar`, `status`, `login_ip`, `login_date`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (1, 'admin', '$2a$10$mRMIYLDtRHlf6.9ipiqH1.Z.bh/R9dO9d5iHiGYPigi6r5KOoR2Wm', '芋道源码', '管理员', 103, '[1,2]', 'aoteman@126.com', '18818260277', 2, 'http://test.yudao.iocoder.cn/bf2002b38950c904243be7c825d3f82e29f25a44526583c3fde2ebdff3a87f75.png', 0, '0:0:0:0:0:0:0:1', '2024-07-28 11:35:00', 'admin', '2021-01-05 17:03:47', NULL, '2024-07-28 11:35:00', b'0', 1); | |
| 3508 | 3563 | INSERT INTO `system_users` (`id`, `username`, `password`, `nickname`, `remark`, `dept_id`, `post_ids`, `email`, `mobile`, `sex`, `avatar`, `status`, `login_ip`, `login_date`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (100, 'yudao', '$2a$10$11U48RhyJ5pSBYWSn12AD./ld671.ycSzJHbyrtpeoMeYiw31eo8a', '芋道', '不要吓我', 104, '[1]', 'yudao@iocoder.cn', '15601691300', 1, '', 1, '127.0.0.1', '2022-07-09 23:03:33', '', '2021-01-07 09:07:17', NULL, '2022-07-09 23:03:33', b'0', 1); |
| 3509 | 3564 | INSERT INTO `system_users` (`id`, `username`, `password`, `nickname`, `remark`, `dept_id`, `post_ids`, `email`, `mobile`, `sex`, `avatar`, `status`, `login_ip`, `login_date`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (103, 'yuanma', '$2a$10$YMpimV4T6BtDhIaA8jSW.u8UTGBeGhc/qwXP4oxoMr4mOw9.qttt6', '源码', NULL, 106, NULL, 'yuanma@iocoder.cn', '15601701300', 0, '', 0, '0:0:0:0:0:0:0:1', '2024-03-18 21:09:04', '', '2021-01-13 23:50:35', NULL, '2024-03-18 21:09:04', b'0', 1); |
| 3510 | -INSERT INTO `system_users` (`id`, `username`, `password`, `nickname`, `remark`, `dept_id`, `post_ids`, `email`, `mobile`, `sex`, `avatar`, `status`, `login_ip`, `login_date`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (104, 'test', '$2a$04$KhExCYl7lx6eWWZYKsibKOZ8IBJRyuNuCcEOLQ11RYhJKgHmlSwK.', '测试号', NULL, 107, '[1,2]', '111@qq.com', '15601691200', 1, '', 0, '0:0:0:0:0:0:0:1', '2024-06-17 14:23:23', '', '2021-01-21 02:13:53', NULL, '2024-06-17 14:23:23', b'0', 1); | |
| 3565 | +INSERT INTO `system_users` (`id`, `username`, `password`, `nickname`, `remark`, `dept_id`, `post_ids`, `email`, `mobile`, `sex`, `avatar`, `status`, `login_ip`, `login_date`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (104, 'test', '$2a$04$jDFLttgfik0QqJKAbfhMa.2A9xXoZmAIxakdFJUzkX.MgBKT6ddo6', '测试号', NULL, 107, '[1,2]', '111@qq.com', '15601691200', 1, '', 0, '0:0:0:0:0:0:0:1', '2024-07-13 23:13:16', '', '2021-01-21 02:13:53', NULL, '2024-07-13 23:13:16', b'0', 1); | |
| 3511 | 3566 | INSERT INTO `system_users` (`id`, `username`, `password`, `nickname`, `remark`, `dept_id`, `post_ids`, `email`, `mobile`, `sex`, `avatar`, `status`, `login_ip`, `login_date`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (107, 'admin107', '$2a$10$dYOOBKMO93v/.ReCqzyFg.o67Tqk.bbc2bhrpyBGkIw9aypCtr2pm', '芋艿', NULL, NULL, NULL, '', '15601691300', 0, '', 0, '', NULL, '1', '2022-02-20 22:59:33', '1', '2022-02-27 08:26:51', b'0', 118); |
| 3512 | 3567 | INSERT INTO `system_users` (`id`, `username`, `password`, `nickname`, `remark`, `dept_id`, `post_ids`, `email`, `mobile`, `sex`, `avatar`, `status`, `login_ip`, `login_date`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (108, 'admin108', '$2a$10$y6mfvKoNYL1GXWak8nYwVOH.kCWqjactkzdoIDgiKl93WN3Ejg.Lu', '芋艿', NULL, NULL, NULL, '', '15601691300', 0, '', 0, '', NULL, '1', '2022-02-20 23:00:50', '1', '2022-02-27 08:26:53', b'0', 119); |
| 3513 | 3568 | INSERT INTO `system_users` (`id`, `username`, `password`, `nickname`, `remark`, `dept_id`, `post_ids`, `email`, `mobile`, `sex`, `avatar`, `status`, `login_ip`, `login_date`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (109, 'admin109', '$2a$10$JAqvH0tEc0I7dfDVBI7zyuB4E3j.uH6daIjV53.vUS6PknFkDJkuK', '芋艿', NULL, NULL, NULL, '', '15601691300', 0, '', 0, '', NULL, '1', '2022-02-20 23:11:50', '1', '2022-02-27 08:26:56', b'0', 120); |
| 3514 | -INSERT INTO `system_users` (`id`, `username`, `password`, `nickname`, `remark`, `dept_id`, `post_ids`, `email`, `mobile`, `sex`, `avatar`, `status`, `login_ip`, `login_date`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (110, 'admin110', '$2a$10$mRMIYLDtRHlf6.9ipiqH1.Z.bh/R9dO9d5iHiGYPigi6r5KOoR2Wm', '小王', NULL, NULL, NULL, '', '15601691300', 0, '', 0, '127.0.0.1', '2022-09-25 22:47:33', '1', '2022-02-22 00:56:14', NULL, '2022-09-25 22:47:33', b'0', 121); | |
| 3569 | +INSERT INTO `system_users` (`id`, `username`, `password`, `nickname`, `remark`, `dept_id`, `post_ids`, `email`, `mobile`, `sex`, `avatar`, `status`, `login_ip`, `login_date`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (110, 'admin110', '$2a$10$mRMIYLDtRHlf6.9ipiqH1.Z.bh/R9dO9d5iHiGYPigi6r5KOoR2Wm', '小王', NULL, NULL, NULL, '', '15601691300', 0, '', 0, '0:0:0:0:0:0:0:1', '2024-07-20 22:23:17', '1', '2022-02-22 00:56:14', NULL, '2024-07-20 22:23:17', b'0', 121); | |
| 3515 | 3570 | INSERT INTO `system_users` (`id`, `username`, `password`, `nickname`, `remark`, `dept_id`, `post_ids`, `email`, `mobile`, `sex`, `avatar`, `status`, `login_ip`, `login_date`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (111, 'test', '$2a$10$mRMIYLDtRHlf6.9ipiqH1.Z.bh/R9dO9d5iHiGYPigi6r5KOoR2Wm', '测试用户', NULL, NULL, '[]', '', '', 0, '', 0, '0:0:0:0:0:0:0:1', '2023-12-30 11:42:17', '110', '2022-02-23 13:14:33', NULL, '2023-12-30 11:42:17', b'0', 121); |
| 3516 | 3571 | INSERT INTO `system_users` (`id`, `username`, `password`, `nickname`, `remark`, `dept_id`, `post_ids`, `email`, `mobile`, `sex`, `avatar`, `status`, `login_ip`, `login_date`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (112, 'newobject', '$2a$04$dB0z8Q819fJWz0hbaLe6B.VfHCjYgWx6LFfET5lyz3JwcqlyCkQ4C', '新对象', NULL, 100, '[]', '', '15601691235', 1, '', 0, '0:0:0:0:0:0:0:1', '2024-03-16 23:11:38', '1', '2022-02-23 19:08:03', NULL, '2024-03-16 23:11:38', b'0', 1); |
| 3517 | 3572 | INSERT INTO `system_users` (`id`, `username`, `password`, `nickname`, `remark`, `dept_id`, `post_ids`, `email`, `mobile`, `sex`, `avatar`, `status`, `login_ip`, `login_date`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (113, 'aoteman', '$2a$10$0acJOIk2D25/oC87nyclE..0lzeu9DtQ/n3geP4fkun/zIVRhHJIO', '芋道', NULL, NULL, NULL, '', '15601691300', 0, '', 0, '127.0.0.1', '2022-03-19 18:38:51', '1', '2022-03-07 21:37:58', NULL, '2022-03-19 18:38:51', b'0', 122); | ... | ... |
yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/jackson/core/databind/NumberSerializer.java renamed to yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/util/json/databind/NumberSerializer.java
yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/jackson/core/databind/TimestampLocalDateTimeDeserializer.java renamed to yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/util/json/databind/TimestampLocalDateTimeDeserializer.java
yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/jackson/core/databind/TimestampLocalDateTimeSerializer.java renamed to yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/util/json/databind/TimestampLocalDateTimeSerializer.java
yudao-framework/yudao-spring-boot-starter-biz-data-permission/src/main/java/cn/iocoder/yudao/framework/datapermission/core/rule/dept/DeptDataPermissionRule.java
| ... | ... | @@ -157,7 +157,7 @@ public class DeptDataPermissionRule implements DataPermissionRule { |
| 157 | 157 | // 拼接条件 |
| 158 | 158 | return new InExpression(MyBatisUtils.buildColumn(tableName, tableAlias, columnName), |
| 159 | 159 | // Parenthesis 的目的,是提供 (1,2,3) 的 () 左右括号 |
| 160 | - new Parenthesis(new ExpressionList<>(CollectionUtils.convertList(deptIds, LongValue::new)))); | |
| 160 | + new Parenthesis(new ExpressionList<LongValue>(CollectionUtils.convertList(deptIds, LongValue::new)))); | |
| 161 | 161 | } |
| 162 | 162 | |
| 163 | 163 | private Expression buildUserExpression(String tableName, Alias tableAlias, Boolean self, Long userId) { | ... | ... |
yudao-framework/yudao-spring-boot-starter-biz-ip/src/main/java/cn/iocoder/yudao/framework/ip/core/Area.java
| 1 | 1 | package cn.iocoder.yudao.framework.ip.core; |
| 2 | 2 | |
| 3 | 3 | import cn.iocoder.yudao.framework.ip.core.enums.AreaTypeEnum; |
| 4 | +import com.fasterxml.jackson.annotation.JsonBackReference; | |
| 5 | +import com.fasterxml.jackson.annotation.JsonManagedReference; | |
| 4 | 6 | import lombok.AllArgsConstructor; |
| 5 | 7 | import lombok.Data; |
| 6 | 8 | import lombok.NoArgsConstructor; |
| 9 | +import lombok.ToString; | |
| 7 | 10 | |
| 8 | 11 | import java.util.List; |
| 9 | 12 | |
| ... | ... | @@ -17,6 +20,7 @@ import java.util.List; |
| 17 | 20 | @Data |
| 18 | 21 | @AllArgsConstructor |
| 19 | 22 | @NoArgsConstructor |
| 23 | +@ToString(exclude = {"parent"}) // 参见 https://gitee.com/yudaocode/yudao-cloud-mini/pulls/2 原因 | |
| 20 | 24 | public class Area { |
| 21 | 25 | |
| 22 | 26 | /** |
| ... | ... | @@ -46,10 +50,12 @@ public class Area { |
| 46 | 50 | /** |
| 47 | 51 | * 父节点 |
| 48 | 52 | */ |
| 53 | + @JsonManagedReference | |
| 49 | 54 | private Area parent; |
| 50 | 55 | /** |
| 51 | 56 | * 子节点 |
| 52 | 57 | */ |
| 58 | + @JsonBackReference | |
| 53 | 59 | private List<Area> children; |
| 54 | 60 | |
| 55 | 61 | } | ... | ... |
yudao-framework/yudao-spring-boot-starter-biz-tenant/src/main/java/cn/iocoder/yudao/framework/tenant/config/TenantProperties.java
| ... | ... | @@ -39,4 +39,11 @@ public class TenantProperties { |
| 39 | 39 | */ |
| 40 | 40 | private Set<String> ignoreTables = Collections.emptySet(); |
| 41 | 41 | |
| 42 | + /** | |
| 43 | + * 需要忽略多租户的 Spring Cache 缓存 | |
| 44 | + * | |
| 45 | + * 即默认所有缓存都开启多租户的功能,所以记得添加对应的 tenant_id 字段哟 | |
| 46 | + */ | |
| 47 | + private Set<String> ignoreCaches = Collections.emptySet(); | |
| 48 | + | |
| 42 | 49 | } | ... | ... |
yudao-framework/yudao-spring-boot-starter-biz-tenant/src/main/java/cn/iocoder/yudao/framework/tenant/config/YudaoTenantAutoConfiguration.java
| ... | ... | @@ -120,13 +120,14 @@ public class YudaoTenantAutoConfiguration { |
| 120 | 120 | @Primary // 引入租户时,tenantRedisCacheManager 为主 Bean |
| 121 | 121 | public RedisCacheManager tenantRedisCacheManager(RedisTemplate<String, Object> redisTemplate, |
| 122 | 122 | RedisCacheConfiguration redisCacheConfiguration, |
| 123 | - YudaoCacheProperties yudaoCacheProperties) { | |
| 123 | + YudaoCacheProperties yudaoCacheProperties, | |
| 124 | + TenantProperties tenantProperties) { | |
| 124 | 125 | // 创建 RedisCacheWriter 对象 |
| 125 | 126 | RedisConnectionFactory connectionFactory = Objects.requireNonNull(redisTemplate.getConnectionFactory()); |
| 126 | 127 | RedisCacheWriter cacheWriter = RedisCacheWriter.nonLockingRedisCacheWriter(connectionFactory, |
| 127 | 128 | BatchStrategies.scan(yudaoCacheProperties.getRedisScanBatchSize())); |
| 128 | 129 | // 创建 TenantRedisCacheManager 对象 |
| 129 | - return new TenantRedisCacheManager(cacheWriter, redisCacheConfiguration); | |
| 130 | + return new TenantRedisCacheManager(cacheWriter, redisCacheConfiguration, tenantProperties.getIgnoreCaches()); | |
| 130 | 131 | } |
| 131 | 132 | |
| 132 | 133 | } | ... | ... |
yudao-framework/yudao-spring-boot-starter-biz-tenant/src/main/java/cn/iocoder/yudao/framework/tenant/core/redis/TenantRedisCacheManager.java
| 1 | 1 | package cn.iocoder.yudao.framework.tenant.core.redis; |
| 2 | 2 | |
| 3 | +import cn.hutool.core.collection.CollUtil; | |
| 3 | 4 | import cn.iocoder.yudao.framework.redis.core.TimeoutRedisCacheManager; |
| 4 | 5 | import cn.iocoder.yudao.framework.tenant.core.context.TenantContextHolder; |
| 5 | 6 | import lombok.extern.slf4j.Slf4j; |
| ... | ... | @@ -8,6 +9,8 @@ import org.springframework.data.redis.cache.RedisCacheConfiguration; |
| 8 | 9 | import org.springframework.data.redis.cache.RedisCacheManager; |
| 9 | 10 | import org.springframework.data.redis.cache.RedisCacheWriter; |
| 10 | 11 | |
| 12 | +import java.util.Set; | |
| 13 | + | |
| 11 | 14 | /** |
| 12 | 15 | * 多租户的 {@link RedisCacheManager} 实现类 |
| 13 | 16 | * |
| ... | ... | @@ -18,16 +21,21 @@ import org.springframework.data.redis.cache.RedisCacheWriter; |
| 18 | 21 | @Slf4j |
| 19 | 22 | public class TenantRedisCacheManager extends TimeoutRedisCacheManager { |
| 20 | 23 | |
| 24 | + private final Set<String> ignoreCaches; | |
| 25 | + | |
| 21 | 26 | public TenantRedisCacheManager(RedisCacheWriter cacheWriter, |
| 22 | - RedisCacheConfiguration defaultCacheConfiguration) { | |
| 27 | + RedisCacheConfiguration defaultCacheConfiguration, | |
| 28 | + Set<String> ignoreCaches) { | |
| 23 | 29 | super(cacheWriter, defaultCacheConfiguration); |
| 30 | + this.ignoreCaches = ignoreCaches; | |
| 24 | 31 | } |
| 25 | 32 | |
| 26 | 33 | @Override |
| 27 | 34 | public Cache getCache(String name) { |
| 28 | 35 | // 如果开启多租户,则 name 拼接租户后缀 |
| 29 | 36 | if (!TenantContextHolder.isIgnore() |
| 30 | - && TenantContextHolder.getTenantId() != null) { | |
| 37 | + && TenantContextHolder.getTenantId() != null | |
| 38 | + && !CollUtil.contains(ignoreCaches, name)) { | |
| 31 | 39 | name = name + ":" + TenantContextHolder.getTenantId(); |
| 32 | 40 | } |
| 33 | 41 | ... | ... |
yudao-framework/yudao-spring-boot-starter-excel/src/main/java/cn/iocoder/yudao/framework/excel/core/handler/SelectSheetWriteHandler.java
| ... | ... | @@ -2,7 +2,6 @@ package cn.iocoder.yudao.framework.excel.core.handler; |
| 2 | 2 | |
| 3 | 3 | import cn.hutool.core.collection.CollUtil; |
| 4 | 4 | import cn.hutool.core.lang.Assert; |
| 5 | -import cn.hutool.core.map.MapUtil; | |
| 6 | 5 | import cn.hutool.core.util.ObjectUtil; |
| 7 | 6 | import cn.hutool.core.util.StrUtil; |
| 8 | 7 | import cn.hutool.extra.spring.SpringUtil; |
| ... | ... | @@ -55,12 +54,6 @@ public class SelectSheetWriteHandler implements SheetWriteHandler { |
| 55 | 54 | private final Map<Integer, List<String>> selectMap = new HashMap<>(); |
| 56 | 55 | |
| 57 | 56 | public SelectSheetWriteHandler(Class<?> head) { |
| 58 | - // 加载下拉数据获取接口 | |
| 59 | - Map<String, ExcelColumnSelectFunction> beansMap = SpringUtil.getBeanFactory().getBeansOfType(ExcelColumnSelectFunction.class); | |
| 60 | - if (MapUtil.isEmpty(beansMap)) { | |
| 61 | - return; | |
| 62 | - } | |
| 63 | - | |
| 64 | 57 | // 解析下拉数据 |
| 65 | 58 | int colIndex = 0; |
| 66 | 59 | for (Field field : head.getDeclaredFields()) { | ... | ... |
yudao-framework/yudao-spring-boot-starter-mybatis/src/main/java/cn/iocoder/yudao/framework/mybatis/core/mapper/BaseMapperX.java
| ... | ... | @@ -56,7 +56,7 @@ public interface BaseMapperX<T> extends MPJBaseMapper<T> { |
| 56 | 56 | |
| 57 | 57 | default <D> PageResult<D> selectJoinPage(PageParam pageParam, Class<D> clazz, MPJLambdaWrapper<T> lambdaWrapper) { |
| 58 | 58 | // 特殊:不分页,直接查询全部 |
| 59 | - if (PageParam.PAGE_SIZE_NONE.equals(pageParam.getPageNo())) { | |
| 59 | + if (PageParam.PAGE_SIZE_NONE.equals(pageParam.getPageSize())) { | |
| 60 | 60 | List<D> list = selectJoinList(clazz, lambdaWrapper); |
| 61 | 61 | return new PageResult<>(list, (long) list.size()); |
| 62 | 62 | } | ... | ... |
yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/core/LoginUser.java
| ... | ... | @@ -5,6 +5,7 @@ import cn.iocoder.yudao.framework.common.enums.UserTypeEnum; |
| 5 | 5 | import com.fasterxml.jackson.annotation.JsonIgnore; |
| 6 | 6 | import lombok.Data; |
| 7 | 7 | |
| 8 | +import java.time.LocalDateTime; | |
| 8 | 9 | import java.util.HashMap; |
| 9 | 10 | import java.util.List; |
| 10 | 11 | import java.util.Map; |
| ... | ... | @@ -42,6 +43,10 @@ public class LoginUser { |
| 42 | 43 | * 授权范围 |
| 43 | 44 | */ |
| 44 | 45 | private List<String> scopes; |
| 46 | + /** | |
| 47 | + * 过期时间 | |
| 48 | + */ | |
| 49 | + private LocalDateTime expiresTime; | |
| 45 | 50 | |
| 46 | 51 | // ========== 上下文 ========== |
| 47 | 52 | /** | ... | ... |
yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/core/filter/TokenAuthenticationFilter.java
| ... | ... | @@ -84,7 +84,8 @@ public class TokenAuthenticationFilter extends OncePerRequestFilter { |
| 84 | 84 | // 构建登录用户 |
| 85 | 85 | return new LoginUser().setId(accessToken.getUserId()).setUserType(accessToken.getUserType()) |
| 86 | 86 | .setInfo(accessToken.getUserInfo()) // 额外的用户信息 |
| 87 | - .setTenantId(accessToken.getTenantId()).setScopes(accessToken.getScopes()); | |
| 87 | + .setTenantId(accessToken.getTenantId()).setScopes(accessToken.getScopes()) | |
| 88 | + .setExpiresTime(accessToken.getExpiresTime()); | |
| 88 | 89 | } catch (ServiceException serviceException) { |
| 89 | 90 | // 校验 Token 不通过时,考虑到一些接口是无需登录的,所以直接返回 null 即可 |
| 90 | 91 | return null; | ... | ... |
yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/core/service/SecurityFrameworkServiceImpl.java
| ... | ... | @@ -27,7 +27,11 @@ public class SecurityFrameworkServiceImpl implements SecurityFrameworkService { |
| 27 | 27 | |
| 28 | 28 | @Override |
| 29 | 29 | public boolean hasAnyPermissions(String... permissions) { |
| 30 | - return permissionApi.hasAnyPermissions(getLoginUserId(), permissions); | |
| 30 | + Long userId = getLoginUserId(); | |
| 31 | + if (userId == null) { | |
| 32 | + return false; | |
| 33 | + } | |
| 34 | + return permissionApi.hasAnyPermissions(userId, permissions); | |
| 31 | 35 | } |
| 32 | 36 | |
| 33 | 37 | @Override |
| ... | ... | @@ -37,7 +41,11 @@ public class SecurityFrameworkServiceImpl implements SecurityFrameworkService { |
| 37 | 41 | |
| 38 | 42 | @Override |
| 39 | 43 | public boolean hasAnyRoles(String... roles) { |
| 40 | - return permissionApi.hasAnyRoles(getLoginUserId(), roles); | |
| 44 | + Long userId = getLoginUserId(); | |
| 45 | + if (userId == null) { | |
| 46 | + return false; | |
| 47 | + } | |
| 48 | + return permissionApi.hasAnyRoles(userId, roles); | |
| 41 | 49 | } |
| 42 | 50 | |
| 43 | 51 | @Override | ... | ... |
yudao-framework/yudao-spring-boot-starter-test/src/main/java/cn/iocoder/yudao/framework/test/core/util/RandomUtils.java
| ... | ... | @@ -103,6 +103,10 @@ public class RandomUtils { |
| 103 | 103 | return randomString() + "@qq.com"; |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | + public static String randomMobile() { | |
| 107 | + return "13800138" + RandomUtil.randomNumbers(3); | |
| 108 | + } | |
| 109 | + | |
| 106 | 110 | public static String randomURL() { |
| 107 | 111 | return "https://www.iocoder.cn/" + randomString(); |
| 108 | 112 | } | ... | ... |
yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/apilog/core/filter/ApiAccessLogFilter.java
| ... | ... | @@ -181,7 +181,7 @@ public class ApiAccessLogFilter extends ApiRequestFilter { |
| 181 | 181 | // ========== 请求和响应的脱敏逻辑,移除类似 password、token 等敏感字段 ========== |
| 182 | 182 | |
| 183 | 183 | private static String sanitizeMap(Map<String, ?> map, String[] sanitizeKeys) { |
| 184 | - if (CollUtil.isNotEmpty(map)) { | |
| 184 | + if (CollUtil.isEmpty(map)) { | |
| 185 | 185 | return null; |
| 186 | 186 | } |
| 187 | 187 | if (sanitizeKeys != null) { | ... | ... |
yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/apilog/core/interceptor/ApiAccessLogInterceptor.java
| 1 | 1 | package cn.iocoder.yudao.framework.apilog.core.interceptor; |
| 2 | 2 | |
| 3 | 3 | import cn.hutool.core.collection.CollUtil; |
| 4 | +import cn.hutool.core.io.FileUtil; | |
| 5 | +import cn.hutool.core.io.resource.ResourceUtil; | |
| 4 | 6 | import cn.hutool.core.util.StrUtil; |
| 5 | 7 | import cn.iocoder.yudao.framework.common.util.servlet.ServletUtils; |
| 6 | 8 | import cn.iocoder.yudao.framework.common.util.spring.SpringUtils; |
| ... | ... | @@ -11,7 +13,11 @@ import org.springframework.util.StopWatch; |
| 11 | 13 | import org.springframework.web.method.HandlerMethod; |
| 12 | 14 | import org.springframework.web.servlet.HandlerInterceptor; |
| 13 | 15 | |
| 16 | +import java.lang.reflect.Method; | |
| 17 | +import java.util.List; | |
| 14 | 18 | import java.util.Map; |
| 19 | +import java.util.Optional; | |
| 20 | +import java.util.stream.IntStream; | |
| 15 | 21 | |
| 16 | 22 | /** |
| 17 | 23 | * API 访问日志 Interceptor |
| ... | ... | @@ -49,6 +55,8 @@ public class ApiAccessLogInterceptor implements HandlerInterceptor { |
| 49 | 55 | StopWatch stopWatch = new StopWatch(); |
| 50 | 56 | stopWatch.start(); |
| 51 | 57 | request.setAttribute(ATTRIBUTE_STOP_WATCH, stopWatch); |
| 58 | + // 打印 Controller 路径 | |
| 59 | + printHandlerMethodPosition(handlerMethod); | |
| 52 | 60 | } |
| 53 | 61 | return true; |
| 54 | 62 | } |
| ... | ... | @@ -64,4 +72,32 @@ public class ApiAccessLogInterceptor implements HandlerInterceptor { |
| 64 | 72 | } |
| 65 | 73 | } |
| 66 | 74 | |
| 75 | + /** | |
| 76 | + * 打印 Controller 方法路径 | |
| 77 | + */ | |
| 78 | + private void printHandlerMethodPosition(HandlerMethod handlerMethod) { | |
| 79 | + if (handlerMethod == null) { | |
| 80 | + return; | |
| 81 | + } | |
| 82 | + Method method = handlerMethod.getMethod(); | |
| 83 | + Class<?> clazz = method.getDeclaringClass(); | |
| 84 | + try { | |
| 85 | + // 获取 method 的 lineNumber | |
| 86 | + List<String> clazzContents = FileUtil.readUtf8Lines( | |
| 87 | + ResourceUtil.getResource(null, clazz).getPath().replace("/target/classes/", "/src/main/java/") | |
| 88 | + + clazz.getSimpleName() + ".java"); | |
| 89 | + Optional<Integer> lineNumber = IntStream.range(0, clazzContents.size()) | |
| 90 | + .filter(i -> clazzContents.get(i).contains(" " + method.getName() + "(")) // 简单匹配,不考虑方法重名 | |
| 91 | + .mapToObj(i -> i + 1) // 行号从 1 开始 | |
| 92 | + .findFirst(); | |
| 93 | + if (!lineNumber.isPresent()) { | |
| 94 | + return; | |
| 95 | + } | |
| 96 | + // 打印结果 | |
| 97 | + System.out.printf("\tController 方法路径:%s(%s.java:%d)\n", clazz.getName(), clazz.getSimpleName(), lineNumber.get()); | |
| 98 | + } catch (Exception ignore) { | |
| 99 | + // 忽略异常。原因:仅仅打印,非重要逻辑 | |
| 100 | + } | |
| 101 | + } | |
| 102 | + | |
| 67 | 103 | } | ... | ... |
yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/apilog/core/service/ApiAccessLogFrameworkServiceImpl.java
| ... | ... | @@ -3,6 +3,7 @@ package cn.iocoder.yudao.framework.apilog.core.service; |
| 3 | 3 | import cn.iocoder.yudao.module.infra.api.logger.ApiAccessLogApi; |
| 4 | 4 | import cn.iocoder.yudao.module.infra.api.logger.dto.ApiAccessLogCreateReqDTO; |
| 5 | 5 | import lombok.RequiredArgsConstructor; |
| 6 | +import lombok.extern.slf4j.Slf4j; | |
| 6 | 7 | import org.springframework.scheduling.annotation.Async; |
| 7 | 8 | |
| 8 | 9 | /** |
| ... | ... | @@ -13,6 +14,7 @@ import org.springframework.scheduling.annotation.Async; |
| 13 | 14 | * @author 芋道源码 |
| 14 | 15 | */ |
| 15 | 16 | @RequiredArgsConstructor |
| 17 | +@Slf4j | |
| 16 | 18 | public class ApiAccessLogFrameworkServiceImpl implements ApiAccessLogFrameworkService { |
| 17 | 19 | |
| 18 | 20 | private final ApiAccessLogApi apiAccessLogApi; |
| ... | ... | @@ -20,7 +22,12 @@ public class ApiAccessLogFrameworkServiceImpl implements ApiAccessLogFrameworkSe |
| 20 | 22 | @Override |
| 21 | 23 | @Async |
| 22 | 24 | public void createApiAccessLog(ApiAccessLogCreateReqDTO reqDTO) { |
| 23 | - apiAccessLogApi.createApiAccessLog(reqDTO); | |
| 25 | + try { | |
| 26 | + apiAccessLogApi.createApiAccessLog(reqDTO); | |
| 27 | + } catch (Throwable ex) { | |
| 28 | + // 由于 @Async 异步调用,这里打印下日志,更容易跟进 | |
| 29 | + log.error("[createApiAccessLog][url({}) log({}) 发生异常]", reqDTO.getRequestUrl(), reqDTO, ex); | |
| 30 | + } | |
| 24 | 31 | } |
| 25 | 32 | |
| 26 | 33 | } | ... | ... |
yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/apilog/core/service/ApiErrorLogFrameworkServiceImpl.java
| ... | ... | @@ -3,6 +3,7 @@ package cn.iocoder.yudao.framework.apilog.core.service; |
| 3 | 3 | import cn.iocoder.yudao.module.infra.api.logger.ApiErrorLogApi; |
| 4 | 4 | import cn.iocoder.yudao.module.infra.api.logger.dto.ApiErrorLogCreateReqDTO; |
| 5 | 5 | import lombok.RequiredArgsConstructor; |
| 6 | +import lombok.extern.slf4j.Slf4j; | |
| 6 | 7 | import org.springframework.scheduling.annotation.Async; |
| 7 | 8 | |
| 8 | 9 | /** |
| ... | ... | @@ -13,6 +14,7 @@ import org.springframework.scheduling.annotation.Async; |
| 13 | 14 | * @author 芋道源码 |
| 14 | 15 | */ |
| 15 | 16 | @RequiredArgsConstructor |
| 17 | +@Slf4j | |
| 16 | 18 | public class ApiErrorLogFrameworkServiceImpl implements ApiErrorLogFrameworkService { |
| 17 | 19 | |
| 18 | 20 | private final ApiErrorLogApi apiErrorLogApi; |
| ... | ... | @@ -20,7 +22,12 @@ public class ApiErrorLogFrameworkServiceImpl implements ApiErrorLogFrameworkServ |
| 20 | 22 | @Override |
| 21 | 23 | @Async |
| 22 | 24 | public void createApiErrorLog(ApiErrorLogCreateReqDTO reqDTO) { |
| 23 | - apiErrorLogApi.createApiErrorLog(reqDTO); | |
| 25 | + try { | |
| 26 | + apiErrorLogApi.createApiErrorLog(reqDTO); | |
| 27 | + } catch (Throwable ex) { | |
| 28 | + // 由于 @Async 异步调用,这里打印下日志,更容易跟进 | |
| 29 | + log.error("[createApiErrorLog][url({}) log({}) 发生异常]", reqDTO.getRequestUrl(), reqDTO, ex); | |
| 30 | + } | |
| 24 | 31 | } |
| 25 | 32 | |
| 26 | 33 | } | ... | ... |
yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/jackson/config/YudaoJacksonAutoConfiguration.java
| ... | ... | @@ -2,9 +2,9 @@ package cn.iocoder.yudao.framework.jackson.config; |
| 2 | 2 | |
| 3 | 3 | import cn.hutool.core.collection.CollUtil; |
| 4 | 4 | import cn.iocoder.yudao.framework.common.util.json.JsonUtils; |
| 5 | -import cn.iocoder.yudao.framework.jackson.core.databind.NumberSerializer; | |
| 6 | -import cn.iocoder.yudao.framework.jackson.core.databind.TimestampLocalDateTimeDeserializer; | |
| 7 | -import cn.iocoder.yudao.framework.jackson.core.databind.TimestampLocalDateTimeSerializer; | |
| 5 | +import cn.iocoder.yudao.framework.common.util.json.databind.NumberSerializer; | |
| 6 | +import cn.iocoder.yudao.framework.common.util.json.databind.TimestampLocalDateTimeDeserializer; | |
| 7 | +import cn.iocoder.yudao.framework.common.util.json.databind.TimestampLocalDateTimeSerializer; | |
| 8 | 8 | import com.fasterxml.jackson.databind.ObjectMapper; |
| 9 | 9 | import com.fasterxml.jackson.databind.module.SimpleModule; |
| 10 | 10 | import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer; | ... | ... |
yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/web/core/handler/GlobalExceptionHandler.java
| ... | ... | @@ -2,9 +2,11 @@ package cn.iocoder.yudao.framework.web.core.handler; |
| 2 | 2 | |
| 3 | 3 | import cn.hutool.core.exceptions.ExceptionUtil; |
| 4 | 4 | import cn.hutool.core.map.MapUtil; |
| 5 | +import cn.hutool.core.util.ObjUtil; | |
| 5 | 6 | import cn.hutool.core.util.StrUtil; |
| 6 | 7 | import cn.iocoder.yudao.framework.apilog.core.service.ApiErrorLogFrameworkService; |
| 7 | 8 | import cn.iocoder.yudao.framework.common.exception.ServiceException; |
| 9 | +import cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil; | |
| 8 | 10 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
| 9 | 11 | import cn.iocoder.yudao.framework.common.util.collection.SetUtils; |
| 10 | 12 | import cn.iocoder.yudao.framework.common.util.json.JsonUtils; |
| ... | ... | @@ -30,6 +32,7 @@ import org.springframework.web.bind.annotation.ExceptionHandler; |
| 30 | 32 | import org.springframework.web.bind.annotation.RestControllerAdvice; |
| 31 | 33 | import org.springframework.web.method.annotation.MethodArgumentTypeMismatchException; |
| 32 | 34 | import org.springframework.web.servlet.NoHandlerFoundException; |
| 35 | +import org.springframework.web.servlet.resource.NoResourceFoundException; | |
| 33 | 36 | |
| 34 | 37 | import java.time.LocalDateTime; |
| 35 | 38 | import java.util.Map; |
| ... | ... | @@ -87,6 +90,9 @@ public class GlobalExceptionHandler { |
| 87 | 90 | if (ex instanceof NoHandlerFoundException) { |
| 88 | 91 | return noHandlerFoundExceptionHandler(request, (NoHandlerFoundException) ex); |
| 89 | 92 | } |
| 93 | + if (ex instanceof NoResourceFoundException) { | |
| 94 | + return noResourceFoundExceptionHandler(request, (NoResourceFoundException) ex); | |
| 95 | + } | |
| 90 | 96 | if (ex instanceof HttpRequestMethodNotSupportedException) { |
| 91 | 97 | return httpRequestMethodNotSupportedExceptionHandler((HttpRequestMethodNotSupportedException) ex); |
| 92 | 98 | } |
| ... | ... | @@ -177,6 +183,15 @@ public class GlobalExceptionHandler { |
| 177 | 183 | } |
| 178 | 184 | |
| 179 | 185 | /** |
| 186 | + * 处理 SpringMVC 请求地址不存在 | |
| 187 | + */ | |
| 188 | + @ExceptionHandler(NoResourceFoundException.class) | |
| 189 | + private CommonResult<?> noResourceFoundExceptionHandler(HttpServletRequest req, NoResourceFoundException ex) { | |
| 190 | + log.warn("[noResourceFoundExceptionHandler]", ex); | |
| 191 | + return CommonResult.error(NOT_FOUND.getCode(), String.format("请求地址不存在:%s", ex.getResourcePath())); | |
| 192 | + } | |
| 193 | + | |
| 194 | + /** | |
| 180 | 195 | * 处理 SpringMVC 请求方法不正确 |
| 181 | 196 | * |
| 182 | 197 | * 例如说,A 接口的方法为 GET 方式,结果请求方法为 POST 方式,导致不匹配 |
| ... | ... | @@ -206,9 +221,20 @@ public class GlobalExceptionHandler { |
| 206 | 221 | */ |
| 207 | 222 | @ExceptionHandler(value = ServiceException.class) |
| 208 | 223 | public CommonResult<?> serviceExceptionHandler(ServiceException ex) { |
| 224 | + // 不包含的时候,才进行打印,避免 ex 堆栈过多 | |
| 209 | 225 | if (!IGNORE_ERROR_MESSAGES.contains(ex.getMessage())) { |
| 210 | - // 不包含的时候,才进行打印,避免 ex 堆栈过多 | |
| 211 | - log.info("[serviceExceptionHandler]", ex); | |
| 226 | + // 即使打印,也只打印第一层 StackTraceElement,并且使用 warn 在控制台输出,更容易看到 | |
| 227 | + try { | |
| 228 | + StackTraceElement[] stackTraces = ex.getStackTrace(); | |
| 229 | + for (StackTraceElement stackTrace : stackTraces) { | |
| 230 | + if (ObjUtil.notEqual(stackTrace.getClassName(), ServiceExceptionUtil.class.getName())) { | |
| 231 | + log.warn("[serviceExceptionHandler]\n\t{}", stackTrace); | |
| 232 | + break; | |
| 233 | + } | |
| 234 | + } | |
| 235 | + } catch (Exception ignored) { | |
| 236 | + // 忽略日志,避免影响主流程 | |
| 237 | + } | |
| 212 | 238 | } |
| 213 | 239 | return CommonResult.error(ex.getCode(), ex.getMessage()); |
| 214 | 240 | } |
| ... | ... | @@ -328,6 +354,12 @@ public class GlobalExceptionHandler { |
| 328 | 354 | return CommonResult.error(NOT_IMPLEMENTED.getCode(), |
| 329 | 355 | "[支付模块 yudao-module-pay - 表结构未导入][参考 https://doc.iocoder.cn/pay/build/ 开启]"); |
| 330 | 356 | } |
| 357 | + // 8. AI 大模型 | |
| 358 | + if (message.contains("ai_")) { | |
| 359 | + log.error("[AI 大模型 yudao-module-ai - 表结构未导入][参考 https://doc.iocoder.cn/ai/build/ 开启]"); | |
| 360 | + return CommonResult.error(NOT_IMPLEMENTED.getCode(), | |
| 361 | + "[AI 大模型 yudao-module-ai - 表结构未导入][参考 https://doc.iocoder.cn/ai/build/ 开启]"); | |
| 362 | + } | |
| 331 | 363 | return null; |
| 332 | 364 | } |
| 333 | 365 | ... | ... |
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/image/AiImageController.java
| ... | ... | @@ -3,7 +3,6 @@ package cn.iocoder.yudao.module.ai.controller.admin.image; |
| 3 | 3 | import cn.hutool.core.util.ObjUtil; |
| 4 | 4 | import cn.iocoder.yudao.framework.ai.core.model.midjourney.api.MidjourneyApi; |
| 5 | 5 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
| 6 | -import cn.iocoder.yudao.framework.common.pojo.PageParam; | |
| 7 | 6 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 8 | 7 | import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
| 9 | 8 | import cn.iocoder.yudao.module.ai.controller.admin.image.vo.AiImageDrawReqVO; |
| ... | ... | @@ -41,7 +40,7 @@ public class AiImageController { |
| 41 | 40 | |
| 42 | 41 | @GetMapping("/my-page") |
| 43 | 42 | @Operation(summary = "获取【我的】绘图分页") |
| 44 | - public CommonResult<PageResult<AiImageRespVO>> getImagePageMy(@Validated PageParam pageReqVO) { | |
| 43 | + public CommonResult<PageResult<AiImageRespVO>> getImagePageMy(@Validated AiImagePageReqVO pageReqVO) { | |
| 45 | 44 | PageResult<AiImageDO> pageResult = imageService.getImagePageMy(getLoginUserId(), pageReqVO); |
| 46 | 45 | return success(BeanUtils.toBean(pageResult, AiImageRespVO.class)); |
| 47 | 46 | } | ... | ... |
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/image/vo/AiImagePageReqVO.java
| ... | ... | @@ -3,8 +3,6 @@ package cn.iocoder.yudao.module.ai.controller.admin.image.vo; |
| 3 | 3 | import cn.iocoder.yudao.framework.common.pojo.PageParam; |
| 4 | 4 | import io.swagger.v3.oas.annotations.media.Schema; |
| 5 | 5 | import lombok.Data; |
| 6 | -import lombok.EqualsAndHashCode; | |
| 7 | -import lombok.ToString; | |
| 8 | 6 | import org.springframework.format.annotation.DateTimeFormat; |
| 9 | 7 | |
| 10 | 8 | import java.time.LocalDateTime; |
| ... | ... | @@ -21,6 +19,9 @@ public class AiImagePageReqVO extends PageParam { |
| 21 | 19 | @Schema(description = "平台", example = "OpenAI") |
| 22 | 20 | private String platform; |
| 23 | 21 | |
| 22 | + @Schema(description = "提示词", example = "1") | |
| 23 | + private String prompt; | |
| 24 | + | |
| 24 | 25 | @Schema(description = "绘画状态", example = "1") |
| 25 | 26 | private Integer status; |
| 26 | 27 | ... | ... |
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/dal/mysql/image/AiImageMapper.java
| 1 | 1 | package cn.iocoder.yudao.module.ai.dal.mysql.image; |
| 2 | 2 | |
| 3 | -import cn.iocoder.yudao.framework.common.pojo.PageParam; | |
| 4 | 3 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 5 | 4 | import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; |
| 6 | 5 | import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; |
| ... | ... | @@ -19,7 +18,7 @@ import java.util.List; |
| 19 | 18 | public interface AiImageMapper extends BaseMapperX<AiImageDO> { |
| 20 | 19 | |
| 21 | 20 | default AiImageDO selectByTaskId(String taskId) { |
| 22 | - return this.selectOne(AiImageDO::getTaskId, taskId); | |
| 21 | + return selectOne(AiImageDO::getTaskId, taskId); | |
| 23 | 22 | } |
| 24 | 23 | |
| 25 | 24 | default PageResult<AiImageDO> selectPage(AiImagePageReqVO reqVO) { |
| ... | ... | @@ -32,9 +31,13 @@ public interface AiImageMapper extends BaseMapperX<AiImageDO> { |
| 32 | 31 | .orderByDesc(AiImageDO::getId)); |
| 33 | 32 | } |
| 34 | 33 | |
| 35 | - default PageResult<AiImageDO> selectPage(Long userId, PageParam pageReqVO) { | |
| 36 | - return selectPage(pageReqVO, new LambdaQueryWrapperX<AiImageDO>() | |
| 37 | - .eq(AiImageDO::getUserId, userId) | |
| 34 | + default PageResult<AiImageDO> selectPageMy(Long userId, AiImagePageReqVO reqVO) { | |
| 35 | + return selectPage(reqVO, new LambdaQueryWrapperX<AiImageDO>() | |
| 36 | + .likeIfPresent(AiImageDO::getPrompt, reqVO.getPrompt()) | |
| 37 | + // 情况一:公开 | |
| 38 | + .eq(Boolean.TRUE.equals(reqVO.getPublicStatus()), AiImageDO::getPublicStatus, reqVO.getPublicStatus()) | |
| 39 | + // 情况二:私有 | |
| 40 | + .eq(Boolean.FALSE.equals(reqVO.getPublicStatus()), AiImageDO::getUserId, userId) | |
| 38 | 41 | .orderByDesc(AiImageDO::getId)); |
| 39 | 42 | } |
| 40 | 43 | ... | ... |
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/service/image/AiImageService.java
| 1 | 1 | package cn.iocoder.yudao.module.ai.service.image; |
| 2 | 2 | |
| 3 | 3 | import cn.iocoder.yudao.framework.ai.core.model.midjourney.api.MidjourneyApi; |
| 4 | -import cn.iocoder.yudao.framework.common.pojo.PageParam; | |
| 5 | 4 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 6 | 5 | import cn.iocoder.yudao.module.ai.controller.admin.image.vo.AiImageDrawReqVO; |
| 7 | 6 | import cn.iocoder.yudao.module.ai.controller.admin.image.vo.AiImagePageReqVO; |
| ... | ... | @@ -27,7 +26,7 @@ public interface AiImageService { |
| 27 | 26 | * @param pageReqVO 分页条件 |
| 28 | 27 | * @return 绘图分页 |
| 29 | 28 | */ |
| 30 | - PageResult<AiImageDO> getImagePageMy(Long userId, PageParam pageReqVO); | |
| 29 | + PageResult<AiImageDO> getImagePageMy(Long userId, AiImagePageReqVO pageReqVO); | |
| 31 | 30 | |
| 32 | 31 | /** |
| 33 | 32 | * 获得绘图记录 | ... | ... |
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/service/image/AiImageServiceImpl.java
| ... | ... | @@ -10,7 +10,6 @@ import cn.hutool.extra.spring.SpringUtil; |
| 10 | 10 | import cn.hutool.http.HttpUtil; |
| 11 | 11 | import cn.iocoder.yudao.framework.ai.core.enums.AiPlatformEnum; |
| 12 | 12 | import cn.iocoder.yudao.framework.ai.core.model.midjourney.api.MidjourneyApi; |
| 13 | -import cn.iocoder.yudao.framework.common.pojo.PageParam; | |
| 14 | 13 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 15 | 14 | import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
| 16 | 15 | import cn.iocoder.yudao.module.ai.controller.admin.image.vo.AiImageDrawReqVO; |
| ... | ... | @@ -67,8 +66,8 @@ public class AiImageServiceImpl implements AiImageService { |
| 67 | 66 | private AiApiKeyService apiKeyService; |
| 68 | 67 | |
| 69 | 68 | @Override |
| 70 | - public PageResult<AiImageDO> getImagePageMy(Long userId, PageParam pageReqVO) { | |
| 71 | - return imageMapper.selectPage(userId, pageReqVO); | |
| 69 | + public PageResult<AiImageDO> getImagePageMy(Long userId, AiImagePageReqVO pageReqVO) { | |
| 70 | + return imageMapper.selectPageMy(userId, pageReqVO); | |
| 72 | 71 | } |
| 73 | 72 | |
| 74 | 73 | @Override | ... | ... |
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/service/mindmap/AiMindMapServiceImpl.java
| ... | ... | @@ -124,7 +124,7 @@ public class AiMindMapServiceImpl implements AiMindMapService { |
| 124 | 124 | if (role != null && role.getModelId() != null) { |
| 125 | 125 | model = chatModalService.getChatModel(role.getModelId()); |
| 126 | 126 | } |
| 127 | - if (model != null) { | |
| 127 | + if (model == null) { | |
| 128 | 128 | model = chatModalService.getRequiredDefaultChatModel(); |
| 129 | 129 | } |
| 130 | 130 | Assert.notNull(model, "[AI] 获取不到模型"); | ... | ... |
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/service/write/AiWriteServiceImpl.java
| ... | ... | @@ -114,7 +114,7 @@ public class AiWriteServiceImpl implements AiWriteService { |
| 114 | 114 | if (Objects.nonNull(writeRole) && Objects.nonNull(writeRole.getModelId())) { |
| 115 | 115 | model = chatModalService.getChatModel(writeRole.getModelId()); |
| 116 | 116 | } |
| 117 | - if (Objects.isNull(model)) { | |
| 117 | + if (model == null) { | |
| 118 | 118 | model = chatModalService.getRequiredDefaultChatModel(); |
| 119 | 119 | } |
| 120 | 120 | Assert.notNull(model, "[AI] 获取不到模型"); | ... | ... |
yudao-module-ai/yudao-spring-boot-starter-ai/pom.xml
| ... | ... | @@ -58,6 +58,12 @@ |
| 58 | 58 | <groupId>com.alibaba</groupId> |
| 59 | 59 | <artifactId>dashscope-sdk-java</artifactId> |
| 60 | 60 | <version>2.14.0</version> |
| 61 | + <exclusions> | |
| 62 | + <exclusion> | |
| 63 | + <groupId>org.slf4j</groupId> | |
| 64 | + <artifactId>slf4j-simple</artifactId> | |
| 65 | + </exclusion> | |
| 66 | + </exclusions> | |
| 61 | 67 | </dependency> |
| 62 | 68 | |
| 63 | 69 | <!-- Test 测试相关 --> | ... | ... |
yudao-module-bpm/yudao-module-bpm-api/src/main/java/cn/iocoder/yudao/module/bpm/enums/DictTypeConstants.java
yudao-module-bpm/yudao-module-bpm-api/src/main/java/cn/iocoder/yudao/module/bpm/enums/task/BpmProcessInstanceStatusEnum.java
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/BpmProcessDefinitionController.java
| ... | ... | @@ -77,7 +77,6 @@ public class BpmProcessDefinitionController { |
| 77 | 77 | @GetMapping ("/list") |
| 78 | 78 | @Operation(summary = "获得流程定义列表") |
| 79 | 79 | @Parameter(name = "suspensionState", description = "挂起状态", required = true, example = "1") // 参见 Flowable SuspensionState 枚举 |
| 80 | - @PreAuthorize("@ss.hasPermission('bpm:process-definition:query')") | |
| 81 | 80 | public CommonResult<List<BpmProcessDefinitionRespVO>> getProcessDefinitionList( |
| 82 | 81 | @RequestParam("suspensionState") Integer suspensionState) { |
| 83 | 82 | List<ProcessDefinition> list = processDefinitionService.getProcessDefinitionListBySuspensionState(suspensionState); |
| ... | ... | @@ -96,7 +95,6 @@ public class BpmProcessDefinitionController { |
| 96 | 95 | @Operation(summary = "获得流程定义") |
| 97 | 96 | @Parameter(name = "id", description = "流程编号", required = true, example = "1024") |
| 98 | 97 | @Parameter(name = "key", description = "流程定义标识", required = true, example = "1024") |
| 99 | - @PreAuthorize("@ss.hasPermission('bpm:process-definition:query')") | |
| 100 | 98 | public CommonResult<BpmProcessDefinitionRespVO> getProcessDefinition( |
| 101 | 99 | @RequestParam(value = "id", required = false) String id, |
| 102 | 100 | @RequestParam(value = "key", required = false) String key) { |
| ... | ... | @@ -105,10 +103,11 @@ public class BpmProcessDefinitionController { |
| 105 | 103 | if (processDefinition == null) { |
| 106 | 104 | return success(null); |
| 107 | 105 | } |
| 106 | + BpmProcessDefinitionInfoDO processDefinitionInfo = processDefinitionService.getProcessDefinitionInfo(processDefinition.getId()); | |
| 108 | 107 | BpmnModel bpmnModel = processDefinitionService.getProcessDefinitionBpmnModel(processDefinition.getId()); |
| 109 | 108 | List<UserTask> userTaskList = BpmTaskCandidateStartUserSelectStrategy.getStartUserSelectUserTaskList(bpmnModel); |
| 110 | 109 | return success(BpmProcessDefinitionConvert.INSTANCE.buildProcessDefinition( |
| 111 | - processDefinition, null, null, null, null, bpmnModel, userTaskList)); | |
| 110 | + processDefinition, null, processDefinitionInfo, null, null, bpmnModel, userTaskList)); | |
| 112 | 111 | } |
| 113 | 112 | |
| 114 | 113 | } | ... | ... |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/task/BpmProcessInstanceController.java
| ... | ... | @@ -135,7 +135,7 @@ public class BpmProcessInstanceController { |
| 135 | 135 | processDefinitionService.getProcessDefinitionBpmnModel(processInstance.getProcessDefinitionId())); |
| 136 | 136 | AdminUserRespDTO startUser = adminUserApi.getUser(NumberUtils.parseLong(processInstance.getStartUserId())); |
| 137 | 137 | DeptRespDTO dept = null; |
| 138 | - if (startUser != null) { | |
| 138 | + if (startUser != null && startUser.getDeptId() != null) { | |
| 139 | 139 | dept = deptApi.getDept(startUser.getDeptId()); |
| 140 | 140 | } |
| 141 | 141 | return success(BpmProcessInstanceConvert.INSTANCE.buildProcessInstance(processInstance, | ... | ... |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/convert/task/BpmProcessInstanceConvert.java
| ... | ... | @@ -47,7 +47,8 @@ public interface BpmProcessInstanceConvert { |
| 47 | 47 | BpmProcessInstanceRespVO respVO = vpPageResult.getList().get(i); |
| 48 | 48 | respVO.setStatus(FlowableUtils.getProcessInstanceStatus(pageResult.getList().get(i))); |
| 49 | 49 | MapUtils.findAndThen(processDefinitionMap, respVO.getProcessDefinitionId(), |
| 50 | - processDefinition -> respVO.setCategory(processDefinition.getCategory())); | |
| 50 | + processDefinition -> respVO.setCategory(processDefinition.getCategory()) | |
| 51 | + .setProcessDefinition(BeanUtils.toBean(processDefinition, BpmProcessDefinitionRespVO.class))); | |
| 51 | 52 | MapUtils.findAndThen(categoryMap, respVO.getCategory(), category -> respVO.setCategoryName(category.getName())); |
| 52 | 53 | respVO.setTasks(BeanUtils.toBean(taskMap.get(respVO.getId()), BpmProcessInstanceRespVO.Task.class)); |
| 53 | 54 | // user | ... | ... |
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/controller/admin/receivable/vo/receivable/CrmReceivableRespVO.java
| 1 | 1 | package cn.iocoder.yudao.module.crm.controller.admin.receivable.vo.receivable; |
| 2 | 2 | |
| 3 | +import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat; | |
| 4 | +import cn.iocoder.yudao.framework.excel.core.convert.DictConvert; | |
| 3 | 5 | import cn.iocoder.yudao.module.crm.controller.admin.contract.vo.contract.CrmContractRespVO; |
| 6 | +import cn.iocoder.yudao.module.crm.enums.DictTypeConstants; | |
| 4 | 7 | import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
| 5 | 8 | import com.alibaba.excel.annotation.ExcelProperty; |
| 6 | 9 | import io.swagger.v3.oas.annotations.media.Schema; |
| ... | ... | @@ -27,7 +30,8 @@ public class CrmReceivableRespVO { |
| 27 | 30 | private Long planId; |
| 28 | 31 | |
| 29 | 32 | @Schema(description = "回款方式", example = "2") |
| 30 | - @ExcelProperty("回款方式") | |
| 33 | + @ExcelProperty(value = "回款方式", converter = DictConvert.class) | |
| 34 | + @DictFormat(DictTypeConstants.CRM_RECEIVABLE_RETURN_TYPE) | |
| 31 | 35 | private Integer returnType; |
| 32 | 36 | |
| 33 | 37 | @Schema(description = "回款金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "9000") |
| ... | ... | @@ -39,7 +43,6 @@ public class CrmReceivableRespVO { |
| 39 | 43 | private LocalDateTime returnTime; |
| 40 | 44 | |
| 41 | 45 | @Schema(description = "客户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
| 42 | - @ExcelProperty("客户编号") | |
| 43 | 46 | private Long customerId; |
| 44 | 47 | @Schema(description = "客户名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "test") |
| 45 | 48 | @ExcelProperty("客户名字") |
| ... | ... | @@ -49,11 +52,9 @@ public class CrmReceivableRespVO { |
| 49 | 52 | @ExcelProperty("合同编号") |
| 50 | 53 | private Long contractId; |
| 51 | 54 | @Schema(description = "合同信息") |
| 52 | - @ExcelProperty("合同信息") | |
| 53 | 55 | private CrmContractRespVO contract; |
| 54 | 56 | |
| 55 | 57 | @Schema(description = "负责人的用户编号", example = "25682") |
| 56 | - @ExcelProperty("负责人的用户编号") | |
| 57 | 58 | private Long ownerUserId; |
| 58 | 59 | @Schema(description = "负责人名字", example = "25682") |
| 59 | 60 | @ExcelProperty("负责人名字") |
| ... | ... | @@ -67,7 +68,8 @@ public class CrmReceivableRespVO { |
| 67 | 68 | private String processInstanceId; |
| 68 | 69 | |
| 69 | 70 | @Schema(description = "审批状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "0") |
| 70 | - @ExcelProperty("审批状态") | |
| 71 | + @ExcelProperty(value = "审批状态", converter = DictConvert.class) | |
| 72 | + @DictFormat(DictTypeConstants.CRM_AUDIT_STATUS) | |
| 71 | 73 | private Integer auditStatus; |
| 72 | 74 | |
| 73 | 75 | @Schema(description = "工作流编号", example = "备注") |
| ... | ... | @@ -83,7 +85,6 @@ public class CrmReceivableRespVO { |
| 83 | 85 | private LocalDateTime updateTime; |
| 84 | 86 | |
| 85 | 87 | @Schema(description = "创建人", example = "25682") |
| 86 | - @ExcelProperty("创建人") | |
| 87 | 88 | private String creator; |
| 88 | 89 | @Schema(description = "创建人名字", example = "test") |
| 89 | 90 | @ExcelProperty("创建人名字") | ... | ... |
yudao-module-erp/yudao-module-erp-biz/src/main/resources/mapper/statistics/ErpPurchaseStatisticsMapper.xml
| ... | ... | @@ -10,6 +10,7 @@ |
| 10 | 10 | <if test="endTime != null"> |
| 11 | 11 | AND in_time < #{endTime} |
| 12 | 12 | </if> |
| 13 | + AND tenant_id = ${@cn.iocoder.yudao.framework.tenant.core.context.TenantContextHolder@getRequiredTenantId()} | |
| 13 | 14 | AND deleted = 0) - |
| 14 | 15 | (SELECT IFNULL(SUM(total_price), 0) |
| 15 | 16 | FROM erp_purchase_return |
| ... | ... | @@ -17,6 +18,7 @@ |
| 17 | 18 | <if test="endTime != null"> |
| 18 | 19 | AND return_time < #{endTime} |
| 19 | 20 | </if> |
| 21 | + AND tenant_id = ${@cn.iocoder.yudao.framework.tenant.core.context.TenantContextHolder@getRequiredTenantId()} | |
| 20 | 22 | AND deleted = 0) |
| 21 | 23 | </select> |
| 22 | 24 | ... | ... |
yudao-module-erp/yudao-module-erp-biz/src/main/resources/mapper/statistics/ErpSaleStatisticsMapper.xml
| ... | ... | @@ -10,6 +10,7 @@ |
| 10 | 10 | <if test="endTime != null"> |
| 11 | 11 | AND out_time < #{endTime} |
| 12 | 12 | </if> |
| 13 | + AND tenant_id = ${@cn.iocoder.yudao.framework.tenant.core.context.TenantContextHolder@getRequiredTenantId()} | |
| 13 | 14 | AND deleted = 0) - |
| 14 | 15 | (SELECT IFNULL(SUM(total_price), 0) |
| 15 | 16 | FROM erp_sale_return |
| ... | ... | @@ -17,6 +18,7 @@ |
| 17 | 18 | <if test="endTime != null"> |
| 18 | 19 | AND return_time < #{endTime} |
| 19 | 20 | </if> |
| 21 | + AND tenant_id = ${@cn.iocoder.yudao.framework.tenant.core.context.TenantContextHolder@getRequiredTenantId()} | |
| 20 | 22 | AND deleted = 0) |
| 21 | 23 | </select> |
| 22 | 24 | ... | ... |
yudao-module-infra/yudao-module-infra-api/src/main/java/cn/iocoder/yudao/module/infra/api/config/ConfigApi.java
0 → 100644
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/api/config/ConfigApiImpl.java
0 → 100644
| 1 | +package cn.iocoder.yudao.module.infra.api.config; | |
| 2 | + | |
| 3 | +import cn.iocoder.yudao.module.infra.dal.dataobject.config.ConfigDO; | |
| 4 | +import cn.iocoder.yudao.module.infra.service.config.ConfigService; | |
| 5 | +import jakarta.annotation.Resource; | |
| 6 | +import org.springframework.stereotype.Service; | |
| 7 | +import org.springframework.validation.annotation.Validated; | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * 参数配置 API 实现类 | |
| 11 | + * | |
| 12 | + * @author 芋道源码 | |
| 13 | + */ | |
| 14 | +@Service | |
| 15 | +@Validated | |
| 16 | +public class ConfigApiImpl implements ConfigApi { | |
| 17 | + | |
| 18 | + @Resource | |
| 19 | + private ConfigService configService; | |
| 20 | + | |
| 21 | + @Override | |
| 22 | + public String getConfigValueByKey(String key) { | |
| 23 | + ConfigDO config = configService.getConfigByKey(key); | |
| 24 | + return config != null ? config.getValue() : null; | |
| 25 | + } | |
| 26 | + | |
| 27 | +} | ... | ... |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/config/ConfigController.java
| ... | ... | @@ -94,7 +94,7 @@ public class ConfigController { |
| 94 | 94 | @Operation(summary = "导出参数配置") |
| 95 | 95 | @PreAuthorize("@ss.hasPermission('infra:config:export')") |
| 96 | 96 | @ApiAccessLog(operateType = EXPORT) |
| 97 | - public void exportConfig(@Valid ConfigPageReqVO exportReqVO, | |
| 97 | + public void exportConfig(ConfigPageReqVO exportReqVO, | |
| 98 | 98 | HttpServletResponse response) throws IOException { |
| 99 | 99 | exportReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); |
| 100 | 100 | List<ConfigDO> list = configService.getConfigPage(exportReqVO).getList(); | ... | ... |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/framework/file/core/client/s3/S3FileClient.java
| ... | ... | @@ -37,6 +37,7 @@ public class S3FileClient extends AbstractFileClient<S3FileClientConfig> { |
| 37 | 37 | .region(buildRegion()) // Region |
| 38 | 38 | .credentials(config.getAccessKey(), config.getAccessSecret()) // 认证密钥 |
| 39 | 39 | .build(); |
| 40 | + enableVirtualStyleEndpoint(); | |
| 40 | 41 | } |
| 41 | 42 | |
| 42 | 43 | /** |
| ... | ... | @@ -86,6 +87,17 @@ public class S3FileClient extends AbstractFileClient<S3FileClientConfig> { |
| 86 | 87 | return null; |
| 87 | 88 | } |
| 88 | 89 | |
| 90 | + /** | |
| 91 | + * 开启 VirtualStyle 模式 | |
| 92 | + */ | |
| 93 | + private void enableVirtualStyleEndpoint() { | |
| 94 | + if (StrUtil.containsAll(config.getEndpoint(), | |
| 95 | + S3FileClientConfig.ENDPOINT_TENCENT, // 腾讯云 https://cloud.tencent.com/document/product/436/41284 | |
| 96 | + S3FileClientConfig.ENDPOINT_VOLCES)) { // 火山云 https://www.volcengine.com/docs/6349/1288493 | |
| 97 | + client.enableVirtualStyleEndpoint(); | |
| 98 | + } | |
| 99 | + } | |
| 100 | + | |
| 89 | 101 | @Override |
| 90 | 102 | public String upload(byte[] content, String path, String type) throws Exception { |
| 91 | 103 | // 执行上传 | ... | ... |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/framework/file/core/client/s3/S3FileClientConfig.java
| ... | ... | @@ -20,6 +20,7 @@ public class S3FileClientConfig implements FileClientConfig { |
| 20 | 20 | public static final String ENDPOINT_QINIU = "qiniucs.com"; |
| 21 | 21 | public static final String ENDPOINT_ALIYUN = "aliyuncs.com"; |
| 22 | 22 | public static final String ENDPOINT_TENCENT = "myqcloud.com"; |
| 23 | + public static final String ENDPOINT_VOLCES = "volces.com"; // 火山云(字节) | |
| 23 | 24 | |
| 24 | 25 | /** |
| 25 | 26 | * 节点地址 | ... | ... |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/service/config/ConfigService.java
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/service/logger/ApiAccessLogServiceImpl.java
| ... | ... | @@ -3,6 +3,8 @@ package cn.iocoder.yudao.module.infra.service.logger; |
| 3 | 3 | import cn.hutool.core.util.StrUtil; |
| 4 | 4 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 5 | 5 | import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
| 6 | +import cn.iocoder.yudao.framework.tenant.core.context.TenantContextHolder; | |
| 7 | +import cn.iocoder.yudao.framework.tenant.core.util.TenantUtils; | |
| 6 | 8 | import cn.iocoder.yudao.module.infra.api.logger.dto.ApiAccessLogCreateReqDTO; |
| 7 | 9 | import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apiaccesslog.ApiAccessLogPageReqVO; |
| 8 | 10 | import cn.iocoder.yudao.module.infra.dal.dataobject.logger.ApiAccessLogDO; |
| ... | ... | @@ -35,7 +37,12 @@ public class ApiAccessLogServiceImpl implements ApiAccessLogService { |
| 35 | 37 | ApiAccessLogDO apiAccessLog = BeanUtils.toBean(createDTO, ApiAccessLogDO.class); |
| 36 | 38 | apiAccessLog.setRequestParams(StrUtil.maxLength(apiAccessLog.getRequestParams(), REQUEST_PARAMS_MAX_LENGTH)); |
| 37 | 39 | apiAccessLog.setResultMsg(StrUtil.maxLength(apiAccessLog.getResultMsg(), RESULT_MSG_MAX_LENGTH)); |
| 38 | - apiAccessLogMapper.insert(apiAccessLog); | |
| 40 | + if (TenantContextHolder.getTenantId() != null) { | |
| 41 | + apiAccessLogMapper.insert(apiAccessLog); | |
| 42 | + } else { | |
| 43 | + // 极端情况下,上下文中没有租户时,此时忽略租户上下文,避免插入失败! | |
| 44 | + TenantUtils.executeIgnore(() -> apiAccessLogMapper.insert(apiAccessLog)); | |
| 45 | + } | |
| 39 | 46 | } |
| 40 | 47 | |
| 41 | 48 | @Override | ... | ... |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/service/logger/ApiErrorLogServiceImpl.java
| ... | ... | @@ -3,6 +3,8 @@ package cn.iocoder.yudao.module.infra.service.logger; |
| 3 | 3 | import cn.hutool.core.util.StrUtil; |
| 4 | 4 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 5 | 5 | import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
| 6 | +import cn.iocoder.yudao.framework.tenant.core.context.TenantContextHolder; | |
| 7 | +import cn.iocoder.yudao.framework.tenant.core.util.TenantUtils; | |
| 6 | 8 | import cn.iocoder.yudao.module.infra.api.logger.dto.ApiErrorLogCreateReqDTO; |
| 7 | 9 | import cn.iocoder.yudao.module.infra.controller.admin.logger.vo.apierrorlog.ApiErrorLogPageReqVO; |
| 8 | 10 | import cn.iocoder.yudao.module.infra.dal.dataobject.logger.ApiErrorLogDO; |
| ... | ... | @@ -25,9 +27,9 @@ import static cn.iocoder.yudao.module.infra.enums.ErrorCodeConstants.API_ERROR_L |
| 25 | 27 | * |
| 26 | 28 | * @author 芋道源码 |
| 27 | 29 | */ |
| 28 | -@Slf4j | |
| 29 | 30 | @Service |
| 30 | 31 | @Validated |
| 32 | +@Slf4j | |
| 31 | 33 | public class ApiErrorLogServiceImpl implements ApiErrorLogService { |
| 32 | 34 | |
| 33 | 35 | @Resource |
| ... | ... | @@ -38,7 +40,12 @@ public class ApiErrorLogServiceImpl implements ApiErrorLogService { |
| 38 | 40 | ApiErrorLogDO apiErrorLog = BeanUtils.toBean(createDTO, ApiErrorLogDO.class) |
| 39 | 41 | .setProcessStatus(ApiErrorLogProcessStatusEnum.INIT.getStatus()); |
| 40 | 42 | apiErrorLog.setRequestParams(StrUtil.maxLength(apiErrorLog.getRequestParams(), REQUEST_PARAMS_MAX_LENGTH)); |
| 41 | - apiErrorLogMapper.insert(apiErrorLog); | |
| 43 | + if (TenantContextHolder.getTenantId() != null) { | |
| 44 | + apiErrorLogMapper.insert(apiErrorLog); | |
| 45 | + } else { | |
| 46 | + // 极端情况下,上下文中没有租户时,此时忽略租户上下文,避免插入失败! | |
| 47 | + TenantUtils.executeIgnore(() -> apiErrorLogMapper.insert(apiErrorLog)); | |
| 48 | + } | |
| 42 | 49 | } |
| 43 | 50 | |
| 44 | 51 | @Override | ... | ... |
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/sql/h2.vm
| ... | ... | @@ -23,7 +23,7 @@ CREATE TABLE IF NOT EXISTS "${table.tableName.toLowerCase()}" ( |
| 23 | 23 | "${column.columnName}" ${dataType} DEFAULT '', |
| 24 | 24 | #elseif (${column.columnName} == 'deleted') |
| 25 | 25 | "deleted" bit NOT NULL DEFAULT FALSE, |
| 26 | - #elseif (${column.columnName} == 'tenantId') | |
| 26 | + #elseif (${column.columnName} == 'tenant_id') | |
| 27 | 27 | "tenant_id" bigint NOT NULL DEFAULT 0, |
| 28 | 28 | #else |
| 29 | 29 | "${column.columnName.toLowerCase()}" ${dataType}#if (${column.nullable} == false) NOT NULL#end, | ... | ... |
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue/views/index.vue.vm
| ... | ... | @@ -306,8 +306,8 @@ export default { |
| 306 | 306 | await this.#[[$modal]]#.confirm('是否确认导出所有${table.classComment}数据项?'); |
| 307 | 307 | try { |
| 308 | 308 | this.exportLoading = true; |
| 309 | - const res = await ${simpleClassName}Api.export${simpleClassName}Excel(this.queryParams); | |
| 310 | - this.#[[$]]#download.excel(res.data, '${table.classComment}.xls'); | |
| 309 | + const data = await ${simpleClassName}Api.export${simpleClassName}Excel(this.queryParams); | |
| 310 | + this.#[[$]]#download.excel(data, '${table.classComment}.xls'); | |
| 311 | 311 | } catch { |
| 312 | 312 | } finally { |
| 313 | 313 | this.exportLoading = false; | ... | ... |
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm
| ... | ... | @@ -74,7 +74,7 @@ |
| 74 | 74 | start-placeholder="开始日期" |
| 75 | 75 | end-placeholder="结束日期" |
| 76 | 76 | :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
| 77 | - class="!w-240px" | |
| 77 | + class="!w-220px" | |
| 78 | 78 | /> |
| 79 | 79 | </el-form-item> |
| 80 | 80 | #end |
| ... | ... | @@ -181,7 +181,7 @@ |
| 181 | 181 | #end |
| 182 | 182 | #end |
| 183 | 183 | #end |
| 184 | - <el-table-column label="操作" align="center"> | |
| 184 | + <el-table-column label="操作" align="center" min-width="120px"> | |
| 185 | 185 | <template #default="scope"> |
| 186 | 186 | <el-button |
| 187 | 187 | link | ... | ... |
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3_vben/views/index.vue.vm
| ... | ... | @@ -4,7 +4,8 @@ import { columns, searchFormSchema } from './${classNameVar}.data' |
| 4 | 4 | import { useI18n } from '@/hooks/web/useI18n' |
| 5 | 5 | import { useMessage } from '@/hooks/web/useMessage' |
| 6 | 6 | import { useModal } from '@/components/Modal' |
| 7 | -import { useTable } from '@/components/Table' | |
| 7 | +import { IconEnum } from '@/enums/appEnum' | |
| 8 | +import { BasicTable, TableAction, useTable } from '@/components/Table' | |
| 8 | 9 | import { delete${simpleClassName}, export${simpleClassName}, get${simpleClassName}Page } from '@/api/${table.moduleName}/${table.businessName}' |
| 9 | 10 | |
| 10 | 11 | defineOptions({ name: '${table.className}' }) | ... | ... |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/app/spu/AppProductSpuController.java
| ... | ... | @@ -112,7 +112,7 @@ public class AppProductSpuController { |
| 112 | 112 | productBrowseHistoryService.createBrowseHistory(getLoginUserId(), id); |
| 113 | 113 | |
| 114 | 114 | // 拼接返回 |
| 115 | - spu.setBrowseCount(spu.getBrowseCount() + spu.getVirtualSalesCount()); | |
| 115 | + spu.setSalesCount(spu.getSalesCount() + spu.getVirtualSalesCount()); | |
| 116 | 116 | AppProductSpuDetailRespVO spuVO = BeanUtils.toBean(spu, AppProductSpuDetailRespVO.class) |
| 117 | 117 | .setSkus(BeanUtils.toBean(skus, AppProductSpuDetailRespVO.Sku.class)); |
| 118 | 118 | // 处理 vip 价格 | ... | ... |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/mysql/sku/ProductSkuMapper.java
| ... | ... | @@ -26,7 +26,7 @@ public interface ProductSkuMapper extends BaseMapperX<ProductSkuDO> { |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | - * 更新 SKU 库存(增加) | |
| 29 | + * 更新 SKU 库存(增加)、销量(减少) | |
| 30 | 30 | * |
| 31 | 31 | * @param id 编号 |
| 32 | 32 | * @param incrCount 增加库存(正数) |
| ... | ... | @@ -34,13 +34,14 @@ public interface ProductSkuMapper extends BaseMapperX<ProductSkuDO> { |
| 34 | 34 | default void updateStockIncr(Long id, Integer incrCount) { |
| 35 | 35 | Assert.isTrue(incrCount > 0); |
| 36 | 36 | LambdaUpdateWrapper<ProductSkuDO> lambdaUpdateWrapper = new LambdaUpdateWrapper<ProductSkuDO>() |
| 37 | - .setSql(" stock = stock + " + incrCount) | |
| 37 | + .setSql(" stock = stock + " + incrCount | |
| 38 | + + ", sales_count = sales_count - " + incrCount) | |
| 38 | 39 | .eq(ProductSkuDO::getId, id); |
| 39 | 40 | update(null, lambdaUpdateWrapper); |
| 40 | 41 | } |
| 41 | 42 | |
| 42 | 43 | /** |
| 43 | - * 更新 SKU 库存(减少) | |
| 44 | + * 更新 SKU 库存(减少)、销量(增加) | |
| 44 | 45 | * |
| 45 | 46 | * @param id 编号 |
| 46 | 47 | * @param incrCount 减少库存(负数) |
| ... | ... | @@ -48,10 +49,12 @@ public interface ProductSkuMapper extends BaseMapperX<ProductSkuDO> { |
| 48 | 49 | */ |
| 49 | 50 | default int updateStockDecr(Long id, Integer incrCount) { |
| 50 | 51 | Assert.isTrue(incrCount < 0); |
| 52 | + incrCount = - incrCount; // 取正 | |
| 51 | 53 | LambdaUpdateWrapper<ProductSkuDO> updateWrapper = new LambdaUpdateWrapper<ProductSkuDO>() |
| 52 | - .setSql(" stock = stock + " + incrCount) // 负数,所以使用 + 号 | |
| 54 | + .setSql(" stock = stock - " + incrCount | |
| 55 | + + ", sales_count = sales_count + " + incrCount) | |
| 53 | 56 | .eq(ProductSkuDO::getId, id) |
| 54 | - .ge(ProductSkuDO::getStock, -incrCount); // cas 逻辑 | |
| 57 | + .ge(ProductSkuDO::getStock, incrCount); | |
| 55 | 58 | return update(null, updateWrapper); |
| 56 | 59 | } |
| 57 | 60 | ... | ... |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/mysql/spu/ProductSpuMapper.java
| ... | ... | @@ -85,9 +85,19 @@ public interface ProductSpuMapper extends BaseMapperX<ProductSpuDO> { |
| 85 | 85 | * @param incrCount 增加的库存数量 |
| 86 | 86 | */ |
| 87 | 87 | default void updateStock(Long id, Integer incrCount) { |
| 88 | + // 拼接 SQL | |
| 89 | + if (incrCount == 0) { | |
| 90 | + return; | |
| 91 | + } | |
| 92 | + String sql; | |
| 93 | + if (incrCount > 0) { | |
| 94 | + sql = " stock = stock + " + incrCount + ", sales_count = sales_count - " + incrCount; | |
| 95 | + } else { | |
| 96 | + sql = " stock = stock - " + Math.abs(incrCount) + ", sales_count = sales_count + " + Math.abs(incrCount); | |
| 97 | + } | |
| 98 | + // 执行更新 | |
| 88 | 99 | LambdaUpdateWrapper<ProductSpuDO> updateWrapper = new LambdaUpdateWrapper<ProductSpuDO>() |
| 89 | - // 负数,所以使用 + 号 | |
| 90 | - .setSql(" stock = stock +" + incrCount) | |
| 100 | + .setSql(sql) | |
| 91 | 101 | .eq(ProductSpuDO::getId, id); |
| 92 | 102 | update(null, updateWrapper); |
| 93 | 103 | } | ... | ... |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/combination/vo/recrod/CombinationRecordReqPageVO.java
| ... | ... | @@ -2,7 +2,7 @@ package cn.iocoder.yudao.module.promotion.controller.admin.combination.vo.recrod |
| 2 | 2 | |
| 3 | 3 | import cn.iocoder.yudao.framework.common.pojo.PageParam; |
| 4 | 4 | import cn.iocoder.yudao.framework.common.validation.InEnum; |
| 5 | -import cn.iocoder.yudao.module.promotion.enums.bargain.BargainRecordStatusEnum; | |
| 5 | +import cn.iocoder.yudao.module.promotion.enums.combination.CombinationRecordStatusEnum; | |
| 6 | 6 | import io.swagger.v3.oas.annotations.media.Schema; |
| 7 | 7 | import lombok.Data; |
| 8 | 8 | import lombok.EqualsAndHashCode; |
| ... | ... | @@ -20,7 +20,7 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ |
| 20 | 20 | public class CombinationRecordReqPageVO extends PageParam { |
| 21 | 21 | |
| 22 | 22 | @Schema(description = "活动状态", example = "1") |
| 23 | - @InEnum(BargainRecordStatusEnum.class) | |
| 23 | + @InEnum(CombinationRecordStatusEnum.class) | |
| 24 | 24 | private Integer status; |
| 25 | 25 | |
| 26 | 26 | @Schema(description = "团长编号", example = "1024") | ... | ... |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/seckill/SeckillActivityController.java
| ... | ... | @@ -6,7 +6,7 @@ import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 6 | 6 | import cn.iocoder.yudao.module.product.api.spu.ProductSpuApi; |
| 7 | 7 | import cn.iocoder.yudao.module.product.api.spu.dto.ProductSpuRespDTO; |
| 8 | 8 | import cn.iocoder.yudao.module.promotion.controller.admin.seckill.vo.activity.*; |
| 9 | -import cn.iocoder.yudao.module.promotion.convert.seckill.seckillactivity.SeckillActivityConvert; | |
| 9 | +import cn.iocoder.yudao.module.promotion.convert.seckill.SeckillActivityConvert; | |
| 10 | 10 | import cn.iocoder.yudao.module.promotion.dal.dataobject.seckill.SeckillActivityDO; |
| 11 | 11 | import cn.iocoder.yudao.module.promotion.dal.dataobject.seckill.SeckillProductDO; |
| 12 | 12 | import cn.iocoder.yudao.module.promotion.service.seckill.SeckillActivityService; | ... | ... |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/admin/seckill/SeckillConfigController.java
| ... | ... | @@ -4,7 +4,7 @@ import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; |
| 4 | 4 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
| 5 | 5 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 6 | 6 | import cn.iocoder.yudao.module.promotion.controller.admin.seckill.vo.config.*; |
| 7 | -import cn.iocoder.yudao.module.promotion.convert.seckill.seckillconfig.SeckillConfigConvert; | |
| 7 | +import cn.iocoder.yudao.module.promotion.convert.seckill.SeckillConfigConvert; | |
| 8 | 8 | import cn.iocoder.yudao.module.promotion.dal.dataobject.seckill.SeckillConfigDO; |
| 9 | 9 | import cn.iocoder.yudao.module.promotion.service.seckill.SeckillConfigService; |
| 10 | 10 | import io.swagger.v3.oas.annotations.Operation; | ... | ... |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/app/seckill/AppSeckillActivityController.java
| ... | ... | @@ -12,7 +12,7 @@ import cn.iocoder.yudao.module.promotion.controller.app.seckill.vo.activity.AppS |
| 12 | 12 | import cn.iocoder.yudao.module.promotion.controller.app.seckill.vo.activity.AppSeckillActivityNowRespVO; |
| 13 | 13 | import cn.iocoder.yudao.module.promotion.controller.app.seckill.vo.activity.AppSeckillActivityPageReqVO; |
| 14 | 14 | import cn.iocoder.yudao.module.promotion.controller.app.seckill.vo.activity.AppSeckillActivityRespVO; |
| 15 | -import cn.iocoder.yudao.module.promotion.convert.seckill.seckillactivity.SeckillActivityConvert; | |
| 15 | +import cn.iocoder.yudao.module.promotion.convert.seckill.SeckillActivityConvert; | |
| 16 | 16 | import cn.iocoder.yudao.module.promotion.dal.dataobject.seckill.SeckillActivityDO; |
| 17 | 17 | import cn.iocoder.yudao.module.promotion.dal.dataobject.seckill.SeckillConfigDO; |
| 18 | 18 | import cn.iocoder.yudao.module.promotion.dal.dataobject.seckill.SeckillProductDO; | ... | ... |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/app/seckill/AppSeckillConfigController.java
| ... | ... | @@ -3,7 +3,7 @@ package cn.iocoder.yudao.module.promotion.controller.app.seckill; |
| 3 | 3 | import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; |
| 4 | 4 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
| 5 | 5 | import cn.iocoder.yudao.module.promotion.controller.app.seckill.vo.config.AppSeckillConfigRespVO; |
| 6 | -import cn.iocoder.yudao.module.promotion.convert.seckill.seckillconfig.SeckillConfigConvert; | |
| 6 | +import cn.iocoder.yudao.module.promotion.convert.seckill.SeckillConfigConvert; | |
| 7 | 7 | import cn.iocoder.yudao.module.promotion.dal.dataobject.seckill.SeckillConfigDO; |
| 8 | 8 | import cn.iocoder.yudao.module.promotion.service.seckill.SeckillConfigService; |
| 9 | 9 | import io.swagger.v3.oas.annotations.Operation; | ... | ... |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/convert/combination/CombinationActivityConvert.java
| ... | ... | @@ -68,10 +68,11 @@ public interface CombinationActivityConvert { |
| 68 | 68 | List<ProductSpuRespDTO> spuList) { |
| 69 | 69 | PageResult<CombinationActivityPageItemRespVO> pageResult = convertPage(page); |
| 70 | 70 | Map<Long, ProductSpuRespDTO> spuMap = convertMap(spuList, ProductSpuRespDTO::getId); |
| 71 | + Map<Long, List<CombinationProductDO>> productMap = convertMultiMap(productList, CombinationProductDO::getActivityId); | |
| 71 | 72 | pageResult.getList().forEach(item -> { |
| 72 | 73 | MapUtils.findAndThen(spuMap, item.getSpuId(), spu -> item.setSpuName(spu.getName()).setPicUrl(spu.getPicUrl()) |
| 73 | 74 | .setMarketPrice(spu.getMarketPrice())); |
| 74 | - item.setProducts(convertList2(productList)); | |
| 75 | + item.setProducts(convertList2(productMap.get(item.getId()))); | |
| 75 | 76 | // 设置统计字段 |
| 76 | 77 | item.setGroupCount(groupCountMap.getOrDefault(item.getId(), 0)) |
| 77 | 78 | .setGroupSuccessCount(groupSuccessCountMap.getOrDefault(item.getId(), 0)) | ... | ... |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/convert/seckill/seckillactivity/SeckillActivityConvert.java renamed to yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/convert/seckill/SeckillActivityConvert.java
| 1 | -package cn.iocoder.yudao.module.promotion.convert.seckill.seckillactivity; | |
| 1 | +package cn.iocoder.yudao.module.promotion.convert.seckill; | |
| 2 | 2 | |
| 3 | 3 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 4 | 4 | import cn.iocoder.yudao.framework.common.util.collection.CollectionUtils; |
| ... | ... | @@ -14,7 +14,6 @@ import cn.iocoder.yudao.module.promotion.controller.admin.seckill.vo.product.Sec |
| 14 | 14 | import cn.iocoder.yudao.module.promotion.controller.app.seckill.vo.activity.AppSeckillActivityDetailRespVO; |
| 15 | 15 | import cn.iocoder.yudao.module.promotion.controller.app.seckill.vo.activity.AppSeckillActivityNowRespVO; |
| 16 | 16 | import cn.iocoder.yudao.module.promotion.controller.app.seckill.vo.activity.AppSeckillActivityRespVO; |
| 17 | -import cn.iocoder.yudao.module.promotion.convert.seckill.seckillconfig.SeckillConfigConvert; | |
| 18 | 17 | import cn.iocoder.yudao.module.promotion.dal.dataobject.seckill.SeckillActivityDO; |
| 19 | 18 | import cn.iocoder.yudao.module.promotion.dal.dataobject.seckill.SeckillConfigDO; |
| 20 | 19 | import cn.iocoder.yudao.module.promotion.dal.dataobject.seckill.SeckillProductDO; |
| ... | ... | @@ -56,10 +55,11 @@ public interface SeckillActivityConvert { |
| 56 | 55 | PageResult<SeckillActivityRespVO> pageResult = convertPage(page); |
| 57 | 56 | // 拼接商品 |
| 58 | 57 | Map<Long, ProductSpuRespDTO> spuMap = CollectionUtils.convertMap(spuList, ProductSpuRespDTO::getId); |
| 59 | - pageResult.getList().forEach(item -> { | |
| 60 | - item.setProducts(convertList2(seckillProducts)); | |
| 61 | - MapUtils.findAndThen(spuMap, item.getSpuId(), | |
| 62 | - spu -> item.setSpuName(spu.getName()).setPicUrl(spu.getPicUrl()).setMarketPrice(spu.getMarketPrice())); | |
| 58 | + Map<Long, List<SeckillProductDO>> productMap = convertMultiMap(seckillProducts, SeckillProductDO::getActivityId); | |
| 59 | + pageResult.getList().forEach(activity -> { | |
| 60 | + activity.setProducts(convertList2(productMap.get(activity.getId()))); | |
| 61 | + MapUtils.findAndThen(spuMap, activity.getSpuId(), | |
| 62 | + spu -> activity.setSpuName(spu.getName()).setPicUrl(spu.getPicUrl()).setMarketPrice(spu.getMarketPrice())); | |
| 63 | 63 | }); |
| 64 | 64 | return pageResult; |
| 65 | 65 | } | ... | ... |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/convert/seckill/seckillconfig/SeckillConfigConvert.java renamed to yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/convert/seckill/SeckillConfigConvert.java
| 1 | -package cn.iocoder.yudao.module.promotion.convert.seckill.seckillconfig; | |
| 1 | +package cn.iocoder.yudao.module.promotion.convert.seckill; | |
| 2 | 2 | |
| 3 | 3 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 4 | 4 | import cn.iocoder.yudao.module.promotion.controller.admin.seckill.vo.config.SeckillConfigCreateReqVO; | ... | ... |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/service/coupon/CouponServiceImpl.java
| ... | ... | @@ -215,7 +215,7 @@ public class CouponServiceImpl implements CouponService { |
| 215 | 215 | int count = 0; |
| 216 | 216 | for (CouponDO coupon : list) { |
| 217 | 217 | try { |
| 218 | - boolean success = getSelf().expireCoupon(coupon); | |
| 218 | + boolean success = expireCoupon(coupon); | |
| 219 | 219 | if (success) { |
| 220 | 220 | count++; |
| 221 | 221 | } | ... | ... |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/service/seckill/SeckillActivityServiceImpl.java
| ... | ... | @@ -17,7 +17,7 @@ import cn.iocoder.yudao.module.promotion.controller.admin.seckill.vo.activity.Se |
| 17 | 17 | import cn.iocoder.yudao.module.promotion.controller.admin.seckill.vo.activity.SeckillActivityUpdateReqVO; |
| 18 | 18 | import cn.iocoder.yudao.module.promotion.controller.admin.seckill.vo.product.SeckillProductBaseVO; |
| 19 | 19 | import cn.iocoder.yudao.module.promotion.controller.app.seckill.vo.activity.AppSeckillActivityPageReqVO; |
| 20 | -import cn.iocoder.yudao.module.promotion.convert.seckill.seckillactivity.SeckillActivityConvert; | |
| 20 | +import cn.iocoder.yudao.module.promotion.convert.seckill.SeckillActivityConvert; | |
| 21 | 21 | import cn.iocoder.yudao.module.promotion.dal.dataobject.seckill.SeckillActivityDO; |
| 22 | 22 | import cn.iocoder.yudao.module.promotion.dal.dataobject.seckill.SeckillConfigDO; |
| 23 | 23 | import cn.iocoder.yudao.module.promotion.dal.dataobject.seckill.SeckillProductDO; | ... | ... |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/service/seckill/SeckillConfigServiceImpl.java
| ... | ... | @@ -8,7 +8,7 @@ import cn.iocoder.yudao.framework.common.util.date.LocalDateTimeUtils; |
| 8 | 8 | import cn.iocoder.yudao.module.promotion.controller.admin.seckill.vo.config.SeckillConfigCreateReqVO; |
| 9 | 9 | import cn.iocoder.yudao.module.promotion.controller.admin.seckill.vo.config.SeckillConfigPageReqVO; |
| 10 | 10 | import cn.iocoder.yudao.module.promotion.controller.admin.seckill.vo.config.SeckillConfigUpdateReqVO; |
| 11 | -import cn.iocoder.yudao.module.promotion.convert.seckill.seckillconfig.SeckillConfigConvert; | |
| 11 | +import cn.iocoder.yudao.module.promotion.convert.seckill.SeckillConfigConvert; | |
| 12 | 12 | import cn.iocoder.yudao.module.promotion.dal.dataobject.seckill.SeckillConfigDO; |
| 13 | 13 | import cn.iocoder.yudao.module.promotion.dal.mysql.seckill.seckillconfig.SeckillConfigMapper; |
| 14 | 14 | import org.springframework.stereotype.Service; | ... | ... |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/admin/order/TradeOrderController.http
| ... | ... | @@ -7,3 +7,8 @@ tenant-id: {{adminTenentId}} |
| 7 | 7 | GET {{baseUrl}}/trade/order/get-detail?id=21 |
| 8 | 8 | Authorization: Bearer {{token}} |
| 9 | 9 | tenant-id: {{adminTenentId}} |
| 10 | + | |
| 11 | +### 获得交易订单的物流轨迹 => 成功 | |
| 12 | +GET {{baseUrl}}/trade/order/get-express-track-list?id=21 | |
| 13 | +Authorization: Bearer {{token}} | |
| 14 | +tenant-id: {{adminTenentId}} | |
| 10 | 15 | \ No newline at end of file | ... | ... |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/convert/order/TradeOrderConvert.java
| ... | ... | @@ -176,7 +176,7 @@ public interface TradeOrderConvert { |
| 176 | 176 | TradeOrderProperties tradeOrderProperties, |
| 177 | 177 | DeliveryExpressDO express) { |
| 178 | 178 | AppTradeOrderDetailRespVO orderVO = convert3(order, orderItems); |
| 179 | - orderVO.setPayExpireTime(addTime(tradeOrderProperties.getPayExpireTime())); | |
| 179 | + orderVO.setPayExpireTime(order.getCreateTime().plus(tradeOrderProperties.getPayExpireTime())); | |
| 180 | 180 | if (StrUtil.isNotEmpty(order.getPayChannelCode())) { |
| 181 | 181 | orderVO.setPayChannelName(DictFrameworkUtils.getDictDataLabel(DictTypeConstants.CHANNEL_CODE, order.getPayChannelCode())); |
| 182 | 182 | } | ... | ... |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/dal/mysql/brokerage/BrokerageRecordMapper.java
| ... | ... | @@ -50,10 +50,9 @@ public interface BrokerageRecordMapper extends BaseMapperX<BrokerageRecordDO> { |
| 50 | 50 | .eq(BrokerageRecordDO::getStatus, status)); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - default BrokerageRecordDO selectByBizTypeAndBizIdAndUserId(Integer bizType, String bizId, Long userId) { | |
| 54 | - return selectOne(BrokerageRecordDO::getBizType, bizType, | |
| 55 | - BrokerageRecordDO::getBizId, bizId, | |
| 56 | - BrokerageRecordDO::getUserId, userId); | |
| 53 | + default List<BrokerageRecordDO> selectListByBizTypeAndBizId(Integer bizType, String bizId) { | |
| 54 | + return selectList(BrokerageRecordDO::getBizType, bizType, | |
| 55 | + BrokerageRecordDO::getBizId, bizId); | |
| 57 | 56 | } |
| 58 | 57 | |
| 59 | 58 | default List<UserBrokerageSummaryRespBO> selectCountAndSumPriceByUserIdInAndBizTypeAndStatus(Collection<Long> userIds, |
| ... | ... | @@ -64,7 +63,7 @@ public interface BrokerageRecordMapper extends BaseMapperX<BrokerageRecordDO> { |
| 64 | 63 | .selectCount(BrokerageRecordDO::getId, UserBrokerageSummaryRespBO::getCount) |
| 65 | 64 | .selectSum(BrokerageRecordDO::getPrice) |
| 66 | 65 | .in(BrokerageRecordDO::getUserId, userIds) |
| 67 | - .eq(BrokerageRecordDO::getBizId, bizType) | |
| 66 | + .eq(BrokerageRecordDO::getBizType, bizType) | |
| 68 | 67 | .eq(BrokerageRecordDO::getStatus, status) |
| 69 | 68 | .groupBy(BrokerageRecordDO::getUserId)); // 按照 userId 聚合 |
| 70 | 69 | return BeanUtil.copyToList(list, UserBrokerageSummaryRespBO.class); |
| ... | ... | @@ -74,7 +73,7 @@ public interface BrokerageRecordMapper extends BaseMapperX<BrokerageRecordDO> { |
| 74 | 73 | // .selectCount(BrokerageRecordDO::getId, UserBrokerageSummaryBO::getCount) |
| 75 | 74 | // .selectSum(BrokerageRecordDO::getPrice) |
| 76 | 75 | // .in(BrokerageRecordDO::getUserId, userIds) |
| 77 | -// .eq(BrokerageRecordDO::getBizId, bizType) | |
| 76 | +// .eq(BrokerageRecordDO::getBizType, bizType) | |
| 78 | 77 | // .eq(BrokerageRecordDO::getStatus, status) |
| 79 | 78 | // .groupBy(BrokerageRecordDO::getUserId)); |
| 80 | 79 | } | ... | ... |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/service/brokerage/BrokerageRecordService.java
| ... | ... | @@ -78,11 +78,10 @@ public interface BrokerageRecordService { |
| 78 | 78 | /** |
| 79 | 79 | * 取消佣金:将佣金记录,状态修改为已失效 |
| 80 | 80 | * |
| 81 | - * @param userId 会员编号 | |
| 82 | 81 | * @param bizType 业务类型 |
| 83 | 82 | * @param bizId 业务编号 |
| 84 | 83 | */ |
| 85 | - void cancelBrokerage(Long userId, BrokerageRecordBizTypeEnum bizType, String bizId); | |
| 84 | + void cancelBrokerage(BrokerageRecordBizTypeEnum bizType, String bizId); | |
| 86 | 85 | |
| 87 | 86 | /** |
| 88 | 87 | * 解冻佣金:将待结算的佣金记录,状态修改为已结算 | ... | ... |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/service/brokerage/BrokerageRecordServiceImpl.java
| ... | ... | @@ -107,27 +107,29 @@ public class BrokerageRecordServiceImpl implements BrokerageRecordService { |
| 107 | 107 | |
| 108 | 108 | @Override |
| 109 | 109 | @Transactional(rollbackFor = Exception.class) |
| 110 | - public void cancelBrokerage(Long userId, BrokerageRecordBizTypeEnum bizType, String bizId) { | |
| 111 | - BrokerageRecordDO record = brokerageRecordMapper.selectByBizTypeAndBizIdAndUserId(bizType.getType(), bizId, userId); | |
| 112 | - if (record == null) { | |
| 113 | - log.error("[cancelBrokerage][userId({})][bizId({}) 更新为已失效失败:记录不存在]", userId, bizId); | |
| 110 | + public void cancelBrokerage(BrokerageRecordBizTypeEnum bizType, String bizId) { | |
| 111 | + List<BrokerageRecordDO> records = brokerageRecordMapper.selectListByBizTypeAndBizId(bizType.getType(), bizId); | |
| 112 | + if (CollUtil.isEmpty(records)) { | |
| 113 | + log.error("[cancelBrokerage][bizId({}) bizType({}) 更新为已失效失败:记录不存在]", bizId, bizType); | |
| 114 | 114 | return; |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | - // 1. 更新佣金记录为已失效 | |
| 118 | - BrokerageRecordDO updateObj = new BrokerageRecordDO().setStatus(BrokerageRecordStatusEnum.CANCEL.getStatus()); | |
| 119 | - int updateRows = brokerageRecordMapper.updateByIdAndStatus(record.getId(), record.getStatus(), updateObj); | |
| 120 | - if (updateRows == 0) { | |
| 121 | - log.error("[cancelBrokerage][record({}) 更新为已失效失败]", record.getId()); | |
| 122 | - return; | |
| 123 | - } | |
| 117 | + records.forEach(record -> { | |
| 118 | + // 1. 更新佣金记录为已失效 | |
| 119 | + BrokerageRecordDO updateObj = new BrokerageRecordDO().setStatus(BrokerageRecordStatusEnum.CANCEL.getStatus()); | |
| 120 | + int updateRows = brokerageRecordMapper.updateByIdAndStatus(record.getId(), record.getStatus(), updateObj); | |
| 121 | + if (updateRows == 0) { | |
| 122 | + log.error("[cancelBrokerage][record({}) 更新为已失效失败]", record.getId()); | |
| 123 | + return; | |
| 124 | + } | |
| 124 | 125 | |
| 125 | - // 2. 更新用户的佣金 | |
| 126 | - if (BrokerageRecordStatusEnum.WAIT_SETTLEMENT.getStatus().equals(record.getStatus())) { | |
| 127 | - brokerageUserService.updateUserFrozenPrice(userId, -record.getPrice()); | |
| 128 | - } else if (BrokerageRecordStatusEnum.SETTLEMENT.getStatus().equals(record.getStatus())) { | |
| 129 | - brokerageUserService.updateUserPrice(userId, -record.getPrice()); | |
| 130 | - } | |
| 126 | + // 2. 更新用户的佣金 | |
| 127 | + if (BrokerageRecordStatusEnum.WAIT_SETTLEMENT.getStatus().equals(record.getStatus())) { | |
| 128 | + brokerageUserService.updateUserFrozenPrice(record.getUserId(), -record.getPrice()); | |
| 129 | + } else if (BrokerageRecordStatusEnum.SETTLEMENT.getStatus().equals(record.getStatus())) { | |
| 130 | + brokerageUserService.updateUserPrice(record.getUserId(), -record.getPrice()); | |
| 131 | + } | |
| 132 | + }); | |
| 131 | 133 | } |
| 132 | 134 | |
| 133 | 135 | /** | ... | ... |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/service/brokerage/BrokerageUserService.java
| ... | ... | @@ -9,9 +9,6 @@ import cn.iocoder.yudao.module.trade.controller.app.brokerage.vo.user.AppBrokera |
| 9 | 9 | import cn.iocoder.yudao.module.trade.dal.dataobject.brokerage.BrokerageUserDO; |
| 10 | 10 | import jakarta.validation.constraints.NotNull; |
| 11 | 11 | |
| 12 | -import java.util.Collection; | |
| 13 | -import java.util.List; | |
| 14 | - | |
| 15 | 12 | /** |
| 16 | 13 | * 分销用户 Service 接口 |
| 17 | 14 | * |
| ... | ... | @@ -28,14 +25,6 @@ public interface BrokerageUserService { |
| 28 | 25 | BrokerageUserDO getBrokerageUser(Long id); |
| 29 | 26 | |
| 30 | 27 | /** |
| 31 | - * 获得分销用户列表 | |
| 32 | - * | |
| 33 | - * @param ids 编号 | |
| 34 | - * @return 分销用户列表 | |
| 35 | - */ | |
| 36 | - List<BrokerageUserDO> getBrokerageUserList(Collection<Long> ids); | |
| 37 | - | |
| 38 | - /** | |
| 39 | 28 | * 获得分销用户分页 |
| 40 | 29 | * |
| 41 | 30 | * @param pageReqVO 分页查询 | ... | ... |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/service/brokerage/BrokerageUserServiceImpl.java
| ... | ... | @@ -61,11 +61,6 @@ public class BrokerageUserServiceImpl implements BrokerageUserService { |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | @Override |
| 64 | - public List<BrokerageUserDO> getBrokerageUserList(Collection<Long> ids) { | |
| 65 | - return brokerageUserMapper.selectBatchIds(ids); | |
| 66 | - } | |
| 67 | - | |
| 68 | - @Override | |
| 69 | 64 | public PageResult<BrokerageUserDO> getBrokerageUserPage(BrokerageUserPageReqVO pageReqVO) { |
| 70 | 65 | List<Long> childIds = getChildUserIdsByLevel(pageReqVO.getBindUserId(), pageReqVO.getLevel()); |
| 71 | 66 | // 有”绑定用户编号“查询条件时,没有查到下级会员,直接返回空 |
| ... | ... | @@ -130,6 +125,7 @@ public class BrokerageUserServiceImpl implements BrokerageUserService { |
| 130 | 125 | |
| 131 | 126 | @Override |
| 132 | 127 | public BrokerageUserDO getOrCreateBrokerageUser(Long id) { |
| 128 | + // TODO @芋艿:这块优化下;统一到注册时处理; | |
| 133 | 129 | BrokerageUserDO brokerageUser = brokerageUserMapper.selectById(id); |
| 134 | 130 | // 特殊:人人分销的情况下,如果分销人为空则创建分销人 |
| 135 | 131 | if (brokerageUser == null && ObjUtil.equal(BrokerageEnabledConditionEnum.ALL.getCondition(), | ... | ... |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/service/order/TradeOrderQueryServiceImpl.java
| ... | ... | @@ -215,14 +215,13 @@ public class TradeOrderQueryServiceImpl implements TradeOrderQueryService { |
| 215 | 215 | * @return 物流轨迹 |
| 216 | 216 | */ |
| 217 | 217 | @Cacheable(cacheNames = RedisKeyConstants.EXPRESS_TRACK, key = "#code + '-' + #logisticsNo + '-' + #receiverMobile", |
| 218 | - condition = "#result != null") | |
| 218 | + condition = "#result != null && #result.length() > 0") | |
| 219 | 219 | public List<ExpressTrackRespDTO> getExpressTrackList(String code, String logisticsNo, String receiverMobile) { |
| 220 | 220 | return expressClientFactory.getDefaultExpressClient().getExpressTrackList( |
| 221 | 221 | new ExpressTrackQueryReqDTO().setExpressCode(code).setLogisticsNo(logisticsNo) |
| 222 | 222 | .setPhone(receiverMobile)); |
| 223 | 223 | } |
| 224 | 224 | |
| 225 | - | |
| 226 | 225 | // =================== Order Item =================== |
| 227 | 226 | |
| 228 | 227 | @Override | ... | ... |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/service/order/handler/TradeBrokerageOrderHandler.java
| ... | ... | @@ -83,7 +83,7 @@ public class TradeBrokerageOrderHandler implements TradeOrderHandler { |
| 83 | 83 | if (order.getBrokerageUserId() == null) { |
| 84 | 84 | return; |
| 85 | 85 | } |
| 86 | - cancelBrokerage(order.getBrokerageUserId(), orderItem.getId()); | |
| 86 | + brokerageRecordService.cancelBrokerage(BrokerageRecordBizTypeEnum.ORDER, String.valueOf(orderItem.getId())); | |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | /** |
| ... | ... | @@ -111,8 +111,4 @@ public class TradeBrokerageOrderHandler implements TradeOrderHandler { |
| 111 | 111 | brokerageRecordService.addBrokerage(userId, BrokerageRecordBizTypeEnum.ORDER, addList); |
| 112 | 112 | } |
| 113 | 113 | |
| 114 | - protected void cancelBrokerage(Long userId, Long orderItemId) { | |
| 115 | - brokerageRecordService.cancelBrokerage(userId, BrokerageRecordBizTypeEnum.ORDER, String.valueOf(orderItemId)); | |
| 116 | - } | |
| 117 | - | |
| 118 | 114 | } | ... | ... |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/service/price/calculator/TradeCouponPriceCalculator.java
| ... | ... | @@ -90,7 +90,7 @@ public class TradeCouponPriceCalculator implements TradePriceCalculator { |
| 90 | 90 | if (PromotionDiscountTypeEnum.PRICE.getType().equals(coupon.getDiscountType())) { // 减价 |
| 91 | 91 | return coupon.getDiscountPrice(); |
| 92 | 92 | } else if (PromotionDiscountTypeEnum.PERCENT.getType().equals(coupon.getDiscountType())) { // 打折 |
| 93 | - int couponPrice = totalPayPrice * coupon.getDiscountPercent() / 100; | |
| 93 | + int couponPrice = totalPayPrice - (totalPayPrice * coupon.getDiscountPercent() / 100); | |
| 94 | 94 | return coupon.getDiscountLimitPrice() == null ? couponPrice |
| 95 | 95 | : Math.min(couponPrice, coupon.getDiscountLimitPrice()); // 优惠上限 |
| 96 | 96 | } | ... | ... |
yudao-module-pay/yudao-module-pay-biz/pom.xml
| ... | ... | @@ -23,11 +23,6 @@ |
| 23 | 23 | <artifactId>yudao-module-pay-api</artifactId> |
| 24 | 24 | <version>${revision}</version> |
| 25 | 25 | </dependency> |
| 26 | - <dependency> | |
| 27 | - <groupId>cn.iocoder.boot</groupId> | |
| 28 | - <artifactId>yudao-module-member-api</artifactId> | |
| 29 | - <version>${revision}</version> | |
| 30 | - </dependency> | |
| 31 | 26 | |
| 32 | 27 | <!-- 业务组件 --> |
| 33 | 28 | <dependency> | ... | ... |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/wallet/PayWalletController.java
| 1 | 1 | package cn.iocoder.yudao.module.pay.controller.admin.wallet; |
| 2 | 2 | |
| 3 | -import cn.hutool.core.collection.CollectionUtil; | |
| 4 | -import cn.hutool.core.util.StrUtil; | |
| 5 | 3 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
| 6 | 4 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 7 | -import cn.iocoder.yudao.module.member.api.user.MemberUserApi; | |
| 8 | -import cn.iocoder.yudao.module.member.api.user.dto.MemberUserRespDTO; | |
| 9 | 5 | import cn.iocoder.yudao.module.pay.controller.admin.wallet.vo.wallet.PayWalletPageReqVO; |
| 10 | 6 | import cn.iocoder.yudao.module.pay.controller.admin.wallet.vo.wallet.PayWalletRespVO; |
| 11 | 7 | import cn.iocoder.yudao.module.pay.controller.admin.wallet.vo.wallet.PayWalletUserReqVO; |
| ... | ... | @@ -14,6 +10,8 @@ import cn.iocoder.yudao.module.pay.dal.dataobject.wallet.PayWalletDO; |
| 14 | 10 | import cn.iocoder.yudao.module.pay.service.wallet.PayWalletService; |
| 15 | 11 | import io.swagger.v3.oas.annotations.Operation; |
| 16 | 12 | import io.swagger.v3.oas.annotations.tags.Tag; |
| 13 | +import jakarta.annotation.Resource; | |
| 14 | +import jakarta.validation.Valid; | |
| 17 | 15 | import lombok.extern.slf4j.Slf4j; |
| 18 | 16 | import org.springframework.security.access.prepost.PreAuthorize; |
| 19 | 17 | import org.springframework.validation.annotation.Validated; |
| ... | ... | @@ -21,14 +19,8 @@ import org.springframework.web.bind.annotation.GetMapping; |
| 21 | 19 | import org.springframework.web.bind.annotation.RequestMapping; |
| 22 | 20 | import org.springframework.web.bind.annotation.RestController; |
| 23 | 21 | |
| 24 | -import jakarta.annotation.Resource; | |
| 25 | -import jakarta.validation.Valid; | |
| 26 | -import java.util.List; | |
| 27 | -import java.util.Map; | |
| 28 | - | |
| 29 | 22 | import static cn.iocoder.yudao.framework.common.enums.UserTypeEnum.MEMBER; |
| 30 | 23 | import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; |
| 31 | -import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.*; | |
| 32 | 24 | |
| 33 | 25 | @Tag(name = "管理后台 - 用户钱包") |
| 34 | 26 | @RestController |
| ... | ... | @@ -39,38 +31,21 @@ public class PayWalletController { |
| 39 | 31 | |
| 40 | 32 | @Resource |
| 41 | 33 | private PayWalletService payWalletService; |
| 42 | - @Resource | |
| 43 | - private MemberUserApi memberUserApi; | |
| 44 | 34 | |
| 45 | 35 | @GetMapping("/get") |
| 46 | 36 | @PreAuthorize("@ss.hasPermission('pay:wallet:query')") |
| 47 | 37 | @Operation(summary = "获得用户钱包明细") |
| 48 | 38 | public CommonResult<PayWalletRespVO> getWallet(PayWalletUserReqVO reqVO) { |
| 49 | 39 | PayWalletDO wallet = payWalletService.getOrCreateWallet(reqVO.getUserId(), MEMBER.getValue()); |
| 50 | - // TODO jason:如果为空,返回给前端只要 null 就可以了 | |
| 51 | - MemberUserRespDTO memberUser = memberUserApi.getUser(reqVO.getUserId()); | |
| 52 | - String nickname = memberUser == null ? "" : memberUser.getNickname(); | |
| 53 | - String avatar = memberUser == null ? "" : memberUser.getAvatar(); | |
| 54 | - return success(PayWalletConvert.INSTANCE.convert02(nickname, avatar, wallet)); | |
| 40 | + return success(PayWalletConvert.INSTANCE.convert02(wallet)); | |
| 55 | 41 | } |
| 56 | 42 | |
| 57 | 43 | @GetMapping("/page") |
| 58 | 44 | @Operation(summary = "获得会员钱包分页") |
| 59 | 45 | @PreAuthorize("@ss.hasPermission('pay:wallet:query')") |
| 60 | 46 | public CommonResult<PageResult<PayWalletRespVO>> getWalletPage(@Valid PayWalletPageReqVO pageVO) { |
| 61 | - if (StrUtil.isNotEmpty(pageVO.getNickname())) { | |
| 62 | - List<MemberUserRespDTO> users = memberUserApi.getUserListByNickname(pageVO.getNickname()); | |
| 63 | - pageVO.setUserIds(convertSet(users, MemberUserRespDTO::getId)); | |
| 64 | - } | |
| 65 | - // TODO @jason:管理员也可以先查询下。。 | |
| 66 | - // 暂时支持查询 userType 会员类型。管理员类型还不知道使用场景 | |
| 67 | - PageResult<PayWalletDO> pageResult = payWalletService.getWalletPage(MEMBER.getValue(),pageVO); | |
| 68 | - if (CollectionUtil.isEmpty(pageResult.getList())) { | |
| 69 | - return success(new PageResult<>(pageResult.getTotal())); | |
| 70 | - } | |
| 71 | - List<MemberUserRespDTO> users = memberUserApi.getUserList(convertList(pageResult.getList(), PayWalletDO::getUserId)); | |
| 72 | - Map<Long, MemberUserRespDTO> userMap = convertMap(users, MemberUserRespDTO::getId); | |
| 73 | - return success(PayWalletConvert.INSTANCE.convertPage(pageResult, userMap)); | |
| 47 | + PageResult<PayWalletDO> pageResult = payWalletService.getWalletPage(pageVO); | |
| 48 | + return success(PayWalletConvert.INSTANCE.convertPage(pageResult)); | |
| 74 | 49 | } |
| 75 | 50 | |
| 76 | 51 | } | ... | ... |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/wallet/vo/wallet/PayWalletPageReqVO.java
| 1 | 1 | package cn.iocoder.yudao.module.pay.controller.admin.wallet.vo.wallet; |
| 2 | 2 | |
| 3 | +import cn.iocoder.yudao.framework.common.enums.UserTypeEnum; | |
| 3 | 4 | import cn.iocoder.yudao.framework.common.pojo.PageParam; |
| 5 | +import cn.iocoder.yudao.framework.common.validation.InEnum; | |
| 4 | 6 | import io.swagger.v3.oas.annotations.media.Schema; |
| 5 | 7 | import lombok.Data; |
| 6 | 8 | import lombok.EqualsAndHashCode; |
| ... | ... | @@ -8,7 +10,6 @@ import lombok.ToString; |
| 8 | 10 | import org.springframework.format.annotation.DateTimeFormat; |
| 9 | 11 | |
| 10 | 12 | import java.time.LocalDateTime; |
| 11 | -import java.util.Collection; | |
| 12 | 13 | |
| 13 | 14 | import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
| 14 | 15 | |
| ... | ... | @@ -18,11 +19,12 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ |
| 18 | 19 | @ToString(callSuper = true) |
| 19 | 20 | public class PayWalletPageReqVO extends PageParam { |
| 20 | 21 | |
| 21 | - @Schema(description = "用户昵称", example = "李四") | |
| 22 | - private String nickname; | |
| 22 | + @Schema(description = "用户编号", example = "1024") | |
| 23 | + private Long userId; | |
| 23 | 24 | |
| 24 | - @Schema(description = "用户编号", example = "[1,2]") | |
| 25 | - private Collection<Long> userIds; | |
| 25 | + @Schema(description = "用户类型", example = "1") | |
| 26 | + @InEnum(value = UserTypeEnum.class) | |
| 27 | + private Integer userType; | |
| 26 | 28 | |
| 27 | 29 | @Schema(description = "创建时间") |
| 28 | 30 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | ... | ... |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/wallet/vo/wallet/PayWalletRespVO.java
| ... | ... | @@ -19,9 +19,4 @@ public class PayWalletRespVO extends PayWalletBaseVO { |
| 19 | 19 | @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 20 | 20 | private LocalDateTime createTime; |
| 21 | 21 | |
| 22 | - @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王**") | |
| 23 | - private String nickname; | |
| 24 | - @Schema(description = "用户头像", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn/xxx.jpg") | |
| 25 | - private String avatar; | |
| 26 | - | |
| 27 | 22 | } | ... | ... |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/convert/wallet/PayWalletConvert.java
| 1 | 1 | package cn.iocoder.yudao.module.pay.convert.wallet; |
| 2 | 2 | |
| 3 | 3 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 4 | -import cn.iocoder.yudao.framework.common.util.collection.MapUtils; | |
| 5 | -import cn.iocoder.yudao.module.member.api.user.dto.MemberUserRespDTO; | |
| 6 | 4 | import cn.iocoder.yudao.module.pay.controller.admin.wallet.vo.wallet.PayWalletRespVO; |
| 7 | 5 | import cn.iocoder.yudao.module.pay.controller.app.wallet.vo.wallet.AppPayWalletRespVO; |
| 8 | 6 | import cn.iocoder.yudao.module.pay.dal.dataobject.wallet.PayWalletDO; |
| 9 | 7 | import org.mapstruct.Mapper; |
| 10 | 8 | import org.mapstruct.factory.Mappers; |
| 11 | 9 | |
| 12 | -import java.util.Map; | |
| 13 | - | |
| 14 | 10 | @Mapper |
| 15 | 11 | public interface PayWalletConvert { |
| 16 | 12 | |
| ... | ... | @@ -18,15 +14,8 @@ public interface PayWalletConvert { |
| 18 | 14 | |
| 19 | 15 | AppPayWalletRespVO convert(PayWalletDO bean); |
| 20 | 16 | |
| 21 | - PayWalletRespVO convert02(String nickname,String avatar, PayWalletDO bean); | |
| 17 | + PayWalletRespVO convert02(PayWalletDO bean); | |
| 22 | 18 | |
| 23 | 19 | PageResult<PayWalletRespVO> convertPage(PageResult<PayWalletDO> page); |
| 24 | 20 | |
| 25 | - default PageResult<PayWalletRespVO> convertPage(PageResult<PayWalletDO> page, Map<Long, MemberUserRespDTO> userMap) { | |
| 26 | - PageResult<PayWalletRespVO> pageResult = convertPage(page); | |
| 27 | - pageResult.getList().forEach(wallet -> MapUtils.findAndThen(userMap, wallet.getUserId(), | |
| 28 | - user -> wallet.setNickname(user.getNickname()).setAvatar(user.getAvatar()))); | |
| 29 | - return pageResult; | |
| 30 | - } | |
| 31 | - | |
| 32 | 21 | } | ... | ... |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/dal/mysql/wallet/PayWalletMapper.java
| ... | ... | @@ -17,10 +17,10 @@ public interface PayWalletMapper extends BaseMapperX<PayWalletDO> { |
| 17 | 17 | PayWalletDO::getUserType, userType); |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | - default PageResult<PayWalletDO> selectPage(Integer userType, PayWalletPageReqVO reqVO) { | |
| 20 | + default PageResult<PayWalletDO> selectPage(PayWalletPageReqVO reqVO) { | |
| 21 | 21 | return selectPage(reqVO, new LambdaQueryWrapperX<PayWalletDO>() |
| 22 | - .inIfPresent(PayWalletDO::getUserId, reqVO.getUserIds()) | |
| 23 | - .eqIfPresent(PayWalletDO::getUserType, userType) | |
| 22 | + .eqIfPresent(PayWalletDO::getUserId, reqVO.getUserId()) | |
| 23 | + .eqIfPresent(PayWalletDO::getUserType, reqVO.getUserType()) | |
| 24 | 24 | .betweenIfPresent(PayWalletDO::getCreateTime, reqVO.getCreateTime()) |
| 25 | 25 | .orderByDesc(PayWalletDO::getId)); |
| 26 | 26 | } |
| ... | ... | @@ -31,7 +31,7 @@ public interface PayWalletMapper extends BaseMapperX<PayWalletDO> { |
| 31 | 31 | * @param id 钱包 id |
| 32 | 32 | * @param price 消费金额 |
| 33 | 33 | */ |
| 34 | - default int updateWhenConsumptionRefund(Long id, Integer price){ | |
| 34 | + default int updateWhenConsumptionRefund(Long id, Integer price) { | |
| 35 | 35 | LambdaUpdateWrapper<PayWalletDO> lambdaUpdateWrapper = new LambdaUpdateWrapper<PayWalletDO>() |
| 36 | 36 | .setSql(" balance = balance + " + price |
| 37 | 37 | + ", total_expense = total_expense - " + price) | ... | ... |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/job/order/PayOrderSyncJob.java
| ... | ... | @@ -21,9 +21,9 @@ import java.time.LocalDateTime; |
| 21 | 21 | public class PayOrderSyncJob implements JobHandler { |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * 同步创建时间在 N 分钟之前的订单 | |
| 24 | + * 同步创建时间在 N 分钟之内的订单 | |
| 25 | 25 | * |
| 26 | - * 为什么同步 10 分钟之前的订单? | |
| 26 | + * 为什么同步 10 分钟之内的订单? | |
| 27 | 27 | * 因为一个订单发起支付,到支付成功,大多数在 10 分钟内,需要保证轮询到。 |
| 28 | 28 | * 如果设置为 30、60 或者更大时间范围,会导致轮询的订单太多,影响性能。当然,你也可以根据自己的业务情况来处理。 |
| 29 | 29 | */ | ... | ... |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/service/channel/PayChannelServiceImpl.java
| ... | ... | @@ -14,22 +14,17 @@ import cn.iocoder.yudao.module.pay.convert.channel.PayChannelConvert; |
| 14 | 14 | import cn.iocoder.yudao.module.pay.dal.dataobject.channel.PayChannelDO; |
| 15 | 15 | import cn.iocoder.yudao.module.pay.dal.mysql.channel.PayChannelMapper; |
| 16 | 16 | import cn.iocoder.yudao.module.pay.framework.pay.core.WalletPayClient; |
| 17 | -import com.google.common.cache.CacheLoader; | |
| 18 | -import com.google.common.cache.LoadingCache; | |
| 19 | -import lombok.Getter; | |
| 17 | +import jakarta.annotation.PostConstruct; | |
| 18 | +import jakarta.annotation.Resource; | |
| 19 | +import jakarta.validation.Validator; | |
| 20 | 20 | import lombok.extern.slf4j.Slf4j; |
| 21 | 21 | import org.springframework.stereotype.Service; |
| 22 | 22 | import org.springframework.validation.annotation.Validated; |
| 23 | 23 | |
| 24 | -import jakarta.annotation.PostConstruct; | |
| 25 | -import jakarta.annotation.Resource; | |
| 26 | -import jakarta.validation.Validator; | |
| 27 | -import java.time.Duration; | |
| 28 | 24 | import java.util.Collection; |
| 29 | 25 | import java.util.List; |
| 30 | 26 | |
| 31 | 27 | import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception; |
| 32 | -import static cn.iocoder.yudao.framework.common.util.cache.CacheUtils.buildAsyncReloadingCache; | |
| 33 | 28 | import static cn.iocoder.yudao.module.pay.enums.ErrorCodeConstants.*; |
| 34 | 29 | |
| 35 | 30 | /** |
| ... | ... | @@ -42,25 +37,6 @@ import static cn.iocoder.yudao.module.pay.enums.ErrorCodeConstants.*; |
| 42 | 37 | @Validated |
| 43 | 38 | public class PayChannelServiceImpl implements PayChannelService { |
| 44 | 39 | |
| 45 | - /** | |
| 46 | - * {@link PayClient} 缓存,通过它异步清空 smsClientFactory | |
| 47 | - */ | |
| 48 | - @Getter | |
| 49 | - private final LoadingCache<Long, PayClient> clientCache = buildAsyncReloadingCache(Duration.ofSeconds(10L), | |
| 50 | - new CacheLoader<Long, PayClient>() { | |
| 51 | - | |
| 52 | - @Override | |
| 53 | - public PayClient load(Long id) { | |
| 54 | - // 查询,然后尝试清空 | |
| 55 | - PayChannelDO channel = payChannelMapper.selectById(id); | |
| 56 | - if (channel != null) { | |
| 57 | - payClientFactory.createOrUpdatePayClient(channel.getId(), channel.getCode(), channel.getConfig()); | |
| 58 | - } | |
| 59 | - return payClientFactory.getPayClient(id); | |
| 60 | - } | |
| 61 | - | |
| 62 | - }); | |
| 63 | - | |
| 64 | 40 | @Resource |
| 65 | 41 | private PayClientFactory payClientFactory; |
| 66 | 42 | |
| ... | ... | @@ -102,9 +78,6 @@ public class PayChannelServiceImpl implements PayChannelService { |
| 102 | 78 | PayChannelDO channel = PayChannelConvert.INSTANCE.convert(updateReqVO) |
| 103 | 79 | .setConfig(parseConfig(dbChannel.getCode(), updateReqVO.getConfig())); |
| 104 | 80 | payChannelMapper.updateById(channel); |
| 105 | - | |
| 106 | - // 清空缓存 | |
| 107 | - clearCache(channel.getId()); | |
| 108 | 81 | } |
| 109 | 82 | |
| 110 | 83 | /** |
| ... | ... | @@ -135,18 +108,6 @@ public class PayChannelServiceImpl implements PayChannelService { |
| 135 | 108 | |
| 136 | 109 | // 删除 |
| 137 | 110 | payChannelMapper.deleteById(id); |
| 138 | - | |
| 139 | - // 清空缓存 | |
| 140 | - clearCache(id); | |
| 141 | - } | |
| 142 | - | |
| 143 | - /** | |
| 144 | - * 删除缓存 | |
| 145 | - * | |
| 146 | - * @param id 渠道编号 | |
| 147 | - */ | |
| 148 | - private void clearCache(Long id) { | |
| 149 | - clientCache.invalidate(id); | |
| 150 | 111 | } |
| 151 | 112 | |
| 152 | 113 | private PayChannelDO validateChannelExists(Long id) { |
| ... | ... | @@ -202,7 +163,8 @@ public class PayChannelServiceImpl implements PayChannelService { |
| 202 | 163 | |
| 203 | 164 | @Override |
| 204 | 165 | public PayClient getPayClient(Long id) { |
| 205 | - return clientCache.getUnchecked(id); | |
| 166 | + PayChannelDO channel = validPayChannel(id); | |
| 167 | + return payClientFactory.createOrUpdatePayClient(id, channel.getCode(), channel.getConfig()); | |
| 206 | 168 | } |
| 207 | 169 | |
| 208 | 170 | } | ... | ... |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/service/wallet/PayWalletService.java
| ... | ... | @@ -36,7 +36,7 @@ public interface PayWalletService { |
| 36 | 36 | * @param pageReqVO 分页查询 |
| 37 | 37 | * @return 会员钱包分页 |
| 38 | 38 | */ |
| 39 | - PageResult<PayWalletDO> getWalletPage(Integer userType, PayWalletPageReqVO pageReqVO); | |
| 39 | + PageResult<PayWalletDO> getWalletPage(PayWalletPageReqVO pageReqVO); | |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * 钱包订单支付 | ... | ... |
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/service/wallet/PayWalletServiceImpl.java
| ... | ... | @@ -65,8 +65,8 @@ public class PayWalletServiceImpl implements PayWalletService { |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | @Override |
| 68 | - public PageResult<PayWalletDO> getWalletPage(Integer userType,PayWalletPageReqVO pageReqVO) { | |
| 69 | - return walletMapper.selectPage(userType, pageReqVO); | |
| 68 | + public PageResult<PayWalletDO> getWalletPage(PayWalletPageReqVO pageReqVO) { | |
| 69 | + return walletMapper.selectPage(pageReqVO); | |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | @Override | ... | ... |
yudao-module-pay/yudao-module-pay-biz/src/test-integration/java/cn/iocoder/yudao/module/pay/dal/dataobject/merchant/PayChannelDOTest.java deleted
| 1 | -package cn.iocoder.yudao.module.pay.dal.dataobject.merchant; | |
| 2 | - | |
| 3 | -import cn.iocoder.yudao.framework.common.util.json.JsonUtils; | |
| 4 | -import cn.iocoder.yudao.framework.pay.core.client.impl.weixin.WXPayClientConfig; | |
| 5 | -import org.junit.jupiter.api.Test; | |
| 6 | - | |
| 7 | -public class PayChannelDOTest { | |
| 8 | - | |
| 9 | - @Test | |
| 10 | - public void testSerialization() { | |
| 11 | - PayChannelDO payChannelDO = new PayChannelDO(); | |
| 12 | - // 创建配置 | |
| 13 | - WXPayClientConfig config = new WXPayClientConfig(); | |
| 14 | - config.setAppId("wx041349c6f39b268b"); | |
| 15 | - config.setMchId("1545083881"); | |
| 16 | - config.setApiVersion(WXPayClientConfig.API_VERSION_V2); | |
| 17 | - config.setMchKey("0alL64UDQdlCwiKZ73ib7ypaIjMns06p"); | |
| 18 | - payChannelDO.setConfig(config); | |
| 19 | - | |
| 20 | - // 序列化 | |
| 21 | - String text = JsonUtils.toJsonString(payChannelDO); | |
| 22 | - System.out.println(text); | |
| 23 | - | |
| 24 | - // 反序列化 | |
| 25 | - payChannelDO = JsonUtils.parseObject(text, PayChannelDO.class); | |
| 26 | - System.out.println(payChannelDO.getConfig().getClass()); | |
| 27 | - } | |
| 28 | - | |
| 29 | -} |
yudao-module-pay/yudao-module-pay-biz/src/test-integration/java/cn/iocoder/yudao/module/pay/dal/mysql/merchant/PayChannelMapperIntegrationTest.java deleted
| 1 | -package cn.iocoder.yudao.module.pay.dal.mysql.merchant; | |
| 2 | - | |
| 3 | -import cn.hutool.core.io.IoUtil; | |
| 4 | -import cn.iocoder.yudao.module.pay.dal.dataobject.merchant.PayChannelDO; | |
| 5 | -import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; | |
| 6 | -import cn.iocoder.yudao.framework.pay.core.client.impl.alipay.AlipayPayClientConfig; | |
| 7 | -import cn.iocoder.yudao.framework.pay.core.client.impl.weixin.WXPayClientConfig; | |
| 8 | -import cn.iocoder.yudao.framework.pay.core.enums.PayChannelEnum; | |
| 9 | -import cn.iocoder.yudao.module.pay.test.BaseDbIntegrationTest; | |
| 10 | -import org.junit.jupiter.api.Test; | |
| 11 | - | |
| 12 | -import jakarta.annotation.Resource; | |
| 13 | -import java.io.FileInputStream; | |
| 14 | -import java.io.FileNotFoundException; | |
| 15 | -import java.util.List; | |
| 16 | - | |
| 17 | -@Resource | |
| 18 | -public class PayChannelMapperIntegrationTest extends BaseDbIntegrationTest { | |
| 19 | - | |
| 20 | - @Resource | |
| 21 | - private PayChannelMapper payChannelMapper; | |
| 22 | - | |
| 23 | - /** | |
| 24 | - * 插入 {@link PayChannelEnum#WX_PUB} 初始配置 | |
| 25 | - */ | |
| 26 | - @Test | |
| 27 | - public void testInsertWxPub() throws FileNotFoundException { | |
| 28 | - PayChannelDO payChannelDO = new PayChannelDO(); | |
| 29 | - payChannelDO.setCode(PayChannelEnum.WX_PUB.getCode()); | |
| 30 | - payChannelDO.setStatus(CommonStatusEnum.ENABLE.getStatus()); | |
| 31 | - payChannelDO.setFeeRate(1D); | |
| 32 | - payChannelDO.setAppId(6L); | |
| 33 | - // 配置 | |
| 34 | - WXPayClientConfig config = new WXPayClientConfig(); | |
| 35 | - config.setAppId("wx041349c6f39b268b"); | |
| 36 | - config.setMchId("1545083881"); | |
| 37 | - config.setApiVersion(WXPayClientConfig.API_VERSION_V2); | |
| 38 | - config.setMchKey("0alL64UDQdlCwiKZ73ib7ypaIjMns06p"); | |
| 39 | - config.setPrivateKeyContent(IoUtil.readUtf8(new FileInputStream("/Users/yunai/Downloads/wx_pay/apiclient_key.pem"))); | |
| 40 | - config.setPrivateCertContent(IoUtil.readUtf8(new FileInputStream("/Users/yunai/Downloads/wx_pay/apiclient_cert.pem"))); | |
| 41 | - config.setApiV3Key("joerVi8y5DJ3o4ttA0o1uH47Xz1u2Ase"); | |
| 42 | - payChannelDO.setConfig(config); | |
| 43 | - // 执行插入 | |
| 44 | - payChannelMapper.insert(payChannelDO); | |
| 45 | - } | |
| 46 | - | |
| 47 | - // TODO @ouyang:Zfb 改成 AlipayQr | |
| 48 | - /** | |
| 49 | - * 插入 {@link PayChannelEnum#ALIPAY_QR} 初始配置 | |
| 50 | - */ | |
| 51 | - @Test | |
| 52 | - public void testInsertZfb() { | |
| 53 | - PayChannelDO payChannelDO = new PayChannelDO(); | |
| 54 | - payChannelDO.setCode(PayChannelEnum.ALIPAY_QR.getCode()); | |
| 55 | - payChannelDO.setStatus(CommonStatusEnum.ENABLE.getStatus()); | |
| 56 | - payChannelDO.setFeeRate(1D); | |
| 57 | - payChannelDO.setAppId(6L); | |
| 58 | - // 配置 | |
| 59 | - AlipayPayClientConfig config = new AlipayPayClientConfig(); | |
| 60 | - config.setAppId("2021000118634035"); | |
| 61 | - config.setServerUrl(AlipayPayClientConfig.SERVER_URL_SANDBOX); | |
| 62 | - config.setSignType(AlipayPayClientConfig.SIGN_TYPE_DEFAULT); | |
| 63 | - config.setPrivateKey("MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCHsEV1cDupwJv890x84qbppUtRIfhaKSwSVN0thCcsDCaAsGR5MZslDkO8NCT9V4r2SVXjyY7eJUZlZd1M0C8T01Tg4UOx5LUbic0O3A1uJMy6V1n9IyYwbAW3AEZhBd5bSbPgrqvmv3NeWSTQT6Anxnllf+2iDH6zyA2fPl7cYyQtbZoDJQFGqr4F+cGh2R6akzRKNoBkAeMYwoY6es2lX8sJxCVPWUmxNUoL3tScwlSpd7Bxw0q9c/X01jMwuQ0+Va358zgFiGERTE6yD01eu40OBDXOYO3z++y+TAYHlQQ2toMO63trepo88X3xV3R44/1DH+k2pAm2IF5ixiLrAgMBAAECggEAPx3SoXcseaD7rmcGcE0p4SMfbsUDdkUSmBBbtfF0GzwnqNLkWa+mgE0rWt9SmXngTQH97vByAYmLPl1s3G82ht1V7Sk7yQMe74lhFllr8eEyTjeVx3dTK1EEM4TwN+936DTXdFsr4TELJEcJJdD0KaxcCcfBLRDs2wnitEFZ9N+GoZybVmY8w0e0MI7PLObUZ2l0X4RurQnfG9ZxjXjC7PkeMVv7cGGylpNFi3BbvkRhdhLPDC2E6wqnr9e7zk+hiENivAezXrtxtwKovzCtnWJ1r0IO14Rh47H509Ic0wFnj+o5YyUL4LdmpL7yaaH6fM7zcSLFjNZPHvZCKPwYcQKBgQDQFho98QvnL8ex4v6cry4VitGpjSXm1qP3vmMQk4rTsn8iPWtcxPjqGEqOQJjdi4Mi0VZKQOLFwlH0kl95wNrD/isJ4O1yeYfX7YAXApzHqYNINzM79HemO3Yx1qLMW3okRFJ9pPRzbQ9qkTpsaegsmyX316zOBhzGRYjKbutTYwKBgQCm7phr9XdFW5Vh+XR90mVs483nrLmMiDKg7YKxSLJ8amiDjzPejCn7i95Hah08P+2MIZLIPbh2VLacczR6ltRRzN5bg5etFuqSgfkuHyxpoDmpjbe08+Q2h8JBYqcC5Nhv1AKU4iOUhVLHo/FBAQliMcGc/J3eiYTFC7EsNx382QKBgClb20doe7cttgFTXswBvaUmfFm45kmla924B7SpvrQpDD/f+VDtDZRp05fGmxuduSjYdtA3aVtpLiTwWu22OUUvZZqHDGruYOO4Hvdz23mL5b4ayqImCwoNU4bAZIc9v18p/UNf3/55NNE3oGcf/bev9rH2OjCQ4nM+Ktwhg8CFAoGACSgvbkShzUkv0ZcIf9ppu+ZnJh1AdGgINvGwaJ8vQ0nm/8h8NOoFZ4oNoGc+wU5Ubops7dUM6FjPR5e+OjdJ4E7Xp7d5O4J1TaIZlCEbo5OpdhaTDDcQvrkFu+Z4eN0qzj+YAKjDAOOrXc4tbr5q0FsgXscwtcNfaBuzFVTUrUkCgYEAwzPnMNhWG3zOWLUs2QFA2GP4Y+J8cpUYfj6pbKKzeLwyG9qBwF1NJpN8m+q9q7V9P2LY+9Lp9e1mGsGeqt5HMEA3P6vIpcqLJLqE/4PBLLRzfccTcmqb1m71+erxTRhHBRkGS+I7dZEb3olQfnS1Y1tpMBxiwYwR3LW4oXuJwj8="); | |
| 64 | - config.setAlipayPublicKey("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnq90KnF4dTnlzzmxpujbI05OYqi5WxAS6cL0gnZFv2gK51HExF8v/BaP7P979PhFMgWTqmOOI+Dtno5s+yD09XTY1WkshbLk6i4g2Xlr8fyW9ODnkU88RI2w9UdPhQU4cPPwBNlrsYhKkVK2OxwM3kFqjoBBY0CZoZCsSQ3LDH5WeZqPArlsS6xa2zqJBuuoKjMrdpELl3eXSjP8K54eDJCbeetCZNKWLL3DPahTPB7LZikfYmslb0QUvCgGapD0xkS7eVq70NaL1G57MWABs4tbfWgxike4Daj3EfUrzIVspQxj7w8HEj9WozJPgL88kSJSits0pqD3n5r8HSuseQIDAQAB"); | |
| 65 | - // 创建客户端 | |
| 66 | - payChannelDO.setConfig(config); | |
| 67 | - // 执行插入 | |
| 68 | - payChannelMapper.insert(payChannelDO); | |
| 69 | - } | |
| 70 | - | |
| 71 | - /** | |
| 72 | - * 查询所有支付配置,看看是否都是 ok 的 | |
| 73 | - */ | |
| 74 | - @Test | |
| 75 | - public void testSelectList() { | |
| 76 | - List<PayChannelDO> payChannels = payChannelMapper.selectList(); | |
| 77 | - System.out.println(payChannels.size()); | |
| 78 | - } | |
| 79 | - | |
| 80 | -} |
yudao-module-pay/yudao-module-pay-biz/src/test-integration/java/cn/iocoder/yudao/module/pay/service/order/PayOrderServiceIntegrationTest.java deleted
| 1 | -package cn.iocoder.yudao.module.pay.service.order; | |
| 2 | - | |
| 3 | -import cn.iocoder.yudao.module.pay.service.channel.PayAppServiceImpl; | |
| 4 | -import cn.iocoder.yudao.module.pay.service.channel.PayChannelServiceImpl; | |
| 5 | -import cn.iocoder.yudao.module.pay.service.order.dto.PayOrderCreateReqDTO; | |
| 6 | -import cn.iocoder.yudao.module.pay.service.order.dto.PayOrderSubmitReqDTO; | |
| 7 | -import cn.iocoder.yudao.module.pay.test.BaseDbIntegrationTest; | |
| 8 | -import cn.iocoder.yudao.framework.common.util.date.DateUtils; | |
| 9 | -import cn.iocoder.yudao.framework.pay.config.YudaoPayAutoConfiguration; | |
| 10 | -import cn.iocoder.yudao.framework.pay.core.enums.PayChannelEnum; | |
| 11 | -import org.junit.jupiter.api.Test; | |
| 12 | -import org.springframework.context.annotation.Import; | |
| 13 | - | |
| 14 | -import jakarta.annotation.Resource; | |
| 15 | -import java.time.Duration; | |
| 16 | - | |
| 17 | -@Import({PayOrderServiceImpl.class, PayAppServiceImpl.class, | |
| 18 | - PayChannelServiceImpl.class, YudaoPayAutoConfiguration.class}) | |
| 19 | -public class PayOrderServiceIntegrationTest extends BaseDbIntegrationTest { | |
| 20 | - | |
| 21 | - @Resource | |
| 22 | - private PayOrderService payOrderService; | |
| 23 | - | |
| 24 | - @Test | |
| 25 | - public void testCreatePayOrder() { | |
| 26 | - // 构造请求 | |
| 27 | - PayOrderCreateReqDTO reqDTO = new PayOrderCreateReqDTO(); | |
| 28 | - reqDTO.setAppId(6L); | |
| 29 | - reqDTO.setUserIp("127.0.0.1"); | |
| 30 | - reqDTO.setMerchantOrderId(String.valueOf(System.currentTimeMillis())); | |
| 31 | - reqDTO.setSubject("标题"); | |
| 32 | - reqDTO.setBody("内容"); | |
| 33 | - reqDTO.setPrice(100); | |
| 34 | - reqDTO.setExpireTime(DateUtils.addTime(Duration.ofDays(1))); | |
| 35 | - // 发起请求 | |
| 36 | - payOrderService.createPayOrder(reqDTO); | |
| 37 | - } | |
| 38 | - | |
| 39 | - @Test | |
| 40 | - public void testSubmitPayOrder() { | |
| 41 | - // 构造请求 | |
| 42 | - PayOrderSubmitReqDTO reqDTO = new PayOrderSubmitReqDTO(); | |
| 43 | - reqDTO.setId(10L); | |
| 44 | - reqDTO.setAppId(6L); | |
| 45 | - reqDTO.setChannelCode(PayChannelEnum.WX_PUB.getCode()); | |
| 46 | - reqDTO.setUserIp("127.0.0.1"); | |
| 47 | - // 发起请求 | |
| 48 | - payOrderService.submitPayOrder(reqDTO); | |
| 49 | - } | |
| 50 | - | |
| 51 | -} |
yudao-module-pay/yudao-module-pay-biz/src/test-integration/java/cn/iocoder/yudao/module/pay/service/package-info.java deleted
| 1 | -package cn.iocoder.yudao.module.pay.service; |
yudao-module-pay/yudao-module-pay-biz/src/test-integration/java/cn/iocoder/yudao/module/pay/test/BaseDbAndRedisIntegrationTest.java deleted
| 1 | -package cn.iocoder.yudao.module.pay.test; | |
| 2 | - | |
| 3 | -import cn.iocoder.yudao.framework.datasource.config.YudaoDataSourceAutoConfiguration; | |
| 4 | -import cn.iocoder.yudao.framework.mybatis.config.YudaoMybatisAutoConfiguration; | |
| 5 | -import cn.iocoder.yudao.framework.redis.config.YudaoRedisAutoConfiguration; | |
| 6 | -import com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourceAutoConfiguration; | |
| 7 | -import com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration; | |
| 8 | -import org.redisson.spring.starter.RedissonAutoConfiguration; | |
| 9 | -import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration; | |
| 10 | -import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; | |
| 11 | -import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration; | |
| 12 | -import org.springframework.boot.test.context.SpringBootTest; | |
| 13 | -import org.springframework.context.annotation.Import; | |
| 14 | -import org.springframework.test.context.ActiveProfiles; | |
| 15 | - | |
| 16 | -@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = BaseDbAndRedisIntegrationTest.Application.class) | |
| 17 | -@ActiveProfiles("integration-test") // 设置使用 application-integration-test 配置文件 | |
| 18 | -public class BaseDbAndRedisIntegrationTest { | |
| 19 | - | |
| 20 | - @Import({ | |
| 21 | - // DB 配置类 | |
| 22 | - DynamicDataSourceAutoConfiguration.class, // Dynamic Datasource 配置类 | |
| 23 | - YudaoDataSourceAutoConfiguration.class, // 自己的 DB 配置类 | |
| 24 | - DataSourceAutoConfiguration.class, // Spring DB 自动配置类 | |
| 25 | - DataSourceTransactionManagerAutoConfiguration.class, // Spring 事务自动配置类 | |
| 26 | - // MyBatis 配置类 | |
| 27 | - YudaoMybatisAutoConfiguration.class, // 自己的 MyBatis 配置类 | |
| 28 | - MybatisPlusAutoConfiguration.class, // MyBatis 的自动配置类 | |
| 29 | - | |
| 30 | - // Redis 配置类 | |
| 31 | - RedisAutoConfiguration.class, // Spring Redis 自动配置类 | |
| 32 | - YudaoRedisAutoConfiguration.class, // 自己的 Redis 配置类 | |
| 33 | - RedissonAutoConfiguration.class, // Redisson 自动配置类 | |
| 34 | - }) | |
| 35 | - public static class Application { | |
| 36 | - } | |
| 37 | - | |
| 38 | -} |
yudao-module-pay/yudao-module-pay-biz/src/test-integration/java/cn/iocoder/yudao/module/pay/test/BaseDbIntegrationTest.java deleted
| 1 | -package cn.iocoder.yudao.module.pay.test; | |
| 2 | - | |
| 3 | -import cn.iocoder.yudao.framework.datasource.config.YudaoDataSourceAutoConfiguration; | |
| 4 | -import cn.iocoder.yudao.framework.mybatis.config.YudaoMybatisAutoConfiguration; | |
| 5 | -import com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourceAutoConfiguration; | |
| 6 | -import com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration; | |
| 7 | -import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; | |
| 8 | -import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration; | |
| 9 | -import org.springframework.boot.test.context.SpringBootTest; | |
| 10 | -import org.springframework.context.annotation.Import; | |
| 11 | -import org.springframework.test.context.ActiveProfiles; | |
| 12 | - | |
| 13 | -@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = BaseDbIntegrationTest.Application.class) | |
| 14 | -@ActiveProfiles("integration-test") // 设置使用 application-integration-test 配置文件 | |
| 15 | -public class BaseDbIntegrationTest { | |
| 16 | - | |
| 17 | - @Import({ | |
| 18 | - // DB 配置类 | |
| 19 | - DynamicDataSourceAutoConfiguration.class, // Dynamic Datasource 配置类 | |
| 20 | - YudaoDataSourceAutoConfiguration.class, // 自己的 DB 配置类 | |
| 21 | - DataSourceAutoConfiguration.class, // Spring DB 自动配置类 | |
| 22 | - DataSourceTransactionManagerAutoConfiguration.class, // Spring 事务自动配置类 | |
| 23 | - // MyBatis 配置类 | |
| 24 | - YudaoMybatisAutoConfiguration.class, // 自己的 MyBatis 配置类 | |
| 25 | - MybatisPlusAutoConfiguration.class, // MyBatis 的自动配置类 | |
| 26 | - }) | |
| 27 | - public static class Application { | |
| 28 | - } | |
| 29 | - | |
| 30 | -} |
yudao-module-pay/yudao-module-pay-biz/src/test-integration/java/cn/iocoder/yudao/module/pay/test/BaseRedisIntegrationTest.java deleted
| 1 | -package cn.iocoder.yudao.module.pay.test; | |
| 2 | - | |
| 3 | -import cn.iocoder.yudao.framework.redis.config.YudaoRedisAutoConfiguration; | |
| 4 | -import org.redisson.spring.starter.RedissonAutoConfiguration; | |
| 5 | -import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration; | |
| 6 | -import org.springframework.boot.test.context.SpringBootTest; | |
| 7 | -import org.springframework.context.annotation.Import; | |
| 8 | -import org.springframework.test.context.ActiveProfiles; | |
| 9 | - | |
| 10 | -@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = BaseRedisIntegrationTest.Application.class) | |
| 11 | -@ActiveProfiles("integration-test") // 设置使用 application-integration-test 配置文件 | |
| 12 | -public class BaseRedisIntegrationTest { | |
| 13 | - | |
| 14 | - @Import({ | |
| 15 | - // Redis 配置类 | |
| 16 | - RedisAutoConfiguration.class, // Spring Redis 自动配置类 | |
| 17 | - YudaoRedisAutoConfiguration.class, // 自己的 Redis 配置类 | |
| 18 | - RedissonAutoConfiguration.class, // Redisson 自动配置类 | |
| 19 | - }) | |
| 20 | - public static class Application { | |
| 21 | - } | |
| 22 | - | |
| 23 | -} |
yudao-module-pay/yudao-module-pay-biz/src/test-integration/resources/application-integration-test.yaml deleted
| 1 | -spring: | |
| 2 | - main: | |
| 3 | - lazy-initialization: true # 开启懒加载,加快速度 | |
| 4 | - banner-mode: off # 单元测试,禁用 Banner | |
| 5 | - | |
| 6 | ---- #################### 数据库相关配置 #################### | |
| 7 | - | |
| 8 | -spring: | |
| 9 | - # 数据源配置项 | |
| 10 | - autoconfigure: | |
| 11 | - exclude: | |
| 12 | - - com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure # 排除 Druid 的自动配置,使用 dynamic-datasource-spring-boot-starter 配置多数据源 | |
| 13 | - datasource: | |
| 14 | - druid: # Druid 【监控】相关的全局配置 | |
| 15 | - web-stat-filter: | |
| 16 | - enabled: true | |
| 17 | - dynamic: # 多数据源配置 | |
| 18 | - druid: # Druid 【连接池】相关的全局配置 | |
| 19 | - initial-size: 5 # 初始连接数 | |
| 20 | - min-idle: 10 # 最小连接池数量 | |
| 21 | - max-active: 20 # 最大连接池数量 | |
| 22 | - max-wait: 600000 # 配置获取连接等待超时的时间,单位:毫秒 | |
| 23 | - time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒 | |
| 24 | - min-evictable-idle-time-millis: 300000 # 配置一个连接在池中最小生存的时间,单位:毫秒 | |
| 25 | - max-evictable-idle-time-millis: 900000 # 配置一个连接在池中最大生存的时间,单位:毫秒 | |
| 26 | - validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效 | |
| 27 | - test-while-idle: true | |
| 28 | - test-on-borrow: false | |
| 29 | - test-on-return: false | |
| 30 | - primary: master | |
| 31 | - datasource: | |
| 32 | - master: | |
| 33 | - name: ruoyi-vue-pro | |
| 34 | - url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT | |
| 35 | - driver-class-name: com.mysql.jdbc.Driver | |
| 36 | - username: root | |
| 37 | - password: 123456 | |
| 38 | - slave: # 模拟从库,可根据自己需要修改 | |
| 39 | - name: ruoyi-vue-pro | |
| 40 | - url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.slave.name}?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT | |
| 41 | - driver-class-name: com.mysql.jdbc.Driver | |
| 42 | - username: root | |
| 43 | - password: 123456 | |
| 44 | - | |
| 45 | - # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 | |
| 46 | - data: | |
| 47 | - redis: | |
| 48 | - host: 127.0.0.1 # 地址 | |
| 49 | - port: 16379 # 端口(单元测试,使用 16379 端口) | |
| 50 | - database: 0 # 数据库索引 | |
| 51 | - | |
| 52 | -mybatis: | |
| 53 | - lazy-initialization: true # 单元测试,设置 MyBatis Mapper 延迟加载,加速每个单元测试 | |
| 54 | -mybatis-plus: | |
| 55 | - configuration: | |
| 56 | - map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。 | |
| 57 | - log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 打印日志 | |
| 58 | - global-config: | |
| 59 | - db-config: | |
| 60 | - id-type: AUTO # 自增 ID | |
| 61 | - logic-delete-value: 1 # 逻辑已删除值(默认为 1) | |
| 62 | - logic-not-delete-value: 0 # 逻辑未删除值(默认为 0) | |
| 63 | - mapper-locations: classpath*:mapper/*.xml | |
| 64 | - type-aliases-package: ${yudao.info.base-package}.module.*.dal.dataobject | |
| 65 | - | |
| 66 | ---- #################### 定时任务相关配置 #################### | |
| 67 | - | |
| 68 | ---- #################### 配置中心相关配置 #################### | |
| 69 | - | |
| 70 | ---- #################### 服务保障相关配置 #################### | |
| 71 | - | |
| 72 | -# Lock4j 配置项(单元测试,禁用 Lock4j) | |
| 73 | - | |
| 74 | ---- #################### 监控相关配置 #################### | |
| 75 | - | |
| 76 | ---- #################### 芋道相关配置 #################### | |
| 77 | - | |
| 78 | -yudao: | |
| 79 | - info: | |
| 80 | - version: 1.0.0 | |
| 81 | - base-package: cn.iocoder.yudao.module | |
| 82 | - pay: | |
| 83 | - pay-notify-url: http://niubi.natapp1.cc/api/pay/order/notify | |
| 84 | - refund-notify-url: http://niubi.natapp1.cc/api/pay/refund/notify |
yudao-module-pay/yudao-module-pay-biz/src/test/java/cn/iocoder/yudao/module/pay/service/channel/PayChannelServiceTest.java
| ... | ... | @@ -60,8 +60,6 @@ public class PayChannelServiceTest extends BaseDbUnitTest { |
| 60 | 60 | PayChannelDO channel = channelMapper.selectById(channelId); |
| 61 | 61 | assertPojoEquals(reqVO, channel, "config"); |
| 62 | 62 | assertPojoEquals(config, channel.getConfig()); |
| 63 | - // 校验缓存 | |
| 64 | - assertNull(channelService.getClientCache().getIfPresent(channelId)); | |
| 65 | 63 | } |
| 66 | 64 | |
| 67 | 65 | @Test |
| ... | ... | @@ -102,8 +100,6 @@ public class PayChannelServiceTest extends BaseDbUnitTest { |
| 102 | 100 | PayChannelDO channel = channelMapper.selectById(reqVO.getId()); // 获取最新的 |
| 103 | 101 | assertPojoEquals(reqVO, channel, "config"); |
| 104 | 102 | assertPojoEquals(config, channel.getConfig()); |
| 105 | - // 校验缓存 | |
| 106 | - assertNull(channelService.getClientCache().getIfPresent(channel.getId())); | |
| 107 | 103 | } |
| 108 | 104 | |
| 109 | 105 | @Test |
| ... | ... | @@ -134,8 +130,6 @@ public class PayChannelServiceTest extends BaseDbUnitTest { |
| 134 | 130 | channelService.deleteChannel(id); |
| 135 | 131 | // 校验数据不存在了 |
| 136 | 132 | assertNull(channelMapper.selectById(id)); |
| 137 | - // 校验缓存 | |
| 138 | - assertNull(channelService.getClientCache().getIfPresent(id)); | |
| 139 | 133 | } |
| 140 | 134 | |
| 141 | 135 | @Test |
| ... | ... | @@ -306,20 +300,20 @@ public class PayChannelServiceTest extends BaseDbUnitTest { |
| 306 | 300 | PayChannelDO channel = randomPojo(PayChannelDO.class, o -> { |
| 307 | 301 | o.setCode(PayChannelEnum.ALIPAY_APP.getCode()); |
| 308 | 302 | o.setConfig(randomAlipayPayClientConfig()); |
| 303 | + o.setStatus(CommonStatusEnum.ENABLE.getStatus()); | |
| 309 | 304 | }); |
| 310 | 305 | channelMapper.insert(channel); |
| 311 | 306 | // mock 参数 |
| 312 | 307 | Long id = channel.getId(); |
| 313 | 308 | // mock 方法 |
| 314 | 309 | PayClient mockClient = mock(PayClient.class); |
| 315 | - when(payClientFactory.getPayClient(eq(id))).thenReturn(mockClient); | |
| 310 | + when(payClientFactory.createOrUpdatePayClient(eq(id), eq(channel.getCode()), eq(channel.getConfig()))) | |
| 311 | + .thenReturn(mockClient); | |
| 316 | 312 | |
| 317 | 313 | // 调用 |
| 318 | 314 | PayClient client = channelService.getPayClient(id); |
| 319 | 315 | // 断言 |
| 320 | 316 | assertSame(client, mockClient); |
| 321 | - verify(payClientFactory).createOrUpdatePayClient(eq(id), eq(channel.getCode()), | |
| 322 | - eq(channel.getConfig())); | |
| 323 | 317 | } |
| 324 | 318 | |
| 325 | 319 | public WxPayClientConfig randomWxPayClientConfig() { | ... | ... |
yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/PayClientFactory.java
| ... | ... | @@ -23,9 +23,10 @@ public interface PayClientFactory { |
| 23 | 23 | * @param channelId 渠道编号 |
| 24 | 24 | * @param channelCode 渠道编码 |
| 25 | 25 | * @param config 支付配置 |
| 26 | + * @return 支付客户端 | |
| 26 | 27 | */ |
| 27 | - <Config extends PayClientConfig> void createOrUpdatePayClient(Long channelId, String channelCode, | |
| 28 | - Config config); | |
| 28 | + <Config extends PayClientConfig> PayClient createOrUpdatePayClient(Long channelId, String channelCode, | |
| 29 | + Config config); | |
| 29 | 30 | |
| 30 | 31 | /** |
| 31 | 32 | * 注册支付客户端 Class,用于模块中实现的 PayClient | ... | ... |
yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/PayClientFactoryImpl.java
| ... | ... | @@ -71,8 +71,8 @@ public class PayClientFactoryImpl implements PayClientFactory { |
| 71 | 71 | |
| 72 | 72 | @Override |
| 73 | 73 | @SuppressWarnings("unchecked") |
| 74 | - public <Config extends PayClientConfig> void createOrUpdatePayClient(Long channelId, String channelCode, | |
| 75 | - Config config) { | |
| 74 | + public <Config extends PayClientConfig> PayClient createOrUpdatePayClient(Long channelId, String channelCode, | |
| 75 | + Config config) { | |
| 76 | 76 | AbstractPayClient<Config> client = (AbstractPayClient<Config>) clients.get(channelId); |
| 77 | 77 | if (client == null) { |
| 78 | 78 | client = this.createPayClient(channelId, channelCode, config); |
| ... | ... | @@ -81,6 +81,7 @@ public class PayClientFactoryImpl implements PayClientFactory { |
| 81 | 81 | } else { |
| 82 | 82 | client.refresh(config); |
| 83 | 83 | } |
| 84 | + return client; | |
| 84 | 85 | } |
| 85 | 86 | |
| 86 | 87 | @SuppressWarnings("unchecked") | ... | ... |
yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/AbstractWxPayClient.java
| ... | ... | @@ -36,6 +36,7 @@ import java.util.Objects; |
| 36 | 36 | |
| 37 | 37 | import static cn.hutool.core.date.DatePattern.*; |
| 38 | 38 | import static cn.iocoder.yudao.framework.pay.core.client.impl.weixin.WxPayClientConfig.API_VERSION_V2; |
| 39 | +import static cn.iocoder.yudao.framework.pay.core.client.impl.weixin.WxPayClientConfig.API_VERSION_V3; | |
| 39 | 40 | |
| 40 | 41 | /** |
| 41 | 42 | * 微信支付抽象类,实现微信统一的接口、以及部分实现(退款) |
| ... | ... | @@ -59,19 +60,14 @@ public abstract class AbstractWxPayClient extends AbstractPayClient<WxPayClientC |
| 59 | 60 | protected void doInit(String tradeType) { |
| 60 | 61 | // 创建 config 配置 |
| 61 | 62 | WxPayConfig payConfig = new WxPayConfig(); |
| 62 | - BeanUtil.copyProperties(config, payConfig, "keyContent", "privateKeyContent", "privateCertContent"); | |
| 63 | + BeanUtil.copyProperties(config, payConfig, "keyContent", "privateKeyContent"); | |
| 63 | 64 | payConfig.setTradeType(tradeType); |
| 64 | 65 | // weixin-pay-java 无法设置内容,只允许读取文件,所以这里要创建临时文件来解决 |
| 65 | - if (Base64.isBase64(config.getKeyContent())) { | |
| 66 | + if (Objects.equals(config.getApiVersion(), API_VERSION_V2)) { | |
| 66 | 67 | payConfig.setKeyPath(FileUtils.createTempFile(Base64.decode(config.getKeyContent())).getPath()); |
| 67 | - } | |
| 68 | - if (StrUtil.isNotEmpty(config.getPrivateKeyContent())) { | |
| 68 | + } else if (Objects.equals(config.getApiVersion(), API_VERSION_V3)) { | |
| 69 | 69 | payConfig.setPrivateKeyPath(FileUtils.createTempFile(config.getPrivateKeyContent()).getPath()); |
| 70 | 70 | } |
| 71 | - if (StrUtil.isNotEmpty(config.getPrivateCertContent())) { | |
| 72 | - payConfig.setPrivateCertPath(FileUtils.createTempFile(config.getPrivateCertContent()).getPath()); | |
| 73 | - } | |
| 74 | -// payConfig.setCertSerialNo(); | |
| 75 | 71 | |
| 76 | 72 | // 创建 client 客户端 |
| 77 | 73 | client = new WxPayServiceImpl(); |
| ... | ... | @@ -86,7 +82,7 @@ public abstract class AbstractWxPayClient extends AbstractPayClient<WxPayClientC |
| 86 | 82 | switch (config.getApiVersion()) { |
| 87 | 83 | case API_VERSION_V2: |
| 88 | 84 | return doUnifiedOrderV2(reqDTO); |
| 89 | - case WxPayClientConfig.API_VERSION_V3: | |
| 85 | + case API_VERSION_V3: | |
| 90 | 86 | return doUnifiedOrderV3(reqDTO); |
| 91 | 87 | default: |
| 92 | 88 | throw new IllegalArgumentException(String.format("未知的 API 版本(%s)", config.getApiVersion())); |
| ... | ... | @@ -157,7 +153,7 @@ public abstract class AbstractWxPayClient extends AbstractPayClient<WxPayClientC |
| 157 | 153 | switch (config.getApiVersion()) { |
| 158 | 154 | case API_VERSION_V2: |
| 159 | 155 | return doParseOrderNotifyV2(body); |
| 160 | - case WxPayClientConfig.API_VERSION_V3: | |
| 156 | + case API_VERSION_V3: | |
| 161 | 157 | return doParseOrderNotifyV3(body); |
| 162 | 158 | default: |
| 163 | 159 | throw new IllegalArgumentException(String.format("未知的 API 版本(%s)", config.getApiVersion())); |
| ... | ... | @@ -192,7 +188,7 @@ public abstract class AbstractWxPayClient extends AbstractPayClient<WxPayClientC |
| 192 | 188 | switch (config.getApiVersion()) { |
| 193 | 189 | case API_VERSION_V2: |
| 194 | 190 | return doGetOrderV2(outTradeNo); |
| 195 | - case WxPayClientConfig.API_VERSION_V3: | |
| 191 | + case API_VERSION_V3: | |
| 196 | 192 | return doGetOrderV3(outTradeNo); |
| 197 | 193 | default: |
| 198 | 194 | throw new IllegalArgumentException(String.format("未知的 API 版本(%s)", config.getApiVersion())); |
| ... | ... | @@ -261,7 +257,7 @@ public abstract class AbstractWxPayClient extends AbstractPayClient<WxPayClientC |
| 261 | 257 | switch (config.getApiVersion()) { |
| 262 | 258 | case API_VERSION_V2: |
| 263 | 259 | return doUnifiedRefundV2(reqDTO); |
| 264 | - case WxPayClientConfig.API_VERSION_V3: | |
| 260 | + case API_VERSION_V3: | |
| 265 | 261 | return doUnifiedRefundV3(reqDTO); |
| 266 | 262 | default: |
| 267 | 263 | throw new IllegalArgumentException(String.format("未知的 API 版本(%s)", config.getApiVersion())); |
| ... | ... | @@ -321,7 +317,7 @@ public abstract class AbstractWxPayClient extends AbstractPayClient<WxPayClientC |
| 321 | 317 | switch (config.getApiVersion()) { |
| 322 | 318 | case API_VERSION_V2: |
| 323 | 319 | return doParseRefundNotifyV2(body); |
| 324 | - case WxPayClientConfig.API_VERSION_V3: | |
| 320 | + case API_VERSION_V3: | |
| 325 | 321 | return parseRefundNotifyV3(body); |
| 326 | 322 | default: |
| 327 | 323 | throw new IllegalArgumentException(String.format("未知的 API 版本(%s)", config.getApiVersion())); |
| ... | ... | @@ -358,7 +354,7 @@ public abstract class AbstractWxPayClient extends AbstractPayClient<WxPayClientC |
| 358 | 354 | switch (config.getApiVersion()) { |
| 359 | 355 | case API_VERSION_V2: |
| 360 | 356 | return doGetRefundV2(outTradeNo, outRefundNo); |
| 361 | - case WxPayClientConfig.API_VERSION_V3: | |
| 357 | + case API_VERSION_V3: | |
| 362 | 358 | return doGetRefundV3(outTradeNo, outRefundNo); |
| 363 | 359 | default: |
| 364 | 360 | throw new IllegalArgumentException(String.format("未知的 API 版本(%s)", config.getApiVersion())); | ... | ... |
yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/WxNativePayClient.java
| ... | ... | @@ -34,7 +34,8 @@ public class WxNativePayClient extends AbstractWxPayClient { |
| 34 | 34 | @Override |
| 35 | 35 | protected PayOrderRespDTO doUnifiedOrderV2(PayOrderUnifiedReqDTO reqDTO) throws WxPayException { |
| 36 | 36 | // 构建 WxPayUnifiedOrderRequest 对象 |
| 37 | - WxPayUnifiedOrderRequest request = buildPayUnifiedOrderRequestV2(reqDTO); | |
| 37 | + WxPayUnifiedOrderRequest request = buildPayUnifiedOrderRequestV2(reqDTO) | |
| 38 | + .setProductId(reqDTO.getOutTradeNo()); // V2 必须传递 productId,无需在微信配置。该参数在 V3 简化,无需传递! | |
| 38 | 39 | // 执行请求 |
| 39 | 40 | WxPayNativeOrderResult response = client.createOrder(request); |
| 40 | 41 | ... | ... |
yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/WxPayClientConfig.java
| 1 | 1 | package cn.iocoder.yudao.framework.pay.core.client.impl.weixin; |
| 2 | 2 | |
| 3 | -import cn.hutool.core.io.IoUtil; | |
| 4 | 3 | import cn.iocoder.yudao.framework.common.util.validation.ValidationUtils; |
| 5 | 4 | import cn.iocoder.yudao.framework.pay.core.client.PayClientConfig; |
| 6 | -import lombok.Data; | |
| 7 | - | |
| 8 | 5 | import jakarta.validation.Validator; |
| 9 | 6 | import jakarta.validation.constraints.NotBlank; |
| 10 | -import java.io.FileInputStream; | |
| 11 | -import java.io.FileNotFoundException; | |
| 7 | +import lombok.Data; | |
| 12 | 8 | |
| 13 | 9 | /** |
| 14 | 10 | * 微信支付的 PayClientConfig 实现类 |
| ... | ... | @@ -72,15 +68,18 @@ public class WxPayClientConfig implements PayClientConfig { |
| 72 | 68 | @NotBlank(message = "apiclient_key 不能为空", groups = V3.class) |
| 73 | 69 | private String privateKeyContent; |
| 74 | 70 | /** |
| 75 | - * apiclient_cert.pem 证书文件的对应的字符串 | |
| 76 | - */ | |
| 77 | - @NotBlank(message = "apiclient_cert 不能为空", groups = V3.class) | |
| 78 | - private String privateCertContent; | |
| 79 | - /** | |
| 80 | 71 | * apiV3 密钥值 |
| 81 | 72 | */ |
| 82 | 73 | @NotBlank(message = "apiV3 密钥值不能为空", groups = V3.class) |
| 83 | 74 | private String apiV3Key; |
| 75 | + /** | |
| 76 | + * 证书序列号 | |
| 77 | + */ | |
| 78 | + @NotBlank(message = "证书序列号不能为空", groups = V3.class) | |
| 79 | + private String certSerialNo; | |
| 80 | + | |
| 81 | + @Deprecated // TODO 芋艿:V2.3.0 进行移除 | |
| 82 | + private String privateCertContent; | |
| 84 | 83 | |
| 85 | 84 | /** |
| 86 | 85 | * 分组校验 v2版本 |
| ... | ... | @@ -100,11 +99,4 @@ public class WxPayClientConfig implements PayClientConfig { |
| 100 | 99 | API_VERSION_V2.equals(this.getApiVersion()) ? V2.class : V3.class); |
| 101 | 100 | } |
| 102 | 101 | |
| 103 | - public static void main(String[] args) throws FileNotFoundException { | |
| 104 | - String path = "/Users/yunai/Downloads/wx_pay/apiclient_cert.p12"; | |
| 105 | - /// String path = "/Users/yunai/Downloads/wx_pay/apiclient_key.pem"; | |
| 106 | - /// String path = "/Users/yunai/Downloads/wx_pay/apiclient_cert.pem"; | |
| 107 | - System.out.println(IoUtil.readUtf8(new FileInputStream(path))); | |
| 108 | - } | |
| 109 | - | |
| 110 | 102 | } | ... | ... |
yudao-module-report/yudao-module-report-biz/src/main/java/cn/iocoder/yudao/module/report/framework/jmreport/core/service/JmReportTokenServiceImpl.java
| ... | ... | @@ -133,6 +133,13 @@ public class JmReportTokenServiceImpl implements JmReportTokenServiceI { |
| 133 | 133 | |
| 134 | 134 | @Override |
| 135 | 135 | public String[] getRoles(String token) { |
| 136 | + // 设置租户上下文。原因是:/jmreport/** 纯前端地址,不会走 buildLoginUserByToken 逻辑 | |
| 137 | + LoginUser loginUser = SecurityFrameworkUtils.getLoginUser(); | |
| 138 | + if (loginUser == null) { | |
| 139 | + return null; | |
| 140 | + } | |
| 141 | + TenantContextHolder.setTenantId(loginUser.getTenantId()); | |
| 142 | + | |
| 136 | 143 | // 参见文档 https://help.jeecg.com/jimureport/prodSafe.html 文档 |
| 137 | 144 | // 适配:如果是本系统的管理员,则转换成 jimu 报表的管理员 |
| 138 | 145 | Long userId = SecurityFrameworkUtils.getLoginUserId(); | ... | ... |
yudao-module-report/yudao-module-report-biz/src/main/java/cn/iocoder/yudao/module/report/framework/security/config/SecurityConfiguration.java
| 1 | 1 | package cn.iocoder.yudao.module.report.framework.security.config; |
| 2 | 2 | |
| 3 | 3 | import cn.iocoder.yudao.framework.security.config.AuthorizeRequestsCustomizer; |
| 4 | -import cn.iocoder.yudao.module.system.api.oauth2.OAuth2TokenApi; | |
| 5 | -import jakarta.annotation.Resource; | |
| 6 | 4 | import org.springframework.context.annotation.Bean; |
| 7 | 5 | import org.springframework.context.annotation.Configuration; |
| 8 | 6 | import org.springframework.security.config.annotation.web.builders.HttpSecurity; |
| ... | ... | @@ -14,16 +12,15 @@ import org.springframework.security.config.annotation.web.configurers.AuthorizeH |
| 14 | 12 | @Configuration("reportSecurityConfiguration") |
| 15 | 13 | public class SecurityConfiguration { |
| 16 | 14 | |
| 17 | - @Resource | |
| 18 | - private OAuth2TokenApi oauth2TokenApi; | |
| 19 | - | |
| 20 | 15 | @Bean("reportAuthorizeRequestsCustomizer") |
| 21 | 16 | public AuthorizeRequestsCustomizer authorizeRequestsCustomizer() { |
| 22 | 17 | return new AuthorizeRequestsCustomizer() { |
| 18 | + | |
| 23 | 19 | @Override |
| 24 | 20 | public void customize(AuthorizeHttpRequestsConfigurer<HttpSecurity>.AuthorizationManagerRequestMatcherRegistry registry) { |
| 25 | 21 | registry.requestMatchers("/jmreport/**").permitAll(); // 积木报表 |
| 26 | 22 | } |
| 23 | + | |
| 27 | 24 | }; |
| 28 | 25 | } |
| 29 | 26 | ... | ... |