diff --git a/Dockerfile b/Dockerfile index 3a5204594..f75c69b5c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,7 @@ WORKDIR / EXPOSE 9000 # 添加执行jar包 -ADD daxpay-single/daxpay-single-start/target/daxpay-start.jar dax-start.jar +ADD daxpay-single-start/target/daxpay-start.jar dax-start.jar # 执行启动命令 CMD java $JAVA_OPTS -jar dax-start.jar diff --git a/README.md b/README.md index 0bd1e1f48..f920f6cda 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@

star - Build Status + Build Status Build Status Downloads @@ -35,10 +35,10 @@ ## 📃 文档和源码地址 ### 文档地址 -在 [Bootx开源文档站](https://doc.bootx.cn/) 下的支付网关(DaxPay)模块下可以进行查阅相关文档,具体链接地址如下: -[快速指南](https://doc.bootx.cn/daxpay/guides/overview/项目介绍.html)、 -[支付对接](https://doc.bootx.cn/daxpay/gateway/overview/接口清单.html)、 -[操作手册](https://doc.bootx.cn/daxpay/admin/config/平台配置.html) +在 [DaxPay文档站](https://doc.daxpay.cn/) 下的支付网关(DaxPay)模块下可以进行查阅相关文档,具体链接地址如下: +[快速指南](https://doc.daxpay.cn/single/guides/overview/项目介绍.html)、 +[支付对接](https://doc.daxpay.cn/single/gateway/overview/接口清单.html)、 +[操作手册](https://doc.daxpay.cn/single/admin/config/平台配置.html) ### 项目地址 @@ -89,7 +89,7 @@ 不会对原业务系统的架构产生影响。如果是Java项目,可以使用SDK简化接入流程, 其他语言可以参照中的说明使用HTTP接口方式接入。 ### Java客户端SDK -> SDK版本号与支付网关的版本保持一致,如果需要使用,请在pom.xml中添加如下依赖。SDK使用方式参考[SDK使用说明](https://doc.bootx.cn/daxpay/gateway/overview/SDK使用说明.html)。 +> SDK版本号与支付网关的版本保持一致,如果需要使用,请在pom.xml中添加如下依赖。SDK使用方式参考[SDK使用说明](https://doc.daxpay.cn/single/gateway/overview/SDK使用说明.html)。 ```xml @@ -100,7 +100,7 @@ ``` ### SDK调用示例 -> 此处以支付接口为例,演示业务系统如何调用支付网关进行支付,其他接口的调用方式类似,具体请参考[支付对接](https://doc.bootx.cn/daxpay/gateway/overview/接口清单.html)。 +> 此处以支付接口为例,演示业务系统如何调用支付网关进行支付,其他接口的调用方式类似,具体请参考[支付对接](https://doc.daxpay.cn/single/gateway/overview/接口清单.html)。 ```java /** @@ -133,8 +133,8 @@ public class PayOrderTest { param.setChannel(PayChannelEnum.ALI.getCode()); DaxPayResult execute = DaxPayKit.execute(param); - System.out.println(execute); - System.out.println(execute.getData()); + System.out.println(JSONUtil.toJsonStr(execute)); + } } ``` diff --git a/_config/sql/2.0.5/2.0.5.dax-pay.backup.sql b/_config/mysql/2.0.5/2.0.5.dax-pay.backup.sql similarity index 100% rename from _config/sql/2.0.5/2.0.5.dax-pay.backup.sql rename to _config/mysql/2.0.5/2.0.5.dax-pay.backup.sql diff --git a/_config/sql/2.0.5/2.0.5.update.data.sql b/_config/mysql/2.0.5/2.0.5.update.data.sql similarity index 100% rename from _config/sql/2.0.5/2.0.5.update.data.sql rename to _config/mysql/2.0.5/2.0.5.update.data.sql diff --git a/_config/sql/2.0.5/2.0.5.update.table.sql b/_config/mysql/2.0.5/2.0.5.update.table.sql similarity index 100% rename from _config/sql/2.0.5/2.0.5.update.table.sql rename to _config/mysql/2.0.5/2.0.5.update.table.sql diff --git a/_config/sql/dax-pay.sql b/_config/mysql/2.0.6/2.0.6.dax-pay.backup.sql similarity index 100% rename from _config/sql/dax-pay.sql rename to _config/mysql/2.0.6/2.0.6.dax-pay.backup.sql diff --git a/_config/mysql/2.0.6/2.0.6.update.data.sql b/_config/mysql/2.0.6/2.0.6.update.data.sql new file mode 100644 index 000000000..57626726c --- /dev/null +++ b/_config/mysql/2.0.6/2.0.6.update.data.sql @@ -0,0 +1,287 @@ +SET FOREIGN_KEY_CHECKS = 0; + +INSERT INTO `base_dict` (`id`, `code`, `name`, `enable`, `group_tag`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797179034383134720, 'TradeFlowRecordType', '交易流水记录类型', b'1', '支付', '', 1399985191002447872, '2024-06-02 16:10:46', 1399985191002447872, '2024-06-02 16:10:46', 0, 0); + +INSERT INTO `base_dict_item` (`id`, `dict_id`, `dict_code`, `code`, `name`, `enable`, `sort_no`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1795722875761156096, 1780163691808391168, 'AllocDetailResult', 'ignore', '忽略分账', b'1', 3.00, '', 1399985191002447872, '2024-05-29 15:44:31', 1399985191002447872, '2024-05-29 15:44:31', 0, 0); + +INSERT INTO `base_dict_item` (`id`, `dict_id`, `dict_code`, `code`, `name`, `enable`, `sort_no`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1795722956774137856, 1777697358802530304, 'AllocOrderStatus', 'ignore', '忽略分账', b'1', 7.00, '', 1399985191002447872, '2024-05-29 15:44:50', 1399985191002447872, '2024-05-29 15:44:50', 0, 0); + +INSERT INTO `base_dict_item` (`id`, `dict_id`, `dict_code`, `code`, `name`, `enable`, `sort_no`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1795730634367918080, 1751603996496453632, 'PaymentType', 'transfer', '转账', b'1', 3.00, '', 1399985191002447872, '2024-05-29 16:15:21', 1399985191002447872, '2024-05-29 16:15:21', 0, 0); + +INSERT INTO `base_dict_item` (`id`, `dict_id`, `dict_code`, `code`, `name`, `enable`, `sort_no`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1795730676084465664, 1751603996496453632, 'PaymentType', 'allocation', '分账', b'1', 4.00, '', 1399985191002447872, '2024-05-29 16:15:31', 1399985191002447872, '2024-05-29 16:15:31', 0, 0); + +INSERT INTO `base_dict_item` (`id`, `dict_id`, `dict_code`, `code`, `name`, `enable`, `sort_no`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797179153430065152, 1797179034383134720, 'TradeFlowRecordType', 'pay', '支付', b'1', 0.00, '', 1399985191002447872, '2024-06-02 16:11:15', 1399985191002447872, '2024-06-02 16:11:15', 0, 0); + +INSERT INTO `base_dict_item` (`id`, `dict_id`, `dict_code`, `code`, `name`, `enable`, `sort_no`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797179194613936128, 1797179034383134720, 'TradeFlowRecordType', 'refund', '退款', b'1', 1.00, '', 1399985191002447872, '2024-06-02 16:11:25', 1399985191002447872, '2024-06-02 16:11:25', 0, 0); + +INSERT INTO `base_dict_item` (`id`, `dict_id`, `dict_code`, `code`, `name`, `enable`, `sort_no`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797524426741882880, 1761434095349624832, 'ClientNoticeType', 'allocation', '分账', b'1', 3.00, '', 1399985191002447872, '2024-06-03 15:03:14', 1399985191002447872, '2024-06-03 15:03:14', 0, 0); + +UPDATE `base_dict_item` SET `dict_id` = 1777697358802530304, `dict_code` = 'AllocOrderStatus', `code` = 'waiting', `name` = '待分账', `enable` = b'1', `sort_no` = 1.00, `remark` = '', `creator` = 1399985191002447872, `create_time` = '2024-04-09 22:10:53', `last_modifier` = 1399985191002447872, `last_modified_time` = '2024-05-29 15:45:15', `deleted` = 1, `version` = 0 WHERE `id` = 1777700713809522688; + +UPDATE `base_dict_item` SET `dict_id` = 1777697358802530304, `dict_code` = 'AllocOrderStatus', `code` = 'finish', `name` = '完结', `enable` = b'1', `sort_no` = 5.00, `remark` = '', `creator` = 1399985191002447872, `create_time` = '2024-04-09 22:11:30', `last_modifier` = 1399985191002447872, `last_modified_time` = '2024-05-29 15:46:08', `deleted` = 0, `version` = 2 WHERE `id` = 1777700870613577728; + +UPDATE `base_dict_item` SET `dict_id` = 1777697358802530304, `dict_code` = 'AllocOrderStatus', `code` = 'finish_failed', `name` = '完结失败', `enable` = b'1', `sort_no` = 6.00, `remark` = '', `creator` = 1399985191002447872, `create_time` = '2024-04-09 22:11:53', `last_modifier` = 1399985191002447872, `last_modified_time` = '2024-05-29 15:45:51', `deleted` = 0, `version` = 2 WHERE `id` = 1777700964087836672; + +INSERT INTO `iam_perm_menu` (`id`, `client_code`, `parent_id`, `title`, `name`, `perm_code`, `effect`, `icon`, `hidden`, `hide_children_in_menu`, `component`, `component_name`, `path`, `redirect`, `sort_no`, `menu_type`, `leaf`, `keep_alive`, `target_outside`, `hidden_header_content`, `internal`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (1582633196587261952, 'dax-pay', 1582276341792985088, '代码生成', 'CodeGenList', NULL, b'0', '', b'0', b'0', '/modules/develop/codegen/CodeGenList.vue', NULL, '/develop/codegen', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-19 15:22:13', 1414143554414059520, '2022-10-19 15:23:17', 1, 0); + +INSERT INTO `iam_perm_menu` (`id`, `client_code`, `parent_id`, `title`, `name`, `perm_code`, `effect`, `icon`, `hidden`, `hide_children_in_menu`, `component`, `component_name`, `path`, `redirect`, `sort_no`, `menu_type`, `leaf`, `keep_alive`, `target_outside`, `hidden_header_content`, `internal`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (1582633307786649600, 'dax-pay', 1582276341792985088, '动态表单', 'DynamicFormList', NULL, b'0', '', b'0', b'0', '/modules/develop/dynamicform/DynamicFormList.vue', NULL, '/develop/form', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-19 15:22:39', 1414143554414059520, '2022-10-19 15:22:39', 0, 0); + +INSERT INTO `iam_perm_menu` (`id`, `client_code`, `parent_id`, `title`, `name`, `perm_code`, `effect`, `icon`, `hidden`, `hide_children_in_menu`, `component`, `component_name`, `path`, `redirect`, `sort_no`, `menu_type`, `leaf`, `keep_alive`, `target_outside`, `hidden_header_content`, `internal`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (1582633620321017856, 'dax-pay', 1582276341792985088, '动态数据源', 'DynamicDataSourceList', NULL, b'0', '', b'0', b'0', '/modules/develop/dynamicsource/DynamicDataSourceList.vue', NULL, '/develop/source', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-19 15:23:54', 1414143554414059520, '2022-10-19 15:23:54', 0, 0); + +INSERT INTO `iam_perm_menu` (`id`, `client_code`, `parent_id`, `title`, `name`, `perm_code`, `effect`, `icon`, `hidden`, `hide_children_in_menu`, `component`, `component_name`, `path`, `redirect`, `sort_no`, `menu_type`, `leaf`, `keep_alive`, `target_outside`, `hidden_header_content`, `internal`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (1629039360928075776, 'dax-pay', 1582276341792985088, '可视化大屏', 'ProjectInfoList', NULL, b'0', '', b'0', b'0', '/modules/develop/report/ProjectInfoList', NULL, '/develop/report', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2023-02-24 16:43:44', 1399985191002447872, '2024-05-09 19:26:57', 1, 1); + +INSERT INTO `iam_perm_menu` (`id`, `client_code`, `parent_id`, `title`, `name`, `perm_code`, `effect`, `icon`, `hidden`, `hide_children_in_menu`, `component`, `component_name`, `path`, `redirect`, `sort_no`, `menu_type`, `leaf`, `keep_alive`, `target_outside`, `hidden_header_content`, `internal`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (1635274568758435840, 'dax-pay', 1582276341792985088, '数据集管理', 'DataResultSqlList', NULL, b'0', '', b'0', b'0', '/modules/develop/dataresult/DataResultSqlList', NULL, '/develop/dataresult', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2023-03-13 21:40:14', 1399985191002447872, '2024-05-09 19:27:24', 3, 1); + +INSERT INTO `iam_perm_menu` (`id`, `client_code`, `parent_id`, `title`, `name`, `perm_code`, `effect`, `icon`, `hidden`, `hide_children_in_menu`, `component`, `component_name`, `path`, `redirect`, `sort_no`, `menu_type`, `leaf`, `keep_alive`, `target_outside`, `hidden_header_content`, `internal`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (1689181991598997504, 'dax-pay', 1582253152903843840, '敏感词管理', 'ChinaWord', NULL, b'0', '', b'0', b'0', '/modules/baseapi/chianword/ChinaWordList.vue', NULL, '/system/config/chinaword', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2023-08-09 15:49:05', 1414143554414059520, '2023-08-09 15:49:05', 0, 0); + +INSERT INTO `iam_perm_menu` (`id`, `client_code`, `parent_id`, `title`, `name`, `perm_code`, `effect`, `icon`, `hidden`, `hide_children_in_menu`, `component`, `component_name`, `path`, `redirect`, `sort_no`, `menu_type`, `leaf`, `keep_alive`, `target_outside`, `hidden_header_content`, `internal`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (1690324070514782208, 'dax-pay', 1582276341792985088, '通用模板', 'GeneralTemplateList', NULL, b'0', '', b'0', b'0', '/modules/develop/template/GeneralTemplateList', NULL, '/develop/template', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2023-08-12 19:27:18', 1414143554414059520, '2023-08-12 19:31:26', 3, 0); + +INSERT INTO `iam_perm_menu` (`id`, `client_code`, `parent_id`, `title`, `name`, `perm_code`, `effect`, `icon`, `hidden`, `hide_children_in_menu`, `component`, `component_name`, `path`, `redirect`, `sort_no`, `menu_type`, `leaf`, `keep_alive`, `target_outside`, `hidden_header_content`, `internal`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (1703665090038800384, 'dax-pay', 1582276341792985088, '在线SQL', 'SqlQueryInfo', NULL, b'0', '', b'0', b'0', '/modules/develop/query/SqlQueryInfo', NULL, '/develop/sqlquery', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2023-09-18 14:59:45', 1399985191002447872, '2024-05-09 19:27:29', 0, 1); + +INSERT INTO `iam_perm_menu` (`id`, `client_code`, `parent_id`, `title`, `name`, `perm_code`, `effect`, `icon`, `hidden`, `hide_children_in_menu`, `component`, `component_name`, `path`, `redirect`, `sort_no`, `menu_type`, `leaf`, `keep_alive`, `target_outside`, `hidden_header_content`, `internal`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (1797178029448867840, 'dax-pay', 1744643265142165504, '交易流水', 'TradeFlowRecordList', NULL, b'0', '', b'0', b'0', 'payment/record/flow/TradeFlowRecordList', NULL, '/pay/record/flow', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-06-02 16:06:47', 1399985191002447872, '2024-06-02 16:06:47', 0, 0); + +UPDATE `iam_perm_menu` SET `client_code` = 'dax-pay', `parent_id` = 1775089099078553600, `title` = '分账订单', `name` = 'AllocationOrderList', `perm_code` = NULL, `effect` = b'0', `icon` = '', `hidden` = b'0', `hide_children_in_menu` = b'0', `component` = 'payment/allocation/order/AllocationOrderList', `component_name` = NULL, `path` = '/pay/allocation/order', `redirect` = '', `sort_no` = -1, `menu_type` = 1, `leaf` = NULL, `keep_alive` = b'1', `target_outside` = b'0', `hidden_header_content` = b'0', `internal` = b'0', `remark` = NULL, `creator` = 1399985191002447872, `create_time` = '2024-04-09 21:21:53', `last_modifier` = 1399985191002447872, `last_modified_time` = '2024-05-31 11:16:55', `version` = 5, `deleted` = 0 WHERE `id` = 1777688382748700672; + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066176, 'PayNoticeReceiverController#wechatPayNotice', '微信消息通知', 'POST', '/callback/notice/wechat', '执法通道网关消息通知', b'1', b'1', '执法通道网关消息通知 微信消息通知', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066177, 'AllocationReceiverController#existsByReceiverNo', '编码是否存在', 'GET', '/allocation/receiver/existsByReceiverNo', '分账接收方控制器', b'1', b'1', '分账接收方控制器 编码是否存在', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066178, 'UniAllocationController#start', '发起分账接口', 'POST', '/unipay/allocation/start', '分账控制器', b'1', b'1', '分账控制器 发起分账接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066179, 'UniPayController#transfer', '统一转账接口', 'POST', '/unipay/transfer', '统一支付接口', b'1', b'1', '统一支付接口 统一转账接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066180, 'UniQueryController#transferOrder', '转账订单查询接口', 'POST', '/unipay/query/transferOrder', '统一查询接口', b'1', b'1', '统一查询接口 转账订单查询接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066181, 'AllocationGroupController#existsByGroupNo', '编码是否存在', 'GET', '/allocation/group/existsByGroupNo', '分账组', b'1', b'1', '分账组 编码是否存在', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066182, 'UniQueryController#queryPayOrder', '支付订单查询接口', 'POST', '/unipay/query/payOrder', '统一查询接口', b'1', b'1', '统一查询接口 支付订单查询接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066183, 'UniQueryController#queryAllocationOrder', '分账订单查询接口', 'POST', '/unipay/query/allocationOrder', '统一查询接口', b'1', b'1', '统一查询接口 分账订单查询接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066184, 'AllocationOrderController#findByAllocNo', '查询扩展信息', 'GET', '/order/allocation/findByAllocNo', '分账订单控制器', b'1', b'1', '分账订单控制器 查询扩展信息', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066185, 'UniAllocationController#receiverAdd', '分账接收方添加接口', 'POST', '/unipay/allocation/receiver/add', '分账控制器', b'1', b'1', '分账控制器 分账接收方添加接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066186, 'UniPaySyncController#allocation', '分账同步接口', 'POST', '/unipay/sync/allocation', '统一同步接口', b'1', b'1', '统一同步接口 分账同步接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066187, 'UniReconcileController#down', '下载指定日期的资金流水', 'POST', '/unipay/reconcile/pay', '对账接口处理器', b'1', b'1', '对账接口处理器 下载指定日期的资金流水', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066188, 'RefundOrderController#findByRefundNo', '查询退款订单详情', 'GET', '/order/refund/findByRefundNo', '支付退款控制器', b'1', b'1', '支付退款控制器 查询退款订单详情', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066189, 'TradeFlowRecordController#findById', '查询单条', 'GET', '/record/flow/findById', '交易流水记录控制器', b'1', b'1', '交易流水记录控制器 查询单条', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066190, 'ClientNoticeReceiveController#allocation', '分账消息(对象)', 'POST', '/demo/callback/allocationObject', '回调测试', b'1', b'1', '回调测试 分账消息(对象)', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066191, 'UniPaySyncController#pay', '支付同步接口', 'POST', '/unipay/sync/pay', '统一同步接口', b'1', b'1', '统一同步接口 支付同步接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066192, 'UniPaySyncController#refund', '退款同步接口', 'POST', '/unipay/sync/refund', '统一同步接口', b'1', b'1', '统一同步接口 退款同步接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066193, 'UniPaySyncController#transfer', '转账同步接口', 'POST', '/unipay/sync/transfer', '统一同步接口', b'1', b'1', '统一同步接口 转账同步接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066194, 'ClientNoticeReceiveController#allocation', '分账消息', 'POST', '/demo/callback/allocation', '回调测试', b'1', b'1', '回调测试 分账消息', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066195, 'UniQueryController#queryAllocReceive', '分账接收方查询接口', 'POST', '/unipay/query/allocationReceiver', '统一查询接口', b'1', b'1', '统一查询接口 分账接收方查询接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066196, 'UniAllocationController#finish', '分账完结接口', 'POST', '/unipay/allocation/finish', '分账控制器', b'1', b'1', '分账控制器 分账完结接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066197, 'PayNoticeReceiverController#aliPayNotice', '支付宝消息通知', 'POST', '/callback/notice/alipay', '执法通道网关消息通知', b'1', b'1', '执法通道网关消息通知 支付宝消息通知', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066198, 'UniQueryController#queryRefundOrder', '退款订单查询接口', 'POST', '/unipay/query/refundOrder', '统一查询接口', b'1', b'1', '统一查询接口 退款订单查询接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066199, 'TradeFlowRecordController#page', '分页查询', 'GET', '/record/flow/page', '交易流水记录控制器', b'1', b'1', '交易流水记录控制器 分页查询', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +INSERT INTO `iam_perm_path` (`id`, `code`, `name`, `request_type`, `path`, `group_name`, `enable`, `generate`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `deleted`, `version`) VALUES (1797521957446066200, 'UniAllocationController#receiverRemove', '分账接收方删除接口', 'POST', '/unipay/allocation/receiver/remove', '分账控制器', b'1', b'1', '分账控制器 分账接收方删除接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +UPDATE `iam_perm_path` SET `code` = 'AllocationReceiverController#removeByGateway', `name` = '从三方支付系统中删除', `request_type` = 'POST', `path` = '/allocation/receiver/removeByGateway', `group_name` = '分账接收方控制器', `enable` = b'1', `generate` = b'1', `remark` = '分账接收方控制器 从三方支付系统中删除', `creator` = 1399985191002447872, `create_time` = '2024-05-13 19:16:54.069000', `last_modifier` = 1399985191002447872, `last_modified_time` = '2024-06-03 14:53:25.723000', `deleted` = b'1', `version` = 0 WHERE `id` = 1789978117562556420; + +UPDATE `iam_perm_path` SET `code` = 'UniQueryController#queryRefundOrder', `name` = '退款订单查询接口', `request_type` = 'POST', `path` = '/uni/query/refundOrder', `group_name` = '统一查询接口', `enable` = b'1', `generate` = b'1', `remark` = '统一查询接口 退款订单查询接口', `creator` = 1399985191002447872, `create_time` = '2024-05-13 19:16:54.069000', `last_modifier` = 1399985191002447872, `last_modified_time` = '2024-06-03 14:53:25.723000', `deleted` = b'1', `version` = 0 WHERE `id` = 1789978117562556426; + +UPDATE `iam_perm_path` SET `code` = 'UniPayController#syncPay', `name` = '支付同步接口', `request_type` = 'POST', `path` = '/unipay/syncPay', `group_name` = '统一支付接口', `enable` = b'1', `generate` = b'1', `remark` = '统一支付接口 支付同步接口', `creator` = 1399985191002447872, `create_time` = '2024-05-13 19:16:54.070000', `last_modifier` = 1399985191002447872, `last_modified_time` = '2024-06-03 14:53:25.723000', `deleted` = b'1', `version` = 0 WHERE `id` = 1789978117566750722; + +UPDATE `iam_perm_path` SET `code` = 'PayGatewayNoticeController#wechatPayNotice', `name` = '微信消息通知', `request_type` = 'POST', `path` = '/gateway/notice/wechat', `group_name` = '三方支付网关消息通知', `enable` = b'1', `generate` = b'1', `remark` = '三方支付网关消息通知 微信消息通知', `creator` = 1399985191002447872, `create_time` = '2024-05-13 19:16:54.070000', `last_modifier` = 1399985191002447872, `last_modified_time` = '2024-06-03 14:53:25.723000', `deleted` = b'1', `version` = 0 WHERE `id` = 1789978117566750736; + +UPDATE `iam_perm_path` SET `code` = 'AllocationReceiverController#registerByGateway', `name` = '同步到三方支付系统中', `request_type` = 'POST', `path` = '/allocation/receiver/registerByGateway', `group_name` = '分账接收方控制器', `enable` = b'1', `generate` = b'1', `remark` = '分账接收方控制器 同步到三方支付系统中', `creator` = 1399985191002447872, `create_time` = '2024-05-13 19:16:54.070000', `last_modifier` = 1399985191002447872, `last_modified_time` = '2024-06-03 14:53:25.723000', `deleted` = b'1', `version` = 0 WHERE `id` = 1789978117566750740; + +UPDATE `iam_perm_path` SET `code` = 'RefundOrderController#findByRefundNo', `name` = '查询退款订单详情', `request_type` = 'GET', `path` = '/order/refund/findByOrderNo', `group_name` = '支付退款控制器', `enable` = b'1', `generate` = b'1', `remark` = '支付退款控制器 查询退款订单详情', `creator` = 1399985191002447872, `create_time` = '2024-05-13 19:16:54.070000', `last_modifier` = 1399985191002447872, `last_modified_time` = '2024-06-03 14:53:25.723000', `deleted` = b'1', `version` = 0 WHERE `id` = 1789978117566750763; + +UPDATE `iam_perm_path` SET `code` = 'UniQueryController#queryPayOrder', `name` = '支付订单查询接口', `request_type` = 'POST', `path` = '/uni/query/payOrder', `group_name` = '统一查询接口', `enable` = b'1', `generate` = b'1', `remark` = '统一查询接口 支付订单查询接口', `creator` = 1399985191002447872, `create_time` = '2024-05-13 19:16:54.070000', `last_modifier` = 1399985191002447872, `last_modified_time` = '2024-06-03 14:53:25.723000', `deleted` = b'1', `version` = 0 WHERE `id` = 1789978117566750771; + +UPDATE `iam_perm_path` SET `code` = 'UniPayController#syncRefund', `name` = '退款同步接口', `request_type` = 'POST', `path` = '/unipay/syncRefund', `group_name` = '统一支付接口', `enable` = b'1', `generate` = b'1', `remark` = '统一支付接口 退款同步接口', `creator` = 1399985191002447872, `create_time` = '2024-05-13 19:16:54.070000', `last_modifier` = 1399985191002447872, `last_modified_time` = '2024-06-03 14:53:25.723000', `deleted` = b'1', `version` = 0 WHERE `id` = 1789978117566750798; + +UPDATE `iam_perm_path` SET `code` = 'UniPayController#allocation', `name` = '开启分账接口', `request_type` = 'POST', `path` = '/unipay/allocation', `group_name` = '统一支付接口', `enable` = b'1', `generate` = b'1', `remark` = '统一支付接口 开启分账接口', `creator` = 1399985191002447872, `create_time` = '2024-05-13 19:16:54.070000', `last_modifier` = 1399985191002447872, `last_modified_time` = '2024-06-03 14:53:25.722000', `deleted` = b'1', `version` = 0 WHERE `id` = 1789978117566750833; + +UPDATE `iam_perm_path` SET `code` = 'PayGatewayNoticeController#aliPayNotice', `name` = '支付宝消息通知', `request_type` = 'POST', `path` = '/gateway/notice/alipay', `group_name` = '三方支付网关消息通知', `enable` = b'1', `generate` = b'1', `remark` = '三方支付网关消息通知 支付宝消息通知', `creator` = 1399985191002447872, `create_time` = '2024-05-13 19:16:54.071000', `last_modifier` = 1399985191002447872, `last_modified_time` = '2024-06-03 14:53:25.722000', `deleted` = b'1', `version` = 0 WHERE `id` = 1789978117570945107; + +UPDATE `iam_perm_path` SET `code` = 'AllocationReceiverController#update', `name` = '修改', `request_type` = 'POST', `path` = '/allocation/receiver/update', `group_name` = '分账接收方控制器', `enable` = b'1', `generate` = b'1', `remark` = '分账接收方控制器 修改', `creator` = 1399985191002447872, `create_time` = '2024-05-13 19:16:54.071000', `last_modifier` = 1399985191002447872, `last_modified_time` = '2024-06-03 14:53:25.722000', `deleted` = b'1', `version` = 0 WHERE `id` = 1789978117570945181; + +UPDATE `iam_perm_path` SET `code` = 'UniPayController#allocationFinish', `name` = '分账完结接口', `request_type` = 'POST', `path` = '/unipay/allocationFinish', `group_name` = '统一支付接口', `enable` = b'1', `generate` = b'1', `remark` = '统一支付接口 分账完结接口', `creator` = 1399985191002447872, `create_time` = '2024-05-13 19:16:54.071000', `last_modifier` = 1399985191002447872, `last_modified_time` = '2024-06-03 14:53:25.716000', `deleted` = b'1', `version` = 0 WHERE `id` = 1789978117570945220; + +INSERT INTO `iam_role_menu` (`id`, `role_id`, `client_code`, `permission_id`) VALUES (1797522085254897664, 1757297023118462976, 'dax-pay', 1797178029448867840); + +INSERT INTO `iam_role_menu` (`id`, `role_id`, `client_code`, `permission_id`) VALUES (1797522085414281216, 1757298887092326400, 'dax-pay', 1797178029448867840); + +DELETE FROM `iam_role_path` WHERE `id` = 1789979321814343710; + +DELETE FROM `iam_role_path` WHERE `id` = 1789979321814343757; + +DELETE FROM `iam_role_path` WHERE `id` = 1789979321814343761; + +DELETE FROM `iam_role_path` WHERE `id` = 1789979321814343763; + +DELETE FROM `iam_role_path` WHERE `id` = 1789979321814343784; + +DELETE FROM `iam_role_path` WHERE `id` = 1789979321814343785; + +DELETE FROM `iam_role_path` WHERE `id` = 1789979322187636766; + +DELETE FROM `iam_role_path` WHERE `id` = 1789979322187636813; + +DELETE FROM `iam_role_path` WHERE `id` = 1789979322187636817; + +DELETE FROM `iam_role_path` WHERE `id` = 1789979322187636819; + +DELETE FROM `iam_role_path` WHERE `id` = 1789979322187636840; + +DELETE FROM `iam_role_path` WHERE `id` = 1789979322187636841; + +DELETE FROM `iam_role_path` WHERE `id` = 1790355320001957888; + +DELETE FROM `iam_role_path` WHERE `id` = 1790355320001957889; + +DELETE FROM `iam_role_path` WHERE `id` = 1790355320001957890; + +DELETE FROM `iam_role_path` WHERE `id` = 1790355320001957891; + +DELETE FROM `iam_role_path` WHERE `id` = 1790355320001957892; + +DELETE FROM `iam_role_path` WHERE `id` = 1790355320102621184; + +DELETE FROM `iam_role_path` WHERE `id` = 1790355320102621185; + +DELETE FROM `iam_role_path` WHERE `id` = 1790355320102621186; + +DELETE FROM `iam_role_path` WHERE `id` = 1790355320102621187; + +DELETE FROM `iam_role_path` WHERE `id` = 1790355320102621188; + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797522413752786944, 1757297023118462976, 1797521957446066199); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797522413752786945, 1757297023118462976, 1797521957446066189); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797522413752786946, 1757297023118462976, 1797521957446066197); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797522413752786947, 1757297023118462976, 1797521957446066176); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797522413752786948, 1757297023118462976, 1797521957446066187); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797522723091095552, 1757298887092326400, 1797521957446066199); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797522723091095553, 1757298887092326400, 1797521957446066189); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797522723091095554, 1757298887092326400, 1797521957446066197); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797522723091095555, 1757298887092326400, 1797521957446066176); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797522723091095556, 1757298887092326400, 1797521957446066187); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797523038569865216, 1757297023118462976, 1797521957446066184); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797523038569865217, 1757297023118462976, 1797521957446066181); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797523038733443072, 1757298887092326400, 1797521957446066184); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797523038733443073, 1757298887092326400, 1797521957446066181); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797523166064123904, 1757297023118462976, 1797521957446066177); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797523166223507456, 1757298887092326400, 1797521957446066177); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797523263875293184, 1757297023118462976, 1789978117570945272); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797523263875293185, 1757297023118462976, 1789978117570945194); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797523263875293186, 1757297023118462976, 1789978117570945175); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797523263875293187, 1757297023118462976, 1789978117570945164); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797523263875293188, 1757297023118462976, 1789978117566750801); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797523264022093824, 1757298887092326400, 1789978117570945272); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797523264022093825, 1757298887092326400, 1789978117570945194); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797523264022093826, 1757298887092326400, 1789978117570945175); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797523264022093827, 1757298887092326400, 1789978117570945164); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797523264022093828, 1757298887092326400, 1789978117566750801); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797523482968956928, 1757297023118462976, 1797521957446066188); + +INSERT INTO `iam_role_path` (`id`, `role_id`, `permission_id`) VALUES (1797523483111563264, 1757298887092326400, 1797521957446066188); + +DELETE FROM `pay_api_config` WHERE `id` = 1; + +DELETE FROM `pay_api_config` WHERE `id` = 3; + +DELETE FROM `pay_api_config` WHERE `id` = 4; + +DELETE FROM `pay_api_config` WHERE `id` = 6; + +DELETE FROM `pay_api_config` WHERE `id` = 7; + +DELETE FROM `pay_api_config` WHERE `id` = 8; + +DELETE FROM `pay_api_config` WHERE `id` = 9; + +DELETE FROM `pay_api_config` WHERE `id` = 10; + +DELETE FROM `pay_api_config` WHERE `id` = 11; + +DELETE FROM `pay_api_config` WHERE `id` = 12; + +DELETE FROM `pay_api_config` WHERE `id` = 13; + +INSERT INTO `pay_api_config` (`id`, `code`, `api`, `name`, `notice_support`, `enable`, `notice`, `notice_url`, `req_sign`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (100, 'pay', '/unipay/pay', '统一支付接口 ', b'1', b'1', b'1', 'http://pay1.bootx.cn/server/demo/callback/payObject', b'1', NULL, 0, '2024-01-03 14:25:48', 1399985191002447872, '2024-03-11 17:31:41', 11, b'0'); + +INSERT INTO `pay_api_config` (`id`, `code`, `api`, `name`, `notice_support`, `enable`, `notice`, `notice_url`, `req_sign`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (200, 'close', '/unipay/close', '支付关闭接口', b'0', b'1', b'1', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); + +INSERT INTO `pay_api_config` (`id`, `code`, `api`, `name`, `notice_support`, `enable`, `notice`, `notice_url`, `req_sign`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (300, 'refund', '/unipay/refund', '统一退款接口', b'1', b'1', b'1', 'http://pay1.bootx.cn/server/demo/callback/refundObject', b'1', NULL, 0, '2024-01-03 14:25:48', 1399985191002447872, '2024-05-16 21:59:19', 7, b'0'); + +INSERT INTO `pay_api_config` (`id`, `code`, `api`, `name`, `notice_support`, `enable`, `notice`, `notice_url`, `req_sign`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (400, 'allocation', '/unipay/allocation/start', '统一分账接口', b'1', b'1', b'1', 'http://pay1.bootx.cn/server/demo/callback/allocationObject', b'1', NULL, 0, '2024-01-03 14:25:48', 1399985191002447872, '2024-05-30 19:36:35', 1, b'0'); + +INSERT INTO `pay_api_config` (`id`, `code`, `api`, `name`, `notice_support`, `enable`, `notice`, `notice_url`, `req_sign`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (450, 'allocationFinish', '/unipay/allocation/finish', '分账完结接口', b'0', b'1', b'1', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); + +INSERT INTO `pay_api_config` (`id`, `code`, `api`, `name`, `notice_support`, `enable`, `notice`, `notice_url`, `req_sign`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (451, 'allocationReceiverAdd', '/unipay/allocation/receiver/add', '分账接收方添加接口', b'0', b'1', b'0', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); + +INSERT INTO `pay_api_config` (`id`, `code`, `api`, `name`, `notice_support`, `enable`, `notice`, `notice_url`, `req_sign`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (452, 'allocationReceiverRemove', '/unipay/allocation/receiver/remove', '分账接收方删除接口', b'0', b'1', b'0', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); + +INSERT INTO `pay_api_config` (`id`, `code`, `api`, `name`, `notice_support`, `enable`, `notice`, `notice_url`, `req_sign`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (500, 'transfer', '/unipay/transfer', '统一转账接口', b'1', b'1', b'1', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); + +INSERT INTO `pay_api_config` (`id`, `code`, `api`, `name`, `notice_support`, `enable`, `notice`, `notice_url`, `req_sign`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (600, 'syncPay', '/unipay/sync/pay', '支付同步接口', b'0', b'1', b'1', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); + +INSERT INTO `pay_api_config` (`id`, `code`, `api`, `name`, `notice_support`, `enable`, `notice`, `notice_url`, `req_sign`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (700, 'syncRefund', '/unipay/sync/refund', '退款同步接口', b'0', b'1', b'1', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); + +INSERT INTO `pay_api_config` (`id`, `code`, `api`, `name`, `notice_support`, `enable`, `notice`, `notice_url`, `req_sign`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (801, 'syncTransfer', '/unipay/sync/transfer', '转账同步接口', b'0', b'1', b'1', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); + +INSERT INTO `pay_api_config` (`id`, `code`, `api`, `name`, `notice_support`, `enable`, `notice`, `notice_url`, `req_sign`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (805, 'syncAllocation', '/unipay/sync/allocation', '分账同步接口', b'0', b'1', b'1', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); + +INSERT INTO `pay_api_config` (`id`, `code`, `api`, `name`, `notice_support`, `enable`, `notice`, `notice_url`, `req_sign`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (1000, 'queryPayOrder', '/unipay/query/payOrder', '支付订单查询接口', b'0', b'1', b'0', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); + +INSERT INTO `pay_api_config` (`id`, `code`, `api`, `name`, `notice_support`, `enable`, `notice`, `notice_url`, `req_sign`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (1100, 'queryRefundOrder', '/unipay/query/refundOrder', '退款订单查询接口', b'0', b'1', b'0', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); + +INSERT INTO `pay_api_config` (`id`, `code`, `api`, `name`, `notice_support`, `enable`, `notice`, `notice_url`, `req_sign`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (1150, 'queryAllocationOrder', '/unipay/query/allocationOrder', '分账订单查询接口', b'0', b'1', b'0', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); + +INSERT INTO `pay_api_config` (`id`, `code`, `api`, `name`, `notice_support`, `enable`, `notice`, `notice_url`, `req_sign`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (1175, 'queryAllocationReceiver', '/unipay/query/allocationReceiver', '分账接收方查询接口', b'0', b'1', b'0', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); + +INSERT INTO `pay_api_config` (`id`, `code`, `api`, `name`, `notice_support`, `enable`, `notice`, `notice_url`, `req_sign`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (1176, 'queryTransferOrder', '/unipay/query/transferOrder', '转账订单查询接口', b'0', b'1', b'0', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); + +INSERT INTO `pay_api_config` (`id`, `code`, `api`, `name`, `notice_support`, `enable`, `notice`, `notice_url`, `req_sign`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (1200, 'getWxAuthUrl', '/unipay/assist/getWxAuthUrl', '获取微信OAuth2授权链接', b'0', b'1', b'0', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); + +INSERT INTO `pay_api_config` (`id`, `code`, `api`, `name`, `notice_support`, `enable`, `notice`, `notice_url`, `req_sign`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (1300, 'getWxAccessToken', '/unipay/assist/getWxAccessToken', '获取微信AccessToken', b'0', b'1', b'0', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); + +INSERT INTO `starter_quartz_job` (`id`, `name`, `job_class_name`, `cron`, `parameter`, `state`, `remark`, `creator`, `create_time`, `last_modifier`, `last_modified_time`, `version`, `deleted`) VALUES (1797588916837670912, '支付单超时检测(数据库)', 'cn.daxpay.single.service.task.PayExpiredByDbTimeTask', '0/20 * * * * ? *', '', 0, '检测超时的支付单, 超时后调用同步事件状态修复', 1399985191002447872, '2024-06-03 19:19:30', 1399985191002447872, '2024-06-03 19:22:28', 5, 0); + +UPDATE `starter_quartz_job` SET `name` = '支付单超时检测(Redis)', `job_class_name` = 'cn.daxpay.single.service.task.PayExpiredTimeTask', `cron` = '0/5 * * * * ? *', `parameter` = NULL, `state` = 0, `remark` = '检测超时的支付单, 超时后调用同步事件状态修复', `creator` = 1399985191002447872, `create_time` = '2022-07-12 22:00:39', `last_modifier` = 1399985191002447872, `last_modified_time` = '2024-06-03 19:18:14', `version` = 9, `deleted` = 0 WHERE `id` = 1546857070483939328; + +SET FOREIGN_KEY_CHECKS = 1; diff --git a/_config/mysql/2.0.6/2.0.6.update.table.sql b/_config/mysql/2.0.6/2.0.6.update.table.sql new file mode 100644 index 000000000..5e232d57f --- /dev/null +++ b/_config/mysql/2.0.6/2.0.6.update.table.sql @@ -0,0 +1,85 @@ +SET FOREIGN_KEY_CHECKS=0; + +ALTER TABLE `iam_perm_menu` + CHANGE COLUMN `admin` `internal` bit(1) NOT NULL COMMENT '系统菜单' AFTER `hidden_header_content`; + +ALTER TABLE `pay_allocation_group` ADD COLUMN `group_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分账组编码' AFTER `id`; + +ALTER TABLE `pay_allocation_group` MODIFY COLUMN `default_group` bit(1) NULL DEFAULT NULL COMMENT '默认分账组' AFTER `channel`; + +ALTER TABLE `pay_allocation_order` MODIFY COLUMN `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付订单标题' AFTER `out_order_no`; + +ALTER TABLE `pay_allocation_order` MODIFY COLUMN `result` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '处理结果' AFTER `status`; + +ALTER TABLE `pay_allocation_order_detail` ADD COLUMN `receiver_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分账接收方编号' AFTER `receiver_id`; + +CREATE TABLE `pay_allocation_order_extra` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `notify_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '异步通知地址', + `attach` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户扩展参数', + `req_time` datetime NULL DEFAULT NULL COMMENT '请求时间,传输时间戳', + `client_ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付终端ip', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '分账订单扩展' ROW_FORMAT = Dynamic; + +ALTER TABLE `pay_allocation_receiver` ADD COLUMN `receiver_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分账接收方编号' AFTER `id`; + +ALTER TABLE `pay_allocation_receiver` DROP COLUMN `name`; + +ALTER TABLE `pay_allocation_receiver` DROP COLUMN `sync`; + +ALTER TABLE `pay_allocation_receiver` DROP COLUMN `remark`; + +ALTER TABLE `pay_api_config` DROP COLUMN `res_sign`; + +ALTER TABLE `pay_api_config` DROP COLUMN `notice_sign`; + +ALTER TABLE `pay_api_config` DROP COLUMN `record`; + +CREATE TABLE `pay_reconcile_out_trade` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `reconcile_id` bigint(20) NULL DEFAULT NULL COMMENT '关联对账订单ID', + `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商品名称', + `amount` int(11) NULL DEFAULT NULL COMMENT '交易金额', + `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '交易类型', + `trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '本地交易号', + `out_trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通道交易号', + `trade_time` datetime NULL DEFAULT NULL COMMENT '交易时间', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '对账-通道交易明细' ROW_FORMAT = Dynamic; + +ALTER TABLE `pay_refund_order` MODIFY COLUMN `out_order_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通道支付订单号' AFTER `biz_order_no`; + +ALTER TABLE `pay_refund_order` MODIFY COLUMN `out_refund_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通道退款交易号' AFTER `biz_refund_no`; + +CREATE TABLE `pay_trade_flow_record` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标题', + `amount` int(11) NULL DEFAULT NULL COMMENT '金额', + `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '业务类型', + `channel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付通道', + `trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '本地交易号', + `biz_trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户交易号', + `out_trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通道交易号', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '资金流水记录' ROW_FORMAT = Dynamic; + +ALTER TABLE `pay_union_pay_config` MODIFY COLUMN `single_limit` int(11) NULL DEFAULT NULL COMMENT '支付限额' AFTER `seller`; + +ALTER TABLE `pay_wechat_pay_config` MODIFY COLUMN `allocation` bit(1) NULL DEFAULT NULL COMMENT '是否支付分账' AFTER `sandbox`; + +ALTER TABLE `pay_wechat_pay_config` MODIFY COLUMN `single_limit` int(11) NULL DEFAULT NULL COMMENT '支付限额' AFTER `pay_ways`; + +DROP TABLE IF EXISTS `pay_reconcile_trade_detail`; + +SET FOREIGN_KEY_CHECKS=1; diff --git a/_config/mysql/dax-pay.sql b/_config/mysql/dax-pay.sql new file mode 100644 index 000000000..c47f349b4 --- /dev/null +++ b/_config/mysql/dax-pay.sql @@ -0,0 +1,3860 @@ +/* + Navicat Premium Data Transfer + + Source Server : 阿里-mysql5.7 + Source Server Type : MySQL + Source Server Version : 50743 (5.7.43-log) + Source Host : mysql.dev.bootx.cn:3306 + Source Schema : dax-pay + + Target Server Type : MySQL + Target Server Version : 50743 (5.7.43-log) + File Encoding : 65001 + + Date: 03/06/2024 19:37:29 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for base_area +-- ---------------------------- +DROP TABLE IF EXISTS `base_area`; +CREATE TABLE `base_area` ( + `code` char(6) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `name` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '区域名称', + `city_code` char(4) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '0' COMMENT '城市编码', + PRIMARY KEY (`code`) USING BTREE, + INDEX `inx_city_code`(`city_code`) USING BTREE COMMENT '城市' +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '县区表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of base_area +-- ---------------------------- + +-- ---------------------------- +-- Table structure for base_china_word +-- ---------------------------- +DROP TABLE IF EXISTS `base_china_word`; +CREATE TABLE `base_china_word` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `word` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '敏感词', + `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '分类', + `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '描述', + `enable` bit(1) NULL DEFAULT NULL COMMENT '是否启用', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `white` bit(1) NULL DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '敏感词' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of base_china_word +-- ---------------------------- + +-- ---------------------------- +-- Table structure for base_city +-- ---------------------------- +DROP TABLE IF EXISTS `base_city`; +CREATE TABLE `base_city` ( + `code` char(4) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '城市编码', + `name` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '城市名称', + `province_code` char(2) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '0' COMMENT '省份编码', + PRIMARY KEY (`code`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '城市表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of base_city +-- ---------------------------- + +-- ---------------------------- +-- Table structure for base_data_result_sql +-- ---------------------------- +DROP TABLE IF EXISTS `base_data_result_sql`; +CREATE TABLE `base_data_result_sql` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `database_id` bigint(20) NULL DEFAULT NULL, + `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL, + `is_list` bit(1) NULL DEFAULT NULL, + `sql` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL, + `params` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL, + `fields` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL, + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '数据集SQL语句' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of base_data_result_sql +-- ---------------------------- + +-- ---------------------------- +-- Table structure for base_dict +-- ---------------------------- +DROP TABLE IF EXISTS `base_dict`; +CREATE TABLE `base_dict` ( + `id` bigint(20) NOT NULL, + `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '编码', + `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '名称', + `enable` bit(1) NOT NULL DEFAULT b'1' COMMENT '启用状态', + `group_tag` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '分类标签', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '备注', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '更新人', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '更新时间', + `deleted` tinyint(1) NULL DEFAULT 0 COMMENT '0:未删除。1:已删除', + `version` int(8) NULL DEFAULT NULL COMMENT '版本', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '字典' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of base_dict +-- ---------------------------- +INSERT INTO `base_dict` VALUES (1422929378374828033, 'Sex', '性别', b'1', '基础属性', '性别', 0, '2021-08-04 22:36:15', 1399985191002447872, '2022-05-11 19:48:40', 0, 6); +INSERT INTO `base_dict` VALUES (1425744045414772737, 'MenuType', '菜单类型', b'1', '系统属性', '菜单类型', 0, '2021-08-12 17:00:44', 1399985191002447872, '2022-05-11 19:48:44', 0, 4); +INSERT INTO `base_dict` VALUES (1430063572491411456, 'loginType', '字典类型', b'1', '基础属性', '字典类型', 1399985191002447872, '2021-08-24 15:05:00', 1399985191002447872, '2021-08-24 15:05:00', 1, 2); +INSERT INTO `base_dict` VALUES (1435829999592759296, 'UserStatusCode', '用户状态码', b'1', '系统属性', '用户状态码', 1399985191002447872, '2021-09-09 12:58:43', 1399985191002447872, '2022-05-11 19:48:56', 0, 2); +INSERT INTO `base_dict` VALUES (1435838066191458304, 'LogBusinessType', '业务操作类型', b'1', '系统属性', '操作日志记录的业务操作类型', 1399985191002447872, '2021-09-09 13:30:46', 1399985191002447872, '2022-05-11 19:49:00', 0, 2); +INSERT INTO `base_dict` VALUES (1438078864509317120, 'MailSecurityCode', '邮箱安全方式编码', b'1', '消息服务', '邮箱安全方式编码', 1399985191002447872, '2021-09-15 17:54:54', 1399985191002447872, '2022-05-11 19:49:06', 0, 2); +INSERT INTO `base_dict` VALUES (1439961232651034624, 'MessageTemplateCode', '消息模板类型', b'1', '消息服务', '消息模板类型', 1399985191002447872, '2021-09-20 22:34:46', 1399985191002447872, '2022-05-11 19:48:34', 0, 1); +INSERT INTO `base_dict` VALUES (1452836604783845376, 'SocialType', '三方系统类型', b'1', '系统属性', '三方系统类型', 1399985191002447872, '2021-10-26 11:16:54', 1399985191002447872, '2022-05-11 19:48:28', 0, 3); +INSERT INTO `base_dict` VALUES (1452843488735621120, 'ParamType', '参数类型', b'1', '系统属性', '参数类型', 1399985191002447872, '2021-10-26 11:44:15', 1399985191002447872, '2022-05-11 19:48:21', 0, 2); +INSERT INTO `base_dict` VALUES (1496024933900169216, 'Political', '政治面貌', b'1', '基础数据', '政治面貌', 1399985191002447872, '2022-02-22 15:31:54', 1399985191002447872, '2022-05-11 19:48:04', 0, 1); +INSERT INTO `base_dict` VALUES (1556996322223968256, 'WeChatMediaType', '微信媒体类型', b'1', '微信', '微信媒体类型', 1399985191002447872, '2022-08-09 21:30:25', 1399985191002447872, '2022-08-09 21:30:26', 0, 0); +INSERT INTO `base_dict` VALUES (1561003021674987520, 'SiteMessageReceive', '消息接收类型', b'1', '站内信', '站内信接收类型', 1399985191002447872, '2022-08-20 22:51:37', 1399985191002447872, '2022-08-20 22:51:37', 0, 0); +INSERT INTO `base_dict` VALUES (1561003189111603200, 'SiteMessageState', '消息发布状态', b'1', '站内信', '站内信消息发布状态', 1399985191002447872, '2022-08-20 22:52:17', 1399985191002447872, '2022-08-20 22:52:17', 0, 0); +INSERT INTO `base_dict` VALUES (1589527951317389312, 'DataScopePerm', '数据权限类型', b'1', '系统属性', '数据权限类型', 1414143554414059520, '2022-11-07 15:59:30', 1399985191002447872, '2023-11-28 23:14:24', 0, 4); +INSERT INTO `base_dict` VALUES (1633393287952257024, 'DatabaseType', '数据库类型', b'1', '开发', '数据库类型', 1414143554414059520, '2023-03-08 17:04:41', 1414143554414059520, '2023-03-08 17:04:41', 0, 0); +INSERT INTO `base_dict` VALUES (1688742690398617600, 'SmsChannel', '短信渠道商', b'1', '消息服务', '短信渠道商', 1414143554414059520, '2023-08-08 10:43:27', 1414143554414059520, '2023-08-12 20:24:03', 0, 1); +INSERT INTO `base_dict` VALUES (1690338321769918464, 'GeneralTemplateUseType', '通用模板类型', b'1', '系统属性', '通用模板类型', 1414143554414059520, '2023-08-12 20:23:56', 1414143554414059520, '2023-08-12 20:24:22', 0, 1); +INSERT INTO `base_dict` VALUES (1690338545284378624, 'GeneralTemplateState', '通用模板状态', b'1', '系统属性', '通用模板状态', 1414143554414059520, '2023-08-12 20:24:49', 1414143554414059520, '2023-08-12 20:24:49', 0, 0); +INSERT INTO `base_dict` VALUES (1744996611615039488, 'AsyncPayChannel', '异步支付通道', b'1', '支付', '', 1399985191002447872, '2024-01-10 16:16:27', 1399985191002447872, '2024-01-10 16:16:27', 0, 0); +INSERT INTO `base_dict` VALUES (1744996845355212800, 'PayChannel', '支付通道', b'1', '支付', '', 1399985191002447872, '2024-01-10 16:17:23', 1399985191002447872, '2024-01-10 16:17:23', 0, 0); +INSERT INTO `base_dict` VALUES (1744996913667842048, 'PayStatus', '支付状态', b'1', '支付', '', 1399985191002447872, '2024-01-10 16:17:39', 1399985191002447872, '2024-01-10 16:17:39', 0, 0); +INSERT INTO `base_dict` VALUES (1745086859116224512, 'PayMethod', '支付方式', b'1', '支付', '', 1399985191002447872, '2024-01-10 22:15:04', 1399985191002447872, '2024-05-02 12:38:01', 0, 1); +INSERT INTO `base_dict` VALUES (1745109350333173760, 'PayCallbackStatus', '支付回调处理状态', b'1', '支付', '', 1399985191002447872, '2024-01-10 23:44:26', 1399985191002447872, '2024-01-10 23:44:26', 0, 0); +INSERT INTO `base_dict` VALUES (1745128986382667776, 'PayRepairSource', '支付修复来源', b'1', '支付', '', 1399985191002447872, '2024-01-11 01:02:28', 1399985191002447872, '2024-01-11 01:02:28', 0, 0); +INSERT INTO `base_dict` VALUES (1745134438772346880, 'PayRepairWay', '支付修复方式', b'1', '支付', '', 1399985191002447872, '2024-01-11 01:24:08', 1399985191002447872, '2024-01-11 01:24:08', 0, 0); +INSERT INTO `base_dict` VALUES (1745748188122554368, 'RefundStatus', '退款状态', b'1', '支付', '', 1399985191002447872, '2024-01-12 18:02:57', 1399985191002447872, '2024-02-09 21:22:52', 0, 1); +INSERT INTO `base_dict` VALUES (1746208645341917184, 'PaySyncStatus', '支付同步结果', b'1', '支付', '', 1399985191002447872, '2024-01-14 00:32:39', 1399985191002447872, '2024-01-14 00:32:39', 0, 0); +INSERT INTO `base_dict` VALUES (1749612665392541696, 'ReconcileTrade', '支付对账交易类型', b'1', '支付', '', 1399985191002447872, '2024-01-23 09:59:00', 1399985191002447872, '2024-03-01 23:31:32', 0, 1); +INSERT INTO `base_dict` VALUES (1751603996496453632, 'PaymentType', '支付系统行为类型', b'1', '支付', '支付系统中常见的操作类型, 如支付/退款/转账等', 1399985191002447872, '2024-01-28 21:51:51', 1399985191002447872, '2024-01-28 21:51:51', 0, 0); +INSERT INTO `base_dict` VALUES (1751613032260370432, 'PayCallbackType', '回调类型', b'1', '支付', '', 1399985191002447872, '2024-01-28 22:27:45', 1399985191002447872, '2024-01-28 22:27:45', 0, 0); +INSERT INTO `base_dict` VALUES (1752560153120428032, 'RefundSyncStatus', '退款同步状态', b'1', '支付', '', 1399985191002447872, '2024-01-31 13:11:16', 1399985191002447872, '2024-01-31 13:11:16', 0, 0); +INSERT INTO `base_dict` VALUES (1753047382185091072, 'RefundRepairWay', '退款修复方式', b'1', '支付', '', 1399985191002447872, '2024-02-01 21:27:21', 1399985191002447872, '2024-02-01 21:27:21', 0, 0); +INSERT INTO `base_dict` VALUES (1758881354618220544, 'WalletStatus', '钱包状态', b'1', '支付', '', 1399985191002447872, '2024-02-17 23:49:28', 1399985191002447872, '2024-02-17 23:49:28', 0, 0); +INSERT INTO `base_dict` VALUES (1759189874194481152, 'VoucherStatus', '储值卡状态', b'1', '支付', '', 1399985191002447872, '2024-02-18 20:15:25', 1399985191002447872, '2024-02-18 20:15:25', 0, 0); +INSERT INTO `base_dict` VALUES (1759190066511708160, 'WalletRecordType', '钱包记录类型', b'1', '支付', '', 1399985191002447872, '2024-02-18 20:16:11', 1399985191002447872, '2024-02-18 20:16:11', 0, 0); +INSERT INTO `base_dict` VALUES (1759190427897135104, 'VoucherRecordType', '储值卡记录类型', b'1', '支付', '', 1399985191002447872, '2024-02-18 20:17:37', 1399985191002447872, '2024-02-18 20:17:37', 0, 0); +INSERT INTO `base_dict` VALUES (1759190780252225536, 'CashRecordType', '现金记录类型', b'1', '支付', '', 1399985191002447872, '2024-02-18 20:19:01', 1399985191002447872, '2024-02-19 22:07:09', 0, 1); +INSERT INTO `base_dict` VALUES (1761434095349624832, 'ClientNoticeType', '客户消息通知类型', b'1', '支付', '', 1399985191002447872, '2024-02-25 00:53:09', 1399985191002447872, '2024-02-25 00:53:09', 0, 0); +INSERT INTO `base_dict` VALUES (1761434264858226688, 'ClientNoticeSendType', '客户消息通知发送类型', b'1', '支付', '', 1399985191002447872, '2024-02-25 00:53:49', 1399985191002447872, '2024-02-25 00:53:49', 0, 0); +INSERT INTO `base_dict` VALUES (1761581634023583744, 'AlipayRecordType', '支付宝流水记录类型', b'1', '支付', '', 1399985191002447872, '2024-02-25 10:39:25', 1399985191002447872, '2024-02-25 10:39:25', 0, 0); +INSERT INTO `base_dict` VALUES (1761588314480300032, 'WechatPayRecordType', '微信支付流水记录类型', b'1', '支付', '', 1399985191002447872, '2024-02-25 11:05:58', 1399985191002447872, '2024-02-25 11:05:58', 0, 0); +INSERT INTO `base_dict` VALUES (1763588034467713024, 'ReconcileDiffType', '对账差异类型', b'1', '支付', '', 1399985191002447872, '2024-03-01 23:32:08', 1399985191002447872, '2024-03-01 23:32:08', 0, 0); +INSERT INTO `base_dict` VALUES (1766713545981153280, 'UnionPaySignType', '云闪付签名类型', b'1', '支付', '', 1399985191002447872, '2024-03-10 14:31:48', 1399985191002447872, '2024-03-10 14:31:48', 0, 0); +INSERT INTO `base_dict` VALUES (1768206399071809536, 'UnionPayRecordType', '云闪付流水类型', b'1', '支付', '', 1399985191002447872, '2024-03-14 17:23:52', 1399985191002447872, '2024-03-14 17:23:52', 0, 0); +INSERT INTO `base_dict` VALUES (1775112798259302400, 'AllocReceiverType', '分账接收方类型', b'1', '支付', '', 1399985191002447872, '2024-04-02 18:47:26', 1399985191002447872, '2024-05-14 16:40:14', 0, 1); +INSERT INTO `base_dict` VALUES (1775122632706805760, 'AllocRelationType', '分账关系类型', b'1', '支付', '', 1399985191002447872, '2024-04-02 19:26:30', 1399985191002447872, '2024-05-14 16:40:09', 0, 1); +INSERT INTO `base_dict` VALUES (1777697358802530304, 'AllocOrderStatus', '分账状态', b'1', '支付', '', 1399985191002447872, '2024-04-09 21:57:33', 1399985191002447872, '2024-05-14 16:40:04', 0, 2); +INSERT INTO `base_dict` VALUES (1780163691808391168, 'AllocDetailResult', '支付分账明细处理结果', b'1', '支付', '', 1399985191002447872, '2024-04-16 17:17:53', 1399985191002447872, '2024-05-14 16:39:57', 0, 3); +INSERT INTO `base_dict` VALUES (1780165499633106944, 'AllocOrderResult', '支付分账订单处理结果', b'1', '支付', '', 1399985191002447872, '2024-04-16 17:25:04', 1399985191002447872, '2024-05-14 16:39:36', 0, 1); +INSERT INTO `base_dict` VALUES (1780165929528295424, 'PayOrderAllocationStatus', '支付订单分账状态', b'1', '支付', '', 1399985191002447872, '2024-04-16 17:26:46', 1399985191002447872, '2024-04-16 17:26:46', 0, 0); +INSERT INTO `base_dict` VALUES (1786399552686465024, 'ReconcileResult', '对账结果', b'1', '支付', '', 1399985191002447872, '2024-05-03 22:16:58', 1399985191002447872, '2024-05-03 22:16:58', 0, 0); +INSERT INTO `base_dict` VALUES (1797179034383134720, 'TradeFlowRecordType', '交易流水记录类型', b'1', '支付', '', 1399985191002447872, '2024-06-02 16:10:46', 1399985191002447872, '2024-06-02 16:10:46', 0, 0); + +-- ---------------------------- +-- Table structure for base_dict_item +-- ---------------------------- +DROP TABLE IF EXISTS `base_dict_item`; +CREATE TABLE `base_dict_item` ( + `id` bigint(20) NOT NULL, + `dict_id` bigint(20) NOT NULL COMMENT '字典id', + `dict_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '字典code', + `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '字典项code', + `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '字典项名称', + `enable` bit(1) NOT NULL DEFAULT b'1' COMMENT '启用状态', + `sort_no` double(8, 2) NOT NULL COMMENT '排序', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '备注', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '更新人', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '更新时间', + `deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0:未删除。1:已删除', + `version` int(8) NOT NULL COMMENT '版本', + PRIMARY KEY (`id`) USING BTREE, + INDEX `idx_dictionary_id`(`dict_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '字典项' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of base_dict_item +-- ---------------------------- +INSERT INTO `base_dict_item` VALUES (1422931375807242241, 1422929378374828033, 'Sex', '1', '男', b'1', 0.00, '男性', 0, '2021-08-04 22:44:11', 0, '2021-08-04 22:44:11', 0, 2); +INSERT INTO `base_dict_item` VALUES (1425729455402401794, 1422929378374828033, 'Sex', '2', '女', b'1', 0.00, '女性', 0, '2021-08-12 16:02:46', 0, '2021-08-12 16:02:46', 0, 1); +INSERT INTO `base_dict_item` VALUES (1425744258544136194, 1425744045414772737, 'MenuType', '0', '顶级菜单', b'1', 0.00, '顶级菜单', 0, '2021-08-12 17:01:35', 0, '2021-08-12 17:01:35', 0, 0); +INSERT INTO `base_dict_item` VALUES (1425744436592340993, 1425744045414772737, 'MenuType', '1', '子菜单', b'1', 0.00, '子菜单', 0, '2021-08-12 17:02:17', 0, '2021-08-12 17:02:17', 0, 0); +INSERT INTO `base_dict_item` VALUES (1425744470582980610, 1425744045414772737, 'MenuType', '2', '按钮权限', b'1', 0.00, '按钮权限', 0, '2021-08-12 17:02:26', 0, '2021-08-12 17:02:26', 0, 0); +INSERT INTO `base_dict_item` VALUES (1430094707250413568, 1422929378374828033, 'Sex', '0', '未知', b'1', 0.00, '不确定性别', 1399985191002447872, '2021-08-24 17:08:43', 1399985191002447872, '2021-08-24 17:08:43', 0, 0); +INSERT INTO `base_dict_item` VALUES (1435830086406463488, 1435829999592759296, 'UserStatusCode', 'normal', '正常', b'1', 0.00, 'NORMAL', 1399985191002447872, '2021-09-09 12:59:04', 1399985191002447872, '2023-11-25 15:32:04', 0, 1); +INSERT INTO `base_dict_item` VALUES (1435830141855162368, 1435829999592759296, 'UserStatusCode', 'lock', '锁定', b'1', 0.00, 'LOCK, 多次登录失败被锁定', 1399985191002447872, '2021-09-09 12:59:17', 1399985191002447872, '2023-11-25 15:32:14', 0, 2); +INSERT INTO `base_dict_item` VALUES (1435830260503633920, 1435829999592759296, 'UserStatusCode', 'ban', '封禁', b'1', 0.00, 'BAN', 1399985191002447872, '2021-09-09 12:59:45', 1399985191002447872, '2023-11-25 15:32:20', 0, 1); +INSERT INTO `base_dict_item` VALUES (1435838374749626368, 1435838066191458304, 'LogBusinessType', 'other', '其它', b'1', 0.00, '', 1399985191002447872, '2021-09-09 13:32:00', 1399985191002447872, '2021-09-09 13:32:00', 0, 0); +INSERT INTO `base_dict_item` VALUES (1435838414436130816, 1435838066191458304, 'LogBusinessType', 'insert', '新增', b'1', 0.00, '', 1399985191002447872, '2021-09-09 13:32:09', 1399985191002447872, '2021-09-09 13:32:09', 0, 0); +INSERT INTO `base_dict_item` VALUES (1435838467624099840, 1435838066191458304, 'LogBusinessType', 'update', '修改', b'1', 0.00, '', 1399985191002447872, '2021-09-09 13:32:22', 1399985191002447872, '2021-09-09 13:32:22', 0, 0); +INSERT INTO `base_dict_item` VALUES (1435838502755590144, 1435838066191458304, 'LogBusinessType', 'delete', '删除', b'1', 0.00, '', 1399985191002447872, '2021-09-09 13:32:30', 1399985191002447872, '2021-09-09 13:32:30', 0, 0); +INSERT INTO `base_dict_item` VALUES (1435838546934194176, 1435838066191458304, 'LogBusinessType', 'grant', '授权', b'1', 0.00, '', 1399985191002447872, '2021-09-09 13:32:41', 1399985191002447872, '2021-09-09 13:32:41', 0, 0); +INSERT INTO `base_dict_item` VALUES (1435838605537009664, 1435838066191458304, 'LogBusinessType', 'export', '导出', b'1', 0.00, '', 1399985191002447872, '2021-09-09 13:32:55', 1399985191002447872, '2021-09-09 13:32:55', 0, 0); +INSERT INTO `base_dict_item` VALUES (1435838705457913856, 1435838066191458304, 'LogBusinessType', 'import', '导入', b'1', 0.00, '', 1399985191002447872, '2021-09-09 13:33:19', 1399985191002447872, '2021-09-09 13:33:19', 0, 0); +INSERT INTO `base_dict_item` VALUES (1435838745861644288, 1435838066191458304, 'LogBusinessType', 'force', '强退', b'1', 0.00, '', 1399985191002447872, '2021-09-09 13:33:28', 1399985191002447872, '2021-09-09 13:33:28', 0, 0); +INSERT INTO `base_dict_item` VALUES (1435838786273763328, 1435838066191458304, 'LogBusinessType', 'clean', '清空数据', b'1', 0.00, '', 1399985191002447872, '2021-09-09 13:33:38', 1399985191002447872, '2021-09-09 13:33:38', 0, 0); +INSERT INTO `base_dict_item` VALUES (1438079113630003200, 1438078864509317120, 'MailSecurityCode', '1', '普通方式', b'1', 0.00, 'SECURITY_TYPE_PLAIN', 1399985191002447872, '2021-09-15 17:55:54', 1399985191002447872, '2021-09-15 17:55:54', 0, 0); +INSERT INTO `base_dict_item` VALUES (1438080323061755904, 1438078864509317120, 'MailSecurityCode', '2', 'TLS方式', b'1', 0.00, 'SECURITY_TYPE_TLS', 1399985191002447872, '2021-09-15 18:00:42', 1399985191002447872, '2021-09-15 18:00:42', 0, 0); +INSERT INTO `base_dict_item` VALUES (1438080372231581696, 1438078864509317120, 'MailSecurityCode', '3', 'SSL方式', b'1', 0.00, 'SECURITY_TYPE_SSL', 1399985191002447872, '2021-09-15 18:00:54', 1399985191002447872, '2021-09-15 18:00:54', 0, 0); +INSERT INTO `base_dict_item` VALUES (1439961603914047488, 1439961232651034624, 'MessageTemplateCode', '5', '微信', b'1', -10.00, 'WECHAT', 1399985191002447872, '2021-09-20 22:36:14', 1399985191002447872, '2021-09-20 22:36:14', 0, 1); +INSERT INTO `base_dict_item` VALUES (1439961704321490944, 1439961232651034624, 'MessageTemplateCode', '4', 'Email', b'1', 0.00, 'EMAIL', 1399985191002447872, '2021-09-20 22:36:38', 1399985191002447872, '2021-09-20 22:36:38', 0, 0); +INSERT INTO `base_dict_item` VALUES (1439962132744478720, 1439961232651034624, 'MessageTemplateCode', '3', '短信', b'1', 0.00, 'SMS', 1399985191002447872, '2021-09-20 22:38:20', 1399985191002447872, '2021-09-20 22:38:20', 0, 0); +INSERT INTO `base_dict_item` VALUES (1439962205578567680, 1439961232651034624, 'MessageTemplateCode', '2', '钉钉机器人', b'1', 0.00, 'DING_TALK_ROBOT', 1399985191002447872, '2021-09-20 22:38:38', 1399985191002447872, '2021-09-20 22:38:38', 0, 0); +INSERT INTO `base_dict_item` VALUES (1439962267511660544, 1439961232651034624, 'MessageTemplateCode', '1', '钉钉', b'1', 0.00, 'DING_TALK', 1399985191002447872, '2021-09-20 22:38:52', 1399985191002447872, '2021-09-20 22:38:52', 0, 0); +INSERT INTO `base_dict_item` VALUES (1452836696873984000, 1452836604783845376, 'SocialType', 'WeChat', '微信', b'1', 0.00, '', 1399985191002447872, '2021-10-26 11:17:16', 1399985191002447872, '2021-10-26 11:17:16', 0, 0); +INSERT INTO `base_dict_item` VALUES (1452837435482529792, 1452836604783845376, 'SocialType', 'QQ', 'QQ', b'1', 0.00, '', 1399985191002447872, '2021-10-26 11:20:12', 1399985191002447872, '2021-10-26 11:20:12', 0, 0); +INSERT INTO `base_dict_item` VALUES (1452837523030237184, 1452836604783845376, 'SocialType', 'DingTalk', '钉钉', b'1', 0.00, '', 1399985191002447872, '2021-10-26 11:20:33', 1399985191002447872, '2021-10-26 11:20:33', 0, 0); +INSERT INTO `base_dict_item` VALUES (1452844537911406592, 1452843488735621120, 'ParamType', '1', '系统参数', b'1', 0.00, '', 1399985191002447872, '2021-10-26 11:48:25', 1399985191002447872, '2021-10-26 11:48:25', 0, 0); +INSERT INTO `base_dict_item` VALUES (1452844565031776256, 1452843488735621120, 'ParamType', '2', '用户参数', b'1', 0.00, '', 1399985191002447872, '2021-10-26 11:48:32', 1399985191002447872, '2021-10-26 11:48:32', 0, 2); +INSERT INTO `base_dict_item` VALUES (1496026946344005632, 1496024933900169216, 'Political', '1', '中共党员', b'1', 1.00, '', 1399985191002447872, '2022-02-22 15:39:54', 1399985191002447872, '2022-02-22 15:39:54', 0, 0); +INSERT INTO `base_dict_item` VALUES (1496027004560945152, 1496024933900169216, 'Political', '2', '中共预备党员', b'1', 2.00, '', 1399985191002447872, '2022-02-22 15:40:07', 1399985191002447872, '2022-02-22 15:40:07', 0, 0); +INSERT INTO `base_dict_item` VALUES (1496027039264616448, 1496024933900169216, 'Political', '3', '共青团员', b'1', 3.00, '', 1399985191002447872, '2022-02-22 15:40:16', 1399985191002447872, '2022-02-22 15:40:16', 0, 0); +INSERT INTO `base_dict_item` VALUES (1496027077550223360, 1496024933900169216, 'Political', '4', '民革党员', b'1', 4.00, '', 1399985191002447872, '2022-02-22 15:40:25', 1399985191002447872, '2022-02-22 15:40:25', 0, 0); +INSERT INTO `base_dict_item` VALUES (1496027123461074944, 1496024933900169216, 'Political', '5', '民盟盟员', b'1', 5.00, '', 1399985191002447872, '2022-02-22 15:40:36', 1399985191002447872, '2022-02-22 15:40:36', 0, 0); +INSERT INTO `base_dict_item` VALUES (1496027197566038016, 1496024933900169216, 'Political', '6', '民建会员', b'1', 6.00, '', 1399985191002447872, '2022-02-22 15:40:53', 1399985191002447872, '2022-02-22 15:40:53', 0, 0); +INSERT INTO `base_dict_item` VALUES (1496027234803068928, 1496024933900169216, 'Political', '7', '民进会员', b'1', 7.00, '', 1399985191002447872, '2022-02-22 15:41:02', 1399985191002447872, '2022-02-22 15:41:02', 0, 0); +INSERT INTO `base_dict_item` VALUES (1496027272941875200, 1496024933900169216, 'Political', '8', '农工党党员', b'1', 8.00, '', 1399985191002447872, '2022-02-22 15:41:11', 1399985191002447872, '2022-02-22 15:41:11', 0, 0); +INSERT INTO `base_dict_item` VALUES (1496027306634719232, 1496024933900169216, 'Political', '9', '致公党党员', b'1', 9.00, '', 1399985191002447872, '2022-02-22 15:41:19', 1399985191002447872, '2022-02-22 15:41:19', 0, 0); +INSERT INTO `base_dict_item` VALUES (1496027369796743168, 1496024933900169216, 'Political', '10', '九三学社社员', b'1', 10.00, '', 1399985191002447872, '2022-02-22 15:41:34', 1399985191002447872, '2022-02-22 15:41:35', 0, 0); +INSERT INTO `base_dict_item` VALUES (1496027408141070336, 1496024933900169216, 'Political', '11', '台盟盟员', b'1', 11.00, '', 1399985191002447872, '2022-02-22 15:41:44', 1399985191002447872, '2022-02-22 15:41:44', 0, 0); +INSERT INTO `base_dict_item` VALUES (1496027456849522688, 1496024933900169216, 'Political', '12', '无党派人士', b'1', 12.00, '', 1399985191002447872, '2022-02-22 15:41:55', 1399985191002447872, '2022-02-22 15:41:55', 0, 0); +INSERT INTO `base_dict_item` VALUES (1496027516639326208, 1496024933900169216, 'Political', '13', '群众', b'1', 13.00, '', 1399985191002447872, '2022-02-22 15:42:09', 1399985191002447872, '2022-02-22 15:42:10', 0, 0); +INSERT INTO `base_dict_item` VALUES (1561003368762032128, 1561003021674987520, 'SiteMessageReceive', 'user', '指定用户', b'1', 0.00, '', 1399985191002447872, '2022-08-20 22:53:00', 1399985191002447872, '2022-08-20 22:53:00', 0, 0); +INSERT INTO `base_dict_item` VALUES (1561003399778910208, 1561003021674987520, 'SiteMessageReceive', 'all', '全部用户', b'1', 0.00, '', 1399985191002447872, '2022-08-20 22:53:07', 1399985191002447872, '2022-08-20 22:53:24', 0, 1); +INSERT INTO `base_dict_item` VALUES (1561003539772194816, 1561003189111603200, 'SiteMessageState', 'sent', '已发送', b'1', 0.00, '', 1399985191002447872, '2022-08-20 22:53:41', 1399985191002447872, '2022-08-20 22:53:41', 0, 0); +INSERT INTO `base_dict_item` VALUES (1561003575608328192, 1561003189111603200, 'SiteMessageState', 'cancel', '撤销', b'1', 0.00, '', 1399985191002447872, '2022-08-20 22:53:49', 1399985191002447872, '2022-08-20 22:53:49', 0, 0); +INSERT INTO `base_dict_item` VALUES (1561245469535080448, 1561003189111603200, 'SiteMessageState', 'draft', '草稿', b'1', 0.00, '', 1399985191002447872, '2022-08-21 14:55:01', 1399985191002447872, '2022-08-21 14:55:01', 0, 0); +INSERT INTO `base_dict_item` VALUES (1573665422392098816, 1439961232651034624, 'MessageTemplateCode', '0', '站内信', b'1', -11.00, 'SITE', 1399985191002447872, '2022-09-24 21:27:29', 1399985191002447872, '2022-09-24 21:27:39', 0, 1); +INSERT INTO `base_dict_item` VALUES (1589528254477488128, 1589527951317389312, 'DataScopePerm', 'self_dept_sub', '所在及下级部门', b'1', 0.00, '', 1414143554414059520, '2022-11-07 16:00:43', 1399985191002447872, '2023-11-28 23:16:02', 0, 2); +INSERT INTO `base_dict_item` VALUES (1589528283539820544, 1589527951317389312, 'DataScopePerm', 'self_dept', '所在部门', b'1', 0.00, '', 1414143554414059520, '2022-11-07 16:00:49', 1399985191002447872, '2023-11-28 23:15:52', 0, 2); +INSERT INTO `base_dict_item` VALUES (1589528315672383488, 1589527951317389312, 'DataScopePerm', 'all', '全部数据', b'1', 0.00, '', 1414143554414059520, '2022-11-07 16:00:57', 1399985191002447872, '2023-11-25 22:51:28', 0, 1); +INSERT INTO `base_dict_item` VALUES (1589528340267782144, 1589527951317389312, 'DataScopePerm', 'dept_and_user', '自定义部门和用户', b'1', 0.00, '', 1414143554414059520, '2022-11-07 16:01:03', 1399985191002447872, '2023-11-29 15:25:01', 0, 3); +INSERT INTO `base_dict_item` VALUES (1589528367228768256, 1589527951317389312, 'DataScopePerm', 'dept', '自定义部门', b'1', 0.00, '', 1414143554414059520, '2022-11-07 16:01:09', 1399985191002447872, '2023-11-29 15:24:47', 0, 2); +INSERT INTO `base_dict_item` VALUES (1589528393292173312, 1589527951317389312, 'DataScopePerm', 'user', '指定用户', b'1', 0.00, '', 1414143554414059520, '2022-11-07 16:01:16', 1399985191002447872, '2023-11-29 15:25:16', 0, 2); +INSERT INTO `base_dict_item` VALUES (1589528423956729856, 1589527951317389312, 'DataScopePerm', 'self', '自身数据', b'1', 0.00, '', 1414143554414059520, '2022-11-07 16:01:23', 1399985191002447872, '2023-11-25 22:50:41', 0, 1); +INSERT INTO `base_dict_item` VALUES (1633403429028536320, 1633393287952257024, 'DatabaseType', 'mysql', 'MySQL', b'1', 1.00, '', 1414143554414059520, '2023-03-08 17:44:59', 1414143554414059520, '2023-03-08 17:44:59', 0, 0); +INSERT INTO `base_dict_item` VALUES (1633403459470794752, 1633393287952257024, 'DatabaseType', 'oracle', 'Oracle', b'1', 2.00, '', 1414143554414059520, '2023-03-08 17:45:07', 1414143554414059520, '2023-03-08 17:45:07', 0, 0); +INSERT INTO `base_dict_item` VALUES (1633403498695925760, 1633393287952257024, 'DatabaseType', 'mssql', 'SQLServer', b'1', 3.00, '', 1414143554414059520, '2023-03-08 17:45:16', 1414143554414059520, '2023-03-08 17:45:16', 0, 0); +INSERT INTO `base_dict_item` VALUES (1688742732891111424, 1688742690398617600, 'SmsChannel', 'alibaba', '阿里云', b'1', 0.00, '', 1414143554414059520, '2023-08-08 10:43:38', 1414143554414059520, '2023-08-08 10:43:38', 0, 0); +INSERT INTO `base_dict_item` VALUES (1688742768479780864, 1688742690398617600, 'SmsChannel', 'huawei', '华为云', b'1', 0.00, '', 1414143554414059520, '2023-08-08 10:43:46', 1414143554414059520, '2023-08-08 10:43:46', 0, 0); +INSERT INTO `base_dict_item` VALUES (1688742808027873280, 1688742690398617600, 'SmsChannel', 'yunpian', '云片', b'1', 0.00, '', 1414143554414059520, '2023-08-08 10:43:55', 1414143554414059520, '2023-08-08 10:43:56', 0, 0); +INSERT INTO `base_dict_item` VALUES (1688742840626003968, 1688742690398617600, 'SmsChannel', 'tencent', '腾讯云', b'1', 0.00, '', 1414143554414059520, '2023-08-08 10:44:03', 1414143554414059520, '2023-08-08 10:44:03', 0, 0); +INSERT INTO `base_dict_item` VALUES (1688742872506908672, 1688742690398617600, 'SmsChannel', 'uni_sms', '合一短信', b'1', 0.00, '', 1414143554414059520, '2023-08-08 10:44:11', 1414143554414059520, '2023-08-08 10:44:11', 0, 0); +INSERT INTO `base_dict_item` VALUES (1688742905553829888, 1688742690398617600, 'SmsChannel', 'jd_cloud', '京东云', b'1', 0.00, '', 1414143554414059520, '2023-08-08 10:44:19', 1414143554414059520, '2023-08-08 10:44:19', 0, 0); +INSERT INTO `base_dict_item` VALUES (1688742954715267072, 1688742690398617600, 'SmsChannel', 'cloopen', '容联云', b'1', 0.00, '', 1414143554414059520, '2023-08-08 10:44:30', 1414143554414059520, '2023-08-08 10:44:30', 0, 0); +INSERT INTO `base_dict_item` VALUES (1688742990446542848, 1688742690398617600, 'SmsChannel', 'emay', '亿美软通', b'1', 0.00, '', 1414143554414059520, '2023-08-08 10:44:39', 1414143554414059520, '2023-08-08 10:44:39', 0, 0); +INSERT INTO `base_dict_item` VALUES (1688743032297308160, 1688742690398617600, 'SmsChannel', 'ctyun', '天翼云', b'1', 0.00, '', 1414143554414059520, '2023-08-08 10:44:49', 1414143554414059520, '2023-08-08 10:44:49', 0, 0); +INSERT INTO `base_dict_item` VALUES (1688743065205817344, 1688742690398617600, 'SmsChannel', 'netease', '网易云信', b'1', 0.00, '', 1414143554414059520, '2023-08-08 10:44:57', 1414143554414059520, '2023-08-08 10:44:57', 0, 0); +INSERT INTO `base_dict_item` VALUES (1690338619024437248, 1690338321769918464, 'GeneralTemplateUseType', 'import', '导入', b'1', 0.00, '', 1414143554414059520, '2023-08-12 20:25:06', 1414143554414059520, '2023-08-12 20:25:06', 0, 0); +INSERT INTO `base_dict_item` VALUES (1690338653442895872, 1690338321769918464, 'GeneralTemplateUseType', 'export', '导出', b'1', 0.00, '', 1414143554414059520, '2023-08-12 20:25:15', 1414143554414059520, '2023-08-12 20:25:15', 0, 0); +INSERT INTO `base_dict_item` VALUES (1690338707129987072, 1690338545284378624, 'GeneralTemplateState', 'enable', '启用', b'1', 0.00, '', 1414143554414059520, '2023-08-12 20:25:27', 1414143554414059520, '2023-08-12 20:25:27', 0, 0); +INSERT INTO `base_dict_item` VALUES (1690338748032839680, 1690338545284378624, 'GeneralTemplateState', 'disable', '停用', b'1', 0.00, '', 1414143554414059520, '2023-08-12 20:25:37', 1414143554414059520, '2023-08-12 20:25:37', 0, 0); +INSERT INTO `base_dict_item` VALUES (1729519341702086656, 1589527951317389312, 'DataScopePerm', 'dept_sub', '指定部门及下级部门', b'1', 0.00, '', 1399985191002447872, '2023-11-28 23:15:19', 1399985191002447872, '2023-11-28 23:15:19', 0, 0); +INSERT INTO `base_dict_item` VALUES (1744997130102317056, 1744996845355212800, 'PayChannel', 'ali_pay', '支付宝', b'1', 1.00, '', 1399985191002447872, '2024-01-10 16:18:31', 1399985191002447872, '2024-01-10 16:18:31', 0, 0); +INSERT INTO `base_dict_item` VALUES (1744997169239367680, 1744996845355212800, 'PayChannel', 'wechat_pay', '微信支付', b'1', 2.00, '', 1399985191002447872, '2024-01-10 16:18:40', 1399985191002447872, '2024-01-10 16:18:40', 0, 0); +INSERT INTO `base_dict_item` VALUES (1744997213623492608, 1744996845355212800, 'PayChannel', 'union_pay', '云闪付', b'1', 3.00, '', 1399985191002447872, '2024-01-10 16:18:51', 1399985191002447872, '2024-01-10 16:18:51', 0, 0); +INSERT INTO `base_dict_item` VALUES (1744997258951335936, 1744996845355212800, 'PayChannel', 'cash_pay', '现金支付', b'1', 4.00, '', 1399985191002447872, '2024-01-10 16:19:02', 1399985191002447872, '2024-05-02 12:39:33', 1, 0); +INSERT INTO `base_dict_item` VALUES (1744997315557662720, 1744996845355212800, 'PayChannel', 'wallet_pay', '钱包支付', b'1', 5.00, '', 1399985191002447872, '2024-01-10 16:19:15', 1399985191002447872, '2024-01-10 16:19:15', 0, 0); +INSERT INTO `base_dict_item` VALUES (1744997364404527104, 1744996845355212800, 'PayChannel', 'voucher_pay', '储值卡支付', b'1', 6.00, '', 1399985191002447872, '2024-01-10 16:19:27', 1399985191002447872, '2024-05-02 12:39:29', 1, 0); +INSERT INTO `base_dict_item` VALUES (1744997501033979904, 1744996913667842048, 'PayStatus', 'progress', '支付中', b'1', 1.00, '', 1399985191002447872, '2024-01-10 16:19:59', 1399985191002447872, '2024-01-10 16:19:59', 0, 0); +INSERT INTO `base_dict_item` VALUES (1744997541811003392, 1744996913667842048, 'PayStatus', 'success', '成功', b'1', 2.00, '', 1399985191002447872, '2024-01-10 16:20:09', 1399985191002447872, '2024-01-10 16:20:09', 0, 0); +INSERT INTO `base_dict_item` VALUES (1744997578863484928, 1744996913667842048, 'PayStatus', 'close', '支付关闭', b'1', 3.00, '', 1399985191002447872, '2024-01-10 16:20:18', 1399985191002447872, '2024-01-10 16:20:18', 0, 0); +INSERT INTO `base_dict_item` VALUES (1744997619665674240, 1744996913667842048, 'PayStatus', 'fail', '失败', b'1', 7.00, '', 1399985191002447872, '2024-01-10 16:20:28', 1399985191002447872, '2024-01-27 00:52:05', 0, 1); +INSERT INTO `base_dict_item` VALUES (1744997658735616000, 1744996913667842048, 'PayStatus', 'partial_refund', '部分退款', b'1', 5.00, '', 1399985191002447872, '2024-01-10 16:20:37', 1399985191002447872, '2024-01-10 16:20:44', 0, 1); +INSERT INTO `base_dict_item` VALUES (1744997746321072128, 1744996913667842048, 'PayStatus', 'refunded', '全部退款', b'1', 6.00, '', 1399985191002447872, '2024-01-10 16:20:58', 1399985191002447872, '2024-01-10 16:20:58', 0, 0); +INSERT INTO `base_dict_item` VALUES (1745085949967278080, 1744996611615039488, 'AsyncPayChannel', 'ali_pay', '支付宝', b'1', 1.00, '', 1399985191002447872, '2024-01-10 22:11:27', 1399985191002447872, '2024-01-10 22:11:27', 0, 0); +INSERT INTO `base_dict_item` VALUES (1745085991767711744, 1744996611615039488, 'AsyncPayChannel', 'wechat_pay', '微信支付', b'1', 2.00, '', 1399985191002447872, '2024-01-10 22:11:37', 1399985191002447872, '2024-01-10 22:11:37', 0, 0); +INSERT INTO `base_dict_item` VALUES (1745086048852189184, 1744996611615039488, 'AsyncPayChannel', 'union_pay', '云闪付', b'1', 3.00, '', 1399985191002447872, '2024-01-10 22:11:51', 1399985191002447872, '2024-01-11 00:13:03', 0, 1); +INSERT INTO `base_dict_item` VALUES (1745086902929924096, 1745086859116224512, 'PayMethod', 'normal', '常规支付', b'1', 1.00, '', 1399985191002447872, '2024-01-10 22:15:14', 1399985191002447872, '2024-01-10 22:15:26', 0, 1); +INSERT INTO `base_dict_item` VALUES (1745086940036931584, 1745086859116224512, 'PayMethod', 'wap', 'wap支付', b'1', 2.00, '', 1399985191002447872, '2024-01-10 22:15:23', 1399985191002447872, '2024-01-10 22:15:23', 0, 0); +INSERT INTO `base_dict_item` VALUES (1745087004062982144, 1745086859116224512, 'PayMethod', 'app', '应用支付', b'1', 3.00, '', 1399985191002447872, '2024-01-10 22:15:39', 1399985191002447872, '2024-01-10 22:15:39', 0, 0); +INSERT INTO `base_dict_item` VALUES (1745087058194669568, 1745086859116224512, 'PayMethod', 'web', 'web支付', b'1', 4.00, '', 1399985191002447872, '2024-01-10 22:15:51', 1399985191002447872, '2024-01-10 22:15:51', 0, 0); +INSERT INTO `base_dict_item` VALUES (1745087104050995200, 1745086859116224512, 'PayMethod', 'qrcode', '扫码支付', b'1', 5.00, '', 1399985191002447872, '2024-01-10 22:16:02', 1399985191002447872, '2024-01-10 22:16:02', 0, 0); +INSERT INTO `base_dict_item` VALUES (1745087163324899328, 1745086859116224512, 'PayMethod', 'barcode', '付款码', b'1', 6.00, '', 1399985191002447872, '2024-01-10 22:16:17', 1399985191002447872, '2024-01-10 22:16:17', 0, 0); +INSERT INTO `base_dict_item` VALUES (1745087221629919232, 1745086859116224512, 'PayMethod', 'jsapi', '公众号/小程序支付', b'1', 7.00, '', 1399985191002447872, '2024-01-10 22:16:30', 1399985191002447872, '2024-01-10 22:16:37', 0, 1); +INSERT INTO `base_dict_item` VALUES (1745109413893656576, 1745109350333173760, 'PayCallbackStatus', 'success', '成功', b'1', 1.00, '', 1399985191002447872, '2024-01-10 23:44:41', 1399985191002447872, '2024-01-10 23:44:41', 0, 0); +INSERT INTO `base_dict_item` VALUES (1745109449050312704, 1745109350333173760, 'PayCallbackStatus', 'fail', '失败', b'1', 2.00, '', 1399985191002447872, '2024-01-10 23:44:50', 1399985191002447872, '2024-01-10 23:44:50', 0, 0); +INSERT INTO `base_dict_item` VALUES (1745109487289782272, 1745109350333173760, 'PayCallbackStatus', 'ignore', '忽略', b'1', 3.00, '', 1399985191002447872, '2024-01-10 23:44:59', 1399985191002447872, '2024-01-10 23:44:59', 0, 0); +INSERT INTO `base_dict_item` VALUES (1745109526477164544, 1745109350333173760, 'PayCallbackStatus', 'exception', '异常', b'1', 4.00, '', 1399985191002447872, '2024-01-10 23:45:08', 1399985191002447872, '2024-02-01 22:14:52', 0, 1); +INSERT INTO `base_dict_item` VALUES (1745109571771453440, 1745109350333173760, 'PayCallbackStatus', 'not_found', '未找到', b'1', 5.00, '', 1399985191002447872, '2024-01-10 23:45:19', 1399985191002447872, '2024-01-10 23:45:19', 0, 0); +INSERT INTO `base_dict_item` VALUES (1745129035573465088, 1745128986382667776, 'PayRepairSource', 'sync', '同步', b'1', 1.00, '', 1399985191002447872, '2024-01-11 01:02:40', 1399985191002447872, '2024-01-11 01:02:40', 0, 0); +INSERT INTO `base_dict_item` VALUES (1745133530906857472, 1745128986382667776, 'PayRepairSource', 'callback', '回调', b'1', 2.00, '', 1399985191002447872, '2024-01-11 01:20:31', 1399985191002447872, '2024-01-11 01:20:31', 0, 0); +INSERT INTO `base_dict_item` VALUES (1745133583939637248, 1745128986382667776, 'PayRepairSource', 'reconcile', '对账', b'1', 3.00, '', 1399985191002447872, '2024-01-11 01:20:44', 1399985191002447872, '2024-01-11 01:20:44', 0, 0); +INSERT INTO `base_dict_item` VALUES (1745134495319953408, 1745134438772346880, 'PayRepairWay', 'pay_success', '支付成功', b'1', 1.00, '', 1399985191002447872, '2024-01-11 01:24:21', 1399985191002447872, '2024-02-01 21:29:32', 0, 1); +INSERT INTO `base_dict_item` VALUES (1745134589926674432, 1745134438772346880, 'PayRepairWay', 'pay_close_local', '关闭本地支付', b'1', 2.00, '', 1399985191002447872, '2024-01-11 01:24:44', 1399985191002447872, '2024-02-01 21:29:36', 0, 1); +INSERT INTO `base_dict_item` VALUES (1745134628447162368, 1745134438772346880, 'PayRepairWay', 'pay_progress', '更改为支付中', b'1', 3.00, '', 1399985191002447872, '2024-01-11 01:24:53', 1399985191002447872, '2024-02-01 22:02:53', 0, 2); +INSERT INTO `base_dict_item` VALUES (1745134664807583744, 1745134438772346880, 'PayRepairWay', 'pay_close_gateway', '关闭网关支付', b'1', 4.00, '', 1399985191002447872, '2024-01-11 01:25:02', 1399985191002447872, '2024-02-01 21:29:43', 0, 1); +INSERT INTO `base_dict_item` VALUES (1745134703416152064, 1745134438772346880, 'PayRepairWay', 'refund', '退款', b'1', 5.00, '', 1399985191002447872, '2024-01-11 01:25:11', 1399985191002447872, '2024-01-28 21:55:55', 1, 1); +INSERT INTO `base_dict_item` VALUES (1745748239158845440, 1745748188122554368, 'RefundStatus', 'success', '成功', b'1', 1.00, '', 1399985191002447872, '2024-01-12 18:03:09', 1399985191002447872, '2024-01-12 18:03:09', 0, 0); +INSERT INTO `base_dict_item` VALUES (1745748274525216768, 1745748188122554368, 'RefundStatus', 'fail', '失败', b'1', 3.00, '', 1399985191002447872, '2024-01-12 18:03:18', 1399985191002447872, '2024-01-27 00:51:02', 0, 1); +INSERT INTO `base_dict_item` VALUES (1746208700446683136, 1746208645341917184, 'PaySyncStatus', 'pay_fail', '支付查询失败', b'1', 1.00, '', 1399985191002447872, '2024-01-14 00:32:52', 1399985191002447872, '2024-02-01 21:59:17', 0, 1); +INSERT INTO `base_dict_item` VALUES (1746208760488144896, 1746208645341917184, 'PaySyncStatus', 'pay_success', '支付成功', b'1', 2.00, '', 1399985191002447872, '2024-01-14 00:33:06', 1399985191002447872, '2024-02-01 21:59:23', 0, 1); +INSERT INTO `base_dict_item` VALUES (1746208802531848192, 1746208645341917184, 'PaySyncStatus', 'pay_progress', '支付中', b'1', 3.00, '', 1399985191002447872, '2024-01-14 00:33:16', 1399985191002447872, '2024-02-01 21:59:33', 0, 1); +INSERT INTO `base_dict_item` VALUES (1746208853882712064, 1746208645341917184, 'PaySyncStatus', 'pay_closed', '支付已关闭', b'1', 4.00, '', 1399985191002447872, '2024-01-14 00:33:28', 1399985191002447872, '2024-02-01 21:59:43', 0, 1); +INSERT INTO `base_dict_item` VALUES (1746208898396860416, 1746208645341917184, 'PaySyncStatus', 'pay_refund', '支付退款', b'1', 5.00, '', 1399985191002447872, '2024-01-14 00:33:39', 1399985191002447872, '2024-02-01 21:59:53', 0, 2); +INSERT INTO `base_dict_item` VALUES (1746208959721779200, 1746208645341917184, 'PaySyncStatus', 'pay_not_found', '交易不存在', b'1', 6.00, '', 1399985191002447872, '2024-01-14 00:33:54', 1399985191002447872, '2024-02-01 22:00:05', 0, 2); +INSERT INTO `base_dict_item` VALUES (1746224281904455680, 1746208645341917184, 'PaySyncStatus', 'pay_not_found_unknown', '交易不存在(特殊)', b'1', 7.00, '未查询到订单(具体类型未知), 区别于上面的未查询到订单,有些支付方式如支付宝,发起支付后并不能查询到订单,需要用户进行操作后才能查询到订单,所以查询为了区分,增加一个未知的状态, 用于处理这种特殊情况, 然后根据业务需要,关闭订单或者进行其他操作', 1399985191002447872, '2024-01-14 01:34:47', 1399985191002447872, '2024-02-01 22:00:13', 0, 2); +INSERT INTO `base_dict_item` VALUES (1746224432131842048, 1746208645341917184, 'PaySyncStatus', 'pay_timeout', '支付超时', b'1', 8.00, '', 1399985191002447872, '2024-01-14 01:35:23', 1399985191002447872, '2024-02-01 22:00:30', 0, 2); +INSERT INTO `base_dict_item` VALUES (1749612708363186176, 1749612665392541696, 'ReconcileTrade', 'pay', '支付', b'1', 1.00, '', 1399985191002447872, '2024-01-23 09:59:11', 1399985191002447872, '2024-01-23 09:59:11', 0, 0); +INSERT INTO `base_dict_item` VALUES (1749612758531256320, 1749612665392541696, 'ReconcileTrade', 'refund', '退款', b'1', 2.00, '', 1399985191002447872, '2024-01-23 09:59:23', 1399985191002447872, '2024-01-23 09:59:23', 0, 0); +INSERT INTO `base_dict_item` VALUES (1749612797680889856, 1749612665392541696, 'ReconcileTrade', 'revoked', '撤销', b'1', 3.00, '', 1399985191002447872, '2024-01-23 09:59:32', 1399985191002447872, '2024-01-23 09:59:32', 0, 0); +INSERT INTO `base_dict_item` VALUES (1750924188674404352, 1745748188122554368, 'RefundStatus', 'progress', '退款中', b'1', 0.00, '接口调用成功不代表成功', 1399985191002447872, '2024-01-27 00:50:32', 1399985191002447872, '2024-01-27 00:50:32', 0, 0); +INSERT INTO `base_dict_item` VALUES (1750924286401687552, 1745748188122554368, 'RefundStatus', 'part_success', '部分成功', b'1', 2.00, '', 1399985191002447872, '2024-01-27 00:50:55', 1399985191002447872, '2024-01-27 00:50:55', 0, 0); +INSERT INTO `base_dict_item` VALUES (1750924518497693696, 1744996913667842048, 'PayStatus', 'refunding', '退款中', b'1', 4.00, '', 1399985191002447872, '2024-01-27 00:51:50', 1399985191002447872, '2024-01-27 00:52:10', 0, 1); +INSERT INTO `base_dict_item` VALUES (1751528739035111424, 1751603996496453632, 'PaymentType', 'pay', '支付', b'1', 1.00, '', 1399985191002447872, '2024-01-28 16:52:48', 1399985191002447872, '2024-01-28 16:52:48', 0, 0); +INSERT INTO `base_dict_item` VALUES (1751528773260632064, 1751603996496453632, 'PaymentType', 'refund', '退款', b'1', 2.00, '', 1399985191002447872, '2024-01-28 16:52:56', 1399985191002447872, '2024-01-28 16:52:56', 0, 0); +INSERT INTO `base_dict_item` VALUES (1751613076980039680, 1751613032260370432, 'PayCallbackType', 'pay', '支付回调', b'1', 1.00, '', 1399985191002447872, '2024-01-28 22:27:56', 1399985191002447872, '2024-01-28 22:27:56', 0, 0); +INSERT INTO `base_dict_item` VALUES (1751613114254819328, 1751613032260370432, 'PayCallbackType', 'refund', '退款回调', b'1', 2.00, '', 1399985191002447872, '2024-01-28 22:28:04', 1399985191002447872, '2024-01-28 22:28:04', 0, 0); +INSERT INTO `base_dict_item` VALUES (1752216855927226368, 1745748188122554368, 'RefundStatus', 'close', '关闭', b'1', 4.00, '', 1399985191002447872, '2024-01-30 14:27:08', 1399985191002447872, '2024-01-30 14:27:08', 0, 0); +INSERT INTO `base_dict_item` VALUES (1752560213673594880, 1752560153120428032, 'RefundSyncStatus', 'refund_success', '退款成功', b'1', 1.00, '', 1399985191002447872, '2024-01-31 13:11:31', 1399985191002447872, '2024-02-01 21:56:59', 0, 1); +INSERT INTO `base_dict_item` VALUES (1752560254228320256, 1752560153120428032, 'RefundSyncStatus', 'refund_fail', '退款失败', b'1', 2.00, '', 1399985191002447872, '2024-01-31 13:11:40', 1399985191002447872, '2024-02-01 21:57:07', 0, 1); +INSERT INTO `base_dict_item` VALUES (1752560288546115584, 1752560153120428032, 'RefundSyncStatus', 'refund_progress', '退款中', b'1', 3.00, '', 1399985191002447872, '2024-01-31 13:11:48', 1399985191002447872, '2024-02-01 21:57:45', 0, 1); +INSERT INTO `base_dict_item` VALUES (1753044707091554304, 1745128986382667776, 'PayRepairSource', 'task', '定时任务', b'1', 4.00, '', 1399985191002447872, '2024-02-01 21:16:43', 1399985191002447872, '2024-02-01 21:16:43', 0, 0); +INSERT INTO `base_dict_item` VALUES (1753047429014495232, 1753047382185091072, 'RefundRepairWay', 'refund_success', '退款成功', b'1', 1.00, '', 1399985191002447872, '2024-02-01 21:27:32', 1399985191002447872, '2024-02-01 21:29:13', 0, 1); +INSERT INTO `base_dict_item` VALUES (1753047491140526080, 1753047382185091072, 'RefundRepairWay', 'refund_fail', '退款失败', b'1', 2.00, '', 1399985191002447872, '2024-02-01 21:27:47', 1399985191002447872, '2024-02-01 21:29:19', 0, 1); +INSERT INTO `base_dict_item` VALUES (1755939895162052608, 1745134438772346880, 'PayRepairWay', 'refund_success', '退款成功', b'1', 5.00, '会更新为部分退款和全部退款', 1399985191002447872, '2024-02-09 21:01:09', 1399985191002447872, '2024-02-09 21:10:22', 0, 2); +INSERT INTO `base_dict_item` VALUES (1755942271772139520, 1745134438772346880, 'PayRepairWay', 'refund_fail', '退款失败', b'1', 6.00, '', 1399985191002447872, '2024-02-09 21:10:36', 1399985191002447872, '2024-02-09 21:10:36', 0, 0); +INSERT INTO `base_dict_item` VALUES (1758881424411439104, 1758881354618220544, 'WalletStatus', 'normal', '正常', b'1', 1.00, '', 1399985191002447872, '2024-02-17 23:49:45', 1399985191002447872, '2024-02-17 23:49:45', 0, 0); +INSERT INTO `base_dict_item` VALUES (1758881470334873600, 1758881354618220544, 'WalletStatus', 'forbidden', '禁用', b'1', 2.00, '', 1399985191002447872, '2024-02-17 23:49:56', 1399985191002447872, '2024-02-17 23:49:56', 0, 0); +INSERT INTO `base_dict_item` VALUES (1759189919170002944, 1759189874194481152, 'VoucherStatus', 'normal', '正常', b'1', 1.00, '', 1399985191002447872, '2024-02-18 20:15:36', 1399985191002447872, '2024-02-18 20:15:36', 0, 0); +INSERT INTO `base_dict_item` VALUES (1759189962564272128, 1759189874194481152, 'VoucherStatus', 'forbidden', '禁用', b'1', 2.00, '', 1399985191002447872, '2024-02-18 20:15:46', 1399985191002447872, '2024-02-18 20:15:46', 0, 0); +INSERT INTO `base_dict_item` VALUES (1759190150464897024, 1759190066511708160, 'WalletRecordType', 'create', '创建', b'1', 1.00, '', 1399985191002447872, '2024-02-18 20:16:31', 1399985191002447872, '2024-02-18 20:16:31', 0, 0); +INSERT INTO `base_dict_item` VALUES (1759190193783668736, 1759190066511708160, 'WalletRecordType', 'pay', '支付', b'1', 2.00, '', 1399985191002447872, '2024-02-18 20:16:41', 1399985191002447872, '2024-02-18 20:16:41', 0, 0); +INSERT INTO `base_dict_item` VALUES (1759190227510067200, 1759190066511708160, 'WalletRecordType', 'refund', '退款', b'1', 3.00, '', 1399985191002447872, '2024-02-18 20:16:49', 1399985191002447872, '2024-02-18 20:16:56', 0, 1); +INSERT INTO `base_dict_item` VALUES (1759190291980713984, 1759190066511708160, 'WalletRecordType', 'close_pay', '支付关闭', b'1', 4.00, '', 1399985191002447872, '2024-02-18 20:17:04', 1399985191002447872, '2024-02-18 20:17:04', 0, 0); +INSERT INTO `base_dict_item` VALUES (1759190340517199872, 1759190066511708160, 'WalletRecordType', 'close_refund', '退款关闭', b'1', 5.00, '', 1399985191002447872, '2024-02-18 20:17:16', 1399985191002447872, '2024-02-19 17:31:26', 1, 0); +INSERT INTO `base_dict_item` VALUES (1759190472654553088, 1759190427897135104, 'VoucherRecordType', 'import', '导入', b'1', 1.00, '', 1399985191002447872, '2024-02-18 20:17:48', 1399985191002447872, '2024-02-18 20:17:48', 0, 0); +INSERT INTO `base_dict_item` VALUES (1759190506087350272, 1759190427897135104, 'VoucherRecordType', 'pay', '支付', b'1', 2.00, '', 1399985191002447872, '2024-02-18 20:17:55', 1399985191002447872, '2024-02-18 20:18:16', 0, 1); +INSERT INTO `base_dict_item` VALUES (1759190574865547264, 1759190427897135104, 'VoucherRecordType', 'refund', '退款', b'1', 3.00, '', 1399985191002447872, '2024-02-18 20:18:12', 1399985191002447872, '2024-02-18 20:18:12', 0, 0); +INSERT INTO `base_dict_item` VALUES (1759190633921347584, 1759190427897135104, 'VoucherRecordType', 'close_pay', '支付关闭', b'1', 4.00, '', 1399985191002447872, '2024-02-18 20:18:26', 1399985191002447872, '2024-02-18 20:18:26', 0, 0); +INSERT INTO `base_dict_item` VALUES (1759190717757095936, 1759190427897135104, 'VoucherRecordType', 'close_refund', '退款关闭', b'1', 5.00, '', 1399985191002447872, '2024-02-18 20:18:46', 1399985191002447872, '2024-02-19 17:31:20', 1, 0); +INSERT INTO `base_dict_item` VALUES (1759190820500766720, 1759190780252225536, 'CashRecordType', 'pay', '支付', b'1', 1.00, '', 1399985191002447872, '2024-02-18 20:19:10', 1399985191002447872, '2024-02-18 20:19:39', 0, 1); +INSERT INTO `base_dict_item` VALUES (1759190850754281472, 1759190780252225536, 'CashRecordType', 'refund', '退款', b'1', 2.00, '', 1399985191002447872, '2024-02-18 20:19:18', 1399985191002447872, '2024-02-18 20:19:42', 0, 1); +INSERT INTO `base_dict_item` VALUES (1759190884061249536, 1759190780252225536, 'CashRecordType', 'close_pay', '支付关闭', b'1', 3.00, '', 1399985191002447872, '2024-02-18 20:19:26', 1399985191002447872, '2024-02-18 20:19:46', 0, 1); +INSERT INTO `base_dict_item` VALUES (1759190913261993984, 1759190780252225536, 'CashrRecordType', 'close_refund', '退款关闭', b'1', 4.00, '', 1399985191002447872, '2024-02-18 20:19:33', 1399985191002447872, '2024-02-19 17:31:15', 1, 1); +INSERT INTO `base_dict_item` VALUES (1759514962507554816, 1759190066511708160, 'WalletRecordType', 'recharge', '充值', b'1', 11.00, '', 1399985191002447872, '2024-02-19 17:47:12', 1399985191002447872, '2024-02-19 17:47:12', 0, 0); +INSERT INTO `base_dict_item` VALUES (1759515000520531968, 1759190066511708160, 'WalletRecordType', 'deduct', '扣减', b'1', 12.00, '', 1399985191002447872, '2024-02-19 17:47:21', 1399985191002447872, '2024-02-19 17:47:21', 0, 0); +INSERT INTO `base_dict_item` VALUES (1761434142275497984, 1761434095349624832, 'ClientNoticeType', 'pay', '支付通知', b'1', 1.00, '', 1399985191002447872, '2024-02-25 00:53:20', 1399985191002447872, '2024-02-25 00:53:20', 0, 0); +INSERT INTO `base_dict_item` VALUES (1761434179445420032, 1761434095349624832, 'ClientNoticeType', 'refund', '退款通知', b'1', 2.00, '', 1399985191002447872, '2024-02-25 00:53:29', 1399985191002447872, '2024-02-25 00:53:29', 0, 0); +INSERT INTO `base_dict_item` VALUES (1761434308537708544, 1761434264858226688, 'ClientNoticeSendType', 'auto', '自动发送', b'1', 0.00, '', 1399985191002447872, '2024-02-25 00:54:00', 1399985191002447872, '2024-02-25 00:54:00', 0, 0); +INSERT INTO `base_dict_item` VALUES (1761434346206752768, 1761434264858226688, 'ClientNoticeSendType', 'manual', '手动发送', b'1', 1.00, '', 1399985191002447872, '2024-02-25 00:54:09', 1399985191002447872, '2024-02-25 00:54:09', 0, 0); +INSERT INTO `base_dict_item` VALUES (1761581686381080576, 1761581634023583744, 'AlipayRecordType', 'pay', '支付', b'1', 0.00, '', 1399985191002447872, '2024-02-25 10:39:37', 1399985191002447872, '2024-02-25 10:39:37', 0, 0); +INSERT INTO `base_dict_item` VALUES (1761581731029446656, 1761581634023583744, 'AlipayRecordType', 'refund', '退款', b'1', 1.00, '', 1399985191002447872, '2024-02-25 10:39:48', 1399985191002447872, '2024-02-25 10:39:48', 0, 0); +INSERT INTO `base_dict_item` VALUES (1761588368863645696, 1761588314480300032, 'WechatPayRecordType', 'pay', '支付', b'1', 0.00, '', 1399985191002447872, '2024-02-25 11:06:11', 1399985191002447872, '2024-02-25 11:06:11', 0, 0); +INSERT INTO `base_dict_item` VALUES (1761588397825314816, 1761588314480300032, 'WechatPayRecordType', 'refund', '退款', b'1', 0.00, '', 1399985191002447872, '2024-02-25 11:06:17', 1399985191002447872, '2024-02-25 11:06:17', 0, 0); +INSERT INTO `base_dict_item` VALUES (1763588081838182400, 1763588034467713024, 'ReconcileDiffType', 'local_not_exists', '本地订单不存在', b'1', 0.00, '', 1399985191002447872, '2024-03-01 23:32:19', 1399985191002447872, '2024-03-01 23:32:19', 0, 0); +INSERT INTO `base_dict_item` VALUES (1763588123143688192, 1763588034467713024, 'ReconcileDiffType', 'remote_not_exists', '远程订单不存在', b'1', 1.00, '', 1399985191002447872, '2024-03-01 23:32:29', 1399985191002447872, '2024-03-01 23:32:29', 0, 0); +INSERT INTO `base_dict_item` VALUES (1763588174695878656, 1763588034467713024, 'ReconcileDiffType', 'not_match', '订单信息不一致', b'1', 2.00, '', 1399985191002447872, '2024-03-01 23:32:41', 1399985191002447872, '2024-03-01 23:32:48', 0, 1); +INSERT INTO `base_dict_item` VALUES (1766713657021157376, 1766713545981153280, 'UnionPaySignType', 'RSA2', 'RSA2', b'1', 0.00, '', 1399985191002447872, '2024-03-10 14:32:14', 1399985191002447872, '2024-03-10 14:32:14', 0, 0); +INSERT INTO `base_dict_item` VALUES (1768206502721449984, 1768206399071809536, 'UnionPayRecordType', 'pay', '支付', b'1', 1.00, '', 1399985191002447872, '2024-03-14 17:24:17', 1399985191002447872, '2024-03-14 17:24:17', 0, 0); +INSERT INTO `base_dict_item` VALUES (1768206547285929984, 1768206399071809536, 'UnionPayRecordType', 'refund', '退款', b'1', 0.00, '', 1399985191002447872, '2024-03-14 17:24:27', 1399985191002447872, '2024-03-14 17:24:27', 0, 0); +INSERT INTO `base_dict_item` VALUES (1775122126567559168, 1775112798259302400, 'AllocReceiverType', 'wx_personal', '个人', b'1', 1.00, '', 1399985191002447872, '2024-04-02 19:24:30', 1399985191002447872, '2024-04-02 19:24:30', 0, 0); +INSERT INTO `base_dict_item` VALUES (1775122171861848064, 1775112798259302400, 'AllocReceiverType', 'wx_merchant', '商户', b'1', 2.00, '', 1399985191002447872, '2024-04-02 19:24:41', 1399985191002447872, '2024-04-02 19:24:41', 0, 0); +INSERT INTO `base_dict_item` VALUES (1775122227956469760, 1775112798259302400, 'AllocReceiverType', 'ali_user_id', '用户ID', b'1', 3.00, '', 1399985191002447872, '2024-04-02 19:24:54', 1399985191002447872, '2024-04-02 19:25:53', 0, 1); +INSERT INTO `base_dict_item` VALUES (1775122278170677248, 1775112798259302400, 'AllocReceiverType', 'ali_open_id', '登录号', b'1', 4.00, '', 1399985191002447872, '2024-04-02 19:25:06', 1399985191002447872, '2024-04-02 19:25:06', 0, 0); +INSERT INTO `base_dict_item` VALUES (1775122427802472448, 1775112798259302400, 'AllocReceiverType', 'ali_login_name', '账号', b'1', 5.00, '', 1399985191002447872, '2024-04-02 19:25:42', 1399985191002447872, '2024-04-02 19:25:42', 0, 0); +INSERT INTO `base_dict_item` VALUES (1775122672623996928, 1775122632706805760, 'AllocRelationType', 'SERVICE_PROVIDER', '服务商', b'1', 1.00, '', 1399985191002447872, '2024-04-02 19:26:40', 1399985191002447872, '2024-04-02 19:26:40', 0, 0); +INSERT INTO `base_dict_item` VALUES (1775122710884438016, 1775122632706805760, 'AllocRelationType', 'STORE', '门店', b'1', 2.00, '', 1399985191002447872, '2024-04-02 19:26:49', 1399985191002447872, '2024-04-02 19:26:49', 0, 0); +INSERT INTO `base_dict_item` VALUES (1775122750612885504, 1775122632706805760, 'AllocRelationType', 'STAFF', '员工', b'1', 3.00, '', 1399985191002447872, '2024-04-02 19:26:59', 1399985191002447872, '2024-04-02 19:26:59', 0, 0); +INSERT INTO `base_dict_item` VALUES (1775122847035740160, 1775122632706805760, 'AllocRelationType', 'STORE_OWNER', '店主', b'1', 4.00, '', 1399985191002447872, '2024-04-02 19:27:22', 1399985191002447872, '2024-04-02 19:27:22', 0, 0); +INSERT INTO `base_dict_item` VALUES (1775122892464246784, 1775122632706805760, 'AllocRelationType', 'PARTNER', '合作伙伴', b'1', 5.00, '', 1399985191002447872, '2024-04-02 19:27:32', 1399985191002447872, '2024-04-02 19:27:32', 0, 0); +INSERT INTO `base_dict_item` VALUES (1775122934138851328, 1775122632706805760, 'AllocRelationType', 'HEADQUARTER', '总部', b'1', 6.00, '', 1399985191002447872, '2024-04-02 19:27:42', 1399985191002447872, '2024-04-02 19:27:42', 0, 0); +INSERT INTO `base_dict_item` VALUES (1775123560512016384, 1775122632706805760, 'AllocRelationType', 'DISTRIBUTOR', '分销商', b'1', 7.00, '', 1399985191002447872, '2024-04-02 19:30:12', 1399985191002447872, '2024-04-02 19:30:12', 0, 0); +INSERT INTO `base_dict_item` VALUES (1775123607781822464, 1775122632706805760, 'AllocRelationType', 'USER', '用户', b'1', 8.00, '', 1399985191002447872, '2024-04-02 19:30:23', 1399985191002447872, '2024-04-02 19:30:23', 0, 0); +INSERT INTO `base_dict_item` VALUES (1775123654527340544, 1775122632706805760, 'AllocRelationType', 'SUPPLIER', '供应商', b'1', 9.00, '', 1399985191002447872, '2024-04-02 19:30:34', 1399985191002447872, '2024-04-02 19:30:34', 0, 0); +INSERT INTO `base_dict_item` VALUES (1775123705886593024, 1775122632706805760, 'AllocRelationType', 'CUSTOM', '自定义', b'1', 10.00, '', 1399985191002447872, '2024-04-02 19:30:46', 1399985191002447872, '2024-04-02 19:30:46', 0, 0); +INSERT INTO `base_dict_item` VALUES (1777700713809522688, 1777697358802530304, 'AllocOrderStatus', 'waiting', '待分账', b'1', 1.00, '', 1399985191002447872, '2024-04-09 22:10:53', 1399985191002447872, '2024-05-29 15:45:15', 1, 0); +INSERT INTO `base_dict_item` VALUES (1777700750744563712, 1777697358802530304, 'AllocOrderStatus', 'allocation_processing', '分账处理中', b'1', 2.00, '', 1399985191002447872, '2024-04-09 22:11:02', 1399985191002447872, '2024-04-16 17:14:53', 0, 1); +INSERT INTO `base_dict_item` VALUES (1777700787453112320, 1777697358802530304, 'AllocOrderStatus', 'allocation_end', '分账完成', b'1', 3.00, '', 1399985191002447872, '2024-04-09 22:11:10', 1399985191002447872, '2024-04-16 17:36:25', 0, 2); +INSERT INTO `base_dict_item` VALUES (1777700835826020352, 1777697358802530304, 'AllocOrderStatus', 'allocation_failed', '分账失败', b'1', 4.00, '', 1399985191002447872, '2024-04-09 22:11:22', 1399985191002447872, '2024-04-16 17:16:34', 0, 2); +INSERT INTO `base_dict_item` VALUES (1777700870613577728, 1777697358802530304, 'AllocOrderStatus', 'finish', '完结', b'1', 5.00, '', 1399985191002447872, '2024-04-09 22:11:30', 1399985191002447872, '2024-05-29 15:46:08', 0, 2); +INSERT INTO `base_dict_item` VALUES (1777700915450687488, 1777697358802530304, 'AllocationStatus', 'partial_failed', '部分分账失败', b'1', 6.00, '', 1399985191002447872, '2024-04-09 22:11:41', 1399985191002447872, '2024-04-16 17:16:49', 1, 1); +INSERT INTO `base_dict_item` VALUES (1777700964087836672, 1777697358802530304, 'AllocOrderStatus', 'finish_failed', '完结失败', b'1', 6.00, '', 1399985191002447872, '2024-04-09 22:11:53', 1399985191002447872, '2024-05-29 15:45:51', 0, 2); +INSERT INTO `base_dict_item` VALUES (1777701030081015808, 1777697358802530304, 'AllocationStatus', 'closed', '分账关闭', b'1', 8.00, '', 1399985191002447872, '2024-04-09 22:12:08', 1399985191002447872, '2024-04-16 17:16:19', 1, 0); +INSERT INTO `base_dict_item` VALUES (1777701090676125696, 1777697358802530304, 'AllocationStatus', 'unknown', '分账状态未知', b'1', 9.00, '', 1399985191002447872, '2024-04-09 22:12:23', 1399985191002447872, '2024-04-16 17:16:16', 1, 0); +INSERT INTO `base_dict_item` VALUES (1780164864510623744, 1780163691808391168, 'AllocDetailResult', 'pending', '待分账', b'1', 1.00, '', 1399985191002447872, '2024-04-16 17:22:32', 1399985191002447872, '2024-04-16 17:22:32', 0, 0); +INSERT INTO `base_dict_item` VALUES (1780164903886749696, 1780163691808391168, 'AllocDetailResult', 'success', '分账成功', b'1', 2.00, '', 1399985191002447872, '2024-04-16 17:22:42', 1399985191002447872, '2024-04-16 17:22:42', 0, 0); +INSERT INTO `base_dict_item` VALUES (1780164940712738816, 1780163691808391168, 'AllocDetailResult', 'fail', '分账失败', b'1', 0.00, '', 1399985191002447872, '2024-04-16 17:22:50', 1399985191002447872, '2024-04-16 17:22:50', 0, 0); +INSERT INTO `base_dict_item` VALUES (1780165545665593344, 1780165499633106944, 'AllocOrderResult', 'all_pending', '全部处理中', b'1', 0.00, '', 1399985191002447872, '2024-04-16 17:25:15', 1399985191002447872, '2024-05-14 16:40:30', 0, 1); +INSERT INTO `base_dict_item` VALUES (1780165581623361536, 1780165499633106944, 'AllocOrderResult', 'all_success', '全部成功', b'1', 1.00, '', 1399985191002447872, '2024-04-16 17:25:23', 1399985191002447872, '2024-04-16 17:25:23', 0, 0); +INSERT INTO `base_dict_item` VALUES (1780165617413357568, 1780165499633106944, 'AllocOrderResult', 'part_success', '部分成功', b'1', 2.00, '', 1399985191002447872, '2024-04-16 17:25:32', 1399985191002447872, '2024-04-16 17:25:32', 0, 0); +INSERT INTO `base_dict_item` VALUES (1780165653350154240, 1780165499633106944, 'AllocOrderResult', 'all_failed', '全部失败', b'1', 3.00, '', 1399985191002447872, '2024-04-16 17:25:40', 1399985191002447872, '2024-04-16 17:25:40', 0, 0); +INSERT INTO `base_dict_item` VALUES (1780165986231091200, 1780165929528295424, 'PayOrderAllocationStatus', 'waiting', '待分账', b'1', 1.00, '', 1399985191002447872, '2024-04-16 17:27:00', 1399985191002447872, '2024-04-16 17:27:00', 0, 0); +INSERT INTO `base_dict_item` VALUES (1780166037149941760, 1780165929528295424, 'PayOrderAllocationStatus', 'allocation', '已分账', b'1', 2.00, '', 1399985191002447872, '2024-04-16 17:27:12', 1399985191002447872, '2024-04-16 17:27:12', 0, 0); +INSERT INTO `base_dict_item` VALUES (1786399594956660736, 1786399552686465024, 'ReconcileResult', 'consistent', '一致', b'1', 0.00, '', 1399985191002447872, '2024-05-03 22:17:08', 1399985191002447872, '2024-05-03 22:17:08', 0, 0); +INSERT INTO `base_dict_item` VALUES (1786399681275437056, 1786399552686465024, 'ReconcileResult', 'inconsistent', '不一致', b'1', 1.00, '', 1399985191002447872, '2024-05-03 22:17:28', 1399985191002447872, '2024-05-03 22:17:28', 0, 0); +INSERT INTO `base_dict_item` VALUES (1795722875761156096, 1780163691808391168, 'AllocDetailResult', 'ignore', '忽略分账', b'1', 3.00, '', 1399985191002447872, '2024-05-29 15:44:31', 1399985191002447872, '2024-05-29 15:44:31', 0, 0); +INSERT INTO `base_dict_item` VALUES (1795722956774137856, 1777697358802530304, 'AllocOrderStatus', 'ignore', '忽略分账', b'1', 7.00, '', 1399985191002447872, '2024-05-29 15:44:50', 1399985191002447872, '2024-05-29 15:44:50', 0, 0); +INSERT INTO `base_dict_item` VALUES (1795730634367918080, 1751603996496453632, 'PaymentType', 'transfer', '转账', b'1', 3.00, '', 1399985191002447872, '2024-05-29 16:15:21', 1399985191002447872, '2024-05-29 16:15:21', 0, 0); +INSERT INTO `base_dict_item` VALUES (1795730676084465664, 1751603996496453632, 'PaymentType', 'allocation', '分账', b'1', 4.00, '', 1399985191002447872, '2024-05-29 16:15:31', 1399985191002447872, '2024-05-29 16:15:31', 0, 0); +INSERT INTO `base_dict_item` VALUES (1797179153430065152, 1797179034383134720, 'TradeFlowRecordType', 'pay', '支付', b'1', 0.00, '', 1399985191002447872, '2024-06-02 16:11:15', 1399985191002447872, '2024-06-02 16:11:15', 0, 0); +INSERT INTO `base_dict_item` VALUES (1797179194613936128, 1797179034383134720, 'TradeFlowRecordType', 'refund', '退款', b'1', 1.00, '', 1399985191002447872, '2024-06-02 16:11:25', 1399985191002447872, '2024-06-02 16:11:25', 0, 0); +INSERT INTO `base_dict_item` VALUES (1797524426741882880, 1761434095349624832, 'ClientNoticeType', 'allocation', '分账', b'1', 3.00, '', 1399985191002447872, '2024-06-03 15:03:14', 1399985191002447872, '2024-06-03 15:03:14', 0, 0); + +-- ---------------------------- +-- Table structure for base_dynamic_data_source +-- ---------------------------- +DROP TABLE IF EXISTS `base_dynamic_data_source`; +CREATE TABLE `base_dynamic_data_source` ( + `id` bigint(20) NOT NULL, + `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '数据源编码', + `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '数据源名称', + `database_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '数据库类型', + `auto_load` bit(1) NULL DEFAULT NULL COMMENT '是否启动自动加载', + `db_driver` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '驱动类', + `db_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '数据库地址', + `db_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '数据库名称', + `db_username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '用户名', + `db_password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '密码', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '备注', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '版本', + `deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0:未删除。1:已删除', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '动态数据源管理' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of base_dynamic_data_source +-- ---------------------------- + +-- ---------------------------- +-- Table structure for base_key_value +-- ---------------------------- +DROP TABLE IF EXISTS `base_key_value`; +CREATE TABLE `base_key_value` ( + `id` bigint(20) NOT NULL, + `key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '参数键名', + `value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '参数值', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '更新人', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '更新时间', + `deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0:未删除。1:已删除', + `version` int(8) NOT NULL COMMENT '版本', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'kv存储' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of base_key_value +-- ---------------------------- + +-- ---------------------------- +-- Table structure for base_param +-- ---------------------------- +DROP TABLE IF EXISTS `base_param`; +CREATE TABLE `base_param` ( + `id` bigint(20) NOT NULL, + `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数名称', + `param_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '参数键名', + `value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '参数值', + `type` int(4) NULL DEFAULT NULL COMMENT '参数类型', + `enable` bit(1) NOT NULL DEFAULT b'1' COMMENT '启用状态', + `internal` bit(1) NOT NULL COMMENT '内置参数', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '更新人', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '更新时间', + `deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0:未删除。1:已删除', + `version` int(8) NOT NULL COMMENT '版本', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统参数配置' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of base_param +-- ---------------------------- +INSERT INTO `base_param` VALUES (1452842684284891136, '测试', 'test.v1', '123', 1, b'1', b'0', NULL, 1399985191002447872, '2021-10-26 11:41:03', 1399985191002447872, '2024-01-07 23:31:08', 1, 0); +INSERT INTO `base_param` VALUES (1529281530059161600, 'websocket服务器地址', 'WebsocketServerUrl', 'ws://127.0.0.1:9000', 1, b'1', b'1', '', 1399985191002447872, '2022-05-25 10:01:44', 1399985191002447872, '2024-02-27 13:10:12', 0, 4); +INSERT INTO `base_param` VALUES (1545765299880448000, '服务器地址', 'ServerUrl', 'https://localhost', 1, b'1', b'1', '优先级高于配置文件内进行的配置', 1399985191002447872, '2022-07-09 21:42:21', 1399985191002447872, '2024-01-07 23:31:20', 0, 2); + +-- ---------------------------- +-- Table structure for base_province +-- ---------------------------- +DROP TABLE IF EXISTS `base_province`; +CREATE TABLE `base_province` ( + `code` char(2) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '省份编码', + `name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '省份名称', + PRIMARY KEY (`code`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '省份表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of base_province +-- ---------------------------- + +-- ---------------------------- +-- Table structure for base_street +-- ---------------------------- +DROP TABLE IF EXISTS `base_street`; +CREATE TABLE `base_street` ( + `code` char(9) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '编码', + `name` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '街道名称', + `area_code` char(6) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '0' COMMENT '县区编码', + PRIMARY KEY (`code`) USING BTREE, + INDEX `inx_area_code`(`area_code`) USING BTREE COMMENT '县区' +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '街道表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of base_street +-- ---------------------------- + +-- ---------------------------- +-- Table structure for base_village +-- ---------------------------- +DROP TABLE IF EXISTS `base_village`; +CREATE TABLE `base_village` ( + `code` char(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '编码', + `name` varchar(55) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '名称', + `street_code` char(9) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '社区/乡镇编码', + PRIMARY KEY (`code`) USING BTREE, + INDEX `inx_street_code`(`street_code`) USING BTREE COMMENT '所属街道索引' +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '村庄/社区' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of base_village +-- ---------------------------- + +-- ---------------------------- +-- Table structure for common_sequence_range +-- ---------------------------- +DROP TABLE IF EXISTS `common_sequence_range`; +CREATE TABLE `common_sequence_range` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `range_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '区间key', + `range_value` bigint(20) NOT NULL COMMENT '区间开始值', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '版本', + `deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0:未删除。1:已删除', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '序列生成器队列区间管理' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of common_sequence_range +-- ---------------------------- + +-- ---------------------------- +-- Table structure for ddl_history +-- ---------------------------- +DROP TABLE IF EXISTS `ddl_history`; +CREATE TABLE `ddl_history` ( + `script` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '脚本', + `type` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '类型', + `version` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '版本', + PRIMARY KEY (`script`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'DDL 版本' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ddl_history +-- ---------------------------- + +-- ---------------------------- +-- Table structure for iam_client +-- ---------------------------- +DROP TABLE IF EXISTS `iam_client`; +CREATE TABLE `iam_client` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `code` varchar(21) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '编码', + `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名称', + `internal` bit(1) NOT NULL COMMENT '是否系统内置', + `enable` bit(1) NOT NULL COMMENT '是否可用', + `default_endow` bit(1) NULL DEFAULT NULL COMMENT '新注册的用户是否默认赋予该终端', + `login_type_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '关联登录方式\r\n', + `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '认证终端' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_client +-- ---------------------------- +INSERT INTO `iam_client` VALUES (1580487061605175296, 'dax-pay', '支付网关', b'0', b'1', b'1', '1430430071299207168,1430478946919653376,1435138582839009280,1542091599907115008,1542804450312122368,1543126042909016064', '支付网关管理端', 1399985191002447872, '2022-10-13 17:14:14', 1399985191002447872, '2023-10-19 19:58:21', 3, b'0'); + +-- ---------------------------- +-- Table structure for iam_data_role +-- ---------------------------- +DROP TABLE IF EXISTS `iam_data_role`; +CREATE TABLE `iam_data_role` ( + `id` bigint(20) NOT NULL COMMENT '角色ID', + `code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '编码', + `name` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '名称', + `type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '类型', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '说明', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '版本', + `deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0:未删除。1:已删除', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '数据范围权限' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_data_role +-- ---------------------------- + +-- ---------------------------- +-- Table structure for iam_data_role_dept +-- ---------------------------- +DROP TABLE IF EXISTS `iam_data_role_dept`; +CREATE TABLE `iam_data_role_dept` ( + `id` bigint(20) NOT NULL, + `role_id` bigint(20) NOT NULL COMMENT '数据角色id', + `dept_id` bigint(20) NOT NULL COMMENT '部门id', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '数据范围部门关联配置' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_data_role_dept +-- ---------------------------- + +-- ---------------------------- +-- Table structure for iam_data_role_user +-- ---------------------------- +DROP TABLE IF EXISTS `iam_data_role_user`; +CREATE TABLE `iam_data_role_user` ( + `id` bigint(20) NOT NULL, + `role_id` bigint(20) NOT NULL COMMENT '数据角色id', + `user_id` bigint(20) NOT NULL COMMENT '用户id', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '数据范围用户关联配置' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_data_role_user +-- ---------------------------- + +-- ---------------------------- +-- Table structure for iam_dept +-- ---------------------------- +DROP TABLE IF EXISTS `iam_dept`; +CREATE TABLE `iam_dept` ( + `id` bigint(20) NOT NULL COMMENT 'ID', + `parent_id` bigint(20) NULL DEFAULT NULL COMMENT '父机构ID', + `dept_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '机构/部门名称', + `sort_no` int(11) NOT NULL DEFAULT 0 COMMENT '排序', + `org_category` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '1' COMMENT '机构类别 1公司 2部门 3岗位', + `org_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '机构编码', + `mobile` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '手机号', + `fax` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '传真', + `address` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '地址', + `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '版本', + `deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0:未删除。1:已删除', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '部门组织机构表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_dept +-- ---------------------------- + +-- ---------------------------- +-- Table structure for iam_login_security_config +-- ---------------------------- +DROP TABLE IF EXISTS `iam_login_security_config`; +CREATE TABLE `iam_login_security_config` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `client_id` bigint(20) NULL DEFAULT NULL COMMENT '关联终端ID', + `require_login_change_pwd` bit(1) NULL DEFAULT NULL COMMENT '修改密码是否需要重新登录', + `captcha_enable` bit(1) NULL DEFAULT NULL COMMENT '默认启用验证码', + `max_captcha_error_count` int(11) NULL DEFAULT NULL COMMENT '出现验证码的错误次数', + `allow_multi_login` bit(1) NULL DEFAULT NULL COMMENT '同端是否允许同时登录', + `allow_multi_terminal_login` bit(1) NULL DEFAULT NULL COMMENT '多终端是否允许同时登录', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '登录安全策略' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_login_security_config +-- ---------------------------- + +-- ---------------------------- +-- Table structure for iam_login_type +-- ---------------------------- +DROP TABLE IF EXISTS `iam_login_type`; +CREATE TABLE `iam_login_type` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `code` varchar(21) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '编码', + `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名称', + `type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '类型', + `internal` bit(1) NOT NULL COMMENT '是否系统内置', + `timeout` bigint(11) NULL DEFAULT NULL COMMENT '在线时长(秒)', + `captcha_type` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '验证码类型', + `captcha` bit(1) NOT NULL COMMENT '启用验证码', + `enable` bit(1) NOT NULL COMMENT '是否可用', + `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '登录方式' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_login_type +-- ---------------------------- +INSERT INTO `iam_login_type` VALUES (1430430071299207168, 'password', '账号密码登陆', 'password', b'1', 3600, '-1', b'0', b'1', NULL, 1399985191002447872, '2021-08-25 15:21:20', 1399985191002447872, '2022-11-03 22:24:53', 20, b'0'); +INSERT INTO `iam_login_type` VALUES (1435138582839009280, 'phone', '手机短信登录', 'openId', b'0', 3600, '0', b'0', b'1', NULL, 1399985191002447872, '2021-09-07 15:11:16', 1399985191002447872, '2022-07-16 12:32:19', 5, b'0'); +INSERT INTO `iam_login_type` VALUES (1542091599907115008, 'dingTalk', '钉钉', 'openId', b'0', 5, '-1', b'0', b'1', '', 1399985191002447872, '2022-06-29 18:24:23', 1399985191002447872, '2022-07-02 14:55:01', 5, b'0'); +INSERT INTO `iam_login_type` VALUES (1542804450312122368, 'weCom', '企业微信', 'openId', b'0', 5, '-1', b'0', b'1', '', 1399985191002447872, '2022-07-01 17:37:00', 1399985191002447872, '2022-07-01 17:37:00', 0, b'0'); +INSERT INTO `iam_login_type` VALUES (1543126042909016064, 'weChat', '微信登录', 'openId', b'0', 5, '-1', b'0', b'1', '', 1399985191002447872, '2022-07-02 14:54:53', 0, '2022-10-12 22:15:05', 2, b'0'); + +-- ---------------------------- +-- Table structure for iam_password_change_history +-- ---------------------------- +DROP TABLE IF EXISTS `iam_password_change_history`; +CREATE TABLE `iam_password_change_history` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户Id', + `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '密码', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '密码更改历史' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_password_change_history +-- ---------------------------- + +-- ---------------------------- +-- Table structure for iam_password_login_fail_record +-- ---------------------------- +DROP TABLE IF EXISTS `iam_password_login_fail_record`; +CREATE TABLE `iam_password_login_fail_record` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户id', + `fail_count` int(11) NULL DEFAULT NULL COMMENT '登录失败次数', + `fail_time` datetime NULL DEFAULT NULL COMMENT '登录失败时间', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '密码登录失败记录' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_password_login_fail_record +-- ---------------------------- + +-- ---------------------------- +-- Table structure for iam_password_security_config +-- ---------------------------- +DROP TABLE IF EXISTS `iam_password_security_config`; +CREATE TABLE `iam_password_security_config` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `max_pwd_error_count` int(11) NULL DEFAULT NULL COMMENT '最大密码错误数', + `error_lock_time` int(11) NULL DEFAULT NULL COMMENT '密码错误锁定时间(分钟)', + `require_change_pwd` bit(1) NULL DEFAULT NULL COMMENT '强制修改初始密码', + `update_frequency` int(11) NULL DEFAULT NULL COMMENT '更新频率', + `expire_remind` int(11) NULL DEFAULT NULL COMMENT '到期提醒(天数)', + `same_as_login_name` bit(1) NULL DEFAULT NULL COMMENT '与登录名相同', + `recent_password` int(11) NULL DEFAULT NULL COMMENT '不能与近期多少次密码相同', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '密码安全策略' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_password_security_config +-- ---------------------------- +INSERT INTO `iam_password_security_config` VALUES (1714844168393515008, 9999999, 10, b'1', 9999999, 14, b'0', 5, 1399985191002447872, '2023-10-19 11:21:25', 1399985191002447872, '2023-11-29 12:10:21', 2, b'0'); + +-- ---------------------------- +-- Table structure for iam_perm_menu +-- ---------------------------- +DROP TABLE IF EXISTS `iam_perm_menu`; +CREATE TABLE `iam_perm_menu` ( + `id` bigint(20) NOT NULL, + `client_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '终端code', + `parent_id` bigint(20) NULL DEFAULT NULL COMMENT '父id', + `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单名称', + `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '路由名称', + `perm_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单权限编码', + `effect` bit(1) NULL DEFAULT NULL COMMENT '是否有效', + `icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单图标', + `hidden` bit(1) NOT NULL COMMENT '是否隐藏', + `hide_children_in_menu` bit(1) NOT NULL COMMENT '是否隐藏子菜单', + `component` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组件', + `component_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组件名字', + `path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '路径', + `redirect` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单跳转地址(重定向)', + `sort_no` double NOT NULL COMMENT '菜单排序', + `menu_type` int(5) NOT NULL COMMENT '类型(0:一级菜单;1:子菜单 ;2:按钮权限)', + `leaf` bit(1) NULL DEFAULT NULL COMMENT '是否叶子节点', + `keep_alive` bit(1) NULL DEFAULT NULL COMMENT '是否缓存页面', + `target_outside` bit(1) NULL DEFAULT NULL COMMENT '是否外部打开方式', + `hidden_header_content` bit(1) NULL DEFAULT NULL COMMENT '隐藏的标题内容', + `internal` bit(1) NOT NULL COMMENT '系统菜单', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '版本', + `deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0:未删除。1:已删除', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '权限_菜单' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_perm_menu +-- ---------------------------- +INSERT INTO `iam_perm_menu` VALUES (1580740450633101312, 'dax-pay', NULL, '系统管理', 'System', NULL, b'0', 'ant-design:setting-outlined', b'0', b'0', 'Layout', NULL, '/system', '/system1/client', -99999, 0, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2022-10-14 10:01:07', 1414143554414059520, '2022-10-18 15:32:09', 4, 0); +INSERT INTO `iam_perm_menu` VALUES (1580740637841666048, 'dax-pay', 1582253306356649984, '终端管理', 'ClientList', NULL, b'0', '', b'0', b'0', '/modules/system/client/ClientList.vue', NULL, '/system/client', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2022-10-14 10:01:51', 1414143554414059520, '2022-10-18 14:13:27', 5, 0); +INSERT INTO `iam_perm_menu` VALUES (1580740758629232640, 'dax-pay', 1582253306356649984, '登录方式', 'LoginTypeList', NULL, b'0', '', b'0', b'0', '/modules/system/loginType/LoginTypeList.vue', NULL, '/system/loginType', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2022-10-14 10:02:20', 1414143554414059520, '2022-10-18 14:13:40', 5, 0); +INSERT INTO `iam_perm_menu` VALUES (1580928436300337152, 'dax-pay', 1580740450633101312, '菜单管理', 'MenuList', NULL, b'0', '', b'0', b'0', '/modules/system/menu/MenuList.vue', NULL, '/system/menu', '', -99, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2022-10-14 22:28:06', 1399985191002447872, '2022-10-14 22:28:32', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1582249924602580992, 'dax-pay', 1580740450633101312, '权限管理', 'Permission', NULL, b'0', '', b'0', b'0', 'Layout', NULL, '/system/permission', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-18 13:59:13', 1414143554414059520, '2022-10-18 13:59:13', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1582253011803262976, 'dax-pay', 1580740450633101312, '用户信息', 'UserAuth', NULL, b'0', '', b'0', b'0', 'Layout', NULL, '/system/user', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-18 14:11:30', 1414143554414059520, '2022-10-18 14:11:30', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1582253152903843840, 'dax-pay', 1580740450633101312, '系统配置', 'SystemConfig', NULL, b'0', '', b'0', b'0', 'Layout', NULL, '/system/config', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-18 14:12:03', 1414143554414059520, '2022-10-18 14:12:03', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1582253306356649984, 'dax-pay', 1580740450633101312, '认证管理', 'Auth', NULL, b'0', '', b'0', b'0', 'Layout', NULL, '/system/auth', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-18 14:12:40', 1414143554414059520, '2022-10-18 14:13:13', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1582275875424129024, 'dax-pay', NULL, '系统监控', 'Monitor', NULL, b'0', 'ant-design:monitor-outlined', b'0', b'0', 'Layout', NULL, '/monitor', '', 0, 0, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-18 15:42:21', 1414143554414059520, '2022-10-19 17:29:29', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1582275984849326080, 'dax-pay', NULL, '通知管理', 'Notice', NULL, b'0', 'ant-design:message-outlined', b'0', b'0', 'Layout', NULL, '/notice', '', 0, 0, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-18 15:42:47', 1414143554414059520, '2022-10-19 17:30:06', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1582276092038959104, 'dax-pay', NULL, '第三方对接', 'Third', NULL, b'0', 'ant-design:api-twotone', b'0', b'0', 'Layout', NULL, '/third', '', 0, 0, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-18 15:43:12', 1414143554414059520, '2022-10-19 17:32:04', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1582276341792985088, 'dax-pay', NULL, '开发管理', 'Develop', NULL, b'0', 'ant-design:apartment-outlined', b'0', b'0', 'Layout', NULL, '/develop', '', 0, 0, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-18 15:44:12', 1414143554414059520, '2022-10-19 15:24:22', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1582277076421136384, 'dax-pay', 1582249924602580992, '角色管理', 'RoleList', NULL, b'0', '', b'0', b'0', '/modules/system/role/RoleList.vue', NULL, '/system/permission/role', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-18 15:47:07', 1414143554414059520, '2022-10-18 15:59:37', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1582301940364308480, 'dax-pay', 1582249924602580992, '请求权限', 'PermPathList', NULL, b'0', '', b'0', b'0', '/modules/system/path/PermPathList.vue', NULL, '/system/permission/path', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-18 17:25:55', 1399985191002447872, '2023-11-29 13:57:56', 2, 0); +INSERT INTO `iam_perm_menu` VALUES (1582302180999917568, 'dax-pay', 1582249924602580992, '数据角色', 'DataRoleList', NULL, b'0', '', b'0', b'0', '/modules/system/scope/DataRoleList.vue', NULL, '/system/permission/data', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-18 17:26:52', 1399985191002447872, '2023-11-28 21:02:57', 2, 0); +INSERT INTO `iam_perm_menu` VALUES (1582302542955769856, 'dax-pay', 1582253011803262976, '用户管理', 'UserList', NULL, b'0', '', b'0', b'0', '/modules/system/user/UserList.vue', NULL, '/system/user/info', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-18 17:28:19', 1414143554414059520, '2022-10-18 17:28:19', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1582302764129808384, 'dax-pay', 1582253011803262976, '部门管理', 'DeptList', NULL, b'0', '', b'0', b'0', '/modules/system/dept/DeptList.vue', NULL, '/system/user/dept', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-18 17:29:11', 1414143554414059520, '2022-10-18 17:32:26', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1582303143110340608, 'dax-pay', 1582253152903843840, '数据字典', 'DictList', NULL, b'0', '', b'0', b'0', '/modules/system/dict/DictList.vue', NULL, '/system/config/dict', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-18 17:30:42', 1414143554414059520, '2022-10-18 17:30:42', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1582303290070364160, 'dax-pay', 1582253152903843840, '定时任务', 'QuartzJobList', NULL, b'0', '', b'0', b'0', '/modules/baseapi/quartz/QuartzJobList.vue', NULL, '/system/config/quartz', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-18 17:31:17', 1414143554414059520, '2023-08-09 15:50:46', 2, 0); +INSERT INTO `iam_perm_menu` VALUES (1582303447428067328, 'dax-pay', 1582253152903843840, '系统参数', 'SystemParamList', NULL, b'0', '', b'0', b'0', '/modules/system/param/SystemParamList.vue', NULL, '/system/config/param', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-18 17:31:54', 1414143554414059520, '2022-10-19 23:14:16', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1582632873244172288, 'dax-pay', 1582276341792985088, '文件管理', 'FileUploadList', NULL, b'0', '', b'0', b'0', '/modules/develop/file/FileUploadList.vue', NULL, '/develop/file', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-19 15:20:56', 1414143554414059520, '2022-10-19 15:20:56', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1582633196587261952, 'dax-pay', 1582276341792985088, '代码生成', 'CodeGenList', NULL, b'0', '', b'0', b'0', '/modules/develop/codegen/CodeGenList.vue', NULL, '/develop/codegen', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-19 15:22:13', 1414143554414059520, '2022-10-19 15:23:17', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1582633307786649600, 'dax-pay', 1582276341792985088, '动态表单', 'DynamicFormList', NULL, b'0', '', b'0', b'0', '/modules/develop/dynamicform/DynamicFormList.vue', NULL, '/develop/form', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-19 15:22:39', 1414143554414059520, '2022-10-19 15:22:39', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1582633620321017856, 'dax-pay', 1582276341792985088, '动态数据源', 'DynamicDataSourceList', NULL, b'0', '', b'0', b'0', '/modules/develop/dynamicsource/DynamicDataSourceList.vue', NULL, '/develop/source', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-19 15:23:54', 1414143554414059520, '2022-10-19 15:23:54', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1583074308040925184, 'dax-pay', 1582275875424129024, '接口文档', 'ApiSwagger', NULL, b'0', '', b'0', b'0', '', NULL, 'http://127.0.0.1:9999/doc.html', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-20 20:35:02', 1414143554414059520, '2022-11-23 13:59:09', 2, 0); +INSERT INTO `iam_perm_menu` VALUES (1583075229563068416, 'dax-pay', 1582275875424129024, '审计日志', 'AuditLog', NULL, b'0', '', b'0', b'0', 'Layout', NULL, '/monitor/log', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-20 20:38:42', 1414143554414059520, '2022-10-20 20:41:38', 2, 0); +INSERT INTO `iam_perm_menu` VALUES (1583076217481043968, 'dax-pay', 1583075229563068416, '登录日志', 'LoginLogList', NULL, b'0', '', b'0', b'0', '/modules/monitor/login/LoginLogList.vue', NULL, '/monitor/log/login', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-20 20:42:37', 1414143554414059520, '2022-10-20 20:43:36', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1583076424935514112, 'dax-pay', 1583075229563068416, '操作日志', 'OperateLogList', NULL, b'0', '', b'0', b'0', '/modules/monitor/operate/OperateLogList.vue', NULL, '/monitor/log/operate', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-20 20:43:26', 1414143554414059520, '2022-10-20 20:43:26', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1583076670881112064, 'dax-pay', 1583075229563068416, '数据版本日志', 'DataVersionLogList', NULL, b'0', '', b'0', b'0', '/modules/monitor/data/DataVersionLogList.vue', NULL, '/monitor/log/data', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-20 20:44:25', 1414143554414059520, '2022-10-20 20:44:25', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1583076878956339200, 'dax-pay', 1582275875424129024, 'ELK日志', 'ELK', NULL, b'0', '', b'1', b'0', '', NULL, 'http://elk.dev.bootx.cn:5601/app/discover', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-20 20:45:15', 1414143554414059520, '2023-08-12 19:26:12', 3, 0); +INSERT INTO `iam_perm_menu` VALUES (1583077015434797056, 'dax-pay', 1582275875424129024, 'PlumeLog日志', 'PlumeLog', NULL, b'0', '', b'0', b'0', '', NULL, 'http://127.0.0.1:9999/plumelog/#/', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-20 20:45:47', 1414143554414059520, '2022-10-20 20:45:47', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1583077198772019200, 'dax-pay', 1582275875424129024, '系统信息', 'SystemInfoMonitor', NULL, b'0', '', b'0', b'0', '/modules/monitor/system/SystemInfoMonitor.vue', NULL, '/monitor/sysinfo', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-20 20:46:31', 1414143554414059520, '2022-10-20 20:46:31', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1583077360827342848, 'dax-pay', 1582275875424129024, 'Redis监控', 'RedisInfoMonitor', NULL, b'0', '', b'0', b'0', '/modules/monitor/redis/RedisInfoMonitor.vue', NULL, '/monitor/redis', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-20 20:47:10', 1414143554414059520, '2022-10-20 20:47:10', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1584378294652051456, 'dax-pay', 1582275984849326080, '邮件配置', 'MailConfigList', NULL, b'0', '', b'0', b'0', '/modules/notice/mail/MailConfigList.vue', NULL, '/notice/notice', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-24 10:56:36', 1414143554414059520, '2022-10-24 16:14:34', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1584378497824137216, 'dax-pay', 1582275984849326080, '消息模板', 'MessageTemplateList', NULL, b'0', '', b'0', b'0', '/modules/notice/template/MessageTemplateList.vue', NULL, '/notice/template', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-24 10:57:25', 1414143554414059520, '2022-10-25 22:14:14', 2, 0); +INSERT INTO `iam_perm_menu` VALUES (1584378671266996224, 'dax-pay', 1582275984849326080, '站内信', 'SiteMessageList', NULL, b'0', '', b'0', b'0', '/modules/notice/site/sender/SiteMessageList.vue', NULL, '/notice/siteMessage', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-24 10:58:06', 1414143554414059520, '2022-10-24 10:58:06', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1584379602188574720, 'dax-pay', 1582276092038959104, '微信', 'WeChat', NULL, b'0', '', b'0', b'0', 'Layout', NULL, '/third/wechat', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-24 11:01:48', 1414143554414059520, '2022-10-24 11:01:48', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1584379704122744832, 'dax-pay', 1582276092038959104, '企业微信', 'WeCom', NULL, b'0', '', b'0', b'0', 'Layout', NULL, '/third/wecom', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-24 11:02:12', 1414143554414059520, '2022-10-24 11:02:12', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1584380087805091840, 'dax-pay', 1582276092038959104, '钉钉', 'DingTalk', NULL, b'0', '', b'0', b'0', 'Layout', NULL, '/third/dingtalk', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-24 11:03:44', 1414143554414059520, '2022-10-24 11:03:44', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1584380527829524480, 'dax-pay', 1584379602188574720, '消息模板', 'WechatTemplateList', NULL, b'0', '', b'0', b'0', '/modules/third/wechat/template/WechatTemplateList.vue', NULL, '/third/wechat/template', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-24 11:05:29', 1414143554414059520, '2022-10-26 15:58:56', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1584380679478779904, 'dax-pay', 1584379602188574720, '自定义菜单', 'WechatMenuList', NULL, b'0', '', b'0', b'0', '/modules/third/wechat/menu/WechatMenuList.vue', NULL, '/third/wechat/menu', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-24 11:06:05', 1414143554414059520, '2022-10-27 10:15:24', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1584380824308097024, 'dax-pay', 1584379602188574720, '素材管理', 'WechatMediaList', NULL, b'0', '', b'0', b'0', '/modules/third/wechat/media/WechatMediaList.vue', NULL, '/third/wechat/media', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-24 11:06:40', 1414143554414059520, '2022-10-27 16:38:47', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1584381134950834176, 'dax-pay', 1584379704122744832, '企微机器人', 'WeComRobotConfigList', NULL, b'0', '', b'0', b'0', '/modules/third/wecom/robot/WecomRobotConfigList.vue', NULL, '/third/wecom/robot', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-24 11:07:54', 1414143554414059520, '2022-11-12 20:58:25', 3, 0); +INSERT INTO `iam_perm_menu` VALUES (1584381322184564736, 'dax-pay', 1584380087805091840, '钉钉机器人', 'DingRobotConfigList', NULL, b'0', '', b'0', b'0', '/modules/third/dingtalk/robot/DingRobotConfigList.vue', NULL, '/third/dingTalk/robot', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-10-24 11:08:38', 1414143554414059520, '2022-11-12 20:58:37', 6, 0); +INSERT INTO `iam_perm_menu` VALUES (1599337250200440832, 'dax-pay', NULL, '关于', '', NULL, b'0', 'ant-design:info-circle-outlined', b'0', b'0', '', NULL, '/about/index', '', 99, 0, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2022-12-04 17:38:09', 1399985191002447872, '2024-01-14 23:09:56', 6, 0); +INSERT INTO `iam_perm_menu` VALUES (1623494586215579648, 'dax-pay', 1552207982510706688, '行政区划', 'ChinaRegion', NULL, b'0', '', b'1', b'0', 'develop/region/ChinaRegionList', NULL, '/develop/region', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2023-02-09 09:30:47', 1399985191002447872, '2023-02-09 17:50:05', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1629039360928075776, 'dax-pay', 1582276341792985088, '可视化大屏', 'ProjectInfoList', NULL, b'0', '', b'0', b'0', '/modules/develop/report/ProjectInfoList', NULL, '/develop/report', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2023-02-24 16:43:44', 1399985191002447872, '2024-05-09 19:26:57', 1, 1); +INSERT INTO `iam_perm_menu` VALUES (1631946120891707392, 'dax-pay', 1552207982510706688, '可视化大屏', 'ProjectInfoList', NULL, b'0', '', b'0', b'0', 'develop/report/ProjectInfoList', NULL, '/develop/report', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2023-03-04 17:14:10', 1399985191002447872, '2023-03-04 17:14:10', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1635274568758435840, 'dax-pay', 1582276341792985088, '数据集管理', 'DataResultSqlList', NULL, b'0', '', b'0', b'0', '/modules/develop/dataresult/DataResultSqlList', NULL, '/develop/dataresult', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2023-03-13 21:40:14', 1399985191002447872, '2024-05-09 19:27:24', 3, 1); +INSERT INTO `iam_perm_menu` VALUES (1687369862646558720, 'dax-pay', 1582275984849326080, '短信管理', 'Sms', NULL, b'0', '', b'0', b'0', 'Layout', NULL, '/notice/sms', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2023-08-04 15:48:20', 1414143554414059520, '2023-08-04 15:48:32', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1687370142234669056, 'dax-pay', 1687369862646558720, '短信配置', 'SmsChannelConfigList', NULL, b'0', '', b'0', b'0', '/modules/notice/sms/config/SmsChannelConfigList', NULL, '/notice/sms/config', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2023-08-04 15:49:26', 1414143554414059520, '2023-08-04 15:49:26', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1687370277496778752, 'dax-pay', 1687369862646558720, '短信模板', 'SmsTemplateList', NULL, b'0', '', b'0', b'0', '/modules/notice/sms/template/SmsTemplateList', NULL, '/notice/sms/template', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2023-08-04 15:49:59', 1414143554414059520, '2023-08-04 15:50:38', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1689181991598997504, 'dax-pay', 1582253152903843840, '敏感词管理', 'ChinaWord', NULL, b'0', '', b'0', b'0', '/modules/baseapi/chianword/ChinaWordList.vue', NULL, '/system/config/chinaword', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2023-08-09 15:49:05', 1414143554414059520, '2023-08-09 15:49:05', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1690324070514782208, 'dax-pay', 1582276341792985088, '通用模板', 'GeneralTemplateList', NULL, b'0', '', b'0', b'0', '/modules/develop/template/GeneralTemplateList', NULL, '/develop/template', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2023-08-12 19:27:18', 1414143554414059520, '2023-08-12 19:31:26', 3, 0); +INSERT INTO `iam_perm_menu` VALUES (1703665090038800384, 'dax-pay', 1582276341792985088, '在线SQL', 'SqlQueryInfo', NULL, b'0', '', b'0', b'0', '/modules/develop/query/SqlQueryInfo', NULL, '/develop/sqlquery', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1414143554414059520, '2023-09-18 14:59:45', 1399985191002447872, '2024-05-09 19:27:29', 0, 1); +INSERT INTO `iam_perm_menu` VALUES (1713931084759293952, 'dax-pay', 1582253306356649984, '密码安全', 'PassowrdSecurity', NULL, b'0', '', b'0', b'0', '/modules/system/security/password/PasswordSecurityConfig.vue', NULL, '/system/config/passowrd', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2023-10-16 22:53:09', 1399985191002447872, '2023-10-16 22:58:59', 2, 0); +INSERT INTO `iam_perm_menu` VALUES (1733829906427682816, 'dax-pay', 1582275875424129024, '在线用户', 'OnlineUserList', NULL, b'0', '', b'0', b'0', '/modules/monitor/user/online/OnlineUserList', NULL, '/monitor/user/online', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2023-12-10 20:43:57', 1399985191002447872, '2023-12-10 20:43:57', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1744271715476684800, 'dax-pay', NULL, '支付配置', 'PayConfig', NULL, b'0', 'ant-design:setting-filled', b'0', b'0', 'Layout', NULL, '/pay/config', '', 0, 0, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-01-08 16:15:59', 1399985191002447872, '2024-01-09 15:38:06', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1744276101384880128, 'dax-pay', 1744271715476684800, '支付通道', 'PayChannelConfigList', NULL, b'0', '', b'0', b'0', 'payment/system/channel/PayChannelConfigList', NULL, '/pay/config/channel', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-01-08 16:33:24', 1399985191002447872, '2024-01-18 14:49:15', 3, 0); +INSERT INTO `iam_perm_menu` VALUES (1744372631231995904, 'dax-pay', 1744271715476684800, '支付方式', 'PayMethodInfoList', NULL, b'0', '', b'0', b'0', 'payment/system/method/PayMethodInfoList', NULL, '/pay/config/method', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-01-08 22:56:59', 1399985191002447872, '2024-05-01 22:53:13', 3, 0); +INSERT INTO `iam_perm_menu` VALUES (1744624886658318336, 'dax-pay', 1744271715476684800, '支付接口', 'PayApiConfigList', NULL, b'0', '', b'0', b'0', 'payment/system/api/PayApiConfigList', NULL, '/pay/config/api', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-01-09 15:39:21', 1399985191002447872, '2024-01-10 11:52:20', 2, 0); +INSERT INTO `iam_perm_menu` VALUES (1744642856348520448, 'dax-pay', NULL, '订单管理', 'PayOrder', NULL, b'0', 'ant-design:wallet-outlined', b'0', b'0', 'Layout', NULL, '/pay/order', '', 0, 0, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-01-09 16:50:46', 1399985191002447872, '2024-01-09 16:53:35', 3, 0); +INSERT INTO `iam_perm_menu` VALUES (1744643265142165504, 'dax-pay', NULL, '数据记录', 'PayRecord', NULL, b'0', 'ant-design:profile-outlined', b'0', b'0', 'Layout', NULL, '/pay/record', '', 0, 0, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-01-09 16:52:23', 1399985191002447872, '2024-01-09 16:53:50', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1744930046228017152, 'dax-pay', 1744643265142165504, '回调记录', 'PayCallbackRecordList', NULL, b'0', '', b'0', b'0', 'payment/record/callback/PayCallbackRecordList', NULL, '/pay/record/callback', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-01-10 11:51:57', 1399985191002447872, '2024-05-01 23:15:23', 10, 0); +INSERT INTO `iam_perm_menu` VALUES (1745126072389963776, 'dax-pay', 1744643265142165504, '关闭记录', 'PayCloseRecordList', NULL, b'0', '', b'0', b'0', 'payment/record/close/PayCloseRecordList', NULL, '/pay/record/close', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-01-11 00:50:53', 1399985191002447872, '2024-01-11 00:50:53', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1745136155962347520, 'dax-pay', 1744643265142165504, '修复记录', 'PayRepairRecordList', NULL, b'0', '', b'0', b'0', 'payment/record/repair/PayRepairRecordList', NULL, '/pay/record/repair', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-01-11 01:30:57', 1399985191002447872, '2024-01-11 01:30:57', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1745143528663781376, 'dax-pay', 1744643265142165504, '同步记录', 'PaySyncRecordList', NULL, b'0', '', b'0', b'0', 'payment/record/sync/PaySyncRecordList', NULL, '/pay/record/sync', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-01-11 02:00:15', 1399985191002447872, '2024-01-11 02:00:33', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1745457623493496832, 'dax-pay', 1744642856348520448, '支付订单', 'PayOrderList', NULL, b'0', '', b'0', b'0', 'payment/order/pay/PayOrderList', NULL, '/pay/order/pay', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-01-11 22:48:21', 1399985191002447872, '2024-01-11 22:48:21', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1745457746529210368, 'dax-pay', 1744642856348520448, '退款订单', 'RefundOrderList', NULL, b'0', '', b'0', b'0', 'payment/order/refund/RefundOrderList.vue', NULL, '/pay/order/refund', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-01-11 22:48:50', 1399985191002447872, '2024-01-21 22:50:29', 2, 0); +INSERT INTO `iam_perm_menu` VALUES (1745822093382230016, 'dax-pay', 1744271715476684800, '通道配置', 'ChannelPayConfigList', NULL, b'0', '', b'0', b'0', 'payment/channel/config/ChannelPayConfigList', NULL, '/pay/config/channelpay', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-01-12 22:56:38', 1399985191002447872, '2024-02-06 14:32:08', 2, 0); +INSERT INTO `iam_perm_menu` VALUES (1746194891925561344, 'dax-pay', 1744271715476684800, '平台配置', 'PayPlatformConfig', NULL, b'0', '', b'0', b'0', 'payment/system/platform/PayPlatformConfig', NULL, '/pay/config/platform', '', -1, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-01-13 23:38:00', 1399985191002447872, '2024-01-13 23:38:00', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1749262518385082368, 'dax-pay', 1786808188825194496, '对账单', 'ReconcileOrderList', NULL, b'0', '', b'0', b'0', 'payment/reconcile/order/ReconcileOrderList.vue', NULL, '/pay/reconcile/order', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-01-22 10:47:39', 1399985191002447872, '2024-05-05 17:09:14', 9, 0); +INSERT INTO `iam_perm_menu` VALUES (1759768820429352960, 'dax-pay', NULL, '演示模块', '', NULL, b'0', 'ant-design:crown-outlined', b'0', b'0', 'Layout', NULL, '/pay/demo', '', 9, 0, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-02-20 10:35:56', 1399985191002447872, '2024-02-20 10:35:56', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1759769092698402816, 'dax-pay', 1759768820429352960, '收银台演示', '', NULL, b'0', '', b'0', b'0', '', NULL, 'outside:///cashier', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-02-20 10:37:01', 1399985191002447872, '2024-02-20 10:37:01', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1761429304959528960, 'dax-pay', NULL, '支付通知', 'PayNotic', NULL, b'0', 'ant-design:clock-circle-outlined', b'0', b'0', 'Layout', NULL, '/pay/notice', '', 0, 0, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-02-25 00:34:07', 1399985191002447872, '2024-05-08 15:31:04', 3, 0); +INSERT INTO `iam_perm_menu` VALUES (1761429682618855424, 'dax-pay', 1761429304959528960, '通知记录', 'ClientNoticeTaskList', NULL, b'0', '', b'0', b'0', 'payment/task/notice/ClientNoticeTaskList', NULL, '/pay/notice/record', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-02-25 00:35:37', 1399985191002447872, '2024-05-08 15:30:56', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1775089099078553600, 'dax-pay', NULL, '分账管理', 'Allocation', NULL, b'0', 'ant-design:sliders-twotone', b'0', b'0', 'Layout', NULL, '/pay/allocation', '', 0, 0, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-04-02 17:13:15', 1399985191002447872, '2024-04-02 17:13:15', 0, 0); +INSERT INTO `iam_perm_menu` VALUES (1775089820368818176, 'dax-pay', 1775089099078553600, '分账接收者', 'AllocationReceiverList', NULL, b'0', '', b'0', b'0', 'payment/allocation/receiver/AllocationReceiverList', NULL, '/pay/allocation/receiver', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-04-02 17:16:07', 1399985191002447872, '2024-04-02 17:23:13', 2, 0); +INSERT INTO `iam_perm_menu` VALUES (1775091561835450368, 'dax-pay', 1775089099078553600, '分账组', 'AllocationGroupList', NULL, b'0', '', b'0', b'0', 'payment/allocation/group/AllocationGroupList', NULL, '/pay/allocation/group', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-04-02 17:23:03', 1399985191002447872, '2024-04-02 17:23:27', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1777688382748700672, 'dax-pay', 1775089099078553600, '分账订单', 'AllocationOrderList', NULL, b'0', '', b'0', b'0', 'payment/allocation/order/AllocationOrderList', NULL, '/pay/allocation/order', '', -1, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-04-09 21:21:53', 1399985191002447872, '2024-05-31 11:16:55', 5, 0); +INSERT INTO `iam_perm_menu` VALUES (1786808188825194496, 'dax-pay', NULL, '对账管理', 'Reconcile', NULL, b'0', 'ant-design:arrows-alt-outlined', b'0', b'0', 'Layout', NULL, '/pay/reconcile', '', 0, 0, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-05-05 01:20:44', 1399985191002447872, '2024-05-05 01:20:54', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1786810890951020544, 'dax-pay', 1786808188825194496, '对账差异', 'ReconcileDiffList', NULL, b'0', '', b'0', b'0', 'payment/reconcile/diff/ReconcileDiffList.vue', NULL, '/pay/reconcile/diff', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-05-05 01:31:28', 1399985191002447872, '2024-05-05 17:08:38', 1, 0); +INSERT INTO `iam_perm_menu` VALUES (1786811341285052416, 'dax-pay', 1786808188825194496, '外部交易明细', 'ReconcileDetailList', NULL, b'0', '', b'1', b'0', 'payment/reconcile/detail/ReconcileDetailList.vue', NULL, '/pay/reconcile/detail', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-05-05 01:33:16', 1399985191002447872, '2024-05-05 20:24:24', 2, 0); +INSERT INTO `iam_perm_menu` VALUES (1797178029448867840, 'dax-pay', 1744643265142165504, '交易流水', 'TradeFlowRecordList', NULL, b'0', '', b'0', b'0', 'payment/record/flow/TradeFlowRecordList', NULL, '/pay/record/flow', '', 0, 1, NULL, b'1', b'0', b'0', b'0', NULL, 1399985191002447872, '2024-06-02 16:06:47', 1399985191002447872, '2024-06-02 16:06:47', 0, 0); + +-- ---------------------------- +-- Table structure for iam_perm_path +-- ---------------------------- +DROP TABLE IF EXISTS `iam_perm_path`; +CREATE TABLE `iam_perm_path` ( + `id` bigint(20) NOT NULL, + `code` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '权限标识', + `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限名称', + `request_type` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '请求类型', + `path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '请求路径', + `group_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分组名称', + `enable` bit(1) NOT NULL COMMENT '启用状态', + `generate` bit(1) NOT NULL COMMENT '是否通过系统生成的权限', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述', + `creator` bigint(20) NULL DEFAULT NULL, + `create_time` datetime(6) NULL DEFAULT NULL, + `last_modifier` bigint(20) NULL DEFAULT NULL, + `last_modified_time` datetime(6) NULL DEFAULT NULL, + `deleted` bit(1) NOT NULL, + `version` int(11) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '权限_请求' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_perm_path +-- ---------------------------- +INSERT INTO `iam_perm_path` VALUES (1789978117562556416, 'UserInfoController#existsUsername', '账号是否被使用', 'GET', '/user/existsUsername', '用户管理', b'1', b'1', '用户管理 账号是否被使用', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556417, 'FIleUpLoadController#page', '分页', 'GET', '/file/page', '文件上传', b'1', b'1', '文件上传 分页', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556418, 'AllocationOrderController#retryAllocation', '分账重试', 'POST', '/order/allocation/retry', '分账订单控制器', b'1', b'1', '分账订单控制器 分账重试', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556419, 'WeChatPayConfigController#toBase64', '将文件转换成base64', 'POST', '/wechat/pay/config/toBase64', '微信支付配置', b'1', b'1', '微信支付配置 将文件转换成base64', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556420, 'AllocationReceiverController#removeByGateway', '从三方支付系统中删除', 'POST', '/allocation/receiver/removeByGateway', '分账接收方控制器', b'1', b'1', '分账接收方控制器 从三方支付系统中删除', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-06-03 14:53:25.723000', b'1', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556421, 'UserThirdController#unbind', '解绑第三方账号', 'POST', '/user/third/unbind', '用户三方登录管理', b'1', b'1', '用户三方登录管理 解绑第三方账号', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556422, 'ChinaRegionController#findAllProvince', '获取一级行政区', 'GET', '/china/region/findAllProvince', '中国行政区划', b'1', b'1', '中国行政区划 获取一级行政区', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556423, 'AllocationGroupController#unbindReceivers', '批量取消绑定接收者', 'POST', '/allocation/group/unbindReceivers', '分账组', b'1', b'1', '分账组 批量取消绑定接收者', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556424, 'DataRoleController#findUsersByDataRoleId', '获取关联的用户列表', 'GET', '/data/role/findUsersByDataRoleId', '数据角色配置', b'1', b'1', '数据角色配置 获取关联的用户列表', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556425, 'AggregateController#getInfo', '获取聚合支付信息', 'GET', '/demo/aggregate/getInfo', '聚合支付', b'1', b'1', '聚合支付 获取聚合支付信息', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556426, 'UniQueryController#queryRefundOrder', '退款订单查询接口', 'POST', '/uni/query/refundOrder', '统一查询接口', b'1', b'1', '统一查询接口 退款订单查询接口', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-06-03 14:53:25.723000', b'1', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556427, 'SmsTemplateController#update', '修改', 'POST', '/sms/template/update', '短信模板配置', b'1', b'1', '短信模板配置 修改', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556428, 'AllocationReceiverController#findById', '查询详情', 'GET', '/allocation/receiver/findById', '分账接收方控制器', b'1', b'1', '分账接收方控制器 查询详情', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556429, 'PayMethodInfoController#update', '更新', 'POST', '/pay/method/info/update', '支付方式管理', b'1', b'1', '支付方式管理 更新', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556430, 'CashierController#getUniCashierUrl', '获取手机收银台链接', 'GET', '/demo/cashier/getUniCashierUrl', '结算台演示', b'1', b'1', '结算台演示 获取手机收银台链接', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556431, 'ReconcileOrderController#pageDiff', '对账差异分页', 'GET', '/order/reconcile/diff/page', '对账控制器', b'1', b'1', '对账控制器 对账差异分页', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556432, 'OnlineUserController#page', '分页', 'GET', '/online/user/page', '在线用户', b'1', b'1', '在线用户 分页', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556433, 'UserInfoController#existsPhone', '手机号是否被使用(不包含自己)', 'GET', '/user/existsPhoneNotId', '用户管理', b'1', b'1', '用户管理 手机号是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556434, 'DataRoleController#add', '添加', 'POST', '/data/role/add', '数据角色配置', b'1', b'1', '数据角色配置 添加', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556435, 'PlatformConfigController#getConfig', '获取平台配置', 'GET', '/platform/config/getConfig', '支付平台配置控制器', b'1', b'1', '支付平台配置控制器 获取平台配置', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556436, 'SmsTemplateController#delete', '删除', 'DELETE', '/sms/template/delete', '短信模板配置', b'1', b'1', '短信模板配置 删除', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556437, 'DataRoleController#findById', '获取', 'GET', '/data/role/findById', '数据角色配置', b'1', b'1', '数据角色配置 获取', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556438, 'DingRobotConfigController#delete', '删除', 'DELETE', '/ding/robot/config/delete', '钉钉机器人配置', b'1', b'1', '钉钉机器人配置 删除', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556439, 'UserDataRoleController#saveAssign', '给用户分配数据角色', 'POST', '/user/data/role/saveAssign', '用户数据角色配置', b'1', b'1', '用户数据角色配置 给用户分配数据角色', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556440, 'SiteMessageController#read', '标为已读', 'POST', '/site/message/read', '站内信', b'1', b'1', '站内信 标为已读', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556441, 'SystemParamController#findByParamKey', '根据键名获取键值', 'GET', '/system/param/findByParamKey', '系统参数', b'1', b'1', '系统参数 根据键名获取键值', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556442, 'UserInfoController#bindEmail', '绑定邮箱', 'POST', '/user/bindEmail', '用户管理', b'1', b'1', '用户管理 绑定邮箱', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556443, 'RoleMenuController#save', '保存请求权限关系', 'POST', '/role/menu/save', '角色菜单权限关系', b'1', b'1', '角色菜单权限关系 保存请求权限关系', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556444, 'RoleController#findAll', '查询所有的角色', 'GET', '/role/findAll', '角色管理', b'1', b'1', '角色管理 查询所有的角色', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556445, 'SmsChannelConfigController#findById', '通过ID查询', 'GET', '/sms/config/findById', '短信渠道配置', b'1', b'1', '短信渠道配置 通过ID查询', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556446, 'PermPathController#add', '添加权限', 'POST', '/perm/path/add', '请求权限管理', b'1', b'1', '请求权限管理 添加权限', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556447, 'AuthAssistController#sendSmsCaptcha', '发送短信验证码', 'POST', '/auth/sendSmsCaptcha', '认证支撑接口', b'1', b'1', '认证支撑接口 发送短信验证码', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556448, 'CockpitReportController#getRefundAmount', '退款金额(分)', 'GET', '/report/cockpit/getRefundAmount', '驾驶舱接口', b'1', b'1', '驾驶舱接口 退款金额(分)', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556449, 'PermMenuController#existsByPermCode', '编码是否被使用', 'GET', '/perm/menu/existsByPermCode', '菜单和权限码', b'1', b'1', '菜单和权限码 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556450, 'WeChatTemplateController#findById', '通过ID查询', 'GET', '/wechat/template/findById', '微信模板消息', b'1', b'1', '微信模板消息 通过ID查询', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556451, 'UserInfoController#updateEmail', '修改邮箱', 'POST', '/user/updateEmail', '用户管理', b'1', b'1', '用户管理 修改邮箱', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556452, 'AggregateController#createUrl', '创建聚合支付码', 'POST', '/demo/aggregate/createUrl', '聚合支付', b'1', b'1', '聚合支付 创建聚合支付码', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556453, 'MessageTemplateController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/message/template/existsByCodeNotId', '消息模板', b'1', b'1', '消息模板 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556454, 'DingRobotConfigController#update', '修改机器人配置', 'POST', '/ding/robot/config/update', '钉钉机器人配置', b'1', b'1', '钉钉机器人配置 修改机器人配置', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556455, 'WeChatPortalController#auth', 'auth', 'GET', '/wechat/portal', '微信接入入口', b'1', b'1', '微信接入入口 auth', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556456, 'SystemParamController#add', '添加', 'POST', '/system/param/add', '系统参数', b'1', b'1', '系统参数 添加', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556457, 'DingRobotConfigController#page', '分页', 'GET', '/ding/robot/config/page', '钉钉机器人配置', b'1', b'1', '钉钉机器人配置 分页', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556458, 'QuartzJobController#findById', '单条', 'GET', '/quartz/findById', '定时任务', b'1', b'1', '定时任务 单条', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117562556459, 'RoleController#existsByName', '名称是否被使用', 'GET', '/role/existsByName', '角色管理', b'1', b'1', '角色管理 名称是否被使用', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750720, 'WeChatMenuController#findById', '通过ID查询', 'GET', '/wechat/menu/findById', '微信菜单管理', b'1', b'1', '微信菜单管理 通过ID查询', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750721, 'UserInfoController#existsEmail', '邮箱是否被使用(不包含自己)', 'GET', '/user/existsEmailNotId', '用户管理', b'1', b'1', '用户管理 邮箱是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750722, 'UniPayController#syncPay', '支付同步接口', 'POST', '/unipay/syncPay', '统一支付接口', b'1', b'1', '统一支付接口 支付同步接口', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-06-03 14:53:25.723000', b'1', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750723, 'PermPathController#page', '权限分页', 'GET', '/perm/path/page', '请求权限管理', b'1', b'1', '请求权限管理 权限分页', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750724, 'WeChatPortalController#post', 'post', 'POST', '/wechat/portal', '微信接入入口', b'1', b'1', '微信接入入口 post', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750725, 'DeptController#findById', '获取', 'GET', '/dept/findById', '部门管理', b'1', b'1', '部门管理 获取', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750726, 'PayOrderController#allocation', '发起分账', 'POST', '/order/pay/allocation', '支付订单控制器', b'1', b'1', '支付订单控制器 发起分账', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750727, 'DictionaryController#add', '添加', 'POST', '/dict/add', '字典', b'1', b'1', '字典 添加', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750728, 'RefundOrderController#getTotalAmount', '查询金额汇总', 'GET', '/order/refund/getTotalAmount', '支付退款控制器', b'1', b'1', '支付退款控制器 查询金额汇总', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750729, 'UserInfoController#getUserBaseInfo', '查询用户基础信息', 'GET', '/user/getUserBaseInfo', '用户管理', b'1', b'1', '用户管理 查询用户基础信息', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750730, 'CockpitReportController#getRefundOrderCount', '退款订单数量', 'GET', '/report/cockpit/getRefundOrderCount', '驾驶舱接口', b'1', b'1', '驾驶舱接口 退款订单数量', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750731, 'UserAdminController#update', '修改用户', 'POST', '/user/admin/update', '管理用户(管理员级别)', b'1', b'1', '管理用户(管理员级别) 修改用户', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750732, 'WeChatMenuController#importMenu', '导入微信自定义菜单到系统中', 'POST', '/wechat/menu/importMenu', '微信菜单管理', b'1', b'1', '微信菜单管理 导入微信自定义菜单到系统中', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750733, 'WalletConfigController#update', '更新', 'POST', '/wallet/config/update', '钱包配置', b'1', b'1', '钱包配置 更新', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750734, 'DeptController#deleteAndChildren', '强制级联删除', 'DELETE', '/dept/deleteAndChildren', '部门管理', b'1', b'1', '部门管理 强制级联删除', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750735, 'PermPathController#deleteBatch', '批量删除', 'DELETE', '/perm/path/deleteBatch', '请求权限管理', b'1', b'1', '请求权限管理 批量删除', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750736, 'PayGatewayNoticeController#wechatPayNotice', '微信消息通知', 'POST', '/gateway/notice/wechat', '三方支付网关消息通知', b'1', b'1', '三方支付网关消息通知 微信消息通知', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-06-03 14:53:25.723000', b'1', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750737, 'DataRoleController#saveDeptAssign', '保存关联部门', 'POST', '/data/role/saveDeptAssign', '数据角色配置', b'1', b'1', '数据角色配置 保存关联部门', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750738, 'PayCallbackController#wechatPayNotify', '微信支付信息回调', 'POST', '/callback/pay/wechat', '支付通道信息回调', b'1', b'1', '支付通道信息回调 微信支付信息回调', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750739, 'WeChatMediaController#uploadFile', '上传素材', 'POST', '/wechat/media/uploadFile', '微信素材管理', b'1', b'1', '微信素材管理 上传素材', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750740, 'AllocationReceiverController#registerByGateway', '同步到三方支付系统中', 'POST', '/allocation/receiver/registerByGateway', '分账接收方控制器', b'1', b'1', '分账接收方控制器 同步到三方支付系统中', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-06-03 14:53:25.723000', b'1', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750741, 'WalletController#recharge', '充值', 'POST', '/wallet/recharge', '钱包管理', b'1', b'1', '钱包管理 充值', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750742, 'UniPayAssistController#getWxAccessToken', '获取微信AccessToken', 'POST', '/unipay/assist/getWxAccessToken', '支付支撑接口', b'1', b'1', '支付支撑接口 获取微信AccessToken', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750743, 'FIleUpLoadController#getFileDownloadUrl', '获取文件下载地址(流量会经过后端)', 'GET', '/file/getFileDownloadUrl', '文件上传', b'1', b'1', '文件上传 获取文件下载地址(流量会经过后端)', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750744, 'AllocationGroupController#clearDefault', '清除默认分账组', 'POST', '/allocation/group/clearDefault', '分账组', b'1', b'1', '分账组 清除默认分账组', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750745, 'DictionaryController#findById', '根据id获取', 'GET', '/dict/findById', '字典', b'1', b'1', '字典 根据id获取', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750746, 'ReconcileOrderController#compare', '手动触发交易对账单比对', 'POST', '/order/reconcile/compare', '对账控制器', b'1', b'1', '对账控制器 手动触发交易对账单比对', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750747, 'TestController#lock1', '锁测试1', 'GET', '/test/lock1', '测试', b'1', b'1', '测试 锁测试1', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750748, 'UserInfoController#updatePhone', '修改手机号', 'POST', '/user/updatePhone', '用户管理', b'1', b'1', '用户管理 修改手机号', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750749, 'UserInfoController#getLoginAfterUserInfo', '登录后获取用户信息', 'GET', '/user/getLoginAfterUserInfo', '用户管理', b'1', b'1', '用户管理 登录后获取用户信息', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750750, 'ClientController#delete', '删除', 'DELETE', '/client/delete', '认证终端', b'1', b'1', '认证终端 删除', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750751, 'PayChannelConfigController#findAll', '查询全部', 'GET', '/pay/channel/config/findAll', '支付通道信息', b'1', b'1', '支付通道信息 查询全部', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750752, 'SmsChannelConfigController#add', '添加', 'POST', '/sms/config/add', '短信渠道配置', b'1', b'1', '短信渠道配置 添加', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750753, 'PayCloseRecordController#page', '分页查询', 'GET', '/record/close/page', '支付订单关闭记录', b'1', b'1', '支付订单关闭记录 分页查询', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750754, 'UserInfoController#bindPhone', '绑定手机', 'POST', '/user/bindPhone', '用户管理', b'1', b'1', '用户管理 绑定手机', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750755, 'DictionaryItemController#update', '修改字典项(返回字典项对象)', 'POST', '/dict/item/update', '字典项', b'1', b'1', '字典项 修改字典项(返回字典项对象)', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750756, 'WeChatMediaController#pageFile', '非图文素材分页', 'GET', '/wechat/media/pageFile', '微信素材管理', b'1', b'1', '微信素材管理 非图文素材分页', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750757, 'ChinaRegionController#findAllProvinceAndCityAndArea', ' 获取省市区县三级联动列表', 'GET', '/china/region/findAllProvinceAndCityAndArea', '中国行政区划', b'1', b'1', '中国行政区划 获取省市区县三级联动列表', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750758, 'WalletConfigController#findPayWays', '支付宝支持支付方式', 'GET', '/wallet/config/findPayWays', '钱包配置', b'1', b'1', '钱包配置 支付宝支持支付方式', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750759, 'AllocationGroupController#bindReceivers', '批量绑定接收者', 'POST', '/allocation/group/bindReceivers', '分账组', b'1', b'1', '分账组 批量绑定接收者', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750760, 'ReconcileOrderController#upload', '手动上传交易对账单文件', 'POST', '/order/reconcile/upload', '对账控制器', b'1', b'1', '对账控制器 手动上传交易对账单文件', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750761, 'SystemParamController#update', '更新', 'POST', '/system/param/update', '系统参数', b'1', b'1', '系统参数 更新', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750762, 'PayCallbackRecordController#page', '分页查询', 'GET', '/record/callback/page', '支付回调信息记录', b'1', b'1', '支付回调信息记录 分页查询', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750763, 'RefundOrderController#findByRefundNo', '查询退款订单详情', 'GET', '/order/refund/findByOrderNo', '支付退款控制器', b'1', b'1', '支付退款控制器 查询退款订单详情', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-06-03 14:53:25.723000', b'1', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750764, 'ClientController#page', '分页查询', 'GET', '/client/page', '认证终端', b'1', b'1', '认证终端 分页查询', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750765, 'UserAssistController#sendPhoneForgetCaptcha', '发送找回密码手机验证码', 'POST', '/user/sendPhoneForgetCaptcha', '用户操作支撑服务', b'1', b'1', '用户操作支撑服务 发送找回密码手机验证码', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750766, 'CashierController#wxAuthCallback', '微信授权回调页面', 'GET', '/demo/cashier/wxAuthCallback', '结算台演示', b'1', b'1', '结算台演示 微信授权回调页面', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750767, 'UserInfoController#getUserSecurityInfo', '查询用户安全信息', 'GET', '/user/getUserSecurityInfo', '用户管理', b'1', b'1', '用户管理 查询用户安全信息', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750768, 'PaySyncRecordController#findById', '查询单条', 'GET', '/record/sync/findById', '支付同步记录控制器', b'1', b'1', '支付同步记录控制器 查询单条', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750769, 'DataRoleController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/data/role/existsByCodeNotId', '数据角色配置', b'1', b'1', '数据角色配置 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750770, 'DataRoleController#existsByName', '名称是否被使用(不包含自己)', 'GET', '/data/role/existsByNameNotId', '数据角色配置', b'1', b'1', '数据角色配置 名称是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750771, 'UniQueryController#queryPayOrder', '支付订单查询接口', 'POST', '/uni/query/payOrder', '统一查询接口', b'1', b'1', '统一查询接口 支付订单查询接口', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-06-03 14:53:25.723000', b'1', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750772, 'QuartzJobController#delete', '删除', 'DELETE', '/quartz/delete', '定时任务', b'1', b'1', '定时任务 删除', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750773, 'PermMenuController#add', '添加菜单权限', 'POST', '/perm/menu/add', '菜单和权限码', b'1', b'1', '菜单和权限码 添加菜单权限', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750774, 'ChinaRegionController#findAllProvinceAndCity', '获取省市二级联动列表', 'GET', '/china/region/findAllProvinceAndCity', '中国行政区划', b'1', b'1', '中国行政区划 获取省市二级联动列表', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750775, 'WeChatMenuController#page', '分页查询', 'GET', '/wechat/menu/page', '微信菜单管理', b'1', b'1', '微信菜单管理 分页查询', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750776, 'PermPathController#findById', '获取详情', 'GET', '/perm/path/findById', '请求权限管理', b'1', b'1', '请求权限管理 获取详情', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750777, 'QuartzJobController#stop', '停止', 'POST', '/quartz/stop', '定时任务', b'1', b'1', '定时任务 停止', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750778, 'UserAssistController#sendEmailChangeCaptcha', '发送更改/绑定邮箱验证码', 'POST', '/user/sendEmailChangeCaptcha', '用户操作支撑服务', b'1', b'1', '用户操作支撑服务 发送更改/绑定邮箱验证码', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750779, 'DictionaryController#page', '分页', 'GET', '/dict/page', '字典', b'1', b'1', '字典 分页', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750780, 'OnlineUserController#kickOut', '踢出用户', 'GET', '/online/user/kickOut', '在线用户', b'1', b'1', '在线用户 踢出用户', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750781, 'UniPayController#refund', '统一退款接口', 'POST', '/unipay/refund', '统一支付接口', b'1', b'1', '统一支付接口 统一退款接口', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750782, 'PayCallbackController#unionPayNotify', '云闪付支付信息回调', 'POST', '/callback/pay/union', '支付通道信息回调', b'1', b'1', '支付通道信息回调 云闪付支付信息回调', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750783, 'ReconcileOrderController#downLocalCsv', '下载系统对账单(CSV格式)', 'GET', '/order/reconcile/downLocalCsv', '对账控制器', b'1', b'1', '对账控制器 下载系统对账单(CSV格式)', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750784, 'DataRoleController#delete', '删除', 'DELETE', '/data/role/delete', '数据角色配置', b'1', b'1', '数据角色配置 删除', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750785, 'DataRoleController#deleteUserAssigns', '批量删除数据角色关联用户', 'DELETE', '/data/role/deleteUserAssigns', '数据角色配置', b'1', b'1', '数据角色配置 批量删除数据角色关联用户', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750786, 'ClientController#findById', '通过ID查询', 'GET', '/client/findById', '认证终端', b'1', b'1', '认证终端 通过ID查询', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750787, 'ClientController#existsByCode', '编码是否被使用', 'GET', '/client/existsByCode', '认证终端', b'1', b'1', '认证终端 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750788, 'FIleUpLoadController#local', '上传', 'POST', '/file/upload', '文件上传', b'1', b'1', '文件上传 上传', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750789, 'AllocationGroupController#findById', '查询详情', 'GET', '/allocation/group/findById', '分账组', b'1', b'1', '分账组 查询详情', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750790, 'PermMenuController#menuAndPermCodeTree', '获取菜单和权限码树', 'GET', '/perm/menu/menuAndPermCodeTree', '菜单和权限码', b'1', b'1', '菜单和权限码 获取菜单和权限码树', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750791, 'WeChatArticleController#page', '分页', 'GET', '/wechat/article/page', '微信文章管理', b'1', b'1', '微信文章管理 分页', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750792, 'UserInfoController#updatePassword', '修改密码', 'POST', '/user/updatePassword', '用户管理', b'1', b'1', '用户管理 修改密码', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750793, 'MessageTemplateController#existsByCode', '编码是否被使用', 'GET', '/message/template/existsByCode', '消息模板', b'1', b'1', '消息模板 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750794, 'LoginTypeController#superPage', '超级查询', 'POST', '/loginType/superPage', '登录方式管理', b'1', b'1', '登录方式管理 超级查询', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750795, 'WalletController#page', '钱包分页', 'GET', '/wallet/page', '钱包管理', b'1', b'1', '钱包管理 钱包分页', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750796, 'UserAdminController#getUserInfoWhole', '查询用户详情', 'GET', '/user/admin/getUserInfoWhole', '管理用户(管理员级别)', b'1', b'1', '管理用户(管理员级别) 查询用户详情', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750797, 'AlipayConfigController#update', '更新', 'POST', '/alipay/config/update', '支付宝配置', b'1', b'1', '支付宝配置 更新', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750798, 'UniPayController#syncRefund', '退款同步接口', 'POST', '/unipay/syncRefund', '统一支付接口', b'1', b'1', '统一支付接口 退款同步接口', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-06-03 14:53:25.723000', b'1', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750799, 'QuartzJobController#add', '添加', 'POST', '/quartz/add', '定时任务', b'1', b'1', '定时任务 添加', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750800, 'OperateLogController#page', '分页', 'GET', '/log/operate/page', '操作日志', b'1', b'1', '操作日志 分页', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750801, 'ClientNoticeTaskController#findRecordById', '查询单条', 'GET', '/task/notice/record/findById', '客户系统通知任务', b'1', b'1', '客户系统通知任务 查询单条', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750802, 'OpenApiWebMvcResource#openapiYaml', 'openapiYaml', 'GET', '/v3/api-docs.yaml', 'OpenApiWebMvcResource', b'1', b'1', 'OpenApiWebMvcResource openapiYaml', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750803, 'PayOrderController#findById', '查询订单详情', 'GET', '/order/pay/findById', '支付订单控制器', b'1', b'1', '支付订单控制器 查询订单详情', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750804, 'WeChatQrLoginController#getStatus', '获取扫码状态', 'GET', '/token/wechat/qr/getStatus', '微信扫码登录', b'1', b'1', '微信扫码登录 获取扫码状态', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750805, 'DeptController#tree', '树状展示', 'GET', '/dept/tree', '部门管理', b'1', b'1', '部门管理 树状展示', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750806, 'WeChatMenuController#publish', '发布菜单', 'POST', '/wechat/menu/publish', '微信菜单管理', b'1', b'1', '微信菜单管理 发布菜单', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750807, 'AllocationGroupController#findReceiversByGroups', '查询分账接收方信息', 'GET', '/allocation/group/findReceiversByGroups', '分账组', b'1', b'1', '分账组 查询分账接收方信息', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750808, 'LoginLogController#deleteByDay', '清除指定天数之前的日志', 'DELETE', '/log/login/deleteByDay', '登录日志', b'1', b'1', '登录日志 清除指定天数之前的日志', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750809, 'PayOrderController#syncById', '同步支付状态', 'POST', '/order/pay/syncByOrderNo', '支付订单控制器', b'1', b'1', '支付订单控制器 同步支付状态', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750810, 'WeChatTemplateController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/wechat/template/existsByCodeNotId', '微信模板消息', b'1', b'1', '微信模板消息 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750811, 'WeChatMenuController#add', '添加', 'POST', '/wechat/menu/add', '微信菜单管理', b'1', b'1', '微信菜单管理 添加', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750812, 'WeChatMenuController#clearMenu', '清空微信自定义菜单', 'POST', '/wechat/menu/clearMenu', '微信菜单管理', b'1', b'1', '微信菜单管理 清空微信自定义菜单', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750813, 'QuartzJobLogController#page', '分页', 'GET', '/quartz/log/page', '定时任务执行日志', b'1', b'1', '定时任务执行日志 分页', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750814, 'UserInfoController#updateBaseInfo', '修改用户基础信息', 'POST', '/user/updateBaseInfo', '用户管理', b'1', b'1', '用户管理 修改用户基础信息', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750815, 'PayCallbackController#aliPayNotify', '支付宝信息回调', 'POST', '/callback/pay/alipay', '支付通道信息回调', b'1', b'1', '支付通道信息回调 支付宝信息回调', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750816, 'DataRoleController#existsByCode', '编码是否被使用', 'GET', '/data/role/existsByCode', '数据角色配置', b'1', b'1', '数据角色配置 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750817, 'MessageTemplateController#delete', '删除', 'DELETE', '/message/template/delete', '消息模板', b'1', b'1', '消息模板 删除', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750818, 'LoginTypeController#findById', '通过ID查询登录方式', 'GET', '/loginType/findById', '登录方式管理', b'1', b'1', '登录方式管理 通过ID查询登录方式', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750819, 'ReconcileOrderController#page', '对账单分页', 'GET', '/order/reconcile/page', '对账控制器', b'1', b'1', '对账控制器 对账单分页', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750820, 'UnionPayConfigController#findPayWays', '支持的支付方式', 'GET', '/union/pay/config/findPayWays', '云闪付配置', b'1', b'1', '云闪付配置 支持的支付方式', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750821, 'DataRoleController#getDeptIds', '获取关联部门id', 'GET', '/data/role/getDeptIds', '数据角色配置', b'1', b'1', '数据角色配置 获取关联部门id', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750822, 'PayOrderController#close', '关闭支付记录', 'POST', '/order/pay/close', '支付订单控制器', b'1', b'1', '支付订单控制器 关闭支付记录', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750823, 'DingRobotConfigController#findById', '获取详情', 'GET', '/ding/robot/config/findById', '钉钉机器人配置', b'1', b'1', '钉钉机器人配置 获取详情', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750824, 'MessageTemplateController#update', '更新', 'POST', '/message/template/update', '消息模板', b'1', b'1', '消息模板 更新', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750825, 'CaptchaController#imgCaptcha', '获取图片验证码', 'POST', '/captcha/imgCaptcha', '验证码服务', b'1', b'1', '验证码服务 获取图片验证码', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750826, 'SystemParamController#delete', '删除', 'DELETE', '/system/param/delete', '系统参数', b'1', b'1', '系统参数 删除', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750827, 'UserInfoController#register', '注册账号', 'POST', '/user/register', '用户管理', b'1', b'1', '用户管理 注册账号', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750828, 'DictionaryItemController#add', '添加字典项(返回字典项对象)', 'POST', '/dict/item/add', '字典项', b'1', b'1', '字典项 添加字典项(返回字典项对象)', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750829, 'UserAdminController#restartPassword', '重置密码', 'POST', '/user/admin/restartPassword', '管理用户(管理员级别)', b'1', b'1', '管理用户(管理员级别) 重置密码', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750830, 'ClientController#update', '修改', 'POST', '/client/update', '认证终端', b'1', b'1', '认证终端 修改', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750831, 'SmsTemplateController#page', '分页查询', 'GET', '/sms/template/page', '短信模板配置', b'1', b'1', '短信模板配置 分页查询', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750832, 'MailConfigController#updateMailConfig', '更新邮箱配置', 'POST', '/mail/config/update', '邮箱配置', b'1', b'1', '邮箱配置 更新邮箱配置', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117566750833, 'UniPayController#allocation', '开启分账接口', 'POST', '/unipay/allocation', '统一支付接口', b'1', b'1', '统一支付接口 开启分账接口', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-06-03 14:53:25.722000', b'1', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945024, 'ReconcileOrderController#downAndSave', '手动触发对账文件下载', 'POST', '/order/reconcile/downAndSave', '对账控制器', b'1', b'1', '对账控制器 手动触发对账文件下载', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945025, 'ForwardFrontController#toH5', 'toH5', 'GET', '/front/', 'ForwardFrontController', b'1', b'1', 'ForwardFrontController toH5', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945026, 'RoleController#page', '分页查询角色', 'GET', '/role/page', '角色管理', b'1', b'1', '角色管理 分页查询角色', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945027, 'TokenEndpoint#logout', '退出', 'POST', '/token/logout', '认证相关', b'1', b'1', '认证相关 退出', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945028, 'PayChannelConfigController#findById', '根据ID获取', 'GET', '/pay/channel/config/findById', '支付通道信息', b'1', b'1', '支付通道信息 根据ID获取', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945029, 'ReconcileOrderController#pageDetail', '对账明细分页', 'GET', '/order/reconcile/detail/page', '对账控制器', b'1', b'1', '对账控制器 对账明细分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945030, 'PasswordSecurityConfigController#getDefault', '获取配置', 'GET', '/security/password/getDefault', '密码安全策略', b'1', b'1', '密码安全策略 获取配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945031, 'DictionaryItemController#findById', '根据字典项ID查询', 'GET', '/dict/item/findById', '字典项', b'1', b'1', '字典项 根据字典项ID查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945032, 'DictionaryItemController#findByDictionaryId', '查询指定字典ID下的所有字典项', 'GET', '/dict/item/findByDictionaryId', '字典项', b'1', b'1', '字典项 查询指定字典ID下的所有字典项', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945033, 'ForwardH5Controller#toH5', 'toH5', 'GET', '/h5/', 'ForwardH5Controller', b'1', b'1', 'ForwardH5Controller toH5', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945034, 'SiteMessageController#findById', '消息详情', 'GET', '/site/message/findById', '站内信', b'1', b'1', '站内信 消息详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945035, 'DictionaryController#update', '更新', 'POST', '/dict/update', '字典', b'1', b'1', '字典 更新', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945036, 'FIleUpLoadController#download', '下载文件(流量会经过后端)', 'GET', '/file/download/{id}', '文件上传', b'1', b'1', '文件上传 下载文件(流量会经过后端)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945037, 'SiteMessageController#pageBySender', '发送消息分页', 'GET', '/site/message/pageBySender', '站内信', b'1', b'1', '站内信 发送消息分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945038, 'AllocationGroupController#unbindReceiver', '取消绑定接收者', 'POST', '/allocation/group/unbindReceiver', '分账组', b'1', b'1', '分账组 取消绑定接收者', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945039, 'AlipayConfigController#readPem', '读取证书文件内容', 'POST', '/alipay/config/readPem', '支付宝配置', b'1', b'1', '支付宝配置 读取证书文件内容', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945040, 'ClientNoticeReceiveController#refund', '退款消息(对象)', 'POST', '/demo/callback/refundObject', '回调测试', b'1', b'1', '回调测试 退款消息(对象)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945041, 'PermMenuController#update', '修改菜单权限', 'POST', '/perm/menu/update', '菜单和权限码', b'1', b'1', '菜单和权限码 修改菜单权限', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945042, 'QuartzJobController#update', '更新', 'POST', '/quartz/update', '定时任务', b'1', b'1', '定时任务 更新', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945043, 'RoleController#dropdown', '角色下拉框', 'GET', '/role/dropdown', '角色管理', b'1', b'1', '角色管理 角色下拉框', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945044, 'AggregateController#aliH5Pay', '支付宝通过聚合支付码发起支付', 'POST', '/demo/aggregate/aliH5Pay', '聚合支付', b'1', b'1', '聚合支付 支付宝通过聚合支付码发起支付', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945045, 'UserRoleController#findRolesByUser', '根据用户ID获取到角色集合', 'GET', '/user/role/findRolesByUser', '用户角色管理', b'1', b'1', '用户角色管理 根据用户ID获取到角色集合', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945046, 'UserInfoController#existsPhone', '手机号是否被使用', 'GET', '/user/existsPhone', '用户管理', b'1', b'1', '用户管理 手机号是否被使用', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945047, 'ClientNoticeReceiveController#pay', '支付消息(对象接收)', 'POST', '/demo/callback/payObject', '回调测试', b'1', b'1', '回调测试 支付消息(对象接收)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945048, 'PayMethodInfoController#findAll', '获取全部', 'GET', '/pay/method/info/findAll', '支付方式管理', b'1', b'1', '支付方式管理 获取全部', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945049, 'LoginTypeController#page', '分页查询登录方式', 'GET', '/loginType/page', '登录方式管理', b'1', b'1', '登录方式管理 分页查询登录方式', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945050, 'DictionaryItemController#findAllByEnable', '获取启用的字典项列表', 'GET', '/dict/item/findAllByEnable', '字典项', b'1', b'1', '字典项 获取启用的字典项列表', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945051, 'RolePathController#save', '保存角色请求权限关联关系', 'POST', '/role/path/save', '角色请求权限消息关系', b'1', b'1', '角色请求权限消息关系 保存角色请求权限关联关系', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945052, 'WalletController#findById', '查询钱包详情', 'GET', '/wallet/findById', '钱包管理', b'1', b'1', '钱包管理 查询钱包详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945053, 'OnlineUserController#pageByLogin', '登录用户分页', 'GET', '/online/user/pageByLogin', '在线用户', b'1', b'1', '在线用户 登录用户分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945054, 'MailConfigController#delete', '删除', 'DELETE', '/mail/config/delete', '邮箱配置', b'1', b'1', '邮箱配置 删除', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945055, 'DictionaryController#delete', '根据id删除', 'DELETE', '/dict/delete', '字典', b'1', b'1', '字典 根据id删除', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945056, 'PayOrderController#getExtraById', '查询支付订单扩展信息', 'GET', '/order/pay/getExtraById', '支付订单控制器', b'1', b'1', '支付订单控制器 查询支付订单扩展信息', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945057, 'SiteMessageController#send', '发送站内信', 'POST', '/site/message/send', '站内信', b'1', b'1', '站内信 发送站内信', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945058, 'SiteMessageController#delete', '删除消息', 'DELETE', '/site/message/delete', '站内信', b'1', b'1', '站内信 删除消息', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945059, 'AlipayConfigController#findPayWays', '支付宝支持支付方式', 'GET', '/alipay/config/findPayWays', '支付宝配置', b'1', b'1', '支付宝配置 支付宝支持支付方式', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945060, 'SiteMessageController#listByReceiveNotRead', '小程序获取未读的接收消息标题列表', 'GET', '/site/message/listByReceiveNotRead', '站内信', b'1', b'1', '站内信 小程序获取未读的接收消息标题列表', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945061, 'ClientNoticeReceiveController#refund', '退款消息', 'POST', '/demo/callback/refund', '回调测试', b'1', b'1', '回调测试 退款消息', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945062, 'CashierController#getPayEnv', '获取支付环境', 'GET', '/demo/cashier/getPayEnv', '结算台演示', b'1', b'1', '结算台演示 获取支付环境', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945063, 'UserAdminController#banBatch', '批量封禁用户', 'POST', '/user/admin/banBatch', '管理用户(管理员级别)', b'1', b'1', '管理用户(管理员级别) 批量封禁用户', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945064, 'PayReturnController#wechat', '微信同步通知', 'GET', '/return/pay/wechat', '支付同步通知', b'1', b'1', '支付同步通知 微信同步通知', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945065, 'DictionaryItemController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/dict/item/existsByCodeNotId', '字典项', b'1', b'1', '字典项 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945066, 'DictionaryItemController#pageByDictionaryId', '分页查询指定字典下的字典项', 'GET', '/dict/item/pageByDictionaryId', '字典项', b'1', b'1', '字典项 分页查询指定字典下的字典项', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945067, 'AggregateController#wxAuthCallback', '微信授权回调页面', 'GET', '/demo/aggregate/wxAuthCallback', '聚合支付', b'1', b'1', '聚合支付 微信授权回调页面', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945068, 'LoginTypeController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/loginType/existsByCodeNotId', '登录方式管理', b'1', b'1', '登录方式管理 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945069, 'MessageTemplateController#page', '分页', 'GET', '/message/template/page', '消息模板', b'1', b'1', '消息模板 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945070, 'FIleUpLoadController#getFilePreviewUrl', '获取文件预览地址(流量会经过后端)', 'GET', '/file/getFilePreviewUrl', '文件上传', b'1', b'1', '文件上传 获取文件预览地址(流量会经过后端)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945071, 'LoginTypeController#findByCode', '通过code查询登录方式', 'GET', '/loginType/findByCode', '登录方式管理', b'1', b'1', '登录方式管理 通过code查询登录方式', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945072, 'PayReturnController#alipay', '支付宝同步跳转连接', 'GET', '/return/pay/alipay', '支付同步通知', b'1', b'1', '支付同步通知 支付宝同步跳转连接', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945073, 'PayOrderController#findByOrderNo', '查询订单详情', 'GET', '/order/pay/findByOrderNo', '支付订单控制器', b'1', b'1', '支付订单控制器 查询订单详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945074, 'ReconcileOrderController#findById', '对账单详情', 'GET', '/order/reconcile/findById', '对账控制器', b'1', b'1', '对账控制器 对账单详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945075, 'UserAssistController#sendPhoneChangeCaptcha', '发送更改/绑定手机号验证码', 'POST', '/user/sendPhoneChangeCaptcha', '用户操作支撑服务', b'1', b'1', '用户操作支撑服务 发送更改/绑定手机号验证码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945076, 'MultipleOpenApiWebMvcResource#openapiYaml', 'openapiYaml', 'GET', '/v3/api-docs.yaml/{group}', 'MultipleOpenApiWebMvcResource', b'1', b'1', 'MultipleOpenApiWebMvcResource openapiYaml', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945077, 'PermMenuController#delete', '删除', 'DELETE', '/perm/menu/delete', '菜单和权限码', b'1', b'1', '菜单和权限码 删除', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945078, 'AggregateController#barCodePay', '通过付款码发起支付', 'POST', '/demo/aggregate/barCodePay', '聚合支付', b'1', b'1', '聚合支付 通过付款码发起支付', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945079, 'SiteMessageController#pageByReceive', '接收消息分页', 'GET', '/site/message/pageByReceive', '站内信', b'1', b'1', '站内信 接收消息分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945080, 'ReconcileOrderController#downDiffCsv', '下载对账差异单(CSV格式)', 'GET', '/order/reconcile/downDiffCsv', '对账控制器', b'1', b'1', '对账控制器 下载对账差异单(CSV格式)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945081, 'WechatNoticeConfigController#update', '更新微信消息通知配置', 'POST', '/wx/notice/update', '微信消息通知配置', b'1', b'1', '微信消息通知配置 更新微信消息通知配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945082, 'AllocationReceiverController#page', '分页', 'GET', '/allocation/receiver/page', '分账接收方控制器', b'1', b'1', '分账接收方控制器 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945083, 'ThirdLoginController#toLoginUrl', '跳转到登陆页', 'GET', '/auth/third/toLoginUrl/{loginType}', '三方登录', b'1', b'1', '三方登录 跳转到登陆页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945084, 'AlipayConfigController#getConfig', '获取配置', 'GET', '/alipay/config/getConfig', '支付宝配置', b'1', b'1', '支付宝配置 获取配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945085, 'AllocationOrderController#findChannels', '获取可以分账的通道', 'GET', '/order/allocation/findChannels', '分账订单控制器', b'1', b'1', '分账订单控制器 获取可以分账的通道', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945086, 'MailConfigController#page', '分页', 'GET', '/mail/config/page', '邮箱配置', b'1', b'1', '邮箱配置 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945087, 'CashierController#simplePayCashier', '创建支付订单并发起', 'POST', '/demo/cashier/simplePayCashier', '结算台演示', b'1', b'1', '结算台演示 创建支付订单并发起', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945088, 'ClientController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/client/existsByCodeNotId', '认证终端', b'1', b'1', '认证终端 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945089, 'UserInfoController#existsEmail', '邮箱是否被使用', 'GET', '/user/existsEmail', '用户管理', b'1', b'1', '用户管理 邮箱是否被使用', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945090, 'WecomRobotConfigController#existsByCode', '编码是否被使用', 'GET', '/wecom/robot/config/existsByCode', '企业微信机器人配置', b'1', b'1', '企业微信机器人配置 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945091, 'ClientNoticeReceiveController#pay', '支付消息(map接收)', 'POST', '/demo/callback/pay', '回调测试', b'1', b'1', '回调测试 支付消息(map接收)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945092, 'RoleMenuController#findTreeByRole', '获取当前角色下可见的菜单和权限码树(分配时用)', 'GET', '/role/menu/findTreeByRole', '角色菜单权限关系', b'1', b'1', '角色菜单权限关系 获取当前角色下可见的菜单和权限码树(分配时用)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945093, 'MessageTemplateController#add', '添加', 'POST', '/message/template/add', '消息模板', b'1', b'1', '消息模板 添加', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945094, 'WalletConfigController#getConfig', '获取配置', 'GET', '/wallet/config/getConfig', '钱包配置', b'1', b'1', '钱包配置 获取配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945095, 'WechatNoticeConfigController#getConfig', '获取微信消息通知配置', 'GET', '/wx/notice/getConfig', '微信消息通知配置', b'1', b'1', '微信消息通知配置 获取微信消息通知配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945096, 'DictionaryController#existsByCode', '编码是否被使用', 'GET', '/dict/existsByCode', '字典', b'1', b'1', '字典 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945097, 'RoleMenuController#findMenuIds', '获取权限菜单id列表,不包含资源权限', 'GET', '/role/menu/findMenuIds', '角色菜单权限关系', b'1', b'1', '角色菜单权限关系 获取权限菜单id列表,不包含资源权限', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945098, 'PayRepairRecordController#findById', '查询单条', 'GET', '/record/repair/findById', '支付修复记录', b'1', b'1', '支付修复记录 查询单条', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945099, 'RoleController#delete', '删除角色', 'DELETE', '/role/delete', '角色管理', b'1', b'1', '角色管理 删除角色', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945100, 'AllocationGroupController#page', '分页', 'GET', '/allocation/group/page', '分账组', b'1', b'1', '分账组 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945101, 'UserDeptController#findIdsByUser', '根据用户ID获取到部门id集合', 'GET', '/user/dept/findIdsByUser', '用户部门关联关系', b'1', b'1', '用户部门关联关系 根据用户ID获取到部门id集合', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945102, 'SwaggerWelcomeWebMvc#redirectToUi', 'redirectToUi', 'GET', '/swagger-ui.html', 'SwaggerWelcomeWebMvc', b'1', b'1', 'SwaggerWelcomeWebMvc redirectToUi', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945103, 'RoleController#update', '修改角色(返回角色对象)', 'POST', '/role/update', '角色管理', b'1', b'1', '角色管理 修改角色(返回角色对象)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945104, 'UniPayAssistController#getWxAuthUrl', '获取微信OAuth2授权链接', 'POST', '/unipay/assist/getWxAuthUrl', '支付支撑接口', b'1', b'1', '支付支撑接口 获取微信OAuth2授权链接', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945105, 'PermMenuController#resourceList', '资源(权限码)列表', 'GET', '/perm/menu/resourceList', '菜单和权限码', b'1', b'1', '菜单和权限码 资源(权限码)列表', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945106, 'PasswordSecurityConfigController#addOrUpdate', '新增或添加密码安全配置', 'POST', '/security/password/addOrUpdate', '密码安全策略', b'1', b'1', '密码安全策略 新增或添加密码安全配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945107, 'PayGatewayNoticeController#aliPayNotice', '支付宝消息通知', 'POST', '/gateway/notice/alipay', '三方支付网关消息通知', b'1', b'1', '三方支付网关消息通知 支付宝消息通知', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-06-03 14:53:25.722000', b'1', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945108, 'SmsTemplateController#findAll', '查询所有', 'GET', '/sms/template/findAll', '短信模板配置', b'1', b'1', '短信模板配置 查询所有', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945109, 'PasswordSecurityConfigController#check', '登录后检查密码相关的情况', 'GET', '/security/password/check', '密码安全策略', b'1', b'1', '密码安全策略 登录后检查密码相关的情况', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945110, 'SystemMonitorController#getRedisInfo', '获取Redis信息', 'GET', '/monitor/system/getRedisInfo', '系统信息监控', b'1', b'1', '系统信息监控 获取Redis信息', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945111, 'AllocationGroupController#delete', '删除', 'POST', '/allocation/group/delete', '分账组', b'1', b'1', '分账组 删除', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945112, 'SystemMonitorController#getSystemInfo', '获取系统消息', 'GET', '/monitor/system/getSystemInfo', '系统信息监控', b'1', b'1', '系统信息监控 获取系统消息', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945113, 'MailConfigController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/mail/config/existsByCodeNotId', '邮箱配置', b'1', b'1', '邮箱配置 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945114, 'AllocationReceiverController#add', '新增', 'POST', '/allocation/receiver/add', '分账接收方控制器', b'1', b'1', '分账接收方控制器 新增', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945115, 'AllocationOrderController#findById', '查询详情', 'GET', '/order/allocation/findById', '分账订单控制器', b'1', b'1', '分账订单控制器 查询详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945116, 'AllocationOrderController#findDetailById', '查询明细详情', 'GET', '/order/allocation/detail/findById', '分账订单控制器', b'1', b'1', '分账订单控制器 查询明细详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945117, 'SystemParamController#existsByKeyNotId', '判断编码是否存在(不包含自己)', 'GET', '/system/param/existsByKeyNotId', '系统参数', b'1', b'1', '系统参数 判断编码是否存在(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945118, 'WeChatMediaController#pageNews', '图文素材分页', 'GET', '/wechat/media/pageNews', '微信素材管理', b'1', b'1', '微信素材管理 图文素材分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945119, 'RoleController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/role/existsByCodeNotId', '角色管理', b'1', b'1', '角色管理 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945120, 'DataRoleController#page', '分页', 'GET', '/data/role/page', '数据角色配置', b'1', b'1', '数据角色配置 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945121, 'OperateLogController#deleteByDay', '清除指定天数的日志', 'DELETE', '/log/operate/deleteByDay', '操作日志', b'1', b'1', '操作日志 清除指定天数的日志', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945122, 'OnlineUserController#getSessionByUserId', '获取用户链接信息', 'GET', '/online/user/getSessionByUserId', '在线用户', b'1', b'1', '在线用户 获取用户链接信息', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945123, 'LoginTypeController#add', '添加登录方式', 'POST', '/loginType/add', '登录方式管理', b'1', b'1', '登录方式管理 添加登录方式', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945124, 'UnionPayConfigController#getConfig', '获取配置', 'GET', '/union/pay/config/getConfig', '云闪付配置', b'1', b'1', '云闪付配置 获取配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945125, 'WeChatMenuController#delete', '删除', 'DELETE', '/wechat/menu/delete', '微信菜单管理', b'1', b'1', '微信菜单管理 删除', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945126, 'BaseApiController#authEcho', '回声测试(必须要进行登录)', 'GET', '/auth/echo', '系统基础接口', b'1', b'1', '系统基础接口 回声测试(必须要进行登录)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945127, 'WeChatQrLoginController#applyQrCode', '申请登录用QR码', 'POST', '/token/wechat/qr/applyQrCode', '微信扫码登录', b'1', b'1', '微信扫码登录 申请登录用QR码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945128, 'FIleUpLoadController#delete', '删除', 'DELETE', '/file/delete', '文件上传', b'1', b'1', '文件上传 删除', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945129, 'CockpitReportController#getRefundChannelInfo', '显示通道退款订单金额和订单数', 'GET', '/report/cockpit/getRefundChannelInfo', '驾驶舱接口', b'1', b'1', '驾驶舱接口 显示通道退款订单金额和订单数', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945130, 'RoleController#add', '添加角色(返回角色对象)', 'POST', '/role/add', '角色管理', b'1', b'1', '角色管理 添加角色(返回角色对象)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945131, 'ClientController#add', '添加', 'POST', '/client/add', '认证终端', b'1', b'1', '认证终端 添加', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945132, 'UserInfoController#forgetPasswordByPhone', '通过手机号重置密码', 'POST', '/user/forgetPasswordByPhone', '用户管理', b'1', b'1', '用户管理 通过手机号重置密码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945133, 'RolePathController#findPathsByRole', '获取当前用户角色下可见的请求权限列表(分配时用)', 'GET', '/role/path/findPathsByRole', '角色请求权限消息关系', b'1', b'1', '角色请求权限消息关系 获取当前用户角色下可见的请求权限列表(分配时用)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945134, 'WeChatMenuController#findAll', '查询所有', 'GET', '/wechat/menu/findAll', '微信菜单管理', b'1', b'1', '微信菜单管理 查询所有', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945135, 'ClientController#findAll', '查询所有', 'GET', '/client/findAll', '认证终端', b'1', b'1', '认证终端 查询所有', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945136, 'RefundOrderController#findExtraById', '查询扩展信息', 'GET', '/order/refund/findExtraById', '支付退款控制器', b'1', b'1', '支付退款控制器 查询扩展信息', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945137, 'UserDataRoleController#saveAssignBatch', '给用户分配权限(批量)', 'POST', '/user/data/role/saveAssignBatch', '用户数据角色配置', b'1', b'1', '用户数据角色配置 给用户分配权限(批量)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945138, 'LoginLogController#page', '分页', 'GET', '/log/login/page', '登录日志', b'1', b'1', '登录日志 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945139, 'FIleUpLoadController#findById', '获取单条详情', 'GET', '/file/findById', '文件上传', b'1', b'1', '文件上传 获取单条详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945140, 'MessageTemplateController#findById', '获取详情', 'GET', '/message/template/findById', '消息模板', b'1', b'1', '消息模板 获取详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945141, 'DataRoleController#saveUserAssign', '保存数据角色关联用户权限', 'POST', '/data/role/saveUserAssign', '数据角色配置', b'1', b'1', '数据角色配置 保存数据角色关联用户权限', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945142, 'ThirdLoginController#callback', '扫码后回调', 'GET', '/auth/third/callback/{loginType}', '三方登录', b'1', b'1', '三方登录 扫码后回调', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945143, 'SmsChannelConfigController#findByCode', '通过Code查询', 'GET', '/sms/config/findByCode', '短信渠道配置', b'1', b'1', '短信渠道配置 通过Code查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945144, 'PayApiConfigController#findById', '根据ID获取', 'GET', '/pay/api/config/findById', '支付接口配置', b'1', b'1', '支付接口配置 根据ID获取', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945145, 'DataVersionLogController#findById', '获取', 'GET', '/log/dataVersion/findById', '数据版本日志', b'1', b'1', '数据版本日志 获取', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945146, 'PermPathController#update', '更新权限', 'POST', '/perm/path/update', '请求权限管理', b'1', b'1', '请求权限管理 更新权限', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945147, 'MailConfigController#setUpActivity', '设置启用的邮箱配置', 'POST', '/mail/config/setUpActivity', '邮箱配置', b'1', b'1', '邮箱配置 设置启用的邮箱配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945148, 'SmsTemplateController#findById', '通过ID查询', 'GET', '/sms/template/findById', '短信模板配置', b'1', b'1', '短信模板配置 通过ID查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945149, 'DingRobotConfigController#add', '新增机器人配置', 'POST', '/ding/robot/config/add', '钉钉机器人配置', b'1', b'1', '钉钉机器人配置 新增机器人配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945150, 'PayCloseRecordController#findById', '查询单条', 'GET', '/record/close/findById', '支付订单关闭记录', b'1', b'1', '支付订单关闭记录 查询单条', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945151, 'DataVersionLogController#page', '分页', 'GET', '/log/dataVersion/page', '数据版本日志', b'1', b'1', '数据版本日志 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945152, 'OpenApiWebMvcResource#openapiJson', 'openapiJson', 'GET', '/v3/api-docs', 'OpenApiWebMvcResource', b'1', b'1', 'OpenApiWebMvcResource openapiJson', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945153, 'PermPathController#findAll', '权限列表', 'GET', '/perm/path/findAll', '请求权限管理', b'1', b'1', '请求权限管理 权限列表', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945154, 'UserAdminController#add', '添加用户', 'POST', '/user/admin/add', '管理用户(管理员级别)', b'1', b'1', '管理用户(管理员级别) 添加用户', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945155, 'PayCallbackRecordController#findById', '查询单条', 'GET', '/record/callback/findById', '支付回调信息记录', b'1', b'1', '支付回调信息记录 查询单条', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945156, 'WecomRobotConfigController#page', '分页', 'GET', '/wecom/robot/config/page', '企业微信机器人配置', b'1', b'1', '企业微信机器人配置 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945157, 'WeChatMenuController#update', '修改', 'POST', '/wechat/menu/update', '微信菜单管理', b'1', b'1', '微信菜单管理 修改', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945158, 'TestController#lock2', '锁测试2', 'GET', '/test/lock2', '测试', b'1', b'1', '测试 锁测试2', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945159, 'DataRoleController#findAll', '查询全部', 'GET', '/data/role/findAll', '数据角色配置', b'1', b'1', '数据角色配置 查询全部', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945160, 'UserInfoController#forgetPasswordByEmail', '通过邮箱重置密码', 'POST', '/user/forgetPasswordByEmail', '用户管理', b'1', b'1', '用户管理 通过邮箱重置密码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945161, 'RefundOrderController#page', '分页查询', 'GET', '/order/refund/page', '支付退款控制器', b'1', b'1', '支付退款控制器 分页查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945162, 'AllocationOrderController#finish', '分账完结', 'POST', '/order/allocation/finish', '分账订单控制器', b'1', b'1', '分账订单控制器 分账完结', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945163, 'PayApiConfigController#findAll', '获取全部', 'GET', '/pay/api/config/findAll', '支付接口配置', b'1', b'1', '支付接口配置 获取全部', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945164, 'ClientNoticeTaskController#resetSend', '重新发送消息通知', 'POST', '/task/notice/resetSend', '客户系统通知任务', b'1', b'1', '客户系统通知任务 重新发送消息通知', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945165, 'PlatformConfigController#update', '更新平台配置项', 'POST', '/platform/config/update', '支付平台配置控制器', b'1', b'1', '支付平台配置控制器 更新平台配置项', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945166, 'UserRoleController#saveAssign', '给用户分配角色', 'POST', '/user/role/saveAssign', '用户角色管理', b'1', b'1', '用户角色管理 给用户分配角色', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945167, 'UniPayController#close', '支付关闭接口', 'POST', '/unipay/close', '统一支付接口', b'1', b'1', '统一支付接口 支付关闭接口', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945168, 'UserDataRoleController#findDataRoleIdByUser', '根据用户ID获取到数据角色Id', 'GET', '/user/data/role/findDataRoleIdByUser', '用户数据角色配置', b'1', b'1', '用户数据角色配置 根据用户ID获取到数据角色Id', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945169, 'MailConfigController#existsByCode', '编码是否被使用', 'GET', '/mail/config/existsByCode', '邮箱配置', b'1', b'1', '邮箱配置 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945170, 'AllocationGroupController#updateRate', '修改分账比例', 'POST', '/allocation/group/updateRate', '分账组', b'1', b'1', '分账组 修改分账比例', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945171, 'WeChatPayConfigController#getConfig', '获取配置', 'GET', '/wechat/pay/config/getConfig', '微信支付配置', b'1', b'1', '微信支付配置 获取配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945172, 'AllocationReceiverController#findChannels', '获取可以分账的通道', 'GET', '/allocation/receiver/findChannels', '分账接收方控制器', b'1', b'1', '分账接收方控制器 获取可以分账的通道', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945173, 'UserAssistController#validateCurrentChangeEmailCaptcha', '验证当前用户发送更改邮箱验证码', 'GET', '/user/validateCurrentChangeEmailCaptcha', '用户操作支撑服务', b'1', b'1', '用户操作支撑服务 验证当前用户发送更改邮箱验证码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945174, 'UserRoleController#saveAssignBatch', '给用户分配角色(批量)', 'POST', '/user/role/saveAssignBatch', '用户角色管理', b'1', b'1', '用户角色管理 给用户分配角色(批量)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945175, 'ClientNoticeTaskController#page', '分页查询', 'GET', '/task/notice/page', '客户系统通知任务', b'1', b'1', '客户系统通知任务 分页查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945176, 'UserAdminController#getByEmail', '根据邮箱查询用户', 'GET', '/user/admin/getByEmail', '管理用户(管理员级别)', b'1', b'1', '管理用户(管理员级别) 根据邮箱查询用户', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945177, 'RefundOrderController#syncByRefundNo', '退款同步', 'POST', '/order/refund/syncByRefundNo', '支付退款控制器', b'1', b'1', '支付退款控制器 退款同步', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945178, 'DeptController#delete', '普通删除', 'DELETE', '/dept/delete', '部门管理', b'1', b'1', '部门管理 普通删除', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945179, 'SystemParamController#page', '分页', 'GET', '/system/param/page', '系统参数', b'1', b'1', '系统参数 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945180, 'DingRobotConfigController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/ding/robot/config/existsByCodeNotId', '钉钉机器人配置', b'1', b'1', '钉钉机器人配置 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945181, 'AllocationReceiverController#update', '修改', 'POST', '/allocation/receiver/update', '分账接收方控制器', b'1', b'1', '分账接收方控制器 修改', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-06-03 14:53:25.722000', b'1', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945182, 'AggregateController#qrPayPage', '聚合支付扫码跳转中间页', 'GET', '/demo/aggregate/qrPayPage/{code}', '聚合支付', b'1', b'1', '聚合支付 聚合支付扫码跳转中间页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945183, 'UserAdminController#getByPhone', '根据手机号查询用户', 'GET', '/user/admin/getByPhone', '管理用户(管理员级别)', b'1', b'1', '管理用户(管理员级别) 根据手机号查询用户', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945184, 'AllocationOrderController#findDetailsByOrderId', '分账明细列表', 'GET', '/order/allocation/detail/findAll', '分账订单控制器', b'1', b'1', '分账订单控制器 分账明细列表', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945185, 'LoginLogController#findById', '获取', 'GET', '/log/login/findById', '登录日志', b'1', b'1', '登录日志 获取', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945186, 'WalletController#existsByUserId', '判断用户是否开通了钱包', 'GET', '/wallet/existsByUserId', '钱包管理', b'1', b'1', '钱包管理 判断用户是否开通了钱包', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945187, 'MailConfigController#add', '增加新邮箱配置', 'POST', '/mail/config/add', '邮箱配置', b'1', b'1', '邮箱配置 增加新邮箱配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945188, 'RoleController#existsByName', '名称是否被使用(不包含自己)', 'GET', '/role/existsByNameNotId', '角色管理', b'1', b'1', '角色管理 名称是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945189, 'PayMethodInfoController#findById', '根据ID获取', 'GET', '/pay/method/info/findById', '支付方式管理', b'1', b'1', '支付方式管理 根据ID获取', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945190, 'UserAdminController#restartPasswordBatch', '批量重置密码', 'POST', '/user/admin/restartPasswordBatch', '管理用户(管理员级别)', b'1', b'1', '管理用户(管理员级别) 批量重置密码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945191, 'DictionaryItemController#existsByCode', '编码是否被使用', 'GET', '/dict/item/existsByCode', '字典项', b'1', b'1', '字典项 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945192, 'AllocationReceiverController#delete', '删除', 'POST', '/allocation/receiver/delete', '分账接收方控制器', b'1', b'1', '分账接收方控制器 删除', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945193, 'UserDeptController#findAllByUser', '根据用户ID获取到部门集合', 'GET', '/user/dept/findAllByUser', '用户部门关联关系', b'1', b'1', '用户部门关联关系 根据用户ID获取到部门集合', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945194, 'ClientNoticeTaskController#findById', '查询单条', 'GET', '/task/notice/findById', '客户系统通知任务', b'1', b'1', '客户系统通知任务 查询单条', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945195, 'UserThirdController#getThirdBindInfo', '获取绑定详情', 'GET', '/user/third/getThirdBindInfo', '用户三方登录管理', b'1', b'1', '用户三方登录管理 获取绑定详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945196, 'OperateLogController#findById', '获取', 'GET', '/log/operate/findById', '操作日志', b'1', b'1', '操作日志 获取', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945197, 'MailConfigController#findById', '通过 id 获取指定邮箱配置', 'GET', '/mail/config/findById', '邮箱配置', b'1', b'1', '邮箱配置 通过 id 获取指定邮箱配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945198, 'AggregateController#getWxJsapiPay', '获取微信支付调起Jsapi支付的信息', 'POST', '/demo/aggregate/getWxJsapiPay', '聚合支付', b'1', b'1', '聚合支付 获取微信支付调起Jsapi支付的信息', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945199, 'PermPathController#delete', '删除权限', 'DELETE', '/perm/path/delete', '请求权限管理', b'1', b'1', '请求权限管理 删除权限', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945200, 'WeChatPayConfigController#findPayWays', '微信支持支付方式', 'GET', '/wechat/pay/config/findPayWays', '微信支付配置', b'1', b'1', '微信支付配置 微信支持支付方式', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945201, 'UserAssistController#validatePhoneChangeCaptcha', '验证改/绑定手机验证码', 'GET', '/user/validatePhoneChangeCaptcha', '用户操作支撑服务', b'1', b'1', '用户操作支撑服务 验证改/绑定手机验证码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945202, 'UserAssistController#validateEmailForgetCaptcha', '验证找回密码邮箱验证码', 'GET', '/user/validateEmailForgetCaptcha', '用户操作支撑服务', b'1', b'1', '用户操作支撑服务 验证找回密码邮箱验证码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945203, 'ReconcileOrderController#downOriginal', '下载原始交易对账单文件', 'GET', '/order/reconcile/downOriginal', '对账控制器', b'1', b'1', '对账控制器 下载原始交易对账单文件', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945204, 'SmsChannelConfigController#update', '修改', 'POST', '/sms/config/update', '短信渠道配置', b'1', b'1', '短信渠道配置 修改', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945205, 'LoginTypeController#delete', '删除登录方式', 'DELETE', '/loginType/delete', '登录方式管理', b'1', b'1', '登录方式管理 删除登录方式', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945206, 'DeptController#update', '更新', 'POST', '/dept/update', '部门管理', b'1', b'1', '部门管理 更新', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945207, 'WeChatTemplateController#sync', '同步消息模板数据', 'POST', '/wechat/template/sync', '微信模板消息', b'1', b'1', '微信模板消息 同步消息模板数据', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945208, 'UserDeptController#saveAssignBatch', '给用户分配部门(批量)', 'POST', '/user/dept/saveAssignBatch', '用户部门关联关系', b'1', b'1', '用户部门关联关系 给用户分配部门(批量)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945209, 'UserAdminController#unlockBatch', '批量解锁用户', 'POST', '/user/admin/unlockBatch', '管理用户(管理员级别)', b'1', b'1', '管理用户(管理员级别) 批量解锁用户', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945210, 'WecomRobotConfigController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/wecom/robot/config/existsByCodeNotId', '企业微信机器人配置', b'1', b'1', '企业微信机器人配置 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945211, 'WeChatPayConfigController#update', '更新', 'POST', '/wechat/pay/config/update', '微信支付配置', b'1', b'1', '微信支付配置 更新', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945212, 'UserThirdController#findById', '获取详情', 'POST', '/user/third/findById', '用户三方登录管理', b'1', b'1', '用户三方登录管理 获取详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945213, 'RefundOrderController#resetRefund', '重新发起退款', 'POST', '/order/refund/resetRefund', '支付退款控制器', b'1', b'1', '支付退款控制器 重新发起退款', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945214, 'LoginTypeController#update', '修改登录方式(返回登录方式对象)', 'POST', '/loginType/update', '登录方式管理', b'1', b'1', '登录方式管理 修改登录方式(返回登录方式对象)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945215, 'ReconcileOrderController#findDetailById', '对账明细详情', 'GET', '/order/reconcile/detail/findById', '对账控制器', b'1', b'1', '对账控制器 对账明细详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945216, 'QuartzJobController#execute', '立即执行', 'POST', '/quartz/execute', '定时任务', b'1', b'1', '定时任务 立即执行', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945217, 'QuartzJobController#start', '启动', 'POST', '/quartz/start', '定时任务', b'1', b'1', '定时任务 启动', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945218, 'DictionaryController#findAll', '查询全部', 'GET', '/dict/findAll', '字典', b'1', b'1', '字典 查询全部', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945219, 'WeChatMediaController#deleteFile', '删除素材', 'DELETE', '/wechat/media/deleteFile', '微信素材管理', b'1', b'1', '微信素材管理 删除素材', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945220, 'UniPayController#allocationFinish', '分账完结接口', 'POST', '/unipay/allocationFinish', '统一支付接口', b'1', b'1', '统一支付接口 分账完结接口', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-06-03 14:53:25.716000', b'1', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945221, 'DataRoleController#update', '更新', 'POST', '/data/role/update', '数据角色配置', b'1', b'1', '数据角色配置 更新', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945222, 'UnionPayConfigController#toBase64', '读取证书文件内容', 'POST', '/union/pay/config/toBase64', '云闪付配置', b'1', b'1', '云闪付配置 读取证书文件内容', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945223, 'LoginTypeController#findAll', '查询所有的登录方式', 'GET', '/loginType/findAll', '登录方式管理', b'1', b'1', '登录方式管理 查询所有的登录方式', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945224, 'UserInfoController#findUsernameByPhoneCaptcha', '根据手机验证码查询账号', 'GET', '/user/findUsernameByPhoneCaptcha', '用户管理', b'1', b'1', '用户管理 根据手机验证码查询账号', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945225, 'UserAssistController#sendCurrentPhoneChangeCaptcha', '给当前用户发送更改手机号验证码', 'POST', '/user/sendCurrentPhoneChangeCaptcha', '用户操作支撑服务', b'1', b'1', '用户操作支撑服务 给当前用户发送更改手机号验证码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945226, 'DeptController#add', '添加', 'POST', '/dept/add', '部门管理', b'1', b'1', '部门管理 添加', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945227, 'SystemParamController#findById', '获取单条', 'GET', '/system/param/findById', '系统参数', b'1', b'1', '系统参数 获取单条', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945228, 'QuartzJobLogController#findById', '单条', 'GET', '/quartz/log/findById', '定时任务执行日志', b'1', b'1', '定时任务执行日志 单条', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945229, 'RoleController#existsByCode', '编码是否被使用', 'GET', '/role/existsByCode', '角色管理', b'1', b'1', '角色管理 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945230, 'CockpitReportController#getPayChannelInfo', '显示通道支付订单金额和订单数', 'GET', '/report/cockpit/getPayChannelInfo', '驾驶舱接口', b'1', b'1', '驾驶舱接口 显示通道支付订单金额和订单数', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945231, 'AllocationReceiverController#findReceiverTypeByChannel', '根据通道获取分账接收方类型', 'GET', '/allocation/receiver/findReceiverTypeByChannel', '分账接收方控制器', b'1', b'1', '分账接收方控制器 根据通道获取分账接收方类型', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945232, 'UserAdminController#unlock', '解锁用户', 'POST', '/user/admin/unlock', '管理用户(管理员级别)', b'1', b'1', '管理用户(管理员级别) 解锁用户', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945233, 'WecomRobotConfigController#add', '新增机器人配置', 'POST', '/wecom/robot/config/add', '企业微信机器人配置', b'1', b'1', '企业微信机器人配置 新增机器人配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945234, 'AllocationGroupController#setDefault', '设置默认分账组', 'POST', '/allocation/group/setDefault', '分账组', b'1', b'1', '分账组 设置默认分账组', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945235, 'UserAdminController#findById', '根据用户id查询用户', 'GET', '/user/admin/findById', '管理用户(管理员级别)', b'1', b'1', '管理用户(管理员级别) 根据用户id查询用户', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945236, 'PayRepairRecordController#page', '分页查询', 'GET', '/record/repair/page', '支付修复记录', b'1', b'1', '支付修复记录 分页查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945237, 'AllocationOrderController#page', '分页', 'GET', '/order/allocation/page', '分账订单控制器', b'1', b'1', '分账订单控制器 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945238, 'PasswordSecurityConfigController#isRecentlyUsed', '查看要修改的密码是否重复', 'GET', '/security/password/isRecentlyUsed', '密码安全策略', b'1', b'1', '密码安全策略 查看要修改的密码是否重复', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945239, 'WalletController#deduct', '扣减', 'POST', '/wallet/deduct', '钱包管理', b'1', b'1', '钱包管理 扣减', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945240, 'FIleUpLoadController#getFilePreviewUrlPrefix', '获取文件预览地址前缀', 'GET', '/file/getFilePreviewUrlPrefix', '文件上传', b'1', b'1', '文件上传 获取文件预览地址前缀', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945241, 'PermMenuController#existsByPermCode', '编码是否被使用(不包含自己)', 'GET', '/perm/menu/existsByPermCodeNotId', '菜单和权限码', b'1', b'1', '菜单和权限码 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945242, 'WeChatTemplateController#update', '修改', 'POST', '/wechat/template/update', '微信模板消息', b'1', b'1', '微信模板消息 修改', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945243, 'CashierController#queryPayOrder', '查询支付订单', 'GET', '/demo/cashier/queryPayOrderSuccess', '结算台演示', b'1', b'1', '结算台演示 查询支付订单', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945244, 'ReconcileOrderController#downOriginal2Csv', '下载原始交易对账单记录(CSV格式)', 'GET', '/order/reconcile/downOriginal2Csv', '对账控制器', b'1', b'1', '对账控制器 下载原始交易对账单记录(CSV格式)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945245, 'SmsChannelConfigController#findAll', '查询所有', 'GET', '/sms/config/findAll', '短信渠道配置', b'1', b'1', '短信渠道配置 查询所有', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945246, 'RoleMenuController#getPermissions', '获取菜单和权限码(根据用户进行筛选)', 'GET', '/role/menu/getPermissions', '角色菜单权限关系', b'1', b'1', '角色菜单权限关系 获取菜单和权限码(根据用户进行筛选)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945247, 'UserRoleController#findRoleIdsByUser', '根据用户ID获取到角色id集合', 'GET', '/user/role/findRoleIdsByUser', '用户角色管理', b'1', b'1', '用户角色管理 根据用户ID获取到角色id集合', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945248, 'AllocationGroupController#update', '修改', 'POST', '/allocation/group/update', '分账组', b'1', b'1', '分账组 修改', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945249, 'FIleUpLoadController#preview', '预览文件(流量会经过后端)', 'GET', '/file/preview/{id}', '文件上传', b'1', b'1', '文件上传 预览文件(流量会经过后端)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945250, 'QuartzJobController#judgeJobClass', '判断是否是定时任务类', 'GET', '/quartz/judgeJobClass', '定时任务', b'1', b'1', '定时任务 判断是否是定时任务类', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945251, 'PayOrderController#getTotalAmount', '查询金额汇总', 'GET', '/order/pay/getTotalAmount', '支付订单控制器', b'1', b'1', '支付订单控制器 查询金额汇总', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945252, 'UserAssistController#sendCurrentEmailChangeCaptcha', '给当前用户发送更改邮箱验证码', 'POST', '/user/sendCurrentEmailChangeCaptcha', '用户操作支撑服务', b'1', b'1', '用户操作支撑服务 给当前用户发送更改邮箱验证码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945253, 'WecomRobotConfigController#update', '修改机器人配置', 'POST', '/wecom/robot/config/update', '企业微信机器人配置', b'1', b'1', '企业微信机器人配置 修改机器人配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945254, 'UserThirdController#bind', '绑定第三方账号', 'POST', '/user/third/bind', '用户三方登录管理', b'1', b'1', '用户三方登录管理 绑定第三方账号', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945255, 'RoleController#tree', '角色树', 'GET', '/role/tree', '角色管理', b'1', b'1', '角色管理 角色树', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945256, 'UniPayController#pay', '统一支付接口', 'POST', '/unipay/pay', '统一支付接口', b'1', b'1', '统一支付接口 统一支付接口', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945257, 'LoginTypeController#existsByCode', '编码是否被使用', 'GET', '/loginType/existsByCode', '登录方式管理', b'1', b'1', '登录方式管理 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945258, 'AllocationOrderController#sync', '同步分账结果', 'POST', '/order/allocation/sync', '分账订单控制器', b'1', b'1', '分账订单控制器 同步分账结果', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945259, 'UserAdminController#page', '分页', 'GET', '/user/admin/page', '管理用户(管理员级别)', b'1', b'1', '管理用户(管理员级别) 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945260, 'RolePathController#findIdsByRole', '根据角色id获取关联权限id', 'GET', '/role/path/findIdsByRole', '角色请求权限消息关系', b'1', b'1', '角色请求权限消息关系 根据角色id获取关联权限id', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945261, 'MultipleOpenApiWebMvcResource#openapiJson', 'openapiJson', 'GET', '/v3/api-docs/{group}', 'MultipleOpenApiWebMvcResource', b'1', b'1', 'MultipleOpenApiWebMvcResource openapiJson', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945262, 'UserThirdController#page', '分页', 'GET', '/user/third/page', '用户三方登录管理', b'1', b'1', '用户三方登录管理 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945263, 'RoleController#findById', '通过ID查询角色', 'GET', '/role/findById', '角色管理', b'1', b'1', '角色管理 通过ID查询角色', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945264, 'ReconcileOrderController#create', '手动创建对账订单', 'POST', '/order/reconcile/create', '对账控制器', b'1', b'1', '对账控制器 手动创建对账订单', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945265, 'PayApiConfigController#update', '更新', 'POST', '/pay/api/config/update', '支付接口配置', b'1', b'1', '支付接口配置 更新', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945266, 'PayOrderController#page', '分页查询', 'GET', '/order/pay/page', '支付订单控制器', b'1', b'1', '支付订单控制器 分页查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945267, 'UserInfoController#existsUsername', '账号是否被使用(不包含自己)', 'GET', '/user/existsUsernameNotId', '用户管理', b'1', b'1', '用户管理 账号是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945268, 'UserDeptController#saveAssign', '给用户分配部门', 'POST', '/user/dept/saveAssign', '用户部门关联关系', b'1', b'1', '用户部门关联关系 给用户分配部门', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945269, 'CockpitReportController#getPayOrderCount', '支付订单数量', 'GET', '/report/cockpit/getPayOrderCount', '驾驶舱接口', b'1', b'1', '驾驶舱接口 支付订单数量', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945270, 'UserAssistController#sendEmailForgetCaptcha', '发送找回密码邮箱验证码', 'POST', '/user/sendEmailForgetCaptcha', '用户操作支撑服务', b'1', b'1', '用户操作支撑服务 发送找回密码邮箱验证码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945271, 'WecomRobotConfigController#findById', '获取详情', 'GET', '/wecom/robot/config/findById', '企业微信机器人配置', b'1', b'1', '企业微信机器人配置 获取详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945272, 'ClientNoticeTaskController#recordPage', '分页查询', 'GET', '/task/notice/record/page', '客户系统通知任务', b'1', b'1', '客户系统通知任务 分页查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945273, 'RefundOrderController#findById', '查询单条', 'GET', '/order/refund/findById', '支付退款控制器', b'1', b'1', '支付退款控制器 查询单条', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945274, 'UserDataRoleController#findDataRoleByUser', '根据用户ID获取到数据角色列表', 'GET', '/user/data/role/findDataRoleByUser', '用户数据角色配置', b'1', b'1', '用户数据角色配置 根据用户ID获取到数据角色列表', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945275, 'ChinaRegionController#findAllRegionByParentCode', '根据编码获取下一级行政区划的列表', 'GET', '/china/region/findAllRegionByParentCode', '中国行政区划', b'1', b'1', '中国行政区划 根据编码获取下一级行政区划的列表', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945276, 'DataRoleController#existsByName', '名称是否被使用', 'GET', '/data/role/existsByName', '数据角色配置', b'1', b'1', '数据角色配置 名称是否被使用', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945277, 'AllocationGroupController#create', '创建', 'POST', '/allocation/group/create', '分账组', b'1', b'1', '分账组 创建', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945278, 'UserAssistController#validatePhoneForgetCaptcha', '验证找回密码手机验证码', 'GET', '/user/validatePhoneForgetCaptcha', '用户操作支撑服务', b'1', b'1', '用户操作支撑服务 验证找回密码手机验证码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945279, 'PayChannelConfigController#update', '更新', 'POST', '/pay/channel/config/update', '支付通道信息', b'1', b'1', '支付通道信息 更新', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945280, 'DictionaryController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/dict/existsByCodeNotId', '字典', b'1', b'1', '字典 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945281, 'PermMenuController#menuTree', '获取菜单树', 'GET', '/perm/menu/menuTree', '菜单和权限码', b'1', b'1', '菜单和权限码 获取菜单树', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945282, 'DictionaryItemController#delete', '删除字典项', 'DELETE', '/dict/item/delete', '字典项', b'1', b'1', '字典项 删除字典项', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945283, 'DingRobotConfigController#existsByCode', '编码是否被使用', 'GET', '/ding/robot/config/existsByCode', '钉钉机器人配置', b'1', b'1', '钉钉机器人配置 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945284, 'SiteMessageController#countByReceiveNotRead', '获取未读的接收消息条数', 'GET', '/site/message/countByReceiveNotRead', '站内信', b'1', b'1', '站内信 获取未读的接收消息条数', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945285, 'WecomRobotConfigController#findAll', '查询全部', 'GET', '/wecom/robot/config/findAll', '企业微信机器人配置', b'1', b'1', '企业微信机器人配置 查询全部', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945286, 'PayReturnController#union', '云闪付同步通知', 'POST', '/return/pay/union', '支付同步通知', b'1', b'1', '支付同步通知 云闪付同步通知', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945287, 'UserAssistController#validateCurrentPhoneChangeCaptcha', '验证当前用户发送更改手机号验证码', 'GET', '/user/validateCurrentPhoneChangeCaptcha', '用户操作支撑服务', b'1', b'1', '用户操作支撑服务 验证当前用户发送更改手机号验证码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945288, 'WeChatTemplateController#page', '分页查询', 'GET', '/wechat/template/page', '微信模板消息', b'1', b'1', '微信模板消息 分页查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945289, 'SmsTemplateController#add', '添加', 'POST', '/sms/template/add', '短信模板配置', b'1', b'1', '短信模板配置 添加', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945290, 'PermPathController#batchUpdateEnable', '批量更新状态', 'POST', '/perm/path/batchUpdateEnable', '请求权限管理', b'1', b'1', '请求权限管理 批量更新状态', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945291, 'DingRobotConfigController#findAll', '查询全部', 'GET', '/ding/robot/config/findAll', '钉钉机器人配置', b'1', b'1', '钉钉机器人配置 查询全部', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945292, 'QuartzJobController#syncJobStatus', '同步定时任务状态', 'POST', '/quartz/syncJobStatus', '定时任务', b'1', b'1', '定时任务 同步定时任务状态', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945293, 'SiteMessageController#cancel', '撤回消息', 'POST', '/site/message/cancel', '站内信', b'1', b'1', '站内信 撤回消息', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945294, 'DictionaryItemController#findAll', '获取全部字典项', 'GET', '/dict/item/findAll', '字典项', b'1', b'1', '字典项 获取全部字典项', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945295, 'UserAssistController#validateEmailCaptcha', '验证更改/绑定邮箱验证码', 'GET', '/user/validateEmailChangeCaptcha', '用户操作支撑服务', b'1', b'1', '用户操作支撑服务 验证更改/绑定邮箱验证码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945296, 'PermMenuController#findById', '根据id查询', 'GET', '/perm/menu/findById', '菜单和权限码', b'1', b'1', '菜单和权限码 根据id查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945297, 'RoleMenuController#findPermissionIdsByRole', '获取当前角色下关联权限id集合(包含权限码和菜单)', 'GET', '/role/menu/findPermissionIdsByRole', '角色菜单权限关系', b'1', b'1', '角色菜单权限关系 获取当前角色下关联权限id集合(包含权限码和菜单)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945298, 'SwaggerConfigResource#openapiJson', 'openapiJson', 'GET', '/v3/api-docs/swagger-config', 'SwaggerConfigResource', b'1', b'1', 'SwaggerConfigResource openapiJson', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945299, 'UnionPayConfigController#update', '更新', 'POST', '/union/pay/config/update', '云闪付配置', b'1', b'1', '云闪付配置 更新', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945300, 'WecomRobotConfigController#delete', '删除', 'DELETE', '/wecom/robot/config/delete', '企业微信机器人配置', b'1', b'1', '企业微信机器人配置 删除', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945301, 'TokenEndpoint#login', '普通登录', 'POST', '/token/login', '认证相关', b'1', b'1', '认证相关 普通登录', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945302, 'RefundOrderController#refund', '手动发起退款', 'POST', '/order/refund/refund', '支付退款控制器', b'1', b'1', '支付退款控制器 手动发起退款', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945303, 'QuartzJobController#page', '分页', 'GET', '/quartz/page', '定时任务', b'1', b'1', '定时任务 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945304, 'CockpitReportController#getPayAmount', '支付金额(分)', 'GET', '/report/cockpit/getPayAmount', '驾驶舱接口', b'1', b'1', '驾驶舱接口 支付金额(分)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945305, 'SiteMessageController#saveOrUpdate', '保存站内信草稿', 'POST', '/site/message/saveOrUpdate', '站内信', b'1', b'1', '站内信 保存站内信草稿', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945306, 'UserAdminController#ban', '封禁用户', 'POST', '/user/admin/ban', '管理用户(管理员级别)', b'1', b'1', '管理用户(管理员级别) 封禁用户', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945307, 'MessageTemplateController#rendering', '渲染模板', 'POST', '/message/template/rendering', '消息模板', b'1', b'1', '消息模板 渲染模板', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945308, 'WalletController#create', '创建钱包', 'POST', '/wallet/create', '钱包管理', b'1', b'1', '钱包管理 创建钱包', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945309, 'PermPathController#syncSystem', '同步系统请求资源', 'POST', '/perm/path/syncSystem', '请求权限管理', b'1', b'1', '请求权限管理 同步系统请求资源', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945310, 'SystemParamController#existsByKey', '判断编码是否存在', 'GET', '/system/param/existsByKey', '系统参数', b'1', b'1', '系统参数 判断编码是否存在', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945311, 'BaseApiController#echo', '回声测试', 'GET', '/echo', '系统基础接口', b'1', b'1', '系统基础接口 回声测试', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945312, 'ReconcileOrderController#findDiffById', '对账差异详情', 'GET', '/order/reconcile/diff/findById', '对账控制器', b'1', b'1', '对账控制器 对账差异详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945313, 'PaySyncRecordController#page', '分页查询', 'GET', '/record/sync/page', '支付同步记录控制器', b'1', b'1', '支付同步记录控制器 分页查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1789978117570945314, 'CashierController#getWxAuthUrl', '获取微信授权链接', 'GET', '/demo/cashier/getWxAuthUrl', '结算台演示', b'1', b'1', '结算台演示 获取微信授权链接', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066176, 'PayNoticeReceiverController#wechatPayNotice', '微信消息通知', 'POST', '/callback/notice/wechat', '执法通道网关消息通知', b'1', b'1', '执法通道网关消息通知 微信消息通知', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066177, 'AllocationReceiverController#existsByReceiverNo', '编码是否存在', 'GET', '/allocation/receiver/existsByReceiverNo', '分账接收方控制器', b'1', b'1', '分账接收方控制器 编码是否存在', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066178, 'UniAllocationController#start', '发起分账接口', 'POST', '/unipay/allocation/start', '分账控制器', b'1', b'1', '分账控制器 发起分账接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066179, 'UniPayController#transfer', '统一转账接口', 'POST', '/unipay/transfer', '统一支付接口', b'1', b'1', '统一支付接口 统一转账接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066180, 'UniQueryController#transferOrder', '转账订单查询接口', 'POST', '/unipay/query/transferOrder', '统一查询接口', b'1', b'1', '统一查询接口 转账订单查询接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066181, 'AllocationGroupController#existsByGroupNo', '编码是否存在', 'GET', '/allocation/group/existsByGroupNo', '分账组', b'1', b'1', '分账组 编码是否存在', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066182, 'UniQueryController#queryPayOrder', '支付订单查询接口', 'POST', '/unipay/query/payOrder', '统一查询接口', b'1', b'1', '统一查询接口 支付订单查询接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066183, 'UniQueryController#queryAllocationOrder', '分账订单查询接口', 'POST', '/unipay/query/allocationOrder', '统一查询接口', b'1', b'1', '统一查询接口 分账订单查询接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066184, 'AllocationOrderController#findByAllocNo', '查询扩展信息', 'GET', '/order/allocation/findByAllocNo', '分账订单控制器', b'1', b'1', '分账订单控制器 查询扩展信息', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066185, 'UniAllocationController#receiverAdd', '分账接收方添加接口', 'POST', '/unipay/allocation/receiver/add', '分账控制器', b'1', b'1', '分账控制器 分账接收方添加接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066186, 'UniPaySyncController#allocation', '分账同步接口', 'POST', '/unipay/sync/allocation', '统一同步接口', b'1', b'1', '统一同步接口 分账同步接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066187, 'UniReconcileController#down', '下载指定日期的资金流水', 'POST', '/unipay/reconcile/pay', '对账接口处理器', b'1', b'1', '对账接口处理器 下载指定日期的资金流水', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066188, 'RefundOrderController#findByRefundNo', '查询退款订单详情', 'GET', '/order/refund/findByRefundNo', '支付退款控制器', b'1', b'1', '支付退款控制器 查询退款订单详情', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066189, 'TradeFlowRecordController#findById', '查询单条', 'GET', '/record/flow/findById', '交易流水记录控制器', b'1', b'1', '交易流水记录控制器 查询单条', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066190, 'ClientNoticeReceiveController#allocation', '分账消息(对象)', 'POST', '/demo/callback/allocationObject', '回调测试', b'1', b'1', '回调测试 分账消息(对象)', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066191, 'UniPaySyncController#pay', '支付同步接口', 'POST', '/unipay/sync/pay', '统一同步接口', b'1', b'1', '统一同步接口 支付同步接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066192, 'UniPaySyncController#refund', '退款同步接口', 'POST', '/unipay/sync/refund', '统一同步接口', b'1', b'1', '统一同步接口 退款同步接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066193, 'UniPaySyncController#transfer', '转账同步接口', 'POST', '/unipay/sync/transfer', '统一同步接口', b'1', b'1', '统一同步接口 转账同步接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066194, 'ClientNoticeReceiveController#allocation', '分账消息', 'POST', '/demo/callback/allocation', '回调测试', b'1', b'1', '回调测试 分账消息', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066195, 'UniQueryController#queryAllocReceive', '分账接收方查询接口', 'POST', '/unipay/query/allocationReceiver', '统一查询接口', b'1', b'1', '统一查询接口 分账接收方查询接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066196, 'UniAllocationController#finish', '分账完结接口', 'POST', '/unipay/allocation/finish', '分账控制器', b'1', b'1', '分账控制器 分账完结接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066197, 'PayNoticeReceiverController#aliPayNotice', '支付宝消息通知', 'POST', '/callback/notice/alipay', '执法通道网关消息通知', b'1', b'1', '执法通道网关消息通知 支付宝消息通知', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066198, 'UniQueryController#queryRefundOrder', '退款订单查询接口', 'POST', '/unipay/query/refundOrder', '统一查询接口', b'1', b'1', '统一查询接口 退款订单查询接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066199, 'TradeFlowRecordController#page', '分页查询', 'GET', '/record/flow/page', '交易流水记录控制器', b'1', b'1', '交易流水记录控制器 分页查询', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); +INSERT INTO `iam_perm_path` VALUES (1797521957446066200, 'UniAllocationController#receiverRemove', '分账接收方删除接口', 'POST', '/unipay/allocation/receiver/remove', '分账控制器', b'1', b'1', '分账控制器 分账接收方删除接口', 1399985191002447872, '2024-06-03 14:53:25.655000', 1399985191002447872, '2024-06-03 14:53:25.655000', b'0', 0); + +-- ---------------------------- +-- Table structure for iam_role +-- ---------------------------- +DROP TABLE IF EXISTS `iam_role`; +CREATE TABLE `iam_role` ( + `id` bigint(20) NOT NULL COMMENT '角色ID', + `code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '编码', + `pid` bigint(20) NULL DEFAULT NULL COMMENT '父ID', + `name` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '名称', + `internal` bit(1) NOT NULL COMMENT '是否系统内置', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '说明', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '版本', + `deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0:未删除。1:已删除', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '角色' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_role +-- ---------------------------- +INSERT INTO `iam_role` VALUES (1757297023118462976, 'daxpayAdmin', NULL, '支付网关管理员', b'0', '', 1399985191002447872, '2024-02-13 14:53:54', 1399985191002447872, '2024-02-13 14:53:54', 0, 0); +INSERT INTO `iam_role` VALUES (1757298887092326400, 'daxpayDemo', 1757297023118462976, '支付演示角色', b'0', '用于进行演示的角色, 没有修改和删除的权限', 1399985191002447872, '2024-02-13 15:01:18', 1399985191002447872, '2024-02-13 15:01:18', 0, 0); + +-- ---------------------------- +-- Table structure for iam_role_menu +-- ---------------------------- +DROP TABLE IF EXISTS `iam_role_menu`; +CREATE TABLE `iam_role_menu` ( + `id` bigint(20) NOT NULL, + `role_id` bigint(20) NOT NULL COMMENT '角色id', + `client_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '终端code', + `permission_id` bigint(20) NOT NULL COMMENT '菜单权限id', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色菜单权限表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_role_menu +-- ---------------------------- +INSERT INTO `iam_role_menu` VALUES (1757298674730520576, 1757297023118462976, 'dax-pay', 1744271715476684800); +INSERT INTO `iam_role_menu` VALUES (1757298674730520577, 1757297023118462976, 'dax-pay', 1744642856348520448); +INSERT INTO `iam_role_menu` VALUES (1757298674730520578, 1757297023118462976, 'dax-pay', 1745457623493496832); +INSERT INTO `iam_role_menu` VALUES (1757298674730520579, 1757297023118462976, 'dax-pay', 1745457746529210368); +INSERT INTO `iam_role_menu` VALUES (1757298674730520580, 1757297023118462976, 'dax-pay', 1749262518385082368); +INSERT INTO `iam_role_menu` VALUES (1757298674730520582, 1757297023118462976, 'dax-pay', 1744643265142165504); +INSERT INTO `iam_role_menu` VALUES (1757298674730520583, 1757297023118462976, 'dax-pay', 1745126072389963776); +INSERT INTO `iam_role_menu` VALUES (1757298674730520584, 1757297023118462976, 'dax-pay', 1745136155962347520); +INSERT INTO `iam_role_menu` VALUES (1757298674730520585, 1757297023118462976, 'dax-pay', 1745143528663781376); +INSERT INTO `iam_role_menu` VALUES (1757298674730520586, 1757297023118462976, 'dax-pay', 1745822093382230016); +INSERT INTO `iam_role_menu` VALUES (1757298674730520587, 1757297023118462976, 'dax-pay', 1744624886658318336); +INSERT INTO `iam_role_menu` VALUES (1757298674730520588, 1757297023118462976, 'dax-pay', 1744372631231995904); +INSERT INTO `iam_role_menu` VALUES (1757298674730520589, 1757297023118462976, 'dax-pay', 1744276101384880128); +INSERT INTO `iam_role_menu` VALUES (1757298674730520590, 1757297023118462976, 'dax-pay', 1746194891925561344); +INSERT INTO `iam_role_menu` VALUES (1757298924107059200, 1757298887092326400, 'dax-pay', 1744271715476684800); +INSERT INTO `iam_role_menu` VALUES (1757298924107059201, 1757298887092326400, 'dax-pay', 1746194891925561344); +INSERT INTO `iam_role_menu` VALUES (1757298924107059202, 1757298887092326400, 'dax-pay', 1744276101384880128); +INSERT INTO `iam_role_menu` VALUES (1757298924107059203, 1757298887092326400, 'dax-pay', 1744372631231995904); +INSERT INTO `iam_role_menu` VALUES (1757298924107059204, 1757298887092326400, 'dax-pay', 1744624886658318336); +INSERT INTO `iam_role_menu` VALUES (1757298924107059205, 1757298887092326400, 'dax-pay', 1745822093382230016); +INSERT INTO `iam_role_menu` VALUES (1757298924107059206, 1757298887092326400, 'dax-pay', 1744642856348520448); +INSERT INTO `iam_role_menu` VALUES (1757298924107059207, 1757298887092326400, 'dax-pay', 1745457623493496832); +INSERT INTO `iam_role_menu` VALUES (1757298924107059208, 1757298887092326400, 'dax-pay', 1745457746529210368); +INSERT INTO `iam_role_menu` VALUES (1757298924107059209, 1757298887092326400, 'dax-pay', 1749262518385082368); +INSERT INTO `iam_role_menu` VALUES (1757298924107059210, 1757298887092326400, 'dax-pay', 1744643265142165504); +INSERT INTO `iam_role_menu` VALUES (1757298924107059212, 1757298887092326400, 'dax-pay', 1745126072389963776); +INSERT INTO `iam_role_menu` VALUES (1757298924107059213, 1757298887092326400, 'dax-pay', 1745136155962347520); +INSERT INTO `iam_role_menu` VALUES (1757298924107059214, 1757298887092326400, 'dax-pay', 1745143528663781376); +INSERT INTO `iam_role_menu` VALUES (1757298924107059215, 1757298887092326400, 'dax-pay', 1744271715476684800); +INSERT INTO `iam_role_menu` VALUES (1757298924107059216, 1757298887092326400, 'dax-pay', 1746194891925561344); +INSERT INTO `iam_role_menu` VALUES (1757298924107059217, 1757298887092326400, 'dax-pay', 1744276101384880128); +INSERT INTO `iam_role_menu` VALUES (1757298924107059218, 1757298887092326400, 'dax-pay', 1744372631231995904); +INSERT INTO `iam_role_menu` VALUES (1757298924107059219, 1757298887092326400, 'dax-pay', 1744624886658318336); +INSERT INTO `iam_role_menu` VALUES (1757298924107059220, 1757298887092326400, 'dax-pay', 1745822093382230016); +INSERT INTO `iam_role_menu` VALUES (1757298924107059221, 1757298887092326400, 'dax-pay', 1744642856348520448); +INSERT INTO `iam_role_menu` VALUES (1757298924107059222, 1757298887092326400, 'dax-pay', 1745457623493496832); +INSERT INTO `iam_role_menu` VALUES (1757298924107059223, 1757298887092326400, 'dax-pay', 1745457746529210368); +INSERT INTO `iam_role_menu` VALUES (1757298924107059224, 1757298887092326400, 'dax-pay', 1749262518385082368); +INSERT INTO `iam_role_menu` VALUES (1757298924107059225, 1757298887092326400, 'dax-pay', 1744643265142165504); +INSERT INTO `iam_role_menu` VALUES (1757298924107059227, 1757298887092326400, 'dax-pay', 1745126072389963776); +INSERT INTO `iam_role_menu` VALUES (1757298924107059228, 1757298887092326400, 'dax-pay', 1745136155962347520); +INSERT INTO `iam_role_menu` VALUES (1757298924107059229, 1757298887092326400, 'dax-pay', 1745143528663781376); +INSERT INTO `iam_role_menu` VALUES (1757298924107059230, 1757298887092326400, 'dax-pay', 1744271715476684800); +INSERT INTO `iam_role_menu` VALUES (1757298924107059231, 1757298887092326400, 'dax-pay', 1746194891925561344); +INSERT INTO `iam_role_menu` VALUES (1757298924107059232, 1757298887092326400, 'dax-pay', 1744276101384880128); +INSERT INTO `iam_role_menu` VALUES (1757298924107059233, 1757298887092326400, 'dax-pay', 1744372631231995904); +INSERT INTO `iam_role_menu` VALUES (1757298924107059234, 1757298887092326400, 'dax-pay', 1744624886658318336); +INSERT INTO `iam_role_menu` VALUES (1757298924107059235, 1757298887092326400, 'dax-pay', 1745822093382230016); +INSERT INTO `iam_role_menu` VALUES (1757298924107059236, 1757298887092326400, 'dax-pay', 1744642856348520448); +INSERT INTO `iam_role_menu` VALUES (1757298924107059237, 1757298887092326400, 'dax-pay', 1745457623493496832); +INSERT INTO `iam_role_menu` VALUES (1757298924107059238, 1757298887092326400, 'dax-pay', 1745457746529210368); +INSERT INTO `iam_role_menu` VALUES (1757298924107059239, 1757298887092326400, 'dax-pay', 1749262518385082368); +INSERT INTO `iam_role_menu` VALUES (1757298924107059240, 1757298887092326400, 'dax-pay', 1744643265142165504); +INSERT INTO `iam_role_menu` VALUES (1757298924107059242, 1757298887092326400, 'dax-pay', 1745126072389963776); +INSERT INTO `iam_role_menu` VALUES (1757298924107059243, 1757298887092326400, 'dax-pay', 1745136155962347520); +INSERT INTO `iam_role_menu` VALUES (1757298924107059244, 1757298887092326400, 'dax-pay', 1745143528663781376); +INSERT INTO `iam_role_menu` VALUES (1757298924107059245, 1757298887092326400, 'dax-pay', 1744271715476684800); +INSERT INTO `iam_role_menu` VALUES (1757298924107059246, 1757298887092326400, 'dax-pay', 1746194891925561344); +INSERT INTO `iam_role_menu` VALUES (1757298924107059247, 1757298887092326400, 'dax-pay', 1744276101384880128); +INSERT INTO `iam_role_menu` VALUES (1757298924107059248, 1757298887092326400, 'dax-pay', 1744372631231995904); +INSERT INTO `iam_role_menu` VALUES (1757298924107059249, 1757298887092326400, 'dax-pay', 1744624886658318336); +INSERT INTO `iam_role_menu` VALUES (1757298924107059250, 1757298887092326400, 'dax-pay', 1745822093382230016); +INSERT INTO `iam_role_menu` VALUES (1757298924107059251, 1757298887092326400, 'dax-pay', 1744642856348520448); +INSERT INTO `iam_role_menu` VALUES (1757298924107059252, 1757298887092326400, 'dax-pay', 1745457623493496832); +INSERT INTO `iam_role_menu` VALUES (1757298924107059253, 1757298887092326400, 'dax-pay', 1745457746529210368); +INSERT INTO `iam_role_menu` VALUES (1757298924107059254, 1757298887092326400, 'dax-pay', 1749262518385082368); +INSERT INTO `iam_role_menu` VALUES (1757298924107059255, 1757298887092326400, 'dax-pay', 1744643265142165504); +INSERT INTO `iam_role_menu` VALUES (1757298924107059257, 1757298887092326400, 'dax-pay', 1745126072389963776); +INSERT INTO `iam_role_menu` VALUES (1757298924107059258, 1757298887092326400, 'dax-pay', 1745136155962347520); +INSERT INTO `iam_role_menu` VALUES (1757298924107059259, 1757298887092326400, 'dax-pay', 1745143528663781376); +INSERT INTO `iam_role_menu` VALUES (1762112282006073350, 1757297023118462976, 'dax-pay', 1761429304959528960); +INSERT INTO `iam_role_menu` VALUES (1762112282006073351, 1757297023118462976, 'dax-pay', 1761429682618855424); +INSERT INTO `iam_role_menu` VALUES (1762112282006073352, 1757297023118462976, 'dax-pay', 1759768820429352960); +INSERT INTO `iam_role_menu` VALUES (1762112282006073353, 1757297023118462976, 'dax-pay', 1759769092698402816); +INSERT INTO `iam_role_menu` VALUES (1762112282232565766, 1757298887092326400, 'dax-pay', 1761429304959528960); +INSERT INTO `iam_role_menu` VALUES (1762112282232565767, 1757298887092326400, 'dax-pay', 1761429682618855424); +INSERT INTO `iam_role_menu` VALUES (1762112282232565768, 1757298887092326400, 'dax-pay', 1759768820429352960); +INSERT INTO `iam_role_menu` VALUES (1762112282232565769, 1757298887092326400, 'dax-pay', 1759769092698402816); +INSERT INTO `iam_role_menu` VALUES (1780416732268605440, 1757297023118462976, 'dax-pay', 1775089099078553600); +INSERT INTO `iam_role_menu` VALUES (1780416732268605441, 1757297023118462976, 'dax-pay', 1775089820368818176); +INSERT INTO `iam_role_menu` VALUES (1780416732268605442, 1757297023118462976, 'dax-pay', 1775091561835450368); +INSERT INTO `iam_role_menu` VALUES (1780416732268605443, 1757297023118462976, 'dax-pay', 1777688382748700672); +INSERT INTO `iam_role_menu` VALUES (1780416732574789632, 1757298887092326400, 'dax-pay', 1775089099078553600); +INSERT INTO `iam_role_menu` VALUES (1780416732574789633, 1757298887092326400, 'dax-pay', 1775089820368818176); +INSERT INTO `iam_role_menu` VALUES (1780416732574789634, 1757298887092326400, 'dax-pay', 1775091561835450368); +INSERT INTO `iam_role_menu` VALUES (1780416732574789635, 1757298887092326400, 'dax-pay', 1777688382748700672); +INSERT INTO `iam_role_menu` VALUES (1789979742020689920, 1757297023118462976, 'dax-pay', 1786808188825194496); +INSERT INTO `iam_role_menu` VALUES (1789979742020689921, 1757297023118462976, 'dax-pay', 1786810890951020544); +INSERT INTO `iam_role_menu` VALUES (1789979742020689922, 1757297023118462976, 'dax-pay', 1744930046228017152); +INSERT INTO `iam_role_menu` VALUES (1789979742314291200, 1757298887092326400, 'dax-pay', 1786808188825194496); +INSERT INTO `iam_role_menu` VALUES (1789979742314291201, 1757298887092326400, 'dax-pay', 1786810890951020544); +INSERT INTO `iam_role_menu` VALUES (1789979742314291202, 1757298887092326400, 'dax-pay', 1744930046228017152); +INSERT INTO `iam_role_menu` VALUES (1797522085254897664, 1757297023118462976, 'dax-pay', 1797178029448867840); +INSERT INTO `iam_role_menu` VALUES (1797522085414281216, 1757298887092326400, 'dax-pay', 1797178029448867840); + +-- ---------------------------- +-- Table structure for iam_role_path +-- ---------------------------- +DROP TABLE IF EXISTS `iam_role_path`; +CREATE TABLE `iam_role_path` ( + `id` bigint(20) NOT NULL, + `role_id` bigint(20) NOT NULL COMMENT '角色id', + `permission_id` bigint(20) NOT NULL COMMENT '请求权限id', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色请求权限表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_role_path +-- ---------------------------- +INSERT INTO `iam_role_path` VALUES (1789979321814343680, 1757297023118462976, 1789978117570945313); +INSERT INTO `iam_role_path` VALUES (1789979321814343681, 1757297023118462976, 1789978117566750768); +INSERT INTO `iam_role_path` VALUES (1789979321814343682, 1757297023118462976, 1789978117570945312); +INSERT INTO `iam_role_path` VALUES (1789979321814343683, 1757297023118462976, 1789978117570945264); +INSERT INTO `iam_role_path` VALUES (1789979321814343684, 1757297023118462976, 1789978117570945244); +INSERT INTO `iam_role_path` VALUES (1789979321814343685, 1757297023118462976, 1789978117570945215); +INSERT INTO `iam_role_path` VALUES (1789979321814343686, 1757297023118462976, 1789978117570945203); +INSERT INTO `iam_role_path` VALUES (1789979321814343687, 1757297023118462976, 1789978117570945080); +INSERT INTO `iam_role_path` VALUES (1789979321814343688, 1757297023118462976, 1789978117570945074); +INSERT INTO `iam_role_path` VALUES (1789979321814343689, 1757297023118462976, 1789978117570945029); +INSERT INTO `iam_role_path` VALUES (1789979321814343690, 1757297023118462976, 1789978117570945024); +INSERT INTO `iam_role_path` VALUES (1789979321814343691, 1757297023118462976, 1789978117566750819); +INSERT INTO `iam_role_path` VALUES (1789979321814343692, 1757297023118462976, 1789978117566750783); +INSERT INTO `iam_role_path` VALUES (1789979321814343693, 1757297023118462976, 1789978117566750760); +INSERT INTO `iam_role_path` VALUES (1789979321814343694, 1757297023118462976, 1789978117566750746); +INSERT INTO `iam_role_path` VALUES (1789979321814343695, 1757297023118462976, 1789978117562556431); +INSERT INTO `iam_role_path` VALUES (1789979321814343696, 1757297023118462976, 1789978117570945311); +INSERT INTO `iam_role_path` VALUES (1789979321814343697, 1757297023118462976, 1789978117570945126); +INSERT INTO `iam_role_path` VALUES (1789979321814343698, 1757297023118462976, 1789978117570945304); +INSERT INTO `iam_role_path` VALUES (1789979321814343699, 1757297023118462976, 1789978117570945269); +INSERT INTO `iam_role_path` VALUES (1789979321814343700, 1757297023118462976, 1789978117570945230); +INSERT INTO `iam_role_path` VALUES (1789979321814343701, 1757297023118462976, 1789978117570945129); +INSERT INTO `iam_role_path` VALUES (1789979321814343702, 1757297023118462976, 1789978117566750730); +INSERT INTO `iam_role_path` VALUES (1789979321814343703, 1757297023118462976, 1789978117562556448); +INSERT INTO `iam_role_path` VALUES (1789979321814343704, 1757297023118462976, 1789978117570945302); +INSERT INTO `iam_role_path` VALUES (1789979321814343705, 1757297023118462976, 1789978117570945273); +INSERT INTO `iam_role_path` VALUES (1789979321814343706, 1757297023118462976, 1789978117570945213); +INSERT INTO `iam_role_path` VALUES (1789979321814343707, 1757297023118462976, 1789978117570945177); +INSERT INTO `iam_role_path` VALUES (1789979321814343708, 1757297023118462976, 1789978117570945161); +INSERT INTO `iam_role_path` VALUES (1789979321814343709, 1757297023118462976, 1789978117570945136); +INSERT INTO `iam_role_path` VALUES (1789979321814343711, 1757297023118462976, 1789978117566750728); +INSERT INTO `iam_role_path` VALUES (1789979321814343712, 1757297023118462976, 1789978117570945299); +INSERT INTO `iam_role_path` VALUES (1789979321814343713, 1757297023118462976, 1789978117570945222); +INSERT INTO `iam_role_path` VALUES (1789979321814343714, 1757297023118462976, 1789978117570945124); +INSERT INTO `iam_role_path` VALUES (1789979321814343715, 1757297023118462976, 1789978117566750820); +INSERT INTO `iam_role_path` VALUES (1789979321814343716, 1757297023118462976, 1789978117570945286); +INSERT INTO `iam_role_path` VALUES (1789979321814343717, 1757297023118462976, 1789978117570945072); +INSERT INTO `iam_role_path` VALUES (1789979321814343718, 1757297023118462976, 1789978117570945064); +INSERT INTO `iam_role_path` VALUES (1789979321814343719, 1757297023118462976, 1789978117570945279); +INSERT INTO `iam_role_path` VALUES (1789979321814343720, 1757297023118462976, 1789978117570945028); +INSERT INTO `iam_role_path` VALUES (1789979321814343721, 1757297023118462976, 1789978117566750751); +INSERT INTO `iam_role_path` VALUES (1789979321814343722, 1757297023118462976, 1789978117570945277); +INSERT INTO `iam_role_path` VALUES (1789979321814343723, 1757297023118462976, 1789978117570945248); +INSERT INTO `iam_role_path` VALUES (1789979321814343724, 1757297023118462976, 1789978117570945234); +INSERT INTO `iam_role_path` VALUES (1789979321814343725, 1757297023118462976, 1789978117570945170); +INSERT INTO `iam_role_path` VALUES (1789979321814343726, 1757297023118462976, 1789978117570945111); +INSERT INTO `iam_role_path` VALUES (1789979321814343727, 1757297023118462976, 1789978117570945100); +INSERT INTO `iam_role_path` VALUES (1789979321814343728, 1757297023118462976, 1789978117570945038); +INSERT INTO `iam_role_path` VALUES (1789979321814343729, 1757297023118462976, 1789978117566750807); +INSERT INTO `iam_role_path` VALUES (1789979321814343730, 1757297023118462976, 1789978117566750789); +INSERT INTO `iam_role_path` VALUES (1789979321814343731, 1757297023118462976, 1789978117566750759); +INSERT INTO `iam_role_path` VALUES (1789979321814343732, 1757297023118462976, 1789978117566750744); +INSERT INTO `iam_role_path` VALUES (1789979321814343733, 1757297023118462976, 1789978117562556423); +INSERT INTO `iam_role_path` VALUES (1789979321814343734, 1757297023118462976, 1789978117570945266); +INSERT INTO `iam_role_path` VALUES (1789979321814343735, 1757297023118462976, 1789978117570945251); +INSERT INTO `iam_role_path` VALUES (1789979321814343736, 1757297023118462976, 1789978117570945073); +INSERT INTO `iam_role_path` VALUES (1789979321814343737, 1757297023118462976, 1789978117570945056); +INSERT INTO `iam_role_path` VALUES (1789979321814343738, 1757297023118462976, 1789978117566750822); +INSERT INTO `iam_role_path` VALUES (1789979321814343739, 1757297023118462976, 1789978117566750809); +INSERT INTO `iam_role_path` VALUES (1789979321814343740, 1757297023118462976, 1789978117566750803); +INSERT INTO `iam_role_path` VALUES (1789979321814343741, 1757297023118462976, 1789978117566750726); +INSERT INTO `iam_role_path` VALUES (1789979321814343742, 1757297023118462976, 1789978117570945265); +INSERT INTO `iam_role_path` VALUES (1789979321814343743, 1757297023118462976, 1789978117570945163); +INSERT INTO `iam_role_path` VALUES (1789979321814343744, 1757297023118462976, 1789978117570945144); +INSERT INTO `iam_role_path` VALUES (1789979321814343745, 1757297023118462976, 1789978117570945258); +INSERT INTO `iam_role_path` VALUES (1789979321814343746, 1757297023118462976, 1789978117570945237); +INSERT INTO `iam_role_path` VALUES (1789979321814343747, 1757297023118462976, 1789978117570945184); +INSERT INTO `iam_role_path` VALUES (1789979321814343748, 1757297023118462976, 1789978117570945162); +INSERT INTO `iam_role_path` VALUES (1789979321814343749, 1757297023118462976, 1789978117570945116); +INSERT INTO `iam_role_path` VALUES (1789979321814343750, 1757297023118462976, 1789978117570945115); +INSERT INTO `iam_role_path` VALUES (1789979321814343751, 1757297023118462976, 1789978117570945085); +INSERT INTO `iam_role_path` VALUES (1789979321814343752, 1757297023118462976, 1789978117562556418); +INSERT INTO `iam_role_path` VALUES (1789979321814343753, 1757297023118462976, 1789978117570945236); +INSERT INTO `iam_role_path` VALUES (1789979321814343754, 1757297023118462976, 1789978117570945098); +INSERT INTO `iam_role_path` VALUES (1789979321814343755, 1757297023118462976, 1789978117570945231); +INSERT INTO `iam_role_path` VALUES (1789979321814343756, 1757297023118462976, 1789978117570945192); +INSERT INTO `iam_role_path` VALUES (1789979321814343758, 1757297023118462976, 1789978117570945172); +INSERT INTO `iam_role_path` VALUES (1789979321814343759, 1757297023118462976, 1789978117570945114); +INSERT INTO `iam_role_path` VALUES (1789979321814343760, 1757297023118462976, 1789978117570945082); +INSERT INTO `iam_role_path` VALUES (1789979321814343762, 1757297023118462976, 1789978117562556428); +INSERT INTO `iam_role_path` VALUES (1789979321814343764, 1757297023118462976, 1789978117570945198); +INSERT INTO `iam_role_path` VALUES (1789979321814343765, 1757297023118462976, 1789978117570945182); +INSERT INTO `iam_role_path` VALUES (1789979321814343766, 1757297023118462976, 1789978117570945078); +INSERT INTO `iam_role_path` VALUES (1789979321814343767, 1757297023118462976, 1789978117570945067); +INSERT INTO `iam_role_path` VALUES (1789979321814343768, 1757297023118462976, 1789978117570945044); +INSERT INTO `iam_role_path` VALUES (1789979321814343769, 1757297023118462976, 1789978117562556452); +INSERT INTO `iam_role_path` VALUES (1789979321814343770, 1757297023118462976, 1789978117562556425); +INSERT INTO `iam_role_path` VALUES (1789979321814343771, 1757297023118462976, 1789978117570945211); +INSERT INTO `iam_role_path` VALUES (1789979321814343772, 1757297023118462976, 1789978117570945200); +INSERT INTO `iam_role_path` VALUES (1789979321814343773, 1757297023118462976, 1789978117570945171); +INSERT INTO `iam_role_path` VALUES (1789979321814343774, 1757297023118462976, 1789978117562556419); +INSERT INTO `iam_role_path` VALUES (1789979321814343775, 1757297023118462976, 1789978117570945189); +INSERT INTO `iam_role_path` VALUES (1789979321814343776, 1757297023118462976, 1789978117570945048); +INSERT INTO `iam_role_path` VALUES (1789979321814343777, 1757297023118462976, 1789978117562556429); +INSERT INTO `iam_role_path` VALUES (1789979321814343778, 1757297023118462976, 1789978117570945165); +INSERT INTO `iam_role_path` VALUES (1789979321814343779, 1757297023118462976, 1789978117562556435); +INSERT INTO `iam_role_path` VALUES (1789979321814343780, 1757297023118462976, 1789978117570945155); +INSERT INTO `iam_role_path` VALUES (1789979321814343781, 1757297023118462976, 1789978117566750762); +INSERT INTO `iam_role_path` VALUES (1789979321814343782, 1757297023118462976, 1789978117570945150); +INSERT INTO `iam_role_path` VALUES (1789979321814343783, 1757297023118462976, 1789978117566750753); +INSERT INTO `iam_role_path` VALUES (1789979321814343786, 1757297023118462976, 1789978117570945104); +INSERT INTO `iam_role_path` VALUES (1789979321814343787, 1757297023118462976, 1789978117566750742); +INSERT INTO `iam_role_path` VALUES (1789979322187636736, 1757298887092326400, 1789978117570945313); +INSERT INTO `iam_role_path` VALUES (1789979322187636737, 1757298887092326400, 1789978117566750768); +INSERT INTO `iam_role_path` VALUES (1789979322187636738, 1757298887092326400, 1789978117570945312); +INSERT INTO `iam_role_path` VALUES (1789979322187636739, 1757298887092326400, 1789978117570945264); +INSERT INTO `iam_role_path` VALUES (1789979322187636740, 1757298887092326400, 1789978117570945244); +INSERT INTO `iam_role_path` VALUES (1789979322187636741, 1757298887092326400, 1789978117570945215); +INSERT INTO `iam_role_path` VALUES (1789979322187636742, 1757298887092326400, 1789978117570945203); +INSERT INTO `iam_role_path` VALUES (1789979322187636743, 1757298887092326400, 1789978117570945080); +INSERT INTO `iam_role_path` VALUES (1789979322187636744, 1757298887092326400, 1789978117570945074); +INSERT INTO `iam_role_path` VALUES (1789979322187636745, 1757298887092326400, 1789978117570945029); +INSERT INTO `iam_role_path` VALUES (1789979322187636746, 1757298887092326400, 1789978117570945024); +INSERT INTO `iam_role_path` VALUES (1789979322187636747, 1757298887092326400, 1789978117566750819); +INSERT INTO `iam_role_path` VALUES (1789979322187636748, 1757298887092326400, 1789978117566750783); +INSERT INTO `iam_role_path` VALUES (1789979322187636749, 1757298887092326400, 1789978117566750760); +INSERT INTO `iam_role_path` VALUES (1789979322187636750, 1757298887092326400, 1789978117566750746); +INSERT INTO `iam_role_path` VALUES (1789979322187636751, 1757298887092326400, 1789978117562556431); +INSERT INTO `iam_role_path` VALUES (1789979322187636752, 1757298887092326400, 1789978117570945311); +INSERT INTO `iam_role_path` VALUES (1789979322187636753, 1757298887092326400, 1789978117570945126); +INSERT INTO `iam_role_path` VALUES (1789979322187636754, 1757298887092326400, 1789978117570945304); +INSERT INTO `iam_role_path` VALUES (1789979322187636755, 1757298887092326400, 1789978117570945269); +INSERT INTO `iam_role_path` VALUES (1789979322187636756, 1757298887092326400, 1789978117570945230); +INSERT INTO `iam_role_path` VALUES (1789979322187636757, 1757298887092326400, 1789978117570945129); +INSERT INTO `iam_role_path` VALUES (1789979322187636758, 1757298887092326400, 1789978117566750730); +INSERT INTO `iam_role_path` VALUES (1789979322187636759, 1757298887092326400, 1789978117562556448); +INSERT INTO `iam_role_path` VALUES (1789979322187636760, 1757298887092326400, 1789978117570945302); +INSERT INTO `iam_role_path` VALUES (1789979322187636761, 1757298887092326400, 1789978117570945273); +INSERT INTO `iam_role_path` VALUES (1789979322187636762, 1757298887092326400, 1789978117570945213); +INSERT INTO `iam_role_path` VALUES (1789979322187636763, 1757298887092326400, 1789978117570945177); +INSERT INTO `iam_role_path` VALUES (1789979322187636764, 1757298887092326400, 1789978117570945161); +INSERT INTO `iam_role_path` VALUES (1789979322187636765, 1757298887092326400, 1789978117570945136); +INSERT INTO `iam_role_path` VALUES (1789979322187636767, 1757298887092326400, 1789978117566750728); +INSERT INTO `iam_role_path` VALUES (1789979322187636769, 1757298887092326400, 1789978117570945222); +INSERT INTO `iam_role_path` VALUES (1789979322187636771, 1757298887092326400, 1789978117566750820); +INSERT INTO `iam_role_path` VALUES (1789979322187636772, 1757298887092326400, 1789978117570945286); +INSERT INTO `iam_role_path` VALUES (1789979322187636773, 1757298887092326400, 1789978117570945072); +INSERT INTO `iam_role_path` VALUES (1789979322187636774, 1757298887092326400, 1789978117570945064); +INSERT INTO `iam_role_path` VALUES (1789979322187636775, 1757298887092326400, 1789978117570945279); +INSERT INTO `iam_role_path` VALUES (1789979322187636776, 1757298887092326400, 1789978117570945028); +INSERT INTO `iam_role_path` VALUES (1789979322187636777, 1757298887092326400, 1789978117566750751); +INSERT INTO `iam_role_path` VALUES (1789979322187636778, 1757298887092326400, 1789978117570945277); +INSERT INTO `iam_role_path` VALUES (1789979322187636783, 1757298887092326400, 1789978117570945100); +INSERT INTO `iam_role_path` VALUES (1789979322187636786, 1757298887092326400, 1789978117566750789); +INSERT INTO `iam_role_path` VALUES (1789979322187636790, 1757298887092326400, 1789978117570945266); +INSERT INTO `iam_role_path` VALUES (1789979322187636791, 1757298887092326400, 1789978117570945251); +INSERT INTO `iam_role_path` VALUES (1789979322187636792, 1757298887092326400, 1789978117570945073); +INSERT INTO `iam_role_path` VALUES (1789979322187636793, 1757298887092326400, 1789978117570945056); +INSERT INTO `iam_role_path` VALUES (1789979322187636794, 1757298887092326400, 1789978117566750822); +INSERT INTO `iam_role_path` VALUES (1789979322187636795, 1757298887092326400, 1789978117566750809); +INSERT INTO `iam_role_path` VALUES (1789979322187636796, 1757298887092326400, 1789978117566750803); +INSERT INTO `iam_role_path` VALUES (1789979322187636797, 1757298887092326400, 1789978117566750726); +INSERT INTO `iam_role_path` VALUES (1789979322187636799, 1757298887092326400, 1789978117570945163); +INSERT INTO `iam_role_path` VALUES (1789979322187636800, 1757298887092326400, 1789978117570945144); +INSERT INTO `iam_role_path` VALUES (1789979322187636801, 1757298887092326400, 1789978117570945258); +INSERT INTO `iam_role_path` VALUES (1789979322187636802, 1757298887092326400, 1789978117570945237); +INSERT INTO `iam_role_path` VALUES (1789979322187636803, 1757298887092326400, 1789978117570945184); +INSERT INTO `iam_role_path` VALUES (1789979322187636804, 1757298887092326400, 1789978117570945162); +INSERT INTO `iam_role_path` VALUES (1789979322187636805, 1757298887092326400, 1789978117570945116); +INSERT INTO `iam_role_path` VALUES (1789979322187636806, 1757298887092326400, 1789978117570945115); +INSERT INTO `iam_role_path` VALUES (1789979322187636807, 1757298887092326400, 1789978117570945085); +INSERT INTO `iam_role_path` VALUES (1789979322187636808, 1757298887092326400, 1789978117562556418); +INSERT INTO `iam_role_path` VALUES (1789979322187636809, 1757298887092326400, 1789978117570945236); +INSERT INTO `iam_role_path` VALUES (1789979322187636810, 1757298887092326400, 1789978117570945098); +INSERT INTO `iam_role_path` VALUES (1789979322187636811, 1757298887092326400, 1789978117570945231); +INSERT INTO `iam_role_path` VALUES (1789979322187636812, 1757298887092326400, 1789978117570945192); +INSERT INTO `iam_role_path` VALUES (1789979322187636814, 1757298887092326400, 1789978117570945172); +INSERT INTO `iam_role_path` VALUES (1789979322187636815, 1757298887092326400, 1789978117570945114); +INSERT INTO `iam_role_path` VALUES (1789979322187636816, 1757298887092326400, 1789978117570945082); +INSERT INTO `iam_role_path` VALUES (1789979322187636818, 1757298887092326400, 1789978117562556428); +INSERT INTO `iam_role_path` VALUES (1789979322187636820, 1757298887092326400, 1789978117570945198); +INSERT INTO `iam_role_path` VALUES (1789979322187636821, 1757298887092326400, 1789978117570945182); +INSERT INTO `iam_role_path` VALUES (1789979322187636822, 1757298887092326400, 1789978117570945078); +INSERT INTO `iam_role_path` VALUES (1789979322187636823, 1757298887092326400, 1789978117570945067); +INSERT INTO `iam_role_path` VALUES (1789979322187636824, 1757298887092326400, 1789978117570945044); +INSERT INTO `iam_role_path` VALUES (1789979322187636825, 1757298887092326400, 1789978117562556452); +INSERT INTO `iam_role_path` VALUES (1789979322187636826, 1757298887092326400, 1789978117562556425); +INSERT INTO `iam_role_path` VALUES (1789979322187636828, 1757298887092326400, 1789978117570945200); +INSERT INTO `iam_role_path` VALUES (1789979322187636829, 1757298887092326400, 1789978117570945171); +INSERT INTO `iam_role_path` VALUES (1789979322187636830, 1757298887092326400, 1789978117562556419); +INSERT INTO `iam_role_path` VALUES (1789979322187636831, 1757298887092326400, 1789978117570945189); +INSERT INTO `iam_role_path` VALUES (1789979322187636832, 1757298887092326400, 1789978117570945048); +INSERT INTO `iam_role_path` VALUES (1789979322187636835, 1757298887092326400, 1789978117562556435); +INSERT INTO `iam_role_path` VALUES (1789979322187636836, 1757298887092326400, 1789978117570945155); +INSERT INTO `iam_role_path` VALUES (1789979322187636837, 1757298887092326400, 1789978117566750762); +INSERT INTO `iam_role_path` VALUES (1789979322187636838, 1757298887092326400, 1789978117570945150); +INSERT INTO `iam_role_path` VALUES (1789979322187636839, 1757298887092326400, 1789978117566750753); +INSERT INTO `iam_role_path` VALUES (1789979322187636842, 1757298887092326400, 1789978117570945104); +INSERT INTO `iam_role_path` VALUES (1789979322187636843, 1757298887092326400, 1789978117566750742); +INSERT INTO `iam_role_path` VALUES (1789979908043825152, 1757297023118462976, 1789978117570945084); +INSERT INTO `iam_role_path` VALUES (1789979908043825153, 1757297023118462976, 1789978117570945059); +INSERT INTO `iam_role_path` VALUES (1789979908043825154, 1757297023118462976, 1789978117570945039); +INSERT INTO `iam_role_path` VALUES (1789979908043825155, 1757297023118462976, 1789978117566750797); +INSERT INTO `iam_role_path` VALUES (1789979908324843520, 1757298887092326400, 1789978117570945084); +INSERT INTO `iam_role_path` VALUES (1789979908324843521, 1757298887092326400, 1789978117570945059); +INSERT INTO `iam_role_path` VALUES (1789979908324843522, 1757298887092326400, 1789978117570945039); +INSERT INTO `iam_role_path` VALUES (1789982023252303872, 1757297023118462976, 1789978117570945308); +INSERT INTO `iam_role_path` VALUES (1789982023252303873, 1757297023118462976, 1789978117570945239); +INSERT INTO `iam_role_path` VALUES (1789982023252303874, 1757297023118462976, 1789978117570945186); +INSERT INTO `iam_role_path` VALUES (1789982023252303875, 1757297023118462976, 1789978117570945052); +INSERT INTO `iam_role_path` VALUES (1789982023252303876, 1757297023118462976, 1789978117566750795); +INSERT INTO `iam_role_path` VALUES (1789982023252303877, 1757297023118462976, 1789978117566750741); +INSERT INTO `iam_role_path` VALUES (1789982023252303878, 1757297023118462976, 1789978117570945094); +INSERT INTO `iam_role_path` VALUES (1789982023252303879, 1757297023118462976, 1789978117566750758); +INSERT INTO `iam_role_path` VALUES (1789982023252303880, 1757297023118462976, 1789978117566750733); +INSERT INTO `iam_role_path` VALUES (1789982023529127937, 1757298887092326400, 1789978117570945239); +INSERT INTO `iam_role_path` VALUES (1789982023529127938, 1757298887092326400, 1789978117570945186); +INSERT INTO `iam_role_path` VALUES (1789982023529127939, 1757298887092326400, 1789978117570945052); +INSERT INTO `iam_role_path` VALUES (1789982023529127940, 1757298887092326400, 1789978117566750795); +INSERT INTO `iam_role_path` VALUES (1789982023529127941, 1757298887092326400, 1789978117566750741); +INSERT INTO `iam_role_path` VALUES (1789982023529127942, 1757298887092326400, 1789978117570945094); +INSERT INTO `iam_role_path` VALUES (1789982023529127943, 1757298887092326400, 1789978117566750758); +INSERT INTO `iam_role_path` VALUES (1789986071959429120, 1757298887092326400, 1789978117570945124); +INSERT INTO `iam_role_path` VALUES (1797522413752786944, 1757297023118462976, 1797521957446066199); +INSERT INTO `iam_role_path` VALUES (1797522413752786945, 1757297023118462976, 1797521957446066189); +INSERT INTO `iam_role_path` VALUES (1797522413752786946, 1757297023118462976, 1797521957446066197); +INSERT INTO `iam_role_path` VALUES (1797522413752786947, 1757297023118462976, 1797521957446066176); +INSERT INTO `iam_role_path` VALUES (1797522413752786948, 1757297023118462976, 1797521957446066187); +INSERT INTO `iam_role_path` VALUES (1797522723091095552, 1757298887092326400, 1797521957446066199); +INSERT INTO `iam_role_path` VALUES (1797522723091095553, 1757298887092326400, 1797521957446066189); +INSERT INTO `iam_role_path` VALUES (1797522723091095554, 1757298887092326400, 1797521957446066197); +INSERT INTO `iam_role_path` VALUES (1797522723091095555, 1757298887092326400, 1797521957446066176); +INSERT INTO `iam_role_path` VALUES (1797522723091095556, 1757298887092326400, 1797521957446066187); +INSERT INTO `iam_role_path` VALUES (1797523038569865216, 1757297023118462976, 1797521957446066184); +INSERT INTO `iam_role_path` VALUES (1797523038569865217, 1757297023118462976, 1797521957446066181); +INSERT INTO `iam_role_path` VALUES (1797523038733443072, 1757298887092326400, 1797521957446066184); +INSERT INTO `iam_role_path` VALUES (1797523038733443073, 1757298887092326400, 1797521957446066181); +INSERT INTO `iam_role_path` VALUES (1797523166064123904, 1757297023118462976, 1797521957446066177); +INSERT INTO `iam_role_path` VALUES (1797523166223507456, 1757298887092326400, 1797521957446066177); +INSERT INTO `iam_role_path` VALUES (1797523263875293184, 1757297023118462976, 1789978117570945272); +INSERT INTO `iam_role_path` VALUES (1797523263875293185, 1757297023118462976, 1789978117570945194); +INSERT INTO `iam_role_path` VALUES (1797523263875293186, 1757297023118462976, 1789978117570945175); +INSERT INTO `iam_role_path` VALUES (1797523263875293187, 1757297023118462976, 1789978117570945164); +INSERT INTO `iam_role_path` VALUES (1797523263875293188, 1757297023118462976, 1789978117566750801); +INSERT INTO `iam_role_path` VALUES (1797523264022093824, 1757298887092326400, 1789978117570945272); +INSERT INTO `iam_role_path` VALUES (1797523264022093825, 1757298887092326400, 1789978117570945194); +INSERT INTO `iam_role_path` VALUES (1797523264022093826, 1757298887092326400, 1789978117570945175); +INSERT INTO `iam_role_path` VALUES (1797523264022093827, 1757298887092326400, 1789978117570945164); +INSERT INTO `iam_role_path` VALUES (1797523264022093828, 1757298887092326400, 1789978117566750801); +INSERT INTO `iam_role_path` VALUES (1797523482968956928, 1757297023118462976, 1797521957446066188); +INSERT INTO `iam_role_path` VALUES (1797523483111563264, 1757298887092326400, 1797521957446066188); + +-- ---------------------------- +-- Table structure for iam_user_data_role +-- ---------------------------- +DROP TABLE IF EXISTS `iam_user_data_role`; +CREATE TABLE `iam_user_data_role` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `user_id` bigint(20) NOT NULL COMMENT '用户ID', + `role_id` bigint(20) NOT NULL COMMENT '数据角色ID', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户数据范围关系\r\n' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_user_data_role +-- ---------------------------- + +-- ---------------------------- +-- Table structure for iam_user_dept +-- ---------------------------- +DROP TABLE IF EXISTS `iam_user_dept`; +CREATE TABLE `iam_user_dept` ( + `id` bigint(20) NOT NULL, + `user_id` bigint(20) NOT NULL COMMENT '用户id', + `dept_id` bigint(20) NOT NULL COMMENT '部门id', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户部门关联表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_user_dept +-- ---------------------------- + +-- ---------------------------- +-- Table structure for iam_user_expand_info +-- ---------------------------- +DROP TABLE IF EXISTS `iam_user_expand_info`; +CREATE TABLE `iam_user_expand_info` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `sex` int(4) NULL DEFAULT NULL COMMENT '性别', + `birthday` date NULL DEFAULT NULL COMMENT '生日', + `avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '头像', + `last_login_time` datetime NULL DEFAULT NULL COMMENT '上次登录时间', + `current_login_time` datetime NULL DEFAULT NULL COMMENT '本次登录时间', + `initial_password` bit(1) NOT NULL COMMENT '是否初始密码', + `expire_password` bit(1) NOT NULL COMMENT '密码是否过期', + `last_change_password_time` datetime NULL DEFAULT NULL COMMENT '上次修改密码时间', + `register_time` datetime NOT NULL COMMENT '注册时间', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户扩展信息' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_user_expand_info +-- ---------------------------- +INSERT INTO `iam_user_expand_info` VALUES (1399985191002447872, 1, '1996-12-01', NULL, '2024-05-13 19:48:06', '2024-05-13 19:48:37', b'0', b'0', '2023-10-19 14:14:08', '2021-08-01 18:52:37', 1, '2021-06-02 15:04:15', 0, '2024-05-13 19:48:37', 453, b'0'); +INSERT INTO `iam_user_expand_info` VALUES (1757299137932677120, 1, '2024-02-13', NULL, '2024-05-13 19:32:55', '2024-05-13 19:48:45', b'0', b'0', NULL, '2024-02-13 15:02:18', 1399985191002447872, '2024-02-13 15:02:18', 0, '2024-05-13 19:48:45', 6, b'0'); +INSERT INTO `iam_user_expand_info` VALUES (1757317255899869184, NULL, NULL, NULL, '2024-04-25 22:10:31', '2024-04-26 09:22:54', b'0', b'0', NULL, '2024-02-13 16:14:18', 1399985191002447872, '2024-02-13 16:14:18', 0, '2024-04-26 09:22:54', 9, b'0'); + +-- ---------------------------- +-- Table structure for iam_user_info +-- ---------------------------- +DROP TABLE IF EXISTS `iam_user_info`; +CREATE TABLE `iam_user_info` ( + `id` bigint(20) NOT NULL, + `name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '名称', + `username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '账号', + `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '密码', + `phone` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '手机号', + `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '邮箱', + `client_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '关联终端ds', + `administrator` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否超级管理员', + `status` varchar(55) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '账号状态', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '版本', + `deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0:未删除。1:已删除', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户信息' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_user_info +-- ---------------------------- +INSERT INTO `iam_user_info` VALUES (1399985191002447872, 'Bootx', 'bootx', 'f52020dca765fd3943ed40a615dc2c5c', '13333333333', 'bootx@bootx.cn', '1430430071299207168,1430430071299207169,1626840094767714304,1580487061605175296', b'1', 'normal', 1, '2021-06-02 15:04:15', 1399985191002447872, '2024-04-11 18:55:34', 65, 0); +INSERT INTO `iam_user_info` VALUES (1757299137932677120, 'DaxPay演示', 'daxpay', 'f52020dca765fd3943ed40a615dc2c5c', '14443332251', 'daxpay@qq.com', '1580487061605175296', b'0', 'normal', 1399985191002447872, '2024-02-13 15:02:18', 1757299137932677120, '2024-02-13 16:09:44', 2, 0); +INSERT INTO `iam_user_info` VALUES (1757317255899869184, 'DaxPay管理员', 'daxpayadmin', '1e9e3c3deaa4a06d08326e82a49d1b63', '12222333223', 'daxpayadmin@qq.com', '1580487061605175296', b'0', 'normal', 1399985191002447872, '2024-02-13 16:14:18', 1399985191002447872, '2024-02-13 16:14:18', 0, 0); + +-- ---------------------------- +-- Table structure for iam_user_role +-- ---------------------------- +DROP TABLE IF EXISTS `iam_user_role`; +CREATE TABLE `iam_user_role` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `user_id` bigint(20) NOT NULL COMMENT '用户ID', + `role_id` bigint(20) NOT NULL COMMENT '角色ID', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户角色关系\r\n' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_user_role +-- ---------------------------- +INSERT INTO `iam_user_role` VALUES (1757299293314863104, 1757299137932677120, 1757298887092326400); +INSERT INTO `iam_user_role` VALUES (1757317495407210496, 1757317255899869184, 1757297023118462976); + +-- ---------------------------- +-- Table structure for iam_user_third +-- ---------------------------- +DROP TABLE IF EXISTS `iam_user_third`; +CREATE TABLE `iam_user_third` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户id', + `we_chat_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '微信openId', + `we_chat_open_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '微信开放平台id', + `qq_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'qqId', + `weibo_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '微博Id', + `gitee_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '码云唯一标识', + `ding_talk_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '钉钉唯一标识', + `we_com_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '企业微信唯一标识', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '版本', + `deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0:未删除。1:已删除', + PRIMARY KEY (`id`) USING BTREE, + INDEX `pk_user_index`(`user_id`) USING BTREE COMMENT '用户id索引' +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户三方登录绑定' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_user_third +-- ---------------------------- + +-- ---------------------------- +-- Table structure for iam_user_third_info +-- ---------------------------- +DROP TABLE IF EXISTS `iam_user_third_info`; +CREATE TABLE `iam_user_third_info` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `user_id` bigint(20) NOT NULL COMMENT '用户id', + `client_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '第三方终端类型', + `username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '用户名', + `nickname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '用户昵称', + `avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '用户头像', + `third_user_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '关联第三方平台的用户id', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '版本', + PRIMARY KEY (`id`) USING BTREE, + INDEX `pk_user_client`(`user_id`, `client_code`) USING BTREE COMMENT '用户id和终端code' +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '用户三方登录绑定详情' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of iam_user_third_info +-- ---------------------------- + +-- ---------------------------- +-- Table structure for notice_mail_config +-- ---------------------------- +DROP TABLE IF EXISTS `notice_mail_config`; +CREATE TABLE `notice_mail_config` ( + `id` bigint(20) NOT NULL, + `code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '编号', + `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '名称', + `host` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '邮箱服务器host', + `port` int(5) NOT NULL COMMENT '邮箱服务器 port', + `username` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '邮箱服务器 username', + `password` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '邮箱服务器 password', + `sender` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '邮箱服务器 sender', + `from_` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '邮箱服务器 from', + `activity` tinyint(1) NULL DEFAULT 0 COMMENT '是否默认配置,0:否。1:是', + `security_type` int(2) NULL DEFAULT NULL COMMENT '安全传输方式 1:plain 2:tls 3:ssl', + `creator` bigint(18) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(18) NULL DEFAULT NULL COMMENT '最后修改人', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `deleted` tinyint(1) NULL DEFAULT 0 COMMENT '0:未删除。1:已删除', + `version` int(8) NULL DEFAULT NULL COMMENT '版本', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '邮件配置' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of notice_mail_config +-- ---------------------------- + +-- ---------------------------- +-- Table structure for notice_message_template +-- ---------------------------- +DROP TABLE IF EXISTS `notice_message_template`; +CREATE TABLE `notice_message_template` ( + `id` bigint(20) NOT NULL, + `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '编码', + `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名称', + `data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '模板数据', + `type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模板类型', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '版本', + `deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0:未删除。1:已删除', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '消息模板' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of notice_message_template +-- ---------------------------- +INSERT INTO `notice_message_template` VALUES (1424936204932169730, 'cs', '测试', 'hello ${msg}6666666666666666666666666666', '1', '测试模板', 0, '2021-08-10 11:30:40', 0, '2021-08-10 11:30:40', 0, 0); + +-- ---------------------------- +-- Table structure for notice_site_message +-- ---------------------------- +DROP TABLE IF EXISTS `notice_site_message`; +CREATE TABLE `notice_site_message` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '消息标题', + `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '消息内容', + `sender_id` bigint(20) NULL DEFAULT NULL COMMENT '发送者id', + `sender_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发送者姓名', + `sender_time` datetime NULL DEFAULT NULL COMMENT '发送时间', + `receive_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '消息类型', + `send_state` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发布状态', + `efficient_time` datetime NULL DEFAULT NULL COMMENT '截至有效期', + `cancel_time` datetime NULL DEFAULT NULL COMMENT '撤回时间', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '版本', + `deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0:未删除。1:已删除', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '站内信' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of notice_site_message +-- ---------------------------- + +-- ---------------------------- +-- Table structure for notice_site_message_user +-- ---------------------------- +DROP TABLE IF EXISTS `notice_site_message_user`; +CREATE TABLE `notice_site_message_user` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `message_id` bigint(20) NOT NULL COMMENT '消息id', + `receive_id` bigint(20) NOT NULL COMMENT '接收者id', + `have_read` bit(1) NOT NULL COMMENT '已读/未读', + `read_time` datetime NULL DEFAULT NULL COMMENT '已读时间', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0:未删除。1:已删除', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `uni_receive_message`(`receive_id`, `message_id`) USING BTREE COMMENT '接收人和消息联合索引', + INDEX `inx_message`(`message_id`) USING BTREE COMMENT '消息索引' +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '消息用户关联' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of notice_site_message_user +-- ---------------------------- + +-- ---------------------------- +-- Table structure for notice_sms_channel_config +-- ---------------------------- +DROP TABLE IF EXISTS `notice_sms_channel_config`; +CREATE TABLE `notice_sms_channel_config` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '渠道类型编码', + `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '渠道类型名称', + `state` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '状态', + `access_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'AccessKey', + `config` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '配置字符串', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `access_secret` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'AccessSecret', + `image` bigint(20) NULL DEFAULT NULL COMMENT '图片', + `sort_no` double(10, 0) NULL DEFAULT NULL COMMENT '排序', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '短信渠道配置' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of notice_sms_channel_config +-- ---------------------------- +INSERT INTO `notice_sms_channel_config` VALUES (1688432603289337856, 'alibaba', '阿里云短信', 'normal', '1', '{\"accessKeyId\":\"1231231231232111\",\"accessKeySecret\":\"12312312321111\",\"signature\":\"1231\",\"templateId\":\"2312313\",\"templateName\":\"123\",\"requestUrl\":\"五千二无二\",\"action\":\"SendSms\",\"version\":\"11\",\"regionId\":\"cn-hangzhou\"}', NULL, '1', NULL, 0, 1414143554414059520, '2023-08-07 14:11:17', 1414143554414059520, '2023-08-07 15:35:34', 0, b'0'); +INSERT INTO `notice_sms_channel_config` VALUES (1688456604610953216, 'huawei', '华为云短信', 'normal', '1', '{\"appKey\":\"1231231231232\",\"appSecret\":\"1111\",\"signature\":\"1\",\"sender\":\"1\",\"templateId\":\"12\",\"statusCallBack\":\"1\",\"url\":\"1\"}', NULL, '1', NULL, 0, 1414143554414059520, '2023-08-07 15:46:39', 1414143554414059520, '2023-08-07 15:46:49', 0, b'0'); +INSERT INTO `notice_sms_channel_config` VALUES (1688461302302732288, 'yunpian', '云片短信', 'normal', '1', '{\"accessKeyId\":\"1\",\"accessKeySecret\":\"1\",\"signature\":null,\"templateId\":null,\"callbackUrl\":null,\"templateName\":null}', NULL, '1', NULL, 0, 1414143554414059520, '2023-08-07 16:05:19', 1414143554414059520, '2023-08-08 14:12:23', 0, b'0'); +INSERT INTO `notice_sms_channel_config` VALUES (1688788784751001600, 'tencent', '腾讯短信', 'normal', '1', '{\"accessKeyId\":\"1\",\"accessKeySecret\":\"1\",\"signature\":null,\"templateId\":null,\"sdkAppId\":null,\"territory\":\"ap-guangzhou\",\"connTimeout\":60,\"requestUrl\":\"sms.tencentcloudapi.com\",\"action\":\"SendSms\",\"version\":\"2021-01-11\",\"service\":\"sms\"}', NULL, '1', NULL, 0, 1414143554414059520, '2023-08-08 13:46:37', 1414143554414059520, '2023-08-08 13:46:37', 0, b'0'); +INSERT INTO `notice_sms_channel_config` VALUES (1688788807228276736, 'uni_sms', '合一短信', 'normal', '1', '{\"accessKeyId\":\"1\",\"accessKeySecret\":\"1\",\"signature\":null,\"templateId\":null,\"isSimple\":true,\"templateName\":null}', NULL, '1', NULL, 0, 1414143554414059520, '2023-08-08 13:46:42', 1414143554414059520, '2023-08-08 13:46:43', 0, b'0'); +INSERT INTO `notice_sms_channel_config` VALUES (1688788823900635136, 'netease', '网易云短信', 'normal', '1', '{\"accessKeyId\":\"1\",\"accessKeySecret\":\"1\",\"signature\":null,\"templateId\":null,\"templateName\":null,\"templateUrl\":\"https://api.netease.im/sms/sendtemplate.action\",\"codeUrl\":\"https://api.netease.im/sms/sendcode.action\",\"verifyUrl\":\"https://api.netease.im/sms/verifycode.action\",\"needUp\":null}', NULL, '1', NULL, 0, 1414143554414059520, '2023-08-08 13:46:46', 1414143554414059520, '2023-08-08 13:46:47', 0, b'0'); +INSERT INTO `notice_sms_channel_config` VALUES (1688788846944141312, 'ctyun', '天翼云短信', 'normal', '1', '{\"accessKeyId\":\"1\",\"accessKeySecret\":\"1\",\"signature\":null,\"templateId\":null,\"templateName\":null,\"requestUrl\":\"https://sms-global.ctapi.ctyun.cn/sms/api/v1\",\"action\":\"SendSms\"}', NULL, '1', NULL, 0, 1414143554414059520, '2023-08-08 13:46:52', 1414143554414059520, '2023-08-08 13:46:52', 0, b'0'); +INSERT INTO `notice_sms_channel_config` VALUES (1688788862987354112, 'emay', '亿美短信', 'normal', '1', '{\"appId\":\"1\",\"secretKey\":\"1\",\"requestUrl\":null}', NULL, '1', NULL, 0, 1414143554414059520, '2023-08-08 13:46:56', 1414143554414059520, '2023-08-08 14:03:04', 0, b'0'); +INSERT INTO `notice_sms_channel_config` VALUES (1688788885141667840, 'cloopen', '容联短信', 'normal', '1', '{\"accessKeyId\":\"1\",\"accessKeySecret\":\"1\",\"signature\":null,\"templateId\":null,\"appId\":null,\"baseUrl\":\"https://app.cloopen.com:8883/2013-12-26\",\"serverIp\":null,\"serverPort\":null}', NULL, '1', NULL, 0, 1414143554414059520, '2023-08-08 13:47:01', 1414143554414059520, '2023-08-08 13:47:01', 0, b'0'); +INSERT INTO `notice_sms_channel_config` VALUES (1688788904481603584, 'jd_cloud', '京东短信', 'normal', '1', '{\"accessKeyId\":\"1\",\"accessKeySecret\":\"1\",\"signature\":null,\"templateId\":null,\"region\":\"cn-north-1\"}', NULL, '1', NULL, 0, 1414143554414059520, '2023-08-08 13:47:06', 1414143554414059520, '2023-08-08 13:47:06', 0, b'0'); + +-- ---------------------------- +-- Table structure for notice_sms_config +-- ---------------------------- +DROP TABLE IF EXISTS `notice_sms_config`; +CREATE TABLE `notice_sms_config` ( + `id` bigint(18) NOT NULL, + `tid` bigint(18) NOT NULL COMMENT '租户id', + `code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, + `account_sid` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `path_sid` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '发送号码的唯一标识(基于twillio的命名风格)', + `auth_token` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `from_num` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `is_default` tinyint(1) NULL DEFAULT 0 COMMENT '是否默认配置,0:否。1:是', + `creator` bigint(18) NULL DEFAULT NULL, + `create_time` datetime NULL DEFAULT NULL, + `last_modifier` bigint(18) NULL DEFAULT NULL, + `last_modified_time` datetime NULL DEFAULT NULL, + `version` int(10) NULL DEFAULT NULL, + `deleted` tinyint(1) NULL DEFAULT 0 COMMENT '0:未删除。1:已删除', + `secret` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, + `isp` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, + `reply_msg` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '短信配置' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of notice_sms_config +-- ---------------------------- + +-- ---------------------------- +-- Table structure for notice_sms_template +-- ---------------------------- +DROP TABLE IF EXISTS `notice_sms_template`; +CREATE TABLE `notice_sms_template` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `supplier_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '短信渠道商类型', + `template_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '短信渠道商类型', + `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '短信模板名称', + `content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '短信模板内容', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '短信模板配置' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of notice_sms_template +-- ---------------------------- + +-- ---------------------------- +-- Table structure for notice_wechat_config +-- ---------------------------- +DROP TABLE IF EXISTS `notice_wechat_config`; +CREATE TABLE `notice_wechat_config` ( + `id` bigint(18) NOT NULL, + `tid` bigint(18) NOT NULL COMMENT '租户id', + `code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, + `corp_id` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `corp_secret` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `is_default` tinyint(1) NULL DEFAULT 0 COMMENT '是否默认配置,0:否。1:是', + `creator` bigint(18) NULL DEFAULT NULL, + `create_time` datetime NULL DEFAULT NULL, + `last_modifier` bigint(18) NULL DEFAULT NULL, + `last_modified_time` datetime NULL DEFAULT NULL, + `version` int(10) NULL DEFAULT NULL, + `deleted` tinyint(1) NULL DEFAULT 0 COMMENT '0:未删除。1:已删除', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '微信消息配置' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of notice_wechat_config +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_alipay_config +-- ---------------------------- +DROP TABLE IF EXISTS `pay_alipay_config`; +CREATE TABLE `pay_alipay_config` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `app_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付宝商户appId', + `enable` bit(1) NULL DEFAULT NULL COMMENT '是否启用', + `notify_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '异步通知页面路径', + `return_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '同步通知页面路径', + `server_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付网关地址', + `auth_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '认证类型', + `sign_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '签名类型 RSA2', + `alipay_public_key` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '支付宝公钥', + `private_key` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '私钥', + `app_cert` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '应用公钥证书', + `alipay_cert` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '支付宝公钥证书', + `alipay_root_cert` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '支付宝CA根证书', + `sandbox` bit(1) NULL DEFAULT NULL COMMENT '是否沙箱环境', + `single_limit` int(11) NULL DEFAULT NULL COMMENT '支付限额', + `pay_ways` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '可用支付方式', + `allocation` bit(1) NULL DEFAULT NULL COMMENT '是否支付分账', + `alipay_user_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '合作者身份ID', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付宝支付配置' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_alipay_config +-- ---------------------------- +INSERT INTO `pay_alipay_config` VALUES (0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'wap,web,qrcode,app,barcode', NULL, NULL, NULL, 0, '2024-01-02 21:17:58', 1399985191002447872, '2024-05-07 19:06:38', 32, b'0'); + +-- ---------------------------- +-- Table structure for pay_alipay_reconcile_bill_detail +-- ---------------------------- +DROP TABLE IF EXISTS `pay_alipay_reconcile_bill_detail`; +CREATE TABLE `pay_alipay_reconcile_bill_detail` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付宝交易号', + `out_trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户订单号', + `trade_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '业务类型', + `subject` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商品名称', + `create_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建时间', + `end_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '完成时间', + `store_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '门店编号', + `store_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '门店名称', + `operator` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作员', + `terminal_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '终端号', + `other_account` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '对方账户', + `order_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '订单金额(元)', + `real_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商家实收(元)', + `alipay_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付宝红包(元)', + `jfb_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '集分宝(元)', + `alipay_discount_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付宝优惠(元)', + `discount_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商家优惠(元)', + `coupon_discount_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '券核销金额(元)', + `coupon_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '券名称', + `coupon_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商家红包消费金额(元)', + `card_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '卡消费金额(元)', + `batch_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '退款批次号/请求号', + `service_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '服务费(元)', + `split_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分润(元)', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `reconcile_id` bigint(20) NULL DEFAULT NULL COMMENT '关联对账订单ID', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付宝业务明细对账单' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_alipay_reconcile_bill_detail +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_alipay_reconcile_bill_total +-- ---------------------------- +DROP TABLE IF EXISTS `pay_alipay_reconcile_bill_total`; +CREATE TABLE `pay_alipay_reconcile_bill_total` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `record_order_id` bigint(20) NULL DEFAULT NULL COMMENT '关联对账订单ID', + `store_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '门店编号', + `store_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '门店名称', + `total_num` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '交易订单总笔数', + `total_refund_num` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '退款订单总笔数', + `total_order_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '订单金额(元)', + `total_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商家实收(元)', + `total_discount_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付宝优惠(元)', + `total_coupon_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商家优惠(元)', + `total_consume_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '卡消费金额(元)', + `total_service_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '服务费(元)', + `total_share_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分润(元)', + `total_net_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '实收净额(元)', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付宝业务汇总对账单' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_alipay_reconcile_bill_total +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_allocation_group +-- ---------------------------- +DROP TABLE IF EXISTS `pay_allocation_group`; +CREATE TABLE `pay_allocation_group` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `group_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分账组编码', + `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名称', + `channel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通道', + `default_group` bit(1) NULL DEFAULT NULL COMMENT '默认分账组', + `total_rate` int(11) NULL DEFAULT NULL COMMENT '总分账比例(万分之多少)', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '分账组' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_allocation_group +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_allocation_group_receiver +-- ---------------------------- +DROP TABLE IF EXISTS `pay_allocation_group_receiver`; +CREATE TABLE `pay_allocation_group_receiver` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `group_id` bigint(20) NULL DEFAULT NULL COMMENT '分账组ID', + `receiver_id` bigint(20) NULL DEFAULT NULL COMMENT '接收者ID', + `rate` int(11) NULL DEFAULT NULL COMMENT '分账比例(万分之多少)', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '分账接收组关系' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_allocation_group_receiver +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_allocation_order +-- ---------------------------- +DROP TABLE IF EXISTS `pay_allocation_order`; +CREATE TABLE `pay_allocation_order` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `allocation_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分账单号', + `biz_allocation_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户分账单号', + `out_allocation_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通道分账号', + `order_id` bigint(20) NULL DEFAULT NULL COMMENT '支付订单ID', + `order_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付订单号', + `biz_order_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户支付订单号', + `out_order_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通道支付订单号', + `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付订单标题', + `channel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所属通道', + `amount` int(11) NULL DEFAULT NULL COMMENT '总分账金额', + `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分账描述', + `status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '状态', + `result` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '处理结果', + `error_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '错误码', + `error_msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '错误原因', + `finish_time` datetime NULL DEFAULT NULL COMMENT '分账完成时间', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '分账订单' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_allocation_order +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_allocation_order_detail +-- ---------------------------- +DROP TABLE IF EXISTS `pay_allocation_order_detail`; +CREATE TABLE `pay_allocation_order_detail` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `allocation_id` bigint(20) NULL DEFAULT NULL COMMENT '分账订单ID', + `receiver_id` bigint(20) NULL DEFAULT NULL COMMENT '接收者ID', + `receiver_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分账接收方编号', + `rate` int(11) NULL DEFAULT NULL COMMENT '分账比例(万分之多少)', + `amount` int(11) NULL DEFAULT NULL COMMENT '分账金额', + `receiver_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分账接收方类型', + `receiver_account` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接收方账号', + `receiver_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接收方姓名', + `result` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分账结果', + `error_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '错误代码', + `error_msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '错误原因', + `finish_time` datetime NULL DEFAULT NULL COMMENT '分账完成时间', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '分账订单明细' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_allocation_order_detail +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_allocation_order_extra +-- ---------------------------- +DROP TABLE IF EXISTS `pay_allocation_order_extra`; +CREATE TABLE `pay_allocation_order_extra` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `notify_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '异步通知地址', + `attach` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户扩展参数', + `req_time` datetime NULL DEFAULT NULL COMMENT '请求时间,传输时间戳', + `client_ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付终端ip', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '分账订单扩展' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_allocation_order_extra +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_allocation_receiver +-- ---------------------------- +DROP TABLE IF EXISTS `pay_allocation_receiver`; +CREATE TABLE `pay_allocation_receiver` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `receiver_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分账接收方编号', + `channel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所属通道', + `receiver_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分账接收方类型', + `receiver_account` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接收方账号', + `receiver_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接收方姓名', + `relation_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分账关系类型', + `relation_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '关系名称', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '分账接收方' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_allocation_receiver +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_api_config +-- ---------------------------- +DROP TABLE IF EXISTS `pay_api_config`; +CREATE TABLE `pay_api_config` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '编码', + `api` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接口地址', + `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名称', + `notice_support` bit(1) NULL DEFAULT NULL COMMENT '支持回调通知', + `enable` bit(1) NULL DEFAULT NULL COMMENT '是否启用', + `notice` bit(1) NULL DEFAULT NULL COMMENT '是否开启回调通知', + `notice_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '默认通知地址', + `req_sign` bit(1) NULL DEFAULT NULL COMMENT '请求参数是否签名', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付接口配置' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_api_config +-- ---------------------------- +INSERT INTO `pay_api_config` VALUES (100, 'pay', '/unipay/pay', '统一支付接口 ', b'1', b'1', b'1', 'http://pay1.bootx.cn/server/demo/callback/payObject', b'1', NULL, 0, '2024-01-03 14:25:48', 1399985191002447872, '2024-03-11 17:31:41', 11, b'0'); +INSERT INTO `pay_api_config` VALUES (200, 'close', '/unipay/close', '支付关闭接口', b'0', b'1', b'1', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); +INSERT INTO `pay_api_config` VALUES (300, 'refund', '/unipay/refund', '统一退款接口', b'1', b'1', b'1', 'http://pay1.bootx.cn/server/demo/callback/refundObject', b'1', NULL, 0, '2024-01-03 14:25:48', 1399985191002447872, '2024-05-16 21:59:19', 7, b'0'); +INSERT INTO `pay_api_config` VALUES (400, 'allocation', '/unipay/allocation/start', '统一分账接口', b'1', b'1', b'1', 'http://pay1.bootx.cn/server/demo/callback/allocationObject', b'1', NULL, 0, '2024-01-03 14:25:48', 1399985191002447872, '2024-05-30 19:36:35', 1, b'0'); +INSERT INTO `pay_api_config` VALUES (450, 'allocationFinish', '/unipay/allocation/finish', '分账完结接口', b'0', b'1', b'1', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); +INSERT INTO `pay_api_config` VALUES (451, 'allocationReceiverAdd', '/unipay/allocation/receiver/add', '分账接收方添加接口', b'0', b'1', b'0', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); +INSERT INTO `pay_api_config` VALUES (452, 'allocationReceiverRemove', '/unipay/allocation/receiver/remove', '分账接收方删除接口', b'0', b'1', b'0', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); +INSERT INTO `pay_api_config` VALUES (500, 'transfer', '/unipay/transfer', '统一转账接口', b'1', b'1', b'1', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); +INSERT INTO `pay_api_config` VALUES (600, 'syncPay', '/unipay/sync/pay', '支付同步接口', b'0', b'1', b'1', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); +INSERT INTO `pay_api_config` VALUES (700, 'syncRefund', '/unipay/sync/refund', '退款同步接口', b'0', b'1', b'1', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); +INSERT INTO `pay_api_config` VALUES (801, 'syncTransfer', '/unipay/sync/transfer', '转账同步接口', b'0', b'1', b'1', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); +INSERT INTO `pay_api_config` VALUES (805, 'syncAllocation', '/unipay/sync/allocation', '分账同步接口', b'0', b'1', b'1', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); +INSERT INTO `pay_api_config` VALUES (1000, 'queryPayOrder', '/unipay/query/payOrder', '支付订单查询接口', b'0', b'1', b'0', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); +INSERT INTO `pay_api_config` VALUES (1100, 'queryRefundOrder', '/unipay/query/refundOrder', '退款订单查询接口', b'0', b'1', b'0', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); +INSERT INTO `pay_api_config` VALUES (1150, 'queryAllocationOrder', '/unipay/query/allocationOrder', '分账订单查询接口', b'0', b'1', b'0', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); +INSERT INTO `pay_api_config` VALUES (1175, 'queryAllocationReceiver', '/unipay/query/allocationReceiver', '分账接收方查询接口', b'0', b'1', b'0', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); +INSERT INTO `pay_api_config` VALUES (1176, 'queryTransferOrder', '/unipay/query/transferOrder', '转账订单查询接口', b'0', b'1', b'0', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); +INSERT INTO `pay_api_config` VALUES (1200, 'getWxAuthUrl', '/unipay/assist/getWxAuthUrl', '获取微信OAuth2授权链接', b'0', b'1', b'0', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); +INSERT INTO `pay_api_config` VALUES (1300, 'getWxAccessToken', '/unipay/assist/getWxAccessToken', '获取微信AccessToken', b'0', b'1', b'0', NULL, b'1', NULL, 0, '2024-01-03 14:25:48', 0, '2024-01-03 14:25:53', 0, b'0'); + +-- ---------------------------- +-- Table structure for pay_callback_record +-- ---------------------------- +DROP TABLE IF EXISTS `pay_callback_record`; +CREATE TABLE `pay_callback_record` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '本地交易号', + `out_trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通道交易号', + `channel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付通道', + `callback_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '回调类型', + `notify_info` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '通知消息', + `status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '回调处理状态', + `repair_order_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `error_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '错误码', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `error_msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '提示信息', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '网关回调通知' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_callback_record +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_channel_config +-- ---------------------------- +DROP TABLE IF EXISTS `pay_channel_config`; +CREATE TABLE `pay_channel_config` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '代码', + `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名称', + `icon_id` bigint(20) NULL DEFAULT NULL COMMENT 'ICON图片', + `bg_color` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '卡牌背景色', + `enable` bit(1) NULL DEFAULT NULL COMMENT '是否启用', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付通道配置' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_channel_config +-- ---------------------------- +INSERT INTO `pay_channel_config` VALUES (1, 'ali_pay', '支付宝', NULL, NULL, b'0', '', 0, '2024-01-08 16:47:07', 1757299137932677120, '2024-05-13 19:46:19', 12, b'0'); +INSERT INTO `pay_channel_config` VALUES (2, 'wechat_pay', '微信支付', NULL, NULL, b'0', '', 0, '2024-01-08 16:47:07', 1399985191002447872, '2024-02-13 15:38:24', 7, b'0'); +INSERT INTO `pay_channel_config` VALUES (3, 'union_pay', '云闪付', NULL, NULL, b'0', NULL, 0, '2024-01-08 16:47:07', 1399985191002447872, '2024-03-10 15:04:36', 2, b'0'); +INSERT INTO `pay_channel_config` VALUES (5, 'wallet_pay', '钱包支付', NULL, NULL, b'0', NULL, 0, '2024-01-08 16:47:07', 0, '2024-01-08 16:47:11', 0, b'0'); + +-- ---------------------------- +-- Table structure for pay_client_notice_record +-- ---------------------------- +DROP TABLE IF EXISTS `pay_client_notice_record`; +CREATE TABLE `pay_client_notice_record` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `task_id` bigint(20) NULL DEFAULT NULL COMMENT '任务ID', + `req_count` int(11) NULL DEFAULT NULL COMMENT '请求次数', + `success` bit(1) NULL DEFAULT NULL COMMENT '发送是否成功', + `send_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发送类型', + `error_msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '错误信息', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `error_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '错误编码', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '消息通知任务记录' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_client_notice_record +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_client_notice_task +-- ---------------------------- +DROP TABLE IF EXISTS `pay_client_notice_task`; +CREATE TABLE `pay_client_notice_task` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '消息内容', + `success` bit(1) NULL DEFAULT NULL COMMENT '是否发送成功', + `send_count` int(11) NULL DEFAULT NULL COMMENT '发送次数', + `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发送地址', + `latest_time` datetime NULL DEFAULT NULL COMMENT '最后发送时间', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + `notice_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '消息类型', + `trade_id` bigint(20) NULL DEFAULT NULL COMMENT '本地交易ID', + `trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '本地交易号', + `trade_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '交易状态', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '消息通知任务' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_client_notice_task +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_close_record +-- ---------------------------- +DROP TABLE IF EXISTS `pay_close_record`; +CREATE TABLE `pay_close_record` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `order_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '订单号', + `biz_order_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户订单号', + `channel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '关闭的支付通道', + `closed` bit(1) NULL DEFAULT NULL COMMENT '是否关闭成功', + `error_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '错误码', + `error_msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '错误消息', + `client_ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '客户端IP', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付关闭记录' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_close_record +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_method_info +-- ---------------------------- +DROP TABLE IF EXISTS `pay_method_info`; +CREATE TABLE `pay_method_info` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '代码', + `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名称', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付方式' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_method_info +-- ---------------------------- +INSERT INTO `pay_method_info` VALUES (1, 'normal', '常规支付', '同步支付使用这个', 0, '2024-01-09 10:01:21', 1399985191002447872, '2024-02-13 15:39:16', 1, b'0'); +INSERT INTO `pay_method_info` VALUES (2, 'wap', 'wap支付', NULL, 0, '2024-01-09 10:01:21', 0, '2024-01-09 10:01:25', 0, b'0'); +INSERT INTO `pay_method_info` VALUES (3, 'app', '应用支付', NULL, 0, '2024-01-09 10:01:21', 0, '2024-01-09 10:01:25', 0, b'0'); +INSERT INTO `pay_method_info` VALUES (4, 'web', 'web支付', NULL, 0, '2024-01-09 10:01:21', 0, '2024-01-09 10:01:25', 0, b'0'); +INSERT INTO `pay_method_info` VALUES (6, 'barcode', '付款码', NULL, 0, '2024-01-09 10:01:21', 0, '2024-01-09 10:01:25', 0, b'0'); +INSERT INTO `pay_method_info` VALUES (7, 'jsapi', '公众号/小程序支付', '主要是微信使用', 0, '2024-01-09 10:01:21', 1399985191002447872, '2024-02-13 15:38:57', 1, b'0'); + +-- ---------------------------- +-- Table structure for pay_order +-- ---------------------------- +DROP TABLE IF EXISTS `pay_order`; +CREATE TABLE `pay_order` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `biz_order_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户订单号', + `order_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付订单号', + `out_order_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通道支付订单号', + `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标题', + `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述', + `allocation` bit(1) NULL DEFAULT NULL COMMENT '是否需要分账', + `channel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '异步支付通道', + `method` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付方式', + `amount` int(11) NULL DEFAULT NULL COMMENT '金额', + `refundable_balance` int(11) NULL DEFAULT NULL COMMENT '可退款余额', + `status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付状态', + `allocation_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分账状态', + `pay_time` datetime NULL DEFAULT NULL COMMENT '支付时间', + `close_time` datetime NULL DEFAULT NULL COMMENT '关闭时间', + `expired_time` datetime NULL DEFAULT NULL COMMENT '过期时间', + `error_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '错误码', + `error_msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '错误信息', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + `auto_allocation` bit(1) NULL DEFAULT NULL COMMENT '自动分账', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `biz_order_no`(`biz_order_no`) USING BTREE COMMENT '商户订单号索引' +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付订单' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_order +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_order_extra +-- ---------------------------- +DROP TABLE IF EXISTS `pay_order_extra`; +CREATE TABLE `pay_order_extra` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `return_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '同步跳转地址', + `notify_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '异步通知地址', + `extra_param` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '附加参数', + `attach` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户扩展参数', + `req_time` datetime NULL DEFAULT NULL COMMENT '请求时间,传输时间戳,以最后一次为准', + `client_ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付终端ip', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付订单扩展信息' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_order_extra +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_platform_config +-- ---------------------------- +DROP TABLE IF EXISTS `pay_platform_config`; +CREATE TABLE `pay_platform_config` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `website_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '网站地址', + `sign_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '签名方式', + `sign_secret` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '签名秘钥', + `notify_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付通知地址', + `return_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '同步支付跳转地址', + `order_timeout` int(11) NULL DEFAULT NULL COMMENT '订单默认超时时间(分钟)', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + `limit_amount` int(11) NULL DEFAULT NULL COMMENT '支付限额', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付平台配置' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_platform_config +-- ---------------------------- +INSERT INTO `pay_platform_config` VALUES (0, 'http://pay1.bootx.cn/', 'HMAC_SHA256', '123456', 'http://pay1.bootx.cn/h5/#/result/success', 'http://pay1.bootx.cn/h5/#/result/success', 30, 0, '2024-01-02 20:23:19', 1399985191002447872, '2024-03-24 11:34:20', 13, b'0', 20000); + +-- ---------------------------- +-- Table structure for pay_reconcile_detail +-- ---------------------------- +DROP TABLE IF EXISTS `pay_reconcile_detail`; +CREATE TABLE `pay_reconcile_detail` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商品名称', + `amount` int(11) NULL DEFAULT NULL COMMENT '交易金额', + `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '交易类型', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `reconcile_id` bigint(20) NULL DEFAULT NULL COMMENT '关联对账订单ID', + `trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '本地交易号', + `out_trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '外部交易号', + `trade_time` datetime NULL DEFAULT NULL COMMENT '交易时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付对账记录' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_reconcile_detail +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_reconcile_diff_record +-- ---------------------------- +DROP TABLE IF EXISTS `pay_reconcile_diff_record`; +CREATE TABLE `pay_reconcile_diff_record` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `detail_id` bigint(20) NULL DEFAULT NULL COMMENT '对账单明细ID', + `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '订单标题', + `diff_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '差异类型', + `diffs` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '差异内容', + `amount` int(11) NULL DEFAULT NULL COMMENT '本地交易金额', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + `reconcile_id` bigint(20) NULL DEFAULT NULL COMMENT '对账单ID', + `trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '本地交易号', + `trade_time` datetime NULL DEFAULT NULL COMMENT '交易时间', + `out_amount` int(11) NULL DEFAULT NULL COMMENT '通道交易金额', + `reconcile_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '对账号', + `reconcile_date` date NULL DEFAULT NULL COMMENT '对账日期', + `trade_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '交易类型', + `channel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通道', + `out_trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通道交易号', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '对账差异单' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_reconcile_diff_record +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_reconcile_file +-- ---------------------------- +DROP TABLE IF EXISTS `pay_reconcile_file`; +CREATE TABLE `pay_reconcile_file` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `reconcile_id` bigint(20) NULL DEFAULT NULL COMMENT '对账单ID', + `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '类型', + `file_id` bigint(20) NULL DEFAULT NULL COMMENT '对账单文件', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '原始对账单文件,' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_reconcile_file +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_reconcile_order +-- ---------------------------- +DROP TABLE IF EXISTS `pay_reconcile_order`; +CREATE TABLE `pay_reconcile_order` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `date` date NULL DEFAULT NULL COMMENT '日期', + `channel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通道', + `compare` bit(1) NULL DEFAULT NULL COMMENT '明细对账单比对', + `error_msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '错误信息', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `reconcile_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '对账号', + `result` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '对账结果', + `error_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '错误码', + `down_or_upload` bit(1) NULL DEFAULT NULL COMMENT '明细对账单下载', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付对账单订单' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_reconcile_order +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_reconcile_out_trade +-- ---------------------------- +DROP TABLE IF EXISTS `pay_reconcile_out_trade`; +CREATE TABLE `pay_reconcile_out_trade` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `reconcile_id` bigint(20) NULL DEFAULT NULL COMMENT '关联对账订单ID', + `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商品名称', + `amount` int(11) NULL DEFAULT NULL COMMENT '交易金额', + `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '交易类型', + `trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '本地交易号', + `out_trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通道交易号', + `trade_time` datetime NULL DEFAULT NULL COMMENT '交易时间', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '对账-通道交易明细' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_reconcile_out_trade +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_refund_order +-- ---------------------------- +DROP TABLE IF EXISTS `pay_refund_order`; +CREATE TABLE `pay_refund_order` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `order_id` bigint(20) NULL DEFAULT NULL COMMENT '支付订单ID', + `order_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付订单号', + `biz_order_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户支付订单号', + `out_order_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通道支付订单号', + `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付标题', + `refund_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '退款号', + `biz_refund_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户退款号', + `out_refund_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通道退款交易号', + `channel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付通道', + `order_amount` int(11) NULL DEFAULT NULL COMMENT '订单金额', + `amount` int(11) NULL DEFAULT NULL COMMENT '退款金额', + `reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '退款原因', + `finish_time` datetime NULL DEFAULT NULL COMMENT '退款完成时间', + `status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '退款状态', + `error_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '错误码', + `error_msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '错误信息', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '退款订单' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_refund_order +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_refund_order_extra +-- ---------------------------- +DROP TABLE IF EXISTS `pay_refund_order_extra`; +CREATE TABLE `pay_refund_order_extra` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `notify_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '异步通知地址', + `attach` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户扩展参数', + `extra_param` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '附加参数', + `req_time` datetime NULL DEFAULT NULL COMMENT '请求时间,传输时间戳', + `client_ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付终端ip', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '退款订单扩展信息' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_refund_order_extra +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_repair_record +-- ---------------------------- +DROP TABLE IF EXISTS `pay_repair_record`; +CREATE TABLE `pay_repair_record` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `repair_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '修复号', + `trade_id` bigint(20) NULL DEFAULT NULL COMMENT '本地订单ID', + `trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '本地业务号', + `repair_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '修复类型', + `repair_source` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '修复来源', + `repair_way` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '修复方式', + `channel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '修复的通道', + `before_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '修复前状态', + `after_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '修复后状态', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付修复记录' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_repair_record +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_sync_record +-- ---------------------------- +DROP TABLE IF EXISTS `pay_sync_record`; +CREATE TABLE `pay_sync_record` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '本地交易号', + `biz_trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户交易号', + `out_trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通道交易号', + `out_trade_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '网关返回状态', + `sync_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '同步类型', + `channel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '同步的异步通道', + `sync_info` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '同步消息', + `repair` bit(1) NULL DEFAULT NULL COMMENT '是否进行修复', + `repair_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '修复单号', + `error_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '错误码', + `error_msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '错误消息', + `client_ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '客户端IP', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付同步订单' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_sync_record +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_trade_flow_record +-- ---------------------------- +DROP TABLE IF EXISTS `pay_trade_flow_record`; +CREATE TABLE `pay_trade_flow_record` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标题', + `amount` int(11) NULL DEFAULT NULL COMMENT '金额', + `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '业务类型', + `channel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付通道', + `trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '本地交易号', + `biz_trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户交易号', + `out_trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通道交易号', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '资金流水记录' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_trade_flow_record +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_transfer_order +-- ---------------------------- +DROP TABLE IF EXISTS `pay_transfer_order`; +CREATE TABLE `pay_transfer_order` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `out_trade_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `channel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `amount` int(11) NULL DEFAULT NULL, + `status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `payer` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `payee` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `success_time` datetime NULL DEFAULT NULL, + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '转账订单' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_transfer_order +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_union_pay_config +-- ---------------------------- +DROP TABLE IF EXISTS `pay_union_pay_config`; +CREATE TABLE `pay_union_pay_config` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `mach_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户号', + `enable` bit(1) NULL DEFAULT NULL COMMENT '是否启用', + `server_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付网关地址', + `notify_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '异步通知路径', + `pay_ways` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '可用支付方式', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `seller` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户收款账号', + `single_limit` int(11) NULL DEFAULT NULL COMMENT '支付限额', + `sign_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '签名类型', + `cert_sign` bit(1) NULL DEFAULT NULL COMMENT '是否为证书签名', + `key_private_cert` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '应用私钥证书', + `key_private_cert_pwd` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '私钥证书对应的密码', + `acp_middle_cert` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '中级证书', + `acp_root_cert` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '根证书', + `sandbox` bit(1) NULL DEFAULT NULL COMMENT '是否沙箱环境', + `return_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '同步通知页面路径', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '云闪付支付配置' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_union_pay_config +-- ---------------------------- +INSERT INTO `pay_union_pay_config` VALUES (0, NULL, NULL, NULL, NULL, 'wap,web,qrcode,app,barcode', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, '2024-03-06 22:56:22', 1399985191002447872, '2024-03-23 23:15:20', 12, b'0'); + +-- ---------------------------- +-- Table structure for pay_union_reconcile_bill_detail +-- ---------------------------- +DROP TABLE IF EXISTS `pay_union_reconcile_bill_detail`; +CREATE TABLE `pay_union_reconcile_bill_detail` ( + `trade_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '交易代码', + `txn_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '交易传输时间', + `txn_amt` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '交易金额', + `query_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '查询流水号', + `order_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户订单号', + `reconcile_id` bigint(20) NULL DEFAULT NULL COMMENT '关联对账订单ID' +) ENGINE = InnoDB AUTO_INCREMENT = 128 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '云闪付业务明细对账单' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_union_reconcile_bill_detail +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_wallet +-- ---------------------------- +DROP TABLE IF EXISTS `pay_wallet`; +CREATE TABLE `pay_wallet` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `user_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '关联用户id', + `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '钱包名称', + `balance` int(11) NULL DEFAULT NULL COMMENT '余额', + `status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '状态', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE, + INDEX `用户ID索引`(`user_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '钱包' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_wallet +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_wallet_config +-- ---------------------------- +DROP TABLE IF EXISTS `pay_wallet_config`; +CREATE TABLE `pay_wallet_config` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `enable` bit(1) NULL DEFAULT NULL COMMENT '是否启用', + `single_limit` int(11) NULL DEFAULT NULL COMMENT '单次支付最多多少金额 ', + `pay_ways` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '可用支付方式', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '钱包配置' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_wallet_config +-- ---------------------------- +INSERT INTO `pay_wallet_config` VALUES (0, b'0', 2000, 'normal', NULL, 0, '2024-02-17 14:36:28', 1399985191002447872, '2024-02-17 14:40:45', 4, b'0'); + +-- ---------------------------- +-- Table structure for pay_wallet_record +-- ---------------------------- +DROP TABLE IF EXISTS `pay_wallet_record`; +CREATE TABLE `pay_wallet_record` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `wallet_id` bigint(20) NULL DEFAULT NULL COMMENT '钱包id', + `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标题', + `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '业务类型', + `amount` int(11) NULL DEFAULT NULL COMMENT '金额', + `old_amount` int(11) NULL DEFAULT NULL COMMENT '变动之前的金额', + `new_amount` int(11) NULL DEFAULT NULL COMMENT '变动之后的金额', + `order_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '交易订单号', + `ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '终端ip', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`id`) USING BTREE, + INDEX `wallet_id`(`wallet_id`) USING BTREE COMMENT '钱包ID' +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '钱包记录' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_wallet_record +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_wechat_notice_config +-- ---------------------------- +DROP TABLE IF EXISTS `pay_wechat_notice_config`; +CREATE TABLE `pay_wechat_notice_config` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `app_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '应用id', + `app_secret` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '应用秘钥', + `qr_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '公众号二维码', + `oauth2_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'OAuth2地址', + `verify_file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '微信校验文件名称', + `verify_file_content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '微信校验文件内容', + `template_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模板消息Id', + `template_content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模板消息内容', + `template_remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模板消息备注', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '微信消息通知相关配置' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_wechat_notice_config +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_wechat_pay_config +-- ---------------------------- +DROP TABLE IF EXISTS `pay_wechat_pay_config`; +CREATE TABLE `pay_wechat_pay_config` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `wx_mch_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '微信商户号', + `wx_app_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '微信应用appId', + `enable` bit(1) NULL DEFAULT NULL COMMENT '是否启用', + `notify_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '异步通知路径', + `return_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '同步通知路径', + `api_version` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接口版本', + `api_key_v2` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'APIv2 密钥', + `api_key_v3` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'APIv3 密钥', + `app_secret` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'APPID对应的接口密码', + `p12` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'API证书中p12证书Base64', + `sandbox` bit(1) NULL DEFAULT NULL COMMENT '是否沙箱环境', + `allocation` bit(1) NULL DEFAULT NULL COMMENT '是否支付分账', + `pay_ways` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '可用支付方式', + `single_limit` int(11) NULL DEFAULT NULL COMMENT '支付限额', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修者ID', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '乐观锁', + `deleted` bit(1) NOT NULL COMMENT '删除标志', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '微信支付配置' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_wechat_pay_config +-- ---------------------------- +INSERT INTO `pay_wechat_pay_config` VALUES (0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'wap,app,jsapi,qrcode,barcode', NULL, NULL, 0, '2024-01-03 23:13:11', 1399985191002447872, '2024-04-02 17:07:37', 23, b'0'); + +-- ---------------------------- +-- Table structure for pay_wechat_pay_record +-- ---------------------------- +DROP TABLE IF EXISTS `pay_wechat_pay_record`; +CREATE TABLE `pay_wechat_pay_record` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标题', + `amount` int(11) NULL DEFAULT NULL COMMENT '金额', + `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '业务类型', + `order_id` bigint(20) NULL DEFAULT NULL COMMENT '本地订单号', + `gateway_order_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '网关订单号', + `gateway_time` datetime NULL DEFAULT NULL COMMENT '网关完成时间', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '微信支付记录' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_wechat_pay_record +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_wechat_reconcile_bill_detail +-- ---------------------------- +DROP TABLE IF EXISTS `pay_wechat_reconcile_bill_detail`; +CREATE TABLE `pay_wechat_reconcile_bill_detail` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `record_order_id` bigint(20) NULL DEFAULT NULL COMMENT '关联对账订单ID', + `transaction_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '交易时间', + `app_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '公众账号ID', + `merchant_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户号', + `sub_merchant_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '特约商户号', + `wei_xin_order_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '微信订单号', + `mch_order_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户订单号', + `user_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户标识', + `device_info` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设备号', + `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '交易类型', + `status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '交易状态', + `bank` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '付款银行', + `currency` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '货币种类', + `amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '应结订单金额', + `envelope_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '代金券金额', + `wx_refund_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '微信退款单号', + `mch_refund_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户退款单号', + `refund_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '退款金额', + `coupon_refund_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '充值券退款金额', + `refund_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '退款类型', + `refund_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '退款状态', + `subject` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商品名称', + `mch_data_packet` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户数据包', + `premium` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手续费', + `rates` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '费率', + `order_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '订单金额', + `apply_refund_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '申请退款金额', + `rates_remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '费率备注', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '微信对账单明细' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_wechat_reconcile_bill_detail +-- ---------------------------- + +-- ---------------------------- +-- Table structure for pay_wechat_reconcile_bill_total +-- ---------------------------- +DROP TABLE IF EXISTS `pay_wechat_reconcile_bill_total`; +CREATE TABLE `pay_wechat_reconcile_bill_total` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `record_order_id` bigint(20) NULL DEFAULT NULL COMMENT '关联对账订单ID', + `total_num` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '总交易单数', + `total_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '应结订单总金额', + `total_refund_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '退款总金额', + `total_refund_coupon_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '充值券退款总金额', + `total_fee` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手续费总金额', + `total_order_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '订单总金额', + `apply_total_refund_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '申请退款总金额', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '微信对账单汇总' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of pay_wechat_reconcile_bill_total +-- ---------------------------- + +-- ---------------------------- +-- Table structure for qrtz_blob_triggers +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_blob_triggers`; +CREATE TABLE `qrtz_blob_triggers` ( + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `TRIGGER_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `TRIGGER_GROUP` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `BLOB_DATA` blob NULL, + PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE, + INDEX `SCHED_NAME`(`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE, + 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 NO ACTION ON UPDATE NO ACTION +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_blob_triggers +-- ---------------------------- + +-- ---------------------------- +-- Table structure for qrtz_calendars +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_calendars`; +CREATE TABLE `qrtz_calendars` ( + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `CALENDAR_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `CALENDAR` blob NOT NULL, + PRIMARY KEY (`SCHED_NAME`, `CALENDAR_NAME`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_calendars +-- ---------------------------- + +-- ---------------------------- +-- Table structure for qrtz_cron_triggers +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_cron_triggers`; +CREATE TABLE `qrtz_cron_triggers` ( + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `TRIGGER_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `TRIGGER_GROUP` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `CRON_EXPRESSION` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `TIME_ZONE_ID` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE, + 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 NO ACTION ON UPDATE NO ACTION +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_cron_triggers +-- ---------------------------- + +-- ---------------------------- +-- Table structure for qrtz_fired_triggers +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_fired_triggers`; +CREATE TABLE `qrtz_fired_triggers` ( + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `ENTRY_ID` varchar(95) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `TRIGGER_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `TRIGGER_GROUP` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `INSTANCE_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `FIRED_TIME` bigint(13) NOT NULL, + `SCHED_TIME` bigint(13) NOT NULL, + `PRIORITY` int(11) NOT NULL, + `STATE` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `JOB_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `JOB_GROUP` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `IS_NONCONCURRENT` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `REQUESTS_RECOVERY` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + PRIMARY KEY (`SCHED_NAME`, `ENTRY_ID`) USING BTREE, + INDEX `IDX_QRTZ_FT_T_G`(`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE, + INDEX `IDX_QRTZ_FT_TRIG_INST_NAME`(`SCHED_NAME`, `INSTANCE_NAME`) USING BTREE, + INDEX `IDX_QRTZ_FT_J_G`(`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) USING BTREE, + INDEX `IDX_QRTZ_FT_INST_JOB_REQ_RCVRY`(`SCHED_NAME`, `INSTANCE_NAME`, `REQUESTS_RECOVERY`) USING BTREE, + INDEX `IDX_QRTZ_FT_TG`(`SCHED_NAME`, `TRIGGER_GROUP`) USING BTREE, + INDEX `IDX_QRTZ_FT_JG`(`SCHED_NAME`, `JOB_GROUP`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_fired_triggers +-- ---------------------------- + +-- ---------------------------- +-- Table structure for qrtz_job_details +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_job_details`; +CREATE TABLE `qrtz_job_details` ( + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `JOB_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `JOB_GROUP` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `DESCRIPTION` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `JOB_CLASS_NAME` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `IS_DURABLE` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `IS_NONCONCURRENT` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `IS_UPDATE_DATA` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `REQUESTS_RECOVERY` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `JOB_DATA` blob NULL, + PRIMARY KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) USING BTREE, + INDEX `IDX_QRTZ_J_GRP`(`SCHED_NAME`, `JOB_GROUP`) USING BTREE, + INDEX `IDX_QRTZ_J_REQ_RECOVERY`(`SCHED_NAME`, `REQUESTS_RECOVERY`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_job_details +-- ---------------------------- + +-- ---------------------------- +-- Table structure for qrtz_locks +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_locks`; +CREATE TABLE `qrtz_locks` ( + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `LOCK_NAME` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + PRIMARY KEY (`SCHED_NAME`, `LOCK_NAME`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_locks +-- ---------------------------- +INSERT INTO `qrtz_locks` VALUES ('quartzScheduler', 'TRIGGER_ACCESS'); + +-- ---------------------------- +-- Table structure for qrtz_paused_trigger_grps +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_paused_trigger_grps`; +CREATE TABLE `qrtz_paused_trigger_grps` ( + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `TRIGGER_GROUP` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + PRIMARY KEY (`SCHED_NAME`, `TRIGGER_GROUP`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_paused_trigger_grps +-- ---------------------------- + +-- ---------------------------- +-- Table structure for qrtz_scheduler_state +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_scheduler_state`; +CREATE TABLE `qrtz_scheduler_state` ( + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `INSTANCE_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `LAST_CHECKIN_TIME` bigint(13) NOT NULL, + `CHECKIN_INTERVAL` bigint(13) NOT NULL, + PRIMARY KEY (`SCHED_NAME`, `INSTANCE_NAME`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_scheduler_state +-- ---------------------------- + +-- ---------------------------- +-- Table structure for qrtz_simple_triggers +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_simple_triggers`; +CREATE TABLE `qrtz_simple_triggers` ( + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `TRIGGER_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `TRIGGER_GROUP` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `REPEAT_COUNT` bigint(7) NOT NULL, + `REPEAT_INTERVAL` bigint(12) NOT NULL, + `TIMES_TRIGGERED` bigint(10) NOT NULL, + PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE, + 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 NO ACTION ON UPDATE NO ACTION +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_simple_triggers +-- ---------------------------- + +-- ---------------------------- +-- Table structure for qrtz_simprop_triggers +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_simprop_triggers`; +CREATE TABLE `qrtz_simprop_triggers` ( + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `TRIGGER_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `TRIGGER_GROUP` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `STR_PROP_1` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `STR_PROP_2` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `STR_PROP_3` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `INT_PROP_1` int(11) NULL DEFAULT NULL, + `INT_PROP_2` int(11) NULL DEFAULT NULL, + `LONG_PROP_1` bigint(20) NULL DEFAULT NULL, + `LONG_PROP_2` bigint(20) NULL DEFAULT NULL, + `DEC_PROP_1` decimal(13, 4) NULL DEFAULT NULL, + `DEC_PROP_2` decimal(13, 4) NULL DEFAULT NULL, + `BOOL_PROP_1` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `BOOL_PROP_2` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE, + 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 NO ACTION ON UPDATE NO ACTION +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_simprop_triggers +-- ---------------------------- + +-- ---------------------------- +-- Table structure for qrtz_triggers +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_triggers`; +CREATE TABLE `qrtz_triggers` ( + `SCHED_NAME` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `TRIGGER_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `TRIGGER_GROUP` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `JOB_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `JOB_GROUP` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `DESCRIPTION` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `NEXT_FIRE_TIME` bigint(13) NULL DEFAULT NULL, + `PREV_FIRE_TIME` bigint(13) NULL DEFAULT NULL, + `PRIORITY` int(11) NULL DEFAULT NULL, + `TRIGGER_STATE` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `TRIGGER_TYPE` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `START_TIME` bigint(13) NOT NULL, + `END_TIME` bigint(13) NULL DEFAULT NULL, + `CALENDAR_NAME` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `MISFIRE_INSTR` smallint(2) NULL DEFAULT NULL, + `JOB_DATA` blob NULL, + PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE, + INDEX `IDX_QRTZ_T_NFT_ST`(`SCHED_NAME`, `TRIGGER_STATE`, `NEXT_FIRE_TIME`) USING BTREE, + INDEX `IDX_QRTZ_T_N_STATE`(`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`, `TRIGGER_STATE`) USING BTREE, + INDEX `IDX_QRTZ_T_NEXT_FIRE_TIME`(`SCHED_NAME`, `NEXT_FIRE_TIME`) USING BTREE, + INDEX `IDX_QRTZ_T_C`(`SCHED_NAME`, `CALENDAR_NAME`) USING BTREE, + INDEX `IDX_QRTZ_T_NFT_ST_MISFIRE`(`SCHED_NAME`, `MISFIRE_INSTR`, `NEXT_FIRE_TIME`, `TRIGGER_STATE`) USING BTREE, + INDEX `IDX_QRTZ_T_G`(`SCHED_NAME`, `TRIGGER_GROUP`) USING BTREE, + INDEX `IDX_QRTZ_T_J`(`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) USING BTREE, + INDEX `IDX_QRTZ_T_JG`(`SCHED_NAME`, `JOB_GROUP`) USING BTREE, + INDEX `IDX_QRTZ_T_N_G_STATE`(`SCHED_NAME`, `TRIGGER_GROUP`, `TRIGGER_STATE`) USING BTREE, + INDEX `IDX_QRTZ_T_NFT_MISFIRE`(`SCHED_NAME`, `MISFIRE_INSTR`, `NEXT_FIRE_TIME`) USING BTREE, + INDEX `IDX_QRTZ_T_STATE`(`SCHED_NAME`, `TRIGGER_STATE`) USING BTREE, + INDEX `IDX_QRTZ_T_NFT_ST_MISFIRE_GRP`(`SCHED_NAME`, `MISFIRE_INSTR`, `NEXT_FIRE_TIME`, `TRIGGER_GROUP`, `TRIGGER_STATE`) USING BTREE, + 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 NO ACTION ON UPDATE NO ACTION +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_triggers +-- ---------------------------- + +-- ---------------------------- +-- Table structure for starter_audit_data_version +-- ---------------------------- +DROP TABLE IF EXISTS `starter_audit_data_version`; +CREATE TABLE `starter_audit_data_version` ( + `id` bigint(20) NOT NULL, + `table_name` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '数据表名称', + `data_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '数据名称', + `data_id` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '数据主键', + `data_content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '数据内容', + `change_content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '数据更新内容', + `version` int(10) NOT NULL COMMENT '版本', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '数据版本日志' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of starter_audit_data_version +-- ---------------------------- + +-- ---------------------------- +-- Table structure for starter_audit_login_log +-- ---------------------------- +DROP TABLE IF EXISTS `starter_audit_login_log`; +CREATE TABLE `starter_audit_login_log` ( + `id` bigint(20) NOT NULL, + `user_id` bigint(11) NULL DEFAULT NULL COMMENT '用户id', + `account` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名称', + `login` bit(1) NULL DEFAULT NULL COMMENT '登录成功状态', + `client` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '终端', + `login_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '登录方式', + `ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '登录IP地址', + `login_location` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '登录地点', + `os` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作系统', + `browser` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '浏览器类型', + `msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '提示消息', + `login_time` datetime NULL DEFAULT NULL COMMENT '访问时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '登陆日志' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of starter_audit_login_log +-- ---------------------------- + +-- ---------------------------- +-- Table structure for starter_audit_operate_log +-- ---------------------------- +DROP TABLE IF EXISTS `starter_audit_operate_log`; +CREATE TABLE `starter_audit_operate_log` ( + `id` bigint(20) NOT NULL, + `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作模块', + `operate_id` bigint(20) NULL DEFAULT NULL COMMENT '操作人员id', + `username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作人员账号', + `business_type` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '业务类型', + `method` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求方法', + `request_method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求方式', + `operate_url` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求url', + `operate_ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作ip', + `operate_location` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作地点', + `operate_param` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求参数', + `operate_return` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '返回参数', + `success` bit(1) NULL DEFAULT NULL COMMENT '是否成功', + `error_msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '错误提示', + `operate_time` datetime NULL DEFAULT NULL COMMENT '操作时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '操作日志' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of starter_audit_operate_log +-- ---------------------------- + +-- ---------------------------- +-- Table structure for starter_ding_media_md5 +-- ---------------------------- +DROP TABLE IF EXISTS `starter_ding_media_md5`; +CREATE TABLE `starter_ding_media_md5` ( + `id` bigint(20) NOT NULL, + `media_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '媒体id', + `md5` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'md5值', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime(6) NULL DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '钉钉媒体文件MD5值关联关系' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of starter_ding_media_md5 +-- ---------------------------- + +-- ---------------------------- +-- Table structure for starter_ding_robot_config +-- ---------------------------- +DROP TABLE IF EXISTS `starter_ding_robot_config`; +CREATE TABLE `starter_ding_robot_config` ( + `id` bigint(20) NOT NULL, + `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名称', + `code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '编号', + `access_token` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '钉钉机器人访问token', + `enable_signature_check` bit(1) NOT NULL COMMENT '是否开启验签', + `sign_secret` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '钉钉机器人私钥', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime(6) NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人', + `last_modified_time` datetime(6) NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '版本', + `deleted` bit(1) NOT NULL COMMENT '0:未删除。1:已删除', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '钉钉机器人配置' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of starter_ding_robot_config +-- ---------------------------- + +-- ---------------------------- +-- Table structure for starter_file_data +-- ---------------------------- +DROP TABLE IF EXISTS `starter_file_data`; +CREATE TABLE `starter_file_data` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `base64` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT 'base64方式存储', + `data` longblob NULL COMMENT '数据方式存储', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '上传文件数据' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of starter_file_data +-- ---------------------------- + +-- ---------------------------- +-- Table structure for starter_file_upload_info +-- ---------------------------- +DROP TABLE IF EXISTS `starter_file_upload_info`; +CREATE TABLE `starter_file_upload_info` ( + `id` bigint(20) NOT NULL COMMENT '文件id', + `url` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '文件访问地址', + `size` bigint(20) NULL DEFAULT NULL COMMENT '文件大小,单位字节', + `filename` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称', + `original_filename` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '原始文件名', + `base_path` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '基础存储路径', + `path` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '存储路径', + `ext` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件扩展名', + `content_type` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'MIME类型', + `platform` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '存储平台', + `th_url` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '缩略图访问路径', + `th_filename` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '缩略图名称', + `th_size` bigint(20) NULL DEFAULT NULL COMMENT '缩略图大小,单位字节', + `th_content_type` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '缩略图MIME类型', + `object_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件所属对象id', + `object_type` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件所属对象类型,例如用户头像,评价图片', + `metadata` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '文件元数据', + `user_metadata` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '文件用户元数据', + `th_metadata` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '缩略图元数据', + `th_user_metadata` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '缩略图用户元数据', + `attr` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '附加属性', + `file_acl` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件ACL', + `th_file_acl` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '缩略图文件ACL', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '文件记录表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of starter_file_upload_info +-- ---------------------------- + +-- ---------------------------- +-- Table structure for starter_quartz_job +-- ---------------------------- +DROP TABLE IF EXISTS `starter_quartz_job`; +CREATE TABLE `starter_quartz_job` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务名称', + `job_class_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务类名', + `cron` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'cron表达式', + `parameter` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '参数', + `state` int(4) NULL DEFAULT NULL COMMENT '状态', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '版本', + `deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0:未删除。1:已删除', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '定时任务' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of starter_quartz_job +-- ---------------------------- +INSERT INTO `starter_quartz_job` VALUES (1456579473573867520, '测试任务', 'cn.bootx.platform.starter.quartz.task.TestTask', '0/3 0 * * * ? *', '{\"aaa\":\"5255\"}', 0, '测试任务', 1399985191002447872, '2021-11-05 19:09:43', 1399985191002447872, '2024-02-24 23:57:57', 29, 0); +INSERT INTO `starter_quartz_job` VALUES (1546857070483939328, '支付单超时检测(Redis)', 'cn.daxpay.single.service.task.PayExpiredTimeTask', '0/5 * * * * ? *', NULL, 0, '检测超时的支付单, 超时后调用同步事件状态修复', 1399985191002447872, '2022-07-12 22:00:39', 1399985191002447872, '2024-06-03 19:18:14', 9, 0); +INSERT INTO `starter_quartz_job` VALUES (1761419490908958720, '客户系统通知重发任务', 'cn.daxpay.single.service.task.ClientNoticeSendTask', '0/1 * * * * ? *', '', 0, '每秒调用一下当前需要进行通知的任务', 1399985191002447872, '2024-02-24 23:55:07', 1399985191002447872, '2024-05-09 17:13:10', 5, 0); +INSERT INTO `starter_quartz_job` VALUES (1764664552203743232, '支付宝定时对账', 'cn.daxpay.single.service.task.ReconcileTask', '0 0 11 * * ? *', '{\"channel\":\"ali_pay\",\"n\":1}', 0, '', 1399985191002447872, '2024-03-04 22:49:50', 1399985191002447872, '2024-05-09 17:13:10', 6, 0); +INSERT INTO `starter_quartz_job` VALUES (1764667388106887168, '微信支付定时对账', 'cn.daxpay.single.service.task.ReconcileTask', '0 0 11 * * ? *', '{\"channel\":\"wechat_pay\",\"n\":1}', 0, '', 1399985191002447872, '2024-03-04 23:01:06', 1399985191002447872, '2024-05-09 17:13:10', 6, 0); +INSERT INTO `starter_quartz_job` VALUES (1767553847839141888, '退款订单定时同步', 'cn.daxpay.single.service.task.RefundSyncTask', '0 * * * * ? *', '', 0, '', 1399985191002447872, '2024-03-12 22:10:52', 1399985191002447872, '2024-05-09 17:13:10', 4, 0); +INSERT INTO `starter_quartz_job` VALUES (1787464504578744320, '自动分账定时任务', 'cn.daxpay.single.service.task.AllocationAutoStartTask', '0/10 * * * * ? *', '', 0, '', 1399985191002447872, '2024-05-06 20:48:42', 1399985191002447872, '2024-05-09 17:13:10', 2, 0); +INSERT INTO `starter_quartz_job` VALUES (1787470450809954304, '自动分账信息同步和完结接口', 'cn.daxpay.single.service.task.AllocationSyncTask', '0/10 * * * * ? *', '', 0, '', 1399985191002447872, '2024-05-06 21:12:20', 1399985191002447872, '2024-05-09 17:13:10', 2, 0); +INSERT INTO `starter_quartz_job` VALUES (1797588916837670912, '支付单超时检测(数据库)', 'cn.daxpay.single.service.task.PayExpiredByDbTimeTask', '0/20 * * * * ? *', '', 0, '检测超时的支付单, 超时后调用同步事件状态修复', 1399985191002447872, '2024-06-03 19:19:30', 1399985191002447872, '2024-06-03 19:22:28', 5, 0); + +-- ---------------------------- +-- Table structure for starter_quartz_job_log +-- ---------------------------- +DROP TABLE IF EXISTS `starter_quartz_job_log`; +CREATE TABLE `starter_quartz_job_log` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `handler_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '处理器名称', + `class_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '处理器全限定名', + `success` bit(1) NOT NULL COMMENT '是否执行成功', + `error_message` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '错误信息', + `start_time` datetime NULL DEFAULT NULL COMMENT '开始时间', + `end_time` datetime NULL DEFAULT NULL COMMENT '结束时间', + `duration` bigint(255) NULL DEFAULT NULL COMMENT '执行时长', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务执行日志' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of starter_quartz_job_log +-- ---------------------------- + +-- ---------------------------- +-- Table structure for starter_wecom_robot_config +-- ---------------------------- +DROP TABLE IF EXISTS `starter_wecom_robot_config`; +CREATE TABLE `starter_wecom_robot_config` ( + `id` bigint(20) NOT NULL, + `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称', + `code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '编号', + `webhook_key` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'webhook地址的key值', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime(6) NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人', + `last_modified_time` datetime(6) NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '版本', + `deleted` bit(1) NOT NULL COMMENT '0:未删除。1:已删除', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '企业微信机器人配置' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of starter_wecom_robot_config +-- ---------------------------- + +-- ---------------------------- +-- Table structure for starter_wx_fans +-- ---------------------------- +DROP TABLE IF EXISTS `starter_wx_fans`; +CREATE TABLE `starter_wx_fans` ( + `id` bigint(20) NOT NULL, + `openid` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '关联OpenId', + `subscribe_status` bit(1) NULL DEFAULT NULL COMMENT '订阅状态', + `subscribe_time` datetime NULL DEFAULT NULL COMMENT '订阅时间', + `nickname` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '昵称', + `sex` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '性别', + `language` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '语言', + `country` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '国家', + `province` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '省份', + `city` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '城市', + `avatar_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '头像地址', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '微信公众号粉丝' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of starter_wx_fans +-- ---------------------------- + +-- ---------------------------- +-- Table structure for starter_wx_menu +-- ---------------------------- +DROP TABLE IF EXISTS `starter_wx_menu`; +CREATE TABLE `starter_wx_menu` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '名称', + `menu_info` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '菜单信息', + `remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '备注', + `publish` bit(1) NOT NULL COMMENT '是否发布', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0:未删除。1:已删除', + `version` int(11) NOT NULL COMMENT '版本', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '微信自定义菜单' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of starter_wx_menu +-- ---------------------------- + +-- ---------------------------- +-- Table structure for starter_wx_template +-- ---------------------------- +DROP TABLE IF EXISTS `starter_wx_template`; +CREATE TABLE `starter_wx_template` ( + `id` bigint(20) NOT NULL, + `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名称', + `code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '编码', + `enable` bit(1) NOT NULL COMMENT '是否启用', + `template_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '模板ID', + `title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模板标题', + `primary_industry` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模板所属行业的一级行业', + `deputy_industry` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模板所属行业的二级行业', + `content` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模板内容', + `example` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '示例', + `creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `last_modifier` bigint(20) NULL DEFAULT NULL COMMENT '最后修改人', + `last_modified_time` datetime NULL DEFAULT NULL COMMENT '最后修改时间', + `version` int(11) NOT NULL COMMENT '版本', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `inx_`(`template_id`) USING BTREE COMMENT '模板id' +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '微信消息模板' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of starter_wx_template +-- ---------------------------- + +SET FOREIGN_KEY_CHECKS = 1; diff --git a/_config/postgresql/dax-pay.sql b/_config/postgresql/dax-pay.sql new file mode 100644 index 000000000..bd740922f --- /dev/null +++ b/_config/postgresql/dax-pay.sql @@ -0,0 +1,5948 @@ +create table base_area +( + code char(6) not null + primary key, + name varchar(60) not null, + city_code char(4) not null +); + +comment on table base_area is '县区表'; + +comment on column base_area.name is '区域名称'; + +comment on column base_area.city_code is '城市编码'; + + + +create index inx_city_code + on base_area (city_code); + +comment on index inx_city_code is '城市'; + + +----- +create table base_china_word +( + id bigint not null + primary key, + word varchar(255), + type varchar(255), + description varchar(255), + enable integer, + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + white boolean +); + +comment on table base_china_word is '敏感词'; + +comment on column base_china_word.id is '主键'; + +comment on column base_china_word.word is '敏感词'; + +comment on column base_china_word.type is '分类'; + +comment on column base_china_word.description is '描述'; + +comment on column base_china_word.enable is '是否启用'; + +comment on column base_china_word.creator is '创建者ID'; + +comment on column base_china_word.create_time is '创建时间'; + +comment on column base_china_word.last_modifier is '最后修者ID'; + +comment on column base_china_word.last_modified_time is '最后修改时间'; + +comment on column base_china_word.version is '乐观锁'; + + + + +----- +create table base_city +( + code char(4) not null + primary key, + name varchar(60) not null, + province_code char(2) not null +); + +comment on table base_city is '城市表'; + +comment on column base_city.code is '城市编码'; + +comment on column base_city.name is '城市名称'; + +comment on column base_city.province_code is '省份编码'; + + + + +----- +create table base_data_result_sql +( + id bigint not null + primary key, + database_id bigint, + name varchar(255), + is_list boolean, + sql varchar(255), + params text, + fields text, + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table base_data_result_sql is '数据集SQL语句'; + +comment on column base_data_result_sql.id is '主键'; + +comment on column base_data_result_sql.creator is '创建者ID'; + +comment on column base_data_result_sql.create_time is '创建时间'; + +comment on column base_data_result_sql.last_modifier is '最后修者ID'; + +comment on column base_data_result_sql.last_modified_time is '最后修改时间'; + +comment on column base_data_result_sql.version is '乐观锁'; + +comment on column base_data_result_sql.deleted is '删除标志'; + + + + +----- +create table base_dict +( + id bigint not null + primary key, + code varchar(255) not null, + name varchar(100) not null, + enable boolean not null, + group_tag varchar(100), + remark varchar(255), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + deleted boolean, + version integer +); + +comment on table base_dict is '字典'; + +comment on column base_dict.code is '编码'; + +comment on column base_dict.name is '名称'; + +comment on column base_dict.enable is '启用状态'; + +comment on column base_dict.group_tag is '分类标签'; + +comment on column base_dict.remark is '备注'; + +comment on column base_dict.creator is '创建人'; + +comment on column base_dict.create_time is '创建时间'; + +comment on column base_dict.last_modifier is '更新人'; + +comment on column base_dict.last_modified_time is '更新时间'; + +comment on column base_dict.deleted is '0:未删除。1:已删除'; + +comment on column base_dict.version is '版本'; + + + +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1422929378374828033, 'Sex', '性别', false, '基础属性', '性别', 0, '2021-08-04 22:36:15.000000', 1399985191002447872, '2022-05-11 19:48:40.000000', false, 6); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1425744045414772737, 'MenuType', '菜单类型', false, '系统属性', '菜单类型', 0, '2021-08-12 17:00:44.000000', 1399985191002447872, '2022-05-11 19:48:44.000000', false, 4); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1430063572491411456, 'loginType', '字典类型', false, '基础属性', '字典类型', 1399985191002447872, '2021-08-24 15:05:00.000000', 1399985191002447872, '2021-08-24 15:05:00.000000', true, 2); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1435829999592759296, 'UserStatusCode', '用户状态码', false, '系统属性', '用户状态码', 1399985191002447872, '2021-09-09 12:58:43.000000', 1399985191002447872, '2022-05-11 19:48:56.000000', false, 2); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1435838066191458304, 'LogBusinessType', '业务操作类型', false, '系统属性', '操作日志记录的业务操作类型', 1399985191002447872, '2021-09-09 13:30:46.000000', 1399985191002447872, '2022-05-11 19:49:00.000000', false, 2); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1438078864509317120, 'MailSecurityCode', '邮箱安全方式编码', false, '消息服务', '邮箱安全方式编码', 1399985191002447872, '2021-09-15 17:54:54.000000', 1399985191002447872, '2022-05-11 19:49:06.000000', false, 2); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1439961232651034624, 'MessageTemplateCode', '消息模板类型', false, '消息服务', '消息模板类型', 1399985191002447872, '2021-09-20 22:34:46.000000', 1399985191002447872, '2022-05-11 19:48:34.000000', false, 1); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1452836604783845376, 'SocialType', '三方系统类型', false, '系统属性', '三方系统类型', 1399985191002447872, '2021-10-26 11:16:54.000000', 1399985191002447872, '2022-05-11 19:48:28.000000', false, 3); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1452843488735621120, 'ParamType', '参数类型', false, '系统属性', '参数类型', 1399985191002447872, '2021-10-26 11:44:15.000000', 1399985191002447872, '2022-05-11 19:48:21.000000', false, 2); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1496024933900169216, 'Political', '政治面貌', false, '基础数据', '政治面貌', 1399985191002447872, '2022-02-22 15:31:54.000000', 1399985191002447872, '2022-05-11 19:48:04.000000', false, 1); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1556996322223968256, 'WeChatMediaType', '微信媒体类型', false, '微信', '微信媒体类型', 1399985191002447872, '2022-08-09 21:30:25.000000', 1399985191002447872, '2022-08-09 21:30:26.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1561003021674987520, 'SiteMessageReceive', '消息接收类型', false, '站内信', '站内信接收类型', 1399985191002447872, '2022-08-20 22:51:37.000000', 1399985191002447872, '2022-08-20 22:51:37.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1561003189111603200, 'SiteMessageState', '消息发布状态', false, '站内信', '站内信消息发布状态', 1399985191002447872, '2022-08-20 22:52:17.000000', 1399985191002447872, '2022-08-20 22:52:17.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1589527951317389312, 'DataScopePerm', '数据权限类型', false, '系统属性', '数据权限类型', 1414143554414059520, '2022-11-07 15:59:30.000000', 1399985191002447872, '2023-11-28 23:14:24.000000', false, 4); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1633393287952257024, 'DatabaseType', '数据库类型', false, '开发', '数据库类型', 1414143554414059520, '2023-03-08 17:04:41.000000', 1414143554414059520, '2023-03-08 17:04:41.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1688742690398617600, 'SmsChannel', '短信渠道商', false, '消息服务', '短信渠道商', 1414143554414059520, '2023-08-08 10:43:27.000000', 1414143554414059520, '2023-08-12 20:24:03.000000', false, 1); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1690338321769918464, 'GeneralTemplateUseType', '通用模板类型', false, '系统属性', '通用模板类型', 1414143554414059520, '2023-08-12 20:23:56.000000', 1414143554414059520, '2023-08-12 20:24:22.000000', false, 1); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1690338545284378624, 'GeneralTemplateState', '通用模板状态', false, '系统属性', '通用模板状态', 1414143554414059520, '2023-08-12 20:24:49.000000', 1414143554414059520, '2023-08-12 20:24:49.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1744996611615039488, 'AsyncPayChannel', '异步支付通道', false, '支付', '', 1399985191002447872, '2024-01-10 16:16:27.000000', 1399985191002447872, '2024-01-10 16:16:27.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1744996845355212800, 'PayChannel', '支付通道', false, '支付', '', 1399985191002447872, '2024-01-10 16:17:23.000000', 1399985191002447872, '2024-01-10 16:17:23.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1744996913667842048, 'PayStatus', '支付状态', false, '支付', '', 1399985191002447872, '2024-01-10 16:17:39.000000', 1399985191002447872, '2024-01-10 16:17:39.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745086859116224512, 'PayMethod', '支付方式', false, '支付', '', 1399985191002447872, '2024-01-10 22:15:04.000000', 1399985191002447872, '2024-05-02 12:38:01.000000', false, 1); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745109350333173760, 'PayCallbackStatus', '支付回调处理状态', false, '支付', '', 1399985191002447872, '2024-01-10 23:44:26.000000', 1399985191002447872, '2024-01-10 23:44:26.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745128986382667776, 'PayRepairSource', '支付修复来源', false, '支付', '', 1399985191002447872, '2024-01-11 01:02:28.000000', 1399985191002447872, '2024-01-11 01:02:28.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745134438772346880, 'PayRepairWay', '支付修复方式', false, '支付', '', 1399985191002447872, '2024-01-11 01:24:08.000000', 1399985191002447872, '2024-01-11 01:24:08.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745748188122554368, 'RefundStatus', '退款状态', false, '支付', '', 1399985191002447872, '2024-01-12 18:02:57.000000', 1399985191002447872, '2024-02-09 21:22:52.000000', false, 1); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1746208645341917184, 'PaySyncStatus', '支付同步结果', false, '支付', '', 1399985191002447872, '2024-01-14 00:32:39.000000', 1399985191002447872, '2024-01-14 00:32:39.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1749612665392541696, 'ReconcileTrade', '支付对账交易类型', false, '支付', '', 1399985191002447872, '2024-01-23 09:59:00.000000', 1399985191002447872, '2024-03-01 23:31:32.000000', false, 1); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1751603996496453632, 'PaymentType', '支付系统行为类型', false, '支付', '支付系统中常见的操作类型, 如支付/退款/转账等', 1399985191002447872, '2024-01-28 21:51:51.000000', 1399985191002447872, '2024-01-28 21:51:51.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1751613032260370432, 'PayCallbackType', '回调类型', false, '支付', '', 1399985191002447872, '2024-01-28 22:27:45.000000', 1399985191002447872, '2024-01-28 22:27:45.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1752560153120428032, 'RefundSyncStatus', '退款同步状态', false, '支付', '', 1399985191002447872, '2024-01-31 13:11:16.000000', 1399985191002447872, '2024-01-31 13:11:16.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1753047382185091072, 'RefundRepairWay', '退款修复方式', false, '支付', '', 1399985191002447872, '2024-02-01 21:27:21.000000', 1399985191002447872, '2024-02-01 21:27:21.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1758881354618220544, 'WalletStatus', '钱包状态', false, '支付', '', 1399985191002447872, '2024-02-17 23:49:28.000000', 1399985191002447872, '2024-02-17 23:49:28.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759189874194481152, 'VoucherStatus', '储值卡状态', false, '支付', '', 1399985191002447872, '2024-02-18 20:15:25.000000', 1399985191002447872, '2024-02-18 20:15:25.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759190066511708160, 'WalletRecordType', '钱包记录类型', false, '支付', '', 1399985191002447872, '2024-02-18 20:16:11.000000', 1399985191002447872, '2024-02-18 20:16:11.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759190427897135104, 'VoucherRecordType', '储值卡记录类型', false, '支付', '', 1399985191002447872, '2024-02-18 20:17:37.000000', 1399985191002447872, '2024-02-18 20:17:37.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759190780252225536, 'CashRecordType', '现金记录类型', false, '支付', '', 1399985191002447872, '2024-02-18 20:19:01.000000', 1399985191002447872, '2024-02-19 22:07:09.000000', false, 1); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1761434095349624832, 'ClientNoticeType', '客户消息通知类型', false, '支付', '', 1399985191002447872, '2024-02-25 00:53:09.000000', 1399985191002447872, '2024-02-25 00:53:09.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1761434264858226688, 'ClientNoticeSendType', '客户消息通知发送类型', false, '支付', '', 1399985191002447872, '2024-02-25 00:53:49.000000', 1399985191002447872, '2024-02-25 00:53:49.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1761581634023583744, 'AlipayRecordType', '支付宝流水记录类型', false, '支付', '', 1399985191002447872, '2024-02-25 10:39:25.000000', 1399985191002447872, '2024-02-25 10:39:25.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1761588314480300032, 'WechatPayRecordType', '微信支付流水记录类型', false, '支付', '', 1399985191002447872, '2024-02-25 11:05:58.000000', 1399985191002447872, '2024-02-25 11:05:58.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1763588034467713024, 'ReconcileDiffType', '对账差异类型', false, '支付', '', 1399985191002447872, '2024-03-01 23:32:08.000000', 1399985191002447872, '2024-03-01 23:32:08.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1766713545981153280, 'UnionPaySignType', '云闪付签名类型', false, '支付', '', 1399985191002447872, '2024-03-10 14:31:48.000000', 1399985191002447872, '2024-03-10 14:31:48.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1768206399071809536, 'UnionPayRecordType', '云闪付流水类型', false, '支付', '', 1399985191002447872, '2024-03-14 17:23:52.000000', 1399985191002447872, '2024-03-14 17:23:52.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1775112798259302400, 'AllocReceiverType', '分账接收方类型', false, '支付', '', 1399985191002447872, '2024-04-02 18:47:26.000000', 1399985191002447872, '2024-05-14 16:40:14.000000', false, 1); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1775122632706805760, 'AllocRelationType', '分账关系类型', false, '支付', '', 1399985191002447872, '2024-04-02 19:26:30.000000', 1399985191002447872, '2024-05-14 16:40:09.000000', false, 1); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1777697358802530304, 'AllocOrderStatus', '分账状态', false, '支付', '', 1399985191002447872, '2024-04-09 21:57:33.000000', 1399985191002447872, '2024-05-14 16:40:04.000000', false, 2); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1780163691808391168, 'AllocDetailResult', '支付分账明细处理结果', false, '支付', '', 1399985191002447872, '2024-04-16 17:17:53.000000', 1399985191002447872, '2024-05-14 16:39:57.000000', false, 3); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1780165499633106944, 'AllocOrderResult', '支付分账订单处理结果', false, '支付', '', 1399985191002447872, '2024-04-16 17:25:04.000000', 1399985191002447872, '2024-05-14 16:39:36.000000', false, 1); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1780165929528295424, 'PayOrderAllocationStatus', '支付订单分账状态', false, '支付', '', 1399985191002447872, '2024-04-16 17:26:46.000000', 1399985191002447872, '2024-04-16 17:26:46.000000', false, 0); +INSERT INTO base_dict (id, code, name, enable, group_tag, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1786399552686465024, 'ReconcileResult', '对账结果', false, '支付', '', 1399985191002447872, '2024-05-03 22:16:58.000000', 1399985191002447872, '2024-05-03 22:16:58.000000', false, 0); + +----- +create table base_dict_item +( + id bigint not null + primary key, + dict_id bigint not null, + dict_code varchar(255) not null, + code varchar(255) not null, + name varchar(100) not null, + enable boolean not null, + sort_no double precision not null, + remark varchar(255), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + deleted boolean not null, + version integer not null +); + +comment on table base_dict_item is '字典项'; + +comment on column base_dict_item.dict_id is '字典id'; + +comment on column base_dict_item.dict_code is '字典code'; + +comment on column base_dict_item.code is '字典项code'; + +comment on column base_dict_item.name is '字典项名称'; + +comment on column base_dict_item.enable is '启用状态'; + +comment on column base_dict_item.sort_no is '排序'; + +comment on column base_dict_item.remark is '备注'; + +comment on column base_dict_item.creator is '创建人'; + +comment on column base_dict_item.create_time is '创建时间'; + +comment on column base_dict_item.last_modifier is '更新人'; + +comment on column base_dict_item.last_modified_time is '更新时间'; + +comment on column base_dict_item.deleted is '0:未删除。1:已删除'; + +comment on column base_dict_item.version is '版本'; + + + +create index idx_dictionary_id + on base_dict_item (dict_id); + +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1422931375807242241, 1422929378374828033, 'Sex', '1', '男', false, 0, '男性', 0, '2021-08-04 22:44:11.000000', 0, '2021-08-04 22:44:11.000000', false, 2); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1425729455402401794, 1422929378374828033, 'Sex', '2', '女', false, 0, '女性', 0, '2021-08-12 16:02:46.000000', 0, '2021-08-12 16:02:46.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1425744258544136194, 1425744045414772737, 'MenuType', '0', '顶级菜单', false, 0, '顶级菜单', 0, '2021-08-12 17:01:35.000000', 0, '2021-08-12 17:01:35.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1425744436592340993, 1425744045414772737, 'MenuType', '1', '子菜单', false, 0, '子菜单', 0, '2021-08-12 17:02:17.000000', 0, '2021-08-12 17:02:17.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1425744470582980610, 1425744045414772737, 'MenuType', '2', '按钮权限', false, 0, '按钮权限', 0, '2021-08-12 17:02:26.000000', 0, '2021-08-12 17:02:26.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1430094707250413568, 1422929378374828033, 'Sex', '0', '未知', false, 0, '不确定性别', 1399985191002447872, '2021-08-24 17:08:43.000000', 1399985191002447872, '2021-08-24 17:08:43.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1435830086406463488, 1435829999592759296, 'UserStatusCode', 'normal', '正常', false, 0, 'NORMAL', 1399985191002447872, '2021-09-09 12:59:04.000000', 1399985191002447872, '2023-11-25 15:32:04.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1435830141855162368, 1435829999592759296, 'UserStatusCode', 'lock', '锁定', false, 0, 'LOCK, 多次登录失败被锁定', 1399985191002447872, '2021-09-09 12:59:17.000000', 1399985191002447872, '2023-11-25 15:32:14.000000', false, 2); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1435830260503633920, 1435829999592759296, 'UserStatusCode', 'ban', '封禁', false, 0, 'BAN', 1399985191002447872, '2021-09-09 12:59:45.000000', 1399985191002447872, '2023-11-25 15:32:20.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1435838374749626368, 1435838066191458304, 'LogBusinessType', 'other', '其它', false, 0, '', 1399985191002447872, '2021-09-09 13:32:00.000000', 1399985191002447872, '2021-09-09 13:32:00.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1435838414436130816, 1435838066191458304, 'LogBusinessType', 'insert', '新增', false, 0, '', 1399985191002447872, '2021-09-09 13:32:09.000000', 1399985191002447872, '2021-09-09 13:32:09.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1435838467624099840, 1435838066191458304, 'LogBusinessType', 'update', '修改', false, 0, '', 1399985191002447872, '2021-09-09 13:32:22.000000', 1399985191002447872, '2021-09-09 13:32:22.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1435838502755590144, 1435838066191458304, 'LogBusinessType', 'delete', '删除', false, 0, '', 1399985191002447872, '2021-09-09 13:32:30.000000', 1399985191002447872, '2021-09-09 13:32:30.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1435838546934194176, 1435838066191458304, 'LogBusinessType', 'grant', '授权', false, 0, '', 1399985191002447872, '2021-09-09 13:32:41.000000', 1399985191002447872, '2021-09-09 13:32:41.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1435838605537009664, 1435838066191458304, 'LogBusinessType', 'export', '导出', false, 0, '', 1399985191002447872, '2021-09-09 13:32:55.000000', 1399985191002447872, '2021-09-09 13:32:55.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1435838705457913856, 1435838066191458304, 'LogBusinessType', 'import', '导入', false, 0, '', 1399985191002447872, '2021-09-09 13:33:19.000000', 1399985191002447872, '2021-09-09 13:33:19.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1435838745861644288, 1435838066191458304, 'LogBusinessType', 'force', '强退', false, 0, '', 1399985191002447872, '2021-09-09 13:33:28.000000', 1399985191002447872, '2021-09-09 13:33:28.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1435838786273763328, 1435838066191458304, 'LogBusinessType', 'clean', '清空数据', false, 0, '', 1399985191002447872, '2021-09-09 13:33:38.000000', 1399985191002447872, '2021-09-09 13:33:38.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1438079113630003200, 1438078864509317120, 'MailSecurityCode', '1', '普通方式', false, 0, 'SECURITY_TYPE_PLAIN', 1399985191002447872, '2021-09-15 17:55:54.000000', 1399985191002447872, '2021-09-15 17:55:54.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1438080323061755904, 1438078864509317120, 'MailSecurityCode', '2', 'TLS方式', false, 0, 'SECURITY_TYPE_TLS', 1399985191002447872, '2021-09-15 18:00:42.000000', 1399985191002447872, '2021-09-15 18:00:42.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1438080372231581696, 1438078864509317120, 'MailSecurityCode', '3', 'SSL方式', false, 0, 'SECURITY_TYPE_SSL', 1399985191002447872, '2021-09-15 18:00:54.000000', 1399985191002447872, '2021-09-15 18:00:54.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1439961603914047488, 1439961232651034624, 'MessageTemplateCode', '5', '微信', false, -10, 'WECHAT', 1399985191002447872, '2021-09-20 22:36:14.000000', 1399985191002447872, '2021-09-20 22:36:14.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1439961704321490944, 1439961232651034624, 'MessageTemplateCode', '4', 'Email', false, 0, 'EMAIL', 1399985191002447872, '2021-09-20 22:36:38.000000', 1399985191002447872, '2021-09-20 22:36:38.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1439962132744478720, 1439961232651034624, 'MessageTemplateCode', '3', '短信', false, 0, 'SMS', 1399985191002447872, '2021-09-20 22:38:20.000000', 1399985191002447872, '2021-09-20 22:38:20.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1439962205578567680, 1439961232651034624, 'MessageTemplateCode', '2', '钉钉机器人', false, 0, 'DING_TALK_ROBOT', 1399985191002447872, '2021-09-20 22:38:38.000000', 1399985191002447872, '2021-09-20 22:38:38.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1439962267511660544, 1439961232651034624, 'MessageTemplateCode', '1', '钉钉', false, 0, 'DING_TALK', 1399985191002447872, '2021-09-20 22:38:52.000000', 1399985191002447872, '2021-09-20 22:38:52.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1452836696873984000, 1452836604783845376, 'SocialType', 'WeChat', '微信', false, 0, '', 1399985191002447872, '2021-10-26 11:17:16.000000', 1399985191002447872, '2021-10-26 11:17:16.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1452837435482529792, 1452836604783845376, 'SocialType', 'QQ', 'QQ', false, 0, '', 1399985191002447872, '2021-10-26 11:20:12.000000', 1399985191002447872, '2021-10-26 11:20:12.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1452837523030237184, 1452836604783845376, 'SocialType', 'DingTalk', '钉钉', false, 0, '', 1399985191002447872, '2021-10-26 11:20:33.000000', 1399985191002447872, '2021-10-26 11:20:33.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1452844537911406592, 1452843488735621120, 'ParamType', '1', '系统参数', false, 0, '', 1399985191002447872, '2021-10-26 11:48:25.000000', 1399985191002447872, '2021-10-26 11:48:25.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1452844565031776256, 1452843488735621120, 'ParamType', '2', '用户参数', false, 0, '', 1399985191002447872, '2021-10-26 11:48:32.000000', 1399985191002447872, '2021-10-26 11:48:32.000000', false, 2); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1496026946344005632, 1496024933900169216, 'Political', '1', '中共党员', false, 1, '', 1399985191002447872, '2022-02-22 15:39:54.000000', 1399985191002447872, '2022-02-22 15:39:54.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1496027004560945152, 1496024933900169216, 'Political', '2', '中共预备党员', false, 2, '', 1399985191002447872, '2022-02-22 15:40:07.000000', 1399985191002447872, '2022-02-22 15:40:07.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1496027039264616448, 1496024933900169216, 'Political', '3', '共青团员', false, 3, '', 1399985191002447872, '2022-02-22 15:40:16.000000', 1399985191002447872, '2022-02-22 15:40:16.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1496027077550223360, 1496024933900169216, 'Political', '4', '民革党员', false, 4, '', 1399985191002447872, '2022-02-22 15:40:25.000000', 1399985191002447872, '2022-02-22 15:40:25.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1496027123461074944, 1496024933900169216, 'Political', '5', '民盟盟员', false, 5, '', 1399985191002447872, '2022-02-22 15:40:36.000000', 1399985191002447872, '2022-02-22 15:40:36.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1496027197566038016, 1496024933900169216, 'Political', '6', '民建会员', false, 6, '', 1399985191002447872, '2022-02-22 15:40:53.000000', 1399985191002447872, '2022-02-22 15:40:53.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1496027234803068928, 1496024933900169216, 'Political', '7', '民进会员', false, 7, '', 1399985191002447872, '2022-02-22 15:41:02.000000', 1399985191002447872, '2022-02-22 15:41:02.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1496027272941875200, 1496024933900169216, 'Political', '8', '农工党党员', false, 8, '', 1399985191002447872, '2022-02-22 15:41:11.000000', 1399985191002447872, '2022-02-22 15:41:11.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1496027306634719232, 1496024933900169216, 'Political', '9', '致公党党员', false, 9, '', 1399985191002447872, '2022-02-22 15:41:19.000000', 1399985191002447872, '2022-02-22 15:41:19.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1496027369796743168, 1496024933900169216, 'Political', '10', '九三学社社员', false, 10, '', 1399985191002447872, '2022-02-22 15:41:34.000000', 1399985191002447872, '2022-02-22 15:41:35.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1496027408141070336, 1496024933900169216, 'Political', '11', '台盟盟员', false, 11, '', 1399985191002447872, '2022-02-22 15:41:44.000000', 1399985191002447872, '2022-02-22 15:41:44.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1496027456849522688, 1496024933900169216, 'Political', '12', '无党派人士', false, 12, '', 1399985191002447872, '2022-02-22 15:41:55.000000', 1399985191002447872, '2022-02-22 15:41:55.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1496027516639326208, 1496024933900169216, 'Political', '13', '群众', false, 13, '', 1399985191002447872, '2022-02-22 15:42:09.000000', 1399985191002447872, '2022-02-22 15:42:10.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1561003368762032128, 1561003021674987520, 'SiteMessageReceive', 'user', '指定用户', false, 0, '', 1399985191002447872, '2022-08-20 22:53:00.000000', 1399985191002447872, '2022-08-20 22:53:00.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1561003399778910208, 1561003021674987520, 'SiteMessageReceive', 'all', '全部用户', false, 0, '', 1399985191002447872, '2022-08-20 22:53:07.000000', 1399985191002447872, '2022-08-20 22:53:24.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1561003539772194816, 1561003189111603200, 'SiteMessageState', 'sent', '已发送', false, 0, '', 1399985191002447872, '2022-08-20 22:53:41.000000', 1399985191002447872, '2022-08-20 22:53:41.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1561003575608328192, 1561003189111603200, 'SiteMessageState', 'cancel', '撤销', false, 0, '', 1399985191002447872, '2022-08-20 22:53:49.000000', 1399985191002447872, '2022-08-20 22:53:49.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1561245469535080448, 1561003189111603200, 'SiteMessageState', 'draft', '草稿', false, 0, '', 1399985191002447872, '2022-08-21 14:55:01.000000', 1399985191002447872, '2022-08-21 14:55:01.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1573665422392098816, 1439961232651034624, 'MessageTemplateCode', '0', '站内信', false, -11, 'SITE', 1399985191002447872, '2022-09-24 21:27:29.000000', 1399985191002447872, '2022-09-24 21:27:39.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1589528254477488128, 1589527951317389312, 'DataScopePerm', 'self_dept_sub', '所在及下级部门', false, 0, '', 1414143554414059520, '2022-11-07 16:00:43.000000', 1399985191002447872, '2023-11-28 23:16:02.000000', false, 2); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1589528283539820544, 1589527951317389312, 'DataScopePerm', 'self_dept', '所在部门', false, 0, '', 1414143554414059520, '2022-11-07 16:00:49.000000', 1399985191002447872, '2023-11-28 23:15:52.000000', false, 2); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1589528315672383488, 1589527951317389312, 'DataScopePerm', 'all', '全部数据', false, 0, '', 1414143554414059520, '2022-11-07 16:00:57.000000', 1399985191002447872, '2023-11-25 22:51:28.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1589528340267782144, 1589527951317389312, 'DataScopePerm', 'dept_and_user', '自定义部门和用户', false, 0, '', 1414143554414059520, '2022-11-07 16:01:03.000000', 1399985191002447872, '2023-11-29 15:25:01.000000', false, 3); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1589528367228768256, 1589527951317389312, 'DataScopePerm', 'dept', '自定义部门', false, 0, '', 1414143554414059520, '2022-11-07 16:01:09.000000', 1399985191002447872, '2023-11-29 15:24:47.000000', false, 2); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1589528393292173312, 1589527951317389312, 'DataScopePerm', 'user', '指定用户', false, 0, '', 1414143554414059520, '2022-11-07 16:01:16.000000', 1399985191002447872, '2023-11-29 15:25:16.000000', false, 2); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1589528423956729856, 1589527951317389312, 'DataScopePerm', 'self', '自身数据', false, 0, '', 1414143554414059520, '2022-11-07 16:01:23.000000', 1399985191002447872, '2023-11-25 22:50:41.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1633403429028536320, 1633393287952257024, 'DatabaseType', 'mysql', 'MySQL', false, 1, '', 1414143554414059520, '2023-03-08 17:44:59.000000', 1414143554414059520, '2023-03-08 17:44:59.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1633403459470794752, 1633393287952257024, 'DatabaseType', 'oracle', 'Oracle', false, 2, '', 1414143554414059520, '2023-03-08 17:45:07.000000', 1414143554414059520, '2023-03-08 17:45:07.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1633403498695925760, 1633393287952257024, 'DatabaseType', 'mssql', 'SQLServer', false, 3, '', 1414143554414059520, '2023-03-08 17:45:16.000000', 1414143554414059520, '2023-03-08 17:45:16.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1688742732891111424, 1688742690398617600, 'SmsChannel', 'alibaba', '阿里云', false, 0, '', 1414143554414059520, '2023-08-08 10:43:38.000000', 1414143554414059520, '2023-08-08 10:43:38.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1688742768479780864, 1688742690398617600, 'SmsChannel', 'huawei', '华为云', false, 0, '', 1414143554414059520, '2023-08-08 10:43:46.000000', 1414143554414059520, '2023-08-08 10:43:46.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1688742808027873280, 1688742690398617600, 'SmsChannel', 'yunpian', '云片', false, 0, '', 1414143554414059520, '2023-08-08 10:43:55.000000', 1414143554414059520, '2023-08-08 10:43:56.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1688742840626003968, 1688742690398617600, 'SmsChannel', 'tencent', '腾讯云', false, 0, '', 1414143554414059520, '2023-08-08 10:44:03.000000', 1414143554414059520, '2023-08-08 10:44:03.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1688742872506908672, 1688742690398617600, 'SmsChannel', 'uni_sms', '合一短信', false, 0, '', 1414143554414059520, '2023-08-08 10:44:11.000000', 1414143554414059520, '2023-08-08 10:44:11.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1688742905553829888, 1688742690398617600, 'SmsChannel', 'jd_cloud', '京东云', false, 0, '', 1414143554414059520, '2023-08-08 10:44:19.000000', 1414143554414059520, '2023-08-08 10:44:19.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1688742954715267072, 1688742690398617600, 'SmsChannel', 'cloopen', '容联云', false, 0, '', 1414143554414059520, '2023-08-08 10:44:30.000000', 1414143554414059520, '2023-08-08 10:44:30.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1688742990446542848, 1688742690398617600, 'SmsChannel', 'emay', '亿美软通', false, 0, '', 1414143554414059520, '2023-08-08 10:44:39.000000', 1414143554414059520, '2023-08-08 10:44:39.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1688743032297308160, 1688742690398617600, 'SmsChannel', 'ctyun', '天翼云', false, 0, '', 1414143554414059520, '2023-08-08 10:44:49.000000', 1414143554414059520, '2023-08-08 10:44:49.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1688743065205817344, 1688742690398617600, 'SmsChannel', 'netease', '网易云信', false, 0, '', 1414143554414059520, '2023-08-08 10:44:57.000000', 1414143554414059520, '2023-08-08 10:44:57.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1690338619024437248, 1690338321769918464, 'GeneralTemplateUseType', 'import', '导入', false, 0, '', 1414143554414059520, '2023-08-12 20:25:06.000000', 1414143554414059520, '2023-08-12 20:25:06.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1690338653442895872, 1690338321769918464, 'GeneralTemplateUseType', 'export', '导出', false, 0, '', 1414143554414059520, '2023-08-12 20:25:15.000000', 1414143554414059520, '2023-08-12 20:25:15.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1690338707129987072, 1690338545284378624, 'GeneralTemplateState', 'enable', '启用', false, 0, '', 1414143554414059520, '2023-08-12 20:25:27.000000', 1414143554414059520, '2023-08-12 20:25:27.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1690338748032839680, 1690338545284378624, 'GeneralTemplateState', 'disable', '停用', false, 0, '', 1414143554414059520, '2023-08-12 20:25:37.000000', 1414143554414059520, '2023-08-12 20:25:37.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1729519341702086656, 1589527951317389312, 'DataScopePerm', 'dept_sub', '指定部门及下级部门', false, 0, '', 1399985191002447872, '2023-11-28 23:15:19.000000', 1399985191002447872, '2023-11-28 23:15:19.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1744997130102317056, 1744996845355212800, 'PayChannel', 'ali_pay', '支付宝', false, 1, '', 1399985191002447872, '2024-01-10 16:18:31.000000', 1399985191002447872, '2024-01-10 16:18:31.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1744997169239367680, 1744996845355212800, 'PayChannel', 'wechat_pay', '微信支付', false, 2, '', 1399985191002447872, '2024-01-10 16:18:40.000000', 1399985191002447872, '2024-01-10 16:18:40.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1744997213623492608, 1744996845355212800, 'PayChannel', 'union_pay', '云闪付', false, 3, '', 1399985191002447872, '2024-01-10 16:18:51.000000', 1399985191002447872, '2024-01-10 16:18:51.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1744997258951335936, 1744996845355212800, 'PayChannel', 'cash_pay', '现金支付', false, 4, '', 1399985191002447872, '2024-01-10 16:19:02.000000', 1399985191002447872, '2024-05-02 12:39:33.000000', true, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1744997315557662720, 1744996845355212800, 'PayChannel', 'wallet_pay', '钱包支付', false, 5, '', 1399985191002447872, '2024-01-10 16:19:15.000000', 1399985191002447872, '2024-01-10 16:19:15.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1744997364404527104, 1744996845355212800, 'PayChannel', 'voucher_pay', '储值卡支付', false, 6, '', 1399985191002447872, '2024-01-10 16:19:27.000000', 1399985191002447872, '2024-05-02 12:39:29.000000', true, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1744997501033979904, 1744996913667842048, 'PayStatus', 'progress', '支付中', false, 1, '', 1399985191002447872, '2024-01-10 16:19:59.000000', 1399985191002447872, '2024-01-10 16:19:59.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1744997541811003392, 1744996913667842048, 'PayStatus', 'success', '成功', false, 2, '', 1399985191002447872, '2024-01-10 16:20:09.000000', 1399985191002447872, '2024-01-10 16:20:09.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1744997578863484928, 1744996913667842048, 'PayStatus', 'close', '支付关闭', false, 3, '', 1399985191002447872, '2024-01-10 16:20:18.000000', 1399985191002447872, '2024-01-10 16:20:18.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1744997619665674240, 1744996913667842048, 'PayStatus', 'fail', '失败', false, 7, '', 1399985191002447872, '2024-01-10 16:20:28.000000', 1399985191002447872, '2024-01-27 00:52:05.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1744997658735616000, 1744996913667842048, 'PayStatus', 'partial_refund', '部分退款', false, 5, '', 1399985191002447872, '2024-01-10 16:20:37.000000', 1399985191002447872, '2024-01-10 16:20:44.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1744997746321072128, 1744996913667842048, 'PayStatus', 'refunded', '全部退款', false, 6, '', 1399985191002447872, '2024-01-10 16:20:58.000000', 1399985191002447872, '2024-01-10 16:20:58.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745085949967278080, 1744996611615039488, 'AsyncPayChannel', 'ali_pay', '支付宝', false, 1, '', 1399985191002447872, '2024-01-10 22:11:27.000000', 1399985191002447872, '2024-01-10 22:11:27.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745085991767711744, 1744996611615039488, 'AsyncPayChannel', 'wechat_pay', '微信支付', false, 2, '', 1399985191002447872, '2024-01-10 22:11:37.000000', 1399985191002447872, '2024-01-10 22:11:37.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745086048852189184, 1744996611615039488, 'AsyncPayChannel', 'union_pay', '云闪付', false, 3, '', 1399985191002447872, '2024-01-10 22:11:51.000000', 1399985191002447872, '2024-01-11 00:13:03.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745086902929924096, 1745086859116224512, 'PayMethod', 'normal', '常规支付', false, 1, '', 1399985191002447872, '2024-01-10 22:15:14.000000', 1399985191002447872, '2024-01-10 22:15:26.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745086940036931584, 1745086859116224512, 'PayMethod', 'wap', 'wap支付', false, 2, '', 1399985191002447872, '2024-01-10 22:15:23.000000', 1399985191002447872, '2024-01-10 22:15:23.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745087004062982144, 1745086859116224512, 'PayMethod', 'app', '应用支付', false, 3, '', 1399985191002447872, '2024-01-10 22:15:39.000000', 1399985191002447872, '2024-01-10 22:15:39.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745087058194669568, 1745086859116224512, 'PayMethod', 'web', 'web支付', false, 4, '', 1399985191002447872, '2024-01-10 22:15:51.000000', 1399985191002447872, '2024-01-10 22:15:51.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745087104050995200, 1745086859116224512, 'PayMethod', 'qrcode', '扫码支付', false, 5, '', 1399985191002447872, '2024-01-10 22:16:02.000000', 1399985191002447872, '2024-01-10 22:16:02.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745087163324899328, 1745086859116224512, 'PayMethod', 'barcode', '付款码', false, 6, '', 1399985191002447872, '2024-01-10 22:16:17.000000', 1399985191002447872, '2024-01-10 22:16:17.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745087221629919232, 1745086859116224512, 'PayMethod', 'jsapi', '公众号/小程序支付', false, 7, '', 1399985191002447872, '2024-01-10 22:16:30.000000', 1399985191002447872, '2024-01-10 22:16:37.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745109413893656576, 1745109350333173760, 'PayCallbackStatus', 'success', '成功', false, 1, '', 1399985191002447872, '2024-01-10 23:44:41.000000', 1399985191002447872, '2024-01-10 23:44:41.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745109449050312704, 1745109350333173760, 'PayCallbackStatus', 'fail', '失败', false, 2, '', 1399985191002447872, '2024-01-10 23:44:50.000000', 1399985191002447872, '2024-01-10 23:44:50.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745109487289782272, 1745109350333173760, 'PayCallbackStatus', 'ignore', '忽略', false, 3, '', 1399985191002447872, '2024-01-10 23:44:59.000000', 1399985191002447872, '2024-01-10 23:44:59.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745109526477164544, 1745109350333173760, 'PayCallbackStatus', 'exception', '异常', false, 4, '', 1399985191002447872, '2024-01-10 23:45:08.000000', 1399985191002447872, '2024-02-01 22:14:52.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745109571771453440, 1745109350333173760, 'PayCallbackStatus', 'not_found', '未找到', false, 5, '', 1399985191002447872, '2024-01-10 23:45:19.000000', 1399985191002447872, '2024-01-10 23:45:19.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745129035573465088, 1745128986382667776, 'PayRepairSource', 'sync', '同步', false, 1, '', 1399985191002447872, '2024-01-11 01:02:40.000000', 1399985191002447872, '2024-01-11 01:02:40.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745133530906857472, 1745128986382667776, 'PayRepairSource', 'callback', '回调', false, 2, '', 1399985191002447872, '2024-01-11 01:20:31.000000', 1399985191002447872, '2024-01-11 01:20:31.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745133583939637248, 1745128986382667776, 'PayRepairSource', 'reconcile', '对账', false, 3, '', 1399985191002447872, '2024-01-11 01:20:44.000000', 1399985191002447872, '2024-01-11 01:20:44.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745134495319953408, 1745134438772346880, 'PayRepairWay', 'pay_success', '支付成功', false, 1, '', 1399985191002447872, '2024-01-11 01:24:21.000000', 1399985191002447872, '2024-02-01 21:29:32.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745134589926674432, 1745134438772346880, 'PayRepairWay', 'pay_close_local', '关闭本地支付', false, 2, '', 1399985191002447872, '2024-01-11 01:24:44.000000', 1399985191002447872, '2024-02-01 21:29:36.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745134628447162368, 1745134438772346880, 'PayRepairWay', 'pay_progress', '更改为支付中', false, 3, '', 1399985191002447872, '2024-01-11 01:24:53.000000', 1399985191002447872, '2024-02-01 22:02:53.000000', false, 2); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745134664807583744, 1745134438772346880, 'PayRepairWay', 'pay_close_gateway', '关闭网关支付', false, 4, '', 1399985191002447872, '2024-01-11 01:25:02.000000', 1399985191002447872, '2024-02-01 21:29:43.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745134703416152064, 1745134438772346880, 'PayRepairWay', 'refund', '退款', false, 5, '', 1399985191002447872, '2024-01-11 01:25:11.000000', 1399985191002447872, '2024-01-28 21:55:55.000000', true, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745748239158845440, 1745748188122554368, 'RefundStatus', 'success', '成功', false, 1, '', 1399985191002447872, '2024-01-12 18:03:09.000000', 1399985191002447872, '2024-01-12 18:03:09.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1745748274525216768, 1745748188122554368, 'RefundStatus', 'fail', '失败', false, 3, '', 1399985191002447872, '2024-01-12 18:03:18.000000', 1399985191002447872, '2024-01-27 00:51:02.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1746208700446683136, 1746208645341917184, 'PaySyncStatus', 'pay_fail', '支付查询失败', false, 1, '', 1399985191002447872, '2024-01-14 00:32:52.000000', 1399985191002447872, '2024-02-01 21:59:17.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1746208760488144896, 1746208645341917184, 'PaySyncStatus', 'pay_success', '支付成功', false, 2, '', 1399985191002447872, '2024-01-14 00:33:06.000000', 1399985191002447872, '2024-02-01 21:59:23.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1746208802531848192, 1746208645341917184, 'PaySyncStatus', 'pay_progress', '支付中', false, 3, '', 1399985191002447872, '2024-01-14 00:33:16.000000', 1399985191002447872, '2024-02-01 21:59:33.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1746208853882712064, 1746208645341917184, 'PaySyncStatus', 'pay_closed', '支付已关闭', false, 4, '', 1399985191002447872, '2024-01-14 00:33:28.000000', 1399985191002447872, '2024-02-01 21:59:43.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1746208898396860416, 1746208645341917184, 'PaySyncStatus', 'pay_refund', '支付退款', false, 5, '', 1399985191002447872, '2024-01-14 00:33:39.000000', 1399985191002447872, '2024-02-01 21:59:53.000000', false, 2); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1746208959721779200, 1746208645341917184, 'PaySyncStatus', 'pay_not_found', '交易不存在', false, 6, '', 1399985191002447872, '2024-01-14 00:33:54.000000', 1399985191002447872, '2024-02-01 22:00:05.000000', false, 2); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1746224281904455680, 1746208645341917184, 'PaySyncStatus', 'pay_not_found_unknown', '交易不存在(特殊)', false, 7, '未查询到订单(具体类型未知), 区别于上面的未查询到订单,有些支付方式如支付宝,发起支付后并不能查询到订单,需要用户进行操作后才能查询到订单,所以查询为了区分,增加一个未知的状态, 用于处理这种特殊情况, 然后根据业务需要,关闭订单或者进行其他操作', 1399985191002447872, '2024-01-14 01:34:47.000000', 1399985191002447872, '2024-02-01 22:00:13.000000', false, 2); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1746224432131842048, 1746208645341917184, 'PaySyncStatus', 'pay_timeout', '支付超时', false, 8, '', 1399985191002447872, '2024-01-14 01:35:23.000000', 1399985191002447872, '2024-02-01 22:00:30.000000', false, 2); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1749612708363186176, 1749612665392541696, 'ReconcileTrade', 'pay', '支付', false, 1, '', 1399985191002447872, '2024-01-23 09:59:11.000000', 1399985191002447872, '2024-01-23 09:59:11.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1749612758531256320, 1749612665392541696, 'ReconcileTrade', 'refund', '退款', false, 2, '', 1399985191002447872, '2024-01-23 09:59:23.000000', 1399985191002447872, '2024-01-23 09:59:23.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1749612797680889856, 1749612665392541696, 'ReconcileTrade', 'revoked', '撤销', false, 3, '', 1399985191002447872, '2024-01-23 09:59:32.000000', 1399985191002447872, '2024-01-23 09:59:32.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1750924188674404352, 1745748188122554368, 'RefundStatus', 'progress', '退款中', false, 0, '接口调用成功不代表成功', 1399985191002447872, '2024-01-27 00:50:32.000000', 1399985191002447872, '2024-01-27 00:50:32.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1750924286401687552, 1745748188122554368, 'RefundStatus', 'part_success', '部分成功', false, 2, '', 1399985191002447872, '2024-01-27 00:50:55.000000', 1399985191002447872, '2024-01-27 00:50:55.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1750924518497693696, 1744996913667842048, 'PayStatus', 'refunding', '退款中', false, 4, '', 1399985191002447872, '2024-01-27 00:51:50.000000', 1399985191002447872, '2024-01-27 00:52:10.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1751528739035111424, 1751603996496453632, 'PaymentType', 'pay', '支付', false, 1, '', 1399985191002447872, '2024-01-28 16:52:48.000000', 1399985191002447872, '2024-01-28 16:52:48.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1751528773260632064, 1751603996496453632, 'PaymentType', 'refund', '退款', false, 2, '', 1399985191002447872, '2024-01-28 16:52:56.000000', 1399985191002447872, '2024-01-28 16:52:56.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1751613076980039680, 1751613032260370432, 'PayCallbackType', 'pay', '支付回调', false, 1, '', 1399985191002447872, '2024-01-28 22:27:56.000000', 1399985191002447872, '2024-01-28 22:27:56.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1751613114254819328, 1751613032260370432, 'PayCallbackType', 'refund', '退款回调', false, 2, '', 1399985191002447872, '2024-01-28 22:28:04.000000', 1399985191002447872, '2024-01-28 22:28:04.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1752216855927226368, 1745748188122554368, 'RefundStatus', 'close', '关闭', false, 4, '', 1399985191002447872, '2024-01-30 14:27:08.000000', 1399985191002447872, '2024-01-30 14:27:08.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1752560213673594880, 1752560153120428032, 'RefundSyncStatus', 'refund_success', '退款成功', false, 1, '', 1399985191002447872, '2024-01-31 13:11:31.000000', 1399985191002447872, '2024-02-01 21:56:59.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1752560254228320256, 1752560153120428032, 'RefundSyncStatus', 'refund_fail', '退款失败', false, 2, '', 1399985191002447872, '2024-01-31 13:11:40.000000', 1399985191002447872, '2024-02-01 21:57:07.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1752560288546115584, 1752560153120428032, 'RefundSyncStatus', 'refund_progress', '退款中', false, 3, '', 1399985191002447872, '2024-01-31 13:11:48.000000', 1399985191002447872, '2024-02-01 21:57:45.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1753044707091554304, 1745128986382667776, 'PayRepairSource', 'task', '定时任务', false, 4, '', 1399985191002447872, '2024-02-01 21:16:43.000000', 1399985191002447872, '2024-02-01 21:16:43.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1753047429014495232, 1753047382185091072, 'RefundRepairWay', 'refund_success', '退款成功', false, 1, '', 1399985191002447872, '2024-02-01 21:27:32.000000', 1399985191002447872, '2024-02-01 21:29:13.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1753047491140526080, 1753047382185091072, 'RefundRepairWay', 'refund_fail', '退款失败', false, 2, '', 1399985191002447872, '2024-02-01 21:27:47.000000', 1399985191002447872, '2024-02-01 21:29:19.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1755939895162052608, 1745134438772346880, 'PayRepairWay', 'refund_success', '退款成功', false, 5, '会更新为部分退款和全部退款', 1399985191002447872, '2024-02-09 21:01:09.000000', 1399985191002447872, '2024-02-09 21:10:22.000000', false, 2); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1755942271772139520, 1745134438772346880, 'PayRepairWay', 'refund_fail', '退款失败', false, 6, '', 1399985191002447872, '2024-02-09 21:10:36.000000', 1399985191002447872, '2024-02-09 21:10:36.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1758881424411439104, 1758881354618220544, 'WalletStatus', 'normal', '正常', false, 1, '', 1399985191002447872, '2024-02-17 23:49:45.000000', 1399985191002447872, '2024-02-17 23:49:45.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1758881470334873600, 1758881354618220544, 'WalletStatus', 'forbidden', '禁用', false, 2, '', 1399985191002447872, '2024-02-17 23:49:56.000000', 1399985191002447872, '2024-02-17 23:49:56.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759189919170002944, 1759189874194481152, 'VoucherStatus', 'normal', '正常', false, 1, '', 1399985191002447872, '2024-02-18 20:15:36.000000', 1399985191002447872, '2024-02-18 20:15:36.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759189962564272128, 1759189874194481152, 'VoucherStatus', 'forbidden', '禁用', false, 2, '', 1399985191002447872, '2024-02-18 20:15:46.000000', 1399985191002447872, '2024-02-18 20:15:46.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759190150464897024, 1759190066511708160, 'WalletRecordType', 'create', '创建', false, 1, '', 1399985191002447872, '2024-02-18 20:16:31.000000', 1399985191002447872, '2024-02-18 20:16:31.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759190193783668736, 1759190066511708160, 'WalletRecordType', 'pay', '支付', false, 2, '', 1399985191002447872, '2024-02-18 20:16:41.000000', 1399985191002447872, '2024-02-18 20:16:41.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759190227510067200, 1759190066511708160, 'WalletRecordType', 'refund', '退款', false, 3, '', 1399985191002447872, '2024-02-18 20:16:49.000000', 1399985191002447872, '2024-02-18 20:16:56.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759190291980713984, 1759190066511708160, 'WalletRecordType', 'close_pay', '支付关闭', false, 4, '', 1399985191002447872, '2024-02-18 20:17:04.000000', 1399985191002447872, '2024-02-18 20:17:04.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759190340517199872, 1759190066511708160, 'WalletRecordType', 'close_refund', '退款关闭', false, 5, '', 1399985191002447872, '2024-02-18 20:17:16.000000', 1399985191002447872, '2024-02-19 17:31:26.000000', true, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759190472654553088, 1759190427897135104, 'VoucherRecordType', 'import', '导入', false, 1, '', 1399985191002447872, '2024-02-18 20:17:48.000000', 1399985191002447872, '2024-02-18 20:17:48.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759190506087350272, 1759190427897135104, 'VoucherRecordType', 'pay', '支付', false, 2, '', 1399985191002447872, '2024-02-18 20:17:55.000000', 1399985191002447872, '2024-02-18 20:18:16.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759190574865547264, 1759190427897135104, 'VoucherRecordType', 'refund', '退款', false, 3, '', 1399985191002447872, '2024-02-18 20:18:12.000000', 1399985191002447872, '2024-02-18 20:18:12.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759190633921347584, 1759190427897135104, 'VoucherRecordType', 'close_pay', '支付关闭', false, 4, '', 1399985191002447872, '2024-02-18 20:18:26.000000', 1399985191002447872, '2024-02-18 20:18:26.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759190717757095936, 1759190427897135104, 'VoucherRecordType', 'close_refund', '退款关闭', false, 5, '', 1399985191002447872, '2024-02-18 20:18:46.000000', 1399985191002447872, '2024-02-19 17:31:20.000000', true, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759190820500766720, 1759190780252225536, 'CashRecordType', 'pay', '支付', false, 1, '', 1399985191002447872, '2024-02-18 20:19:10.000000', 1399985191002447872, '2024-02-18 20:19:39.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759190850754281472, 1759190780252225536, 'CashRecordType', 'refund', '退款', false, 2, '', 1399985191002447872, '2024-02-18 20:19:18.000000', 1399985191002447872, '2024-02-18 20:19:42.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759190884061249536, 1759190780252225536, 'CashRecordType', 'close_pay', '支付关闭', false, 3, '', 1399985191002447872, '2024-02-18 20:19:26.000000', 1399985191002447872, '2024-02-18 20:19:46.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759190913261993984, 1759190780252225536, 'CashrRecordType', 'close_refund', '退款关闭', false, 4, '', 1399985191002447872, '2024-02-18 20:19:33.000000', 1399985191002447872, '2024-02-19 17:31:15.000000', true, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759514962507554816, 1759190066511708160, 'WalletRecordType', 'recharge', '充值', false, 11, '', 1399985191002447872, '2024-02-19 17:47:12.000000', 1399985191002447872, '2024-02-19 17:47:12.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1759515000520531968, 1759190066511708160, 'WalletRecordType', 'deduct', '扣减', false, 12, '', 1399985191002447872, '2024-02-19 17:47:21.000000', 1399985191002447872, '2024-02-19 17:47:21.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1761434142275497984, 1761434095349624832, 'ClientNoticeType', 'pay', '支付通知', false, 1, '', 1399985191002447872, '2024-02-25 00:53:20.000000', 1399985191002447872, '2024-02-25 00:53:20.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1761434179445420032, 1761434095349624832, 'ClientNoticeType', 'refund', '退款通知', false, 2, '', 1399985191002447872, '2024-02-25 00:53:29.000000', 1399985191002447872, '2024-02-25 00:53:29.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1761434308537708544, 1761434264858226688, 'ClientNoticeSendType', 'auto', '自动发送', false, 0, '', 1399985191002447872, '2024-02-25 00:54:00.000000', 1399985191002447872, '2024-02-25 00:54:00.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1761434346206752768, 1761434264858226688, 'ClientNoticeSendType', 'manual', '手动发送', false, 1, '', 1399985191002447872, '2024-02-25 00:54:09.000000', 1399985191002447872, '2024-02-25 00:54:09.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1761581686381080576, 1761581634023583744, 'AlipayRecordType', 'pay', '支付', false, 0, '', 1399985191002447872, '2024-02-25 10:39:37.000000', 1399985191002447872, '2024-02-25 10:39:37.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1761581731029446656, 1761581634023583744, 'AlipayRecordType', 'refund', '退款', false, 1, '', 1399985191002447872, '2024-02-25 10:39:48.000000', 1399985191002447872, '2024-02-25 10:39:48.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1761588368863645696, 1761588314480300032, 'WechatPayRecordType', 'pay', '支付', false, 0, '', 1399985191002447872, '2024-02-25 11:06:11.000000', 1399985191002447872, '2024-02-25 11:06:11.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1761588397825314816, 1761588314480300032, 'WechatPayRecordType', 'refund', '退款', false, 0, '', 1399985191002447872, '2024-02-25 11:06:17.000000', 1399985191002447872, '2024-02-25 11:06:17.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1763588081838182400, 1763588034467713024, 'ReconcileDiffType', 'local_not_exists', '本地订单不存在', false, 0, '', 1399985191002447872, '2024-03-01 23:32:19.000000', 1399985191002447872, '2024-03-01 23:32:19.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1763588123143688192, 1763588034467713024, 'ReconcileDiffType', 'remote_not_exists', '远程订单不存在', false, 1, '', 1399985191002447872, '2024-03-01 23:32:29.000000', 1399985191002447872, '2024-03-01 23:32:29.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1763588174695878656, 1763588034467713024, 'ReconcileDiffType', 'not_match', '订单信息不一致', false, 2, '', 1399985191002447872, '2024-03-01 23:32:41.000000', 1399985191002447872, '2024-03-01 23:32:48.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1766713657021157376, 1766713545981153280, 'UnionPaySignType', 'RSA2', 'RSA2', false, 0, '', 1399985191002447872, '2024-03-10 14:32:14.000000', 1399985191002447872, '2024-03-10 14:32:14.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1768206502721449984, 1768206399071809536, 'UnionPayRecordType', 'pay', '支付', false, 1, '', 1399985191002447872, '2024-03-14 17:24:17.000000', 1399985191002447872, '2024-03-14 17:24:17.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1768206547285929984, 1768206399071809536, 'UnionPayRecordType', 'refund', '退款', false, 0, '', 1399985191002447872, '2024-03-14 17:24:27.000000', 1399985191002447872, '2024-03-14 17:24:27.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1775122126567559168, 1775112798259302400, 'AllocReceiverType', 'wx_personal', '个人', false, 1, '', 1399985191002447872, '2024-04-02 19:24:30.000000', 1399985191002447872, '2024-04-02 19:24:30.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1775122171861848064, 1775112798259302400, 'AllocReceiverType', 'wx_merchant', '商户', false, 2, '', 1399985191002447872, '2024-04-02 19:24:41.000000', 1399985191002447872, '2024-04-02 19:24:41.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1775122227956469760, 1775112798259302400, 'AllocReceiverType', 'ali_user_id', '用户ID', false, 3, '', 1399985191002447872, '2024-04-02 19:24:54.000000', 1399985191002447872, '2024-04-02 19:25:53.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1775122278170677248, 1775112798259302400, 'AllocReceiverType', 'ali_open_id', '登录号', false, 4, '', 1399985191002447872, '2024-04-02 19:25:06.000000', 1399985191002447872, '2024-04-02 19:25:06.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1775122427802472448, 1775112798259302400, 'AllocReceiverType', 'ali_login_name', '账号', false, 5, '', 1399985191002447872, '2024-04-02 19:25:42.000000', 1399985191002447872, '2024-04-02 19:25:42.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1775122672623996928, 1775122632706805760, 'AllocRelationType', 'SERVICE_PROVIDER', '服务商', false, 1, '', 1399985191002447872, '2024-04-02 19:26:40.000000', 1399985191002447872, '2024-04-02 19:26:40.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1775122710884438016, 1775122632706805760, 'AllocRelationType', 'STORE', '门店', false, 2, '', 1399985191002447872, '2024-04-02 19:26:49.000000', 1399985191002447872, '2024-04-02 19:26:49.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1775122750612885504, 1775122632706805760, 'AllocRelationType', 'STAFF', '员工', false, 3, '', 1399985191002447872, '2024-04-02 19:26:59.000000', 1399985191002447872, '2024-04-02 19:26:59.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1775122847035740160, 1775122632706805760, 'AllocRelationType', 'STORE_OWNER', '店主', false, 4, '', 1399985191002447872, '2024-04-02 19:27:22.000000', 1399985191002447872, '2024-04-02 19:27:22.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1775122892464246784, 1775122632706805760, 'AllocRelationType', 'PARTNER', '合作伙伴', false, 5, '', 1399985191002447872, '2024-04-02 19:27:32.000000', 1399985191002447872, '2024-04-02 19:27:32.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1775122934138851328, 1775122632706805760, 'AllocRelationType', 'HEADQUARTER', '总部', false, 6, '', 1399985191002447872, '2024-04-02 19:27:42.000000', 1399985191002447872, '2024-04-02 19:27:42.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1775123560512016384, 1775122632706805760, 'AllocRelationType', 'DISTRIBUTOR', '分销商', false, 7, '', 1399985191002447872, '2024-04-02 19:30:12.000000', 1399985191002447872, '2024-04-02 19:30:12.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1775123607781822464, 1775122632706805760, 'AllocRelationType', 'USER', '用户', false, 8, '', 1399985191002447872, '2024-04-02 19:30:23.000000', 1399985191002447872, '2024-04-02 19:30:23.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1775123654527340544, 1775122632706805760, 'AllocRelationType', 'SUPPLIER', '供应商', false, 9, '', 1399985191002447872, '2024-04-02 19:30:34.000000', 1399985191002447872, '2024-04-02 19:30:34.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1775123705886593024, 1775122632706805760, 'AllocRelationType', 'CUSTOM', '自定义', false, 10, '', 1399985191002447872, '2024-04-02 19:30:46.000000', 1399985191002447872, '2024-04-02 19:30:46.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1777700713809522688, 1777697358802530304, 'AllocOrderStatus', 'waiting', '待分账', false, 1, '', 1399985191002447872, '2024-04-09 22:10:53.000000', 1399985191002447872, '2024-04-09 22:10:53.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1777700750744563712, 1777697358802530304, 'AllocOrderStatus', 'allocation_processing', '分账处理中', false, 2, '', 1399985191002447872, '2024-04-09 22:11:02.000000', 1399985191002447872, '2024-04-16 17:14:53.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1777700787453112320, 1777697358802530304, 'AllocOrderStatus', 'allocation_end', '分账完成', false, 3, '', 1399985191002447872, '2024-04-09 22:11:10.000000', 1399985191002447872, '2024-04-16 17:36:25.000000', false, 2); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1777700835826020352, 1777697358802530304, 'AllocOrderStatus', 'allocation_failed', '分账失败', false, 4, '', 1399985191002447872, '2024-04-09 22:11:22.000000', 1399985191002447872, '2024-04-16 17:16:34.000000', false, 2); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1777700870613577728, 1777697358802530304, 'AllocOrderStatus', 'finish', '分账完结', false, 5, '', 1399985191002447872, '2024-04-09 22:11:30.000000', 1399985191002447872, '2024-04-16 17:17:06.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1777700915450687488, 1777697358802530304, 'AllocationStatus', 'partial_failed', '部分分账失败', false, 6, '', 1399985191002447872, '2024-04-09 22:11:41.000000', 1399985191002447872, '2024-04-16 17:16:49.000000', true, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1777700964087836672, 1777697358802530304, 'AllocOrderStatus', 'finish_failed', '分账完结失败', false, 6, '', 1399985191002447872, '2024-04-09 22:11:53.000000', 1399985191002447872, '2024-04-16 17:17:25.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1777701030081015808, 1777697358802530304, 'AllocationStatus', 'closed', '分账关闭', false, 8, '', 1399985191002447872, '2024-04-09 22:12:08.000000', 1399985191002447872, '2024-04-16 17:16:19.000000', true, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1777701090676125696, 1777697358802530304, 'AllocationStatus', 'unknown', '分账状态未知', false, 9, '', 1399985191002447872, '2024-04-09 22:12:23.000000', 1399985191002447872, '2024-04-16 17:16:16.000000', true, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1780164864510623744, 1780163691808391168, 'AllocDetailResult', 'pending', '待分账', false, 1, '', 1399985191002447872, '2024-04-16 17:22:32.000000', 1399985191002447872, '2024-04-16 17:22:32.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1780164903886749696, 1780163691808391168, 'AllocDetailResult', 'success', '分账成功', false, 2, '', 1399985191002447872, '2024-04-16 17:22:42.000000', 1399985191002447872, '2024-04-16 17:22:42.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1780164940712738816, 1780163691808391168, 'AllocDetailResult', 'fail', '分账失败', false, 0, '', 1399985191002447872, '2024-04-16 17:22:50.000000', 1399985191002447872, '2024-04-16 17:22:50.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1780165545665593344, 1780165499633106944, 'AllocOrderResult', 'all_pending', '全部处理中', false, 0, '', 1399985191002447872, '2024-04-16 17:25:15.000000', 1399985191002447872, '2024-05-14 16:40:30.000000', false, 1); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1780165581623361536, 1780165499633106944, 'AllocOrderResult', 'all_success', '全部成功', false, 1, '', 1399985191002447872, '2024-04-16 17:25:23.000000', 1399985191002447872, '2024-04-16 17:25:23.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1780165617413357568, 1780165499633106944, 'AllocOrderResult', 'part_success', '部分成功', false, 2, '', 1399985191002447872, '2024-04-16 17:25:32.000000', 1399985191002447872, '2024-04-16 17:25:32.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1780165653350154240, 1780165499633106944, 'AllocOrderResult', 'all_failed', '全部失败', false, 3, '', 1399985191002447872, '2024-04-16 17:25:40.000000', 1399985191002447872, '2024-04-16 17:25:40.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1780165986231091200, 1780165929528295424, 'PayOrderAllocationStatus', 'waiting', '待分账', false, 1, '', 1399985191002447872, '2024-04-16 17:27:00.000000', 1399985191002447872, '2024-04-16 17:27:00.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1780166037149941760, 1780165929528295424, 'PayOrderAllocationStatus', 'allocation', '已分账', false, 2, '', 1399985191002447872, '2024-04-16 17:27:12.000000', 1399985191002447872, '2024-04-16 17:27:12.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1786399594956660736, 1786399552686465024, 'ReconcileResult', 'consistent', '一致', false, 0, '', 1399985191002447872, '2024-05-03 22:17:08.000000', 1399985191002447872, '2024-05-03 22:17:08.000000', false, 0); +INSERT INTO base_dict_item (id, dict_id, dict_code, code, name, enable, sort_no, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1786399681275437056, 1786399552686465024, 'ReconcileResult', 'inconsistent', '不一致', false, 1, '', 1399985191002447872, '2024-05-03 22:17:28.000000', 1399985191002447872, '2024-05-03 22:17:28.000000', false, 0); + +----- +create table base_dynamic_data_source +( + id bigint not null + primary key, + code varchar(255), + name varchar(255), + database_type varchar(255), + auto_load boolean, + db_driver varchar(255), + db_url varchar(255), + db_name varchar(255), + db_username varchar(255), + db_password varchar(255), + remark varchar(255), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table base_dynamic_data_source is '动态数据源管理'; + +comment on column base_dynamic_data_source.code is '数据源编码'; + +comment on column base_dynamic_data_source.name is '数据源名称'; + +comment on column base_dynamic_data_source.database_type is '数据库类型'; + +comment on column base_dynamic_data_source.auto_load is '是否启动自动加载'; + +comment on column base_dynamic_data_source.db_driver is '驱动类'; + +comment on column base_dynamic_data_source.db_url is '数据库地址'; + +comment on column base_dynamic_data_source.db_name is '数据库名称'; + +comment on column base_dynamic_data_source.db_username is '用户名'; + +comment on column base_dynamic_data_source.db_password is '密码'; + +comment on column base_dynamic_data_source.remark is '备注'; + +comment on column base_dynamic_data_source.creator is '创建人'; + +comment on column base_dynamic_data_source.create_time is '创建时间'; + +comment on column base_dynamic_data_source.last_modifier is '最后修改人'; + +comment on column base_dynamic_data_source.last_modified_time is '最后修改时间'; + +comment on column base_dynamic_data_source.version is '版本'; + +comment on column base_dynamic_data_source.deleted is '0:未删除。1:已删除'; + + + + +----- +create table base_key_value +( + id bigint not null + primary key, + key varchar(255) not null, + value text not null, + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + deleted boolean not null, + version integer not null +); + +comment on table base_key_value is 'kv存储'; + +comment on column base_key_value.key is '参数键名'; + +comment on column base_key_value.value is '参数值'; + +comment on column base_key_value.creator is '创建人'; + +comment on column base_key_value.create_time is '创建时间'; + +comment on column base_key_value.last_modifier is '更新人'; + +comment on column base_key_value.last_modified_time is '更新时间'; + +comment on column base_key_value.deleted is '0:未删除。1:已删除'; + +comment on column base_key_value.version is '版本'; + + + + +----- +create table base_param +( + id bigint not null + primary key, + name varchar(50), + param_key varchar(255) not null, + value varchar(255) not null, + type integer, + enable boolean not null, + internal boolean not null, + remark varchar(255), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + deleted boolean not null, + version integer not null +); + +comment on table base_param is '系统参数配置'; + +comment on column base_param.name is '参数名称'; + +comment on column base_param.param_key is '参数键名'; + +comment on column base_param.value is '参数值'; + +comment on column base_param.type is '参数类型'; + +comment on column base_param.enable is '启用状态'; + +comment on column base_param.internal is '内置参数'; + +comment on column base_param.remark is '备注'; + +comment on column base_param.creator is '创建人'; + +comment on column base_param.create_time is '创建时间'; + +comment on column base_param.last_modifier is '更新人'; + +comment on column base_param.last_modified_time is '更新时间'; + +comment on column base_param.deleted is '0:未删除。1:已删除'; + +comment on column base_param.version is '版本'; + + + +INSERT INTO base_param (id, name, param_key, value, type, enable, internal, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1452842684284891136, '测试', 'test.v1', '123', 1, true, false, null, 1399985191002447872, '2021-10-26 11:41:03.000000', 1399985191002447872, '2024-01-07 23:31:08.000000', true, 0); +INSERT INTO base_param (id, name, param_key, value, type, enable, internal, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1545765299880448000, '服务器地址', 'ServerUrl', 'https://doc.daxpay.cn', 1, true, true, '优先级高于配置文件内进行的配置', 1399985191002447872, '2022-07-09 21:42:21.000000', 1399985191002447872, '2024-05-31 21:00:39.399000', false, 3); +INSERT INTO base_param (id, name, param_key, value, type, enable, internal, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1529281530059161600, 'websocket服务器地址', 'WebsocketServerUrl', 'ws://doc.daxpay.cn:9000', 1, true, true, '', 1399985191002447872, '2022-05-25 10:01:44.000000', 1399985191002447872, '2024-05-31 21:00:59.754000', false, 5); + +----- +create table base_province +( + code char(2) not null + primary key, + name varchar(30) not null +); + +comment on table base_province is '省份表'; + +comment on column base_province.code is '省份编码'; + +comment on column base_province.name is '省份名称'; + + + + +----- +create table base_street +( + code char(9) not null + primary key, + name varchar(60) not null, + area_code char(6) not null +); + +comment on table base_street is '街道表'; + +comment on column base_street.code is '编码'; + +comment on column base_street.name is '街道名称'; + +comment on column base_street.area_code is '县区编码'; + + + +create index inx_area_code + on base_street (area_code); + +comment on index inx_area_code is '县区'; + + +----- +create table base_village +( + code char(12) not null + primary key, + name varchar(55) not null, + street_code char(9) not null +); + +comment on table base_village is '村庄/社区'; + +comment on column base_village.code is '编码'; + +comment on column base_village.name is '名称'; + +comment on column base_village.street_code is '社区/乡镇编码'; + + + +create index inx_street_code + on base_village (street_code); + +comment on index inx_street_code is '所属街道索引'; + + +----- +create table common_sequence_range +( + id bigint not null + primary key, + range_key varchar(255) not null, + range_value bigint not null, + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table common_sequence_range is '序列生成器队列区间管理'; + +comment on column common_sequence_range.id is '主键'; + +comment on column common_sequence_range.range_key is '区间key'; + +comment on column common_sequence_range.range_value is '区间开始值'; + +comment on column common_sequence_range.creator is '创建人'; + +comment on column common_sequence_range.create_time is '创建时间'; + +comment on column common_sequence_range.last_modifier is '最后修改人'; + +comment on column common_sequence_range.last_modified_time is '最后修改时间'; + +comment on column common_sequence_range.version is '版本'; + +comment on column common_sequence_range.deleted is '0:未删除。1:已删除'; + + + + +----- +create table ddl_history +( + script varchar(500) not null + primary key, + type varchar(30) not null, + version varchar(30) not null +); + +comment on table ddl_history is 'DDL 版本'; + +comment on column ddl_history.script is '脚本'; + +comment on column ddl_history.type is '类型'; + +comment on column ddl_history.version is '版本'; + + + + +----- +create table iam_client +( + id bigint not null + primary key, + code varchar(21) not null, + name varchar(50), + internal boolean not null, + enable boolean not null, + default_endow boolean, + login_type_ids text, + description varchar(255), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table iam_client is '认证终端'; + +comment on column iam_client.id is '主键'; + +comment on column iam_client.code is '编码'; + +comment on column iam_client.name is '名称'; + +comment on column iam_client.internal is '是否系统内置'; + +comment on column iam_client.enable is '是否可用'; + +comment on column iam_client.default_endow is '新注册的用户是否默认赋予该终端'; + +comment on column iam_client.login_type_ids is '关联登录方式 +'; + +comment on column iam_client.description is '描述'; + +comment on column iam_client.creator is '创建者ID'; + +comment on column iam_client.create_time is '创建时间'; + +comment on column iam_client.last_modifier is '最后修者ID'; + +comment on column iam_client.last_modified_time is '最后修改时间'; + +comment on column iam_client.version is '乐观锁'; + +comment on column iam_client.deleted is '删除标志'; + + + +INSERT INTO iam_client (id, code, name, internal, enable, default_endow, login_type_ids, description, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1580487061605175296, 'dax-pay', '支付网关', false, true, true, '1430430071299207168,1430478946919653376,1435138582839009280,1542091599907115008,1542804450312122368,1543126042909016064', '支付网关管理端', 1399985191002447872, '2022-10-13 17:14:14.000000', 1399985191002447872, '2023-10-19 19:58:21.000000', 3, false); + +----- +create table iam_data_role +( + id bigint not null + primary key, + code varchar(50), + name varchar(150), + type varchar(20) not null, + remark varchar(255), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table iam_data_role is '数据范围权限'; + +comment on column iam_data_role.id is '角色ID'; + +comment on column iam_data_role.code is '编码'; + +comment on column iam_data_role.name is '名称'; + +comment on column iam_data_role.type is '类型'; + +comment on column iam_data_role.remark is '说明'; + +comment on column iam_data_role.creator is '创建人'; + +comment on column iam_data_role.create_time is '创建时间'; + +comment on column iam_data_role.last_modifier is '最后修改人'; + +comment on column iam_data_role.last_modified_time is '最后修改时间'; + +comment on column iam_data_role.version is '版本'; + +comment on column iam_data_role.deleted is '0:未删除。1:已删除'; + + + + +----- +create table iam_data_role_dept +( + id bigint not null + primary key, + role_id bigint not null, + dept_id bigint not null +); + +comment on table iam_data_role_dept is '数据范围部门关联配置'; + +comment on column iam_data_role_dept.role_id is '数据角色id'; + +comment on column iam_data_role_dept.dept_id is '部门id'; + + + + +----- +create table iam_data_role_user +( + id bigint not null + primary key, + role_id bigint not null, + user_id bigint not null +); + +comment on table iam_data_role_user is '数据范围用户关联配置'; + +comment on column iam_data_role_user.role_id is '数据角色id'; + +comment on column iam_data_role_user.user_id is '用户id'; + + + + +----- +create table iam_dept +( + id bigint not null + primary key, + parent_id bigint, + dept_name varchar(100) not null, + sort_no integer not null, + org_category varchar(10) not null, + org_code varchar(64) not null, + mobile varchar(32), + fax varchar(32), + address varchar(100), + remark varchar(500), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table iam_dept is '部门组织机构表'; + +comment on column iam_dept.id is 'ID'; + +comment on column iam_dept.parent_id is '父机构ID'; + +comment on column iam_dept.dept_name is '机构/部门名称'; + +comment on column iam_dept.sort_no is '排序'; + +comment on column iam_dept.org_category is '机构类别 1公司 2部门 3岗位'; + +comment on column iam_dept.org_code is '机构编码'; + +comment on column iam_dept.mobile is '手机号'; + +comment on column iam_dept.fax is '传真'; + +comment on column iam_dept.address is '地址'; + +comment on column iam_dept.remark is '备注'; + +comment on column iam_dept.creator is '创建人'; + +comment on column iam_dept.create_time is '创建时间'; + +comment on column iam_dept.last_modifier is '最后修改人'; + +comment on column iam_dept.last_modified_time is '最后修改时间'; + +comment on column iam_dept.version is '版本'; + +comment on column iam_dept.deleted is '0:未删除。1:已删除'; + + + + +----- +create table iam_login_security_config +( + id bigint not null + primary key, + client_id bigint, + require_login_change_pwd boolean, + captcha_enable boolean, + max_captcha_error_count integer, + allow_multi_login boolean, + allow_multi_terminal_login boolean, + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table iam_login_security_config is '登录安全策略'; + +comment on column iam_login_security_config.id is '主键'; + +comment on column iam_login_security_config.client_id is '关联终端ID'; + +comment on column iam_login_security_config.require_login_change_pwd is '修改密码是否需要重新登录'; + +comment on column iam_login_security_config.captcha_enable is '默认启用验证码'; + +comment on column iam_login_security_config.max_captcha_error_count is '出现验证码的错误次数'; + +comment on column iam_login_security_config.allow_multi_login is '同端是否允许同时登录'; + +comment on column iam_login_security_config.allow_multi_terminal_login is '多终端是否允许同时登录'; + +comment on column iam_login_security_config.creator is '创建者ID'; + +comment on column iam_login_security_config.create_time is '创建时间'; + +comment on column iam_login_security_config.last_modifier is '最后修者ID'; + +comment on column iam_login_security_config.last_modified_time is '最后修改时间'; + +comment on column iam_login_security_config.version is '乐观锁'; + +comment on column iam_login_security_config.deleted is '删除标志'; + + + + +----- +create table iam_login_type +( + id bigint not null + primary key, + code varchar(21) not null, + name varchar(50), + type varchar(50), + internal boolean not null, + timeout bigint, + captcha_type varchar(8), + captcha boolean not null, + enable boolean not null, + description varchar(255), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table iam_login_type is '登录方式'; + +comment on column iam_login_type.id is '主键'; + +comment on column iam_login_type.code is '编码'; + +comment on column iam_login_type.name is '名称'; + +comment on column iam_login_type.type is '类型'; + +comment on column iam_login_type.internal is '是否系统内置'; + +comment on column iam_login_type.timeout is '在线时长(秒)'; + +comment on column iam_login_type.captcha_type is '验证码类型'; + +comment on column iam_login_type.captcha is '启用验证码'; + +comment on column iam_login_type.enable is '是否可用'; + +comment on column iam_login_type.description is '描述'; + +comment on column iam_login_type.creator is '创建者ID'; + +comment on column iam_login_type.create_time is '创建时间'; + +comment on column iam_login_type.last_modifier is '最后修者ID'; + +comment on column iam_login_type.last_modified_time is '最后修改时间'; + +comment on column iam_login_type.version is '乐观锁'; + +comment on column iam_login_type.deleted is '删除标志'; + + + +INSERT INTO iam_login_type (id, code, name, type, internal, timeout, captcha_type, captcha, enable, description, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1430430071299207168, 'password', '账号密码登陆', 'password', true, 3600, '-1', false, true, null, 1399985191002447872, '2021-08-25 15:21:20.000000', 1399985191002447872, '2022-11-03 22:24:53.000000', 20, false); +INSERT INTO iam_login_type (id, code, name, type, internal, timeout, captcha_type, captcha, enable, description, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1435138582839009280, 'phone', '手机短信登录', 'openId', false, 3600, '0', false, true, null, 1399985191002447872, '2021-09-07 15:11:16.000000', 1399985191002447872, '2022-07-16 12:32:19.000000', 5, false); +INSERT INTO iam_login_type (id, code, name, type, internal, timeout, captcha_type, captcha, enable, description, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1542091599907115008, 'dingTalk', '钉钉', 'openId', false, 5, '-1', false, true, '', 1399985191002447872, '2022-06-29 18:24:23.000000', 1399985191002447872, '2022-07-02 14:55:01.000000', 5, false); +INSERT INTO iam_login_type (id, code, name, type, internal, timeout, captcha_type, captcha, enable, description, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1542804450312122368, 'weCom', '企业微信', 'openId', false, 5, '-1', false, true, '', 1399985191002447872, '2022-07-01 17:37:00.000000', 1399985191002447872, '2022-07-01 17:37:00.000000', 0, false); +INSERT INTO iam_login_type (id, code, name, type, internal, timeout, captcha_type, captcha, enable, description, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1543126042909016064, 'weChat', '微信登录', 'openId', false, 5, '-1', false, true, '', 1399985191002447872, '2022-07-02 14:54:53.000000', 0, '2022-10-12 22:15:05.000000', 2, false); + +----- +create table iam_password_change_history +( + id bigint not null + primary key, + user_id bigint, + password varchar(255), + creator bigint, + create_time timestamp(6) +); + +comment on table iam_password_change_history is '密码更改历史'; + +comment on column iam_password_change_history.id is '主键'; + +comment on column iam_password_change_history.user_id is '用户Id'; + +comment on column iam_password_change_history.password is '密码'; + +comment on column iam_password_change_history.creator is '创建者ID'; + +comment on column iam_password_change_history.create_time is '创建时间'; + + + + +----- +create table iam_password_login_fail_record +( + id bigint not null + primary key, + user_id bigint, + fail_count integer, + fail_time timestamp(6), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table iam_password_login_fail_record is '密码登录失败记录'; + +comment on column iam_password_login_fail_record.id is '主键'; + +comment on column iam_password_login_fail_record.user_id is '用户id'; + +comment on column iam_password_login_fail_record.fail_count is '登录失败次数'; + +comment on column iam_password_login_fail_record.fail_time is '登录失败时间'; + +comment on column iam_password_login_fail_record.creator is '创建者ID'; + +comment on column iam_password_login_fail_record.create_time is '创建时间'; + +comment on column iam_password_login_fail_record.last_modifier is '最后修者ID'; + +comment on column iam_password_login_fail_record.last_modified_time is '最后修改时间'; + +comment on column iam_password_login_fail_record.version is '乐观锁'; + +comment on column iam_password_login_fail_record.deleted is '删除标志'; + + + + +----- +create table iam_password_security_config +( + id bigint not null + primary key, + max_pwd_error_count integer, + error_lock_time integer, + require_change_pwd boolean, + update_frequency integer, + expire_remind integer, + same_as_login_name boolean, + recent_password integer, + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table iam_password_security_config is '密码安全策略'; + +comment on column iam_password_security_config.id is '主键'; + +comment on column iam_password_security_config.max_pwd_error_count is '最大密码错误数'; + +comment on column iam_password_security_config.error_lock_time is '密码错误锁定时间(分钟)'; + +comment on column iam_password_security_config.require_change_pwd is '强制修改初始密码'; + +comment on column iam_password_security_config.update_frequency is '更新频率'; + +comment on column iam_password_security_config.expire_remind is '到期提醒(天数)'; + +comment on column iam_password_security_config.same_as_login_name is '与登录名相同'; + +comment on column iam_password_security_config.recent_password is '不能与近期多少次密码相同'; + +comment on column iam_password_security_config.creator is '创建者ID'; + +comment on column iam_password_security_config.create_time is '创建时间'; + +comment on column iam_password_security_config.last_modifier is '最后修者ID'; + +comment on column iam_password_security_config.last_modified_time is '最后修改时间'; + +comment on column iam_password_security_config.version is '乐观锁'; + +comment on column iam_password_security_config.deleted is '删除标志'; + + + +INSERT INTO iam_password_security_config (id, max_pwd_error_count, error_lock_time, require_change_pwd, update_frequency, expire_remind, same_as_login_name, recent_password, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1714844168393515008, 9999999, 10, true, 9999999, 14, false, 5, 1399985191002447872, '2023-10-19 11:21:25.000000', 1399985191002447872, '2023-11-29 12:10:21.000000', 2, false); + +----- +create table iam_perm_menu +( + id bigint not null + primary key, + client_code varchar(50) not null, + parent_id bigint, + title varchar(255) not null, + name varchar(255), + perm_code varchar(255), + effect boolean, + icon varchar(255), + hidden boolean not null, + hide_children_in_menu boolean not null, + component varchar(255), + component_name varchar(255), + path varchar(255), + redirect varchar(255), + sort_no double precision not null, + menu_type integer not null, + leaf boolean, + keep_alive boolean, + target_outside boolean, + hidden_header_content boolean, + internal boolean not null, + remark varchar(255), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table iam_perm_menu is '权限_菜单'; + +comment on column iam_perm_menu.client_code is '终端code'; + +comment on column iam_perm_menu.parent_id is '父id'; + +comment on column iam_perm_menu.title is '菜单名称'; + +comment on column iam_perm_menu.name is '路由名称'; + +comment on column iam_perm_menu.perm_code is '菜单权限编码'; + +comment on column iam_perm_menu.effect is '是否有效'; + +comment on column iam_perm_menu.icon is '菜单图标'; + +comment on column iam_perm_menu.hidden is '是否隐藏'; + +comment on column iam_perm_menu.hide_children_in_menu is '是否隐藏子菜单'; + +comment on column iam_perm_menu.component is '组件'; + +comment on column iam_perm_menu.component_name is '组件名字'; + +comment on column iam_perm_menu.path is '路径'; + +comment on column iam_perm_menu.redirect is '菜单跳转地址(重定向)'; + +comment on column iam_perm_menu.sort_no is '菜单排序'; + +comment on column iam_perm_menu.menu_type is '类型(0:一级菜单;1:子菜单 ;2:按钮权限)'; + +comment on column iam_perm_menu.leaf is '是否叶子节点'; + +comment on column iam_perm_menu.keep_alive is '是否缓存页面'; + +comment on column iam_perm_menu.target_outside is '是否外部打开方式'; + +comment on column iam_perm_menu.hidden_header_content is '隐藏的标题内容'; + +comment on column iam_perm_menu.internal is '系统内置菜单'; + +comment on column iam_perm_menu.remark is '描述'; + +comment on column iam_perm_menu.creator is '创建人'; + +comment on column iam_perm_menu.create_time is '创建时间'; + +comment on column iam_perm_menu.last_modifier is '最后修改人'; + +comment on column iam_perm_menu.last_modified_time is '最后修改时间'; + +comment on column iam_perm_menu.version is '版本'; + +comment on column iam_perm_menu.deleted is '0:未删除。1:已删除'; + + + +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1580740450633101312, 'dax-pay', null, '系统管理', 'System', null, false, 'ant-design:setting-outlined', false, false, 'Layout', null, '/system', '/system1/client', -99999, 0, null, true, false, false, false, null, 1399985191002447872, '2022-10-14 10:01:07.000000', 1414143554414059520, '2022-10-18 15:32:09.000000', 4, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1580740637841666048, 'dax-pay', 1582253306356649984, '终端管理', 'ClientList', null, false, '', false, false, '/modules/system/client/ClientList.vue', null, '/system/client', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2022-10-14 10:01:51.000000', 1414143554414059520, '2022-10-18 14:13:27.000000', 5, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1580740758629232640, 'dax-pay', 1582253306356649984, '登录方式', 'LoginTypeList', null, false, '', false, false, '/modules/system/loginType/LoginTypeList.vue', null, '/system/loginType', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2022-10-14 10:02:20.000000', 1414143554414059520, '2022-10-18 14:13:40.000000', 5, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1580928436300337152, 'dax-pay', 1580740450633101312, '菜单管理', 'MenuList', null, false, '', false, false, '/modules/system/menu/MenuList.vue', null, '/system/menu', '', -99, 1, null, true, false, false, false, null, 1399985191002447872, '2022-10-14 22:28:06.000000', 1399985191002447872, '2022-10-14 22:28:32.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1582249924602580992, 'dax-pay', 1580740450633101312, '权限管理', 'Permission', null, false, '', false, false, 'Layout', null, '/system/permission', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-18 13:59:13.000000', 1414143554414059520, '2022-10-18 13:59:13.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1582253011803262976, 'dax-pay', 1580740450633101312, '用户信息', 'UserAuth', null, false, '', false, false, 'Layout', null, '/system/user', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-18 14:11:30.000000', 1414143554414059520, '2022-10-18 14:11:30.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1582253152903843840, 'dax-pay', 1580740450633101312, '系统配置', 'SystemConfig', null, false, '', false, false, 'Layout', null, '/system/config', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-18 14:12:03.000000', 1414143554414059520, '2022-10-18 14:12:03.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1582253306356649984, 'dax-pay', 1580740450633101312, '认证管理', 'Auth', null, false, '', false, false, 'Layout', null, '/system/auth', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-18 14:12:40.000000', 1414143554414059520, '2022-10-18 14:13:13.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1582275875424129024, 'dax-pay', null, '系统监控', 'Monitor', null, false, 'ant-design:monitor-outlined', false, false, 'Layout', null, '/monitor', '', 0, 0, null, true, false, false, false, null, 1414143554414059520, '2022-10-18 15:42:21.000000', 1414143554414059520, '2022-10-19 17:29:29.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1582275984849326080, 'dax-pay', null, '通知管理', 'Notice', null, false, 'ant-design:message-outlined', false, false, 'Layout', null, '/notice', '', 0, 0, null, true, false, false, false, null, 1414143554414059520, '2022-10-18 15:42:47.000000', 1414143554414059520, '2022-10-19 17:30:06.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1582276092038959104, 'dax-pay', null, '第三方对接', 'Third', null, false, 'ant-design:api-twotone', false, false, 'Layout', null, '/third', '', 0, 0, null, true, false, false, false, null, 1414143554414059520, '2022-10-18 15:43:12.000000', 1414143554414059520, '2022-10-19 17:32:04.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1582276341792985088, 'dax-pay', null, '开发管理', 'Develop', null, false, 'ant-design:apartment-outlined', false, false, 'Layout', null, '/develop', '', 0, 0, null, true, false, false, false, null, 1414143554414059520, '2022-10-18 15:44:12.000000', 1414143554414059520, '2022-10-19 15:24:22.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1582277076421136384, 'dax-pay', 1582249924602580992, '角色管理', 'RoleList', null, false, '', false, false, '/modules/system/role/RoleList.vue', null, '/system/permission/role', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-18 15:47:07.000000', 1414143554414059520, '2022-10-18 15:59:37.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1582301940364308480, 'dax-pay', 1582249924602580992, '请求权限', 'PermPathList', null, false, '', false, false, '/modules/system/path/PermPathList.vue', null, '/system/permission/path', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-18 17:25:55.000000', 1399985191002447872, '2023-11-29 13:57:56.000000', 2, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1582302180999917568, 'dax-pay', 1582249924602580992, '数据角色', 'DataRoleList', null, false, '', false, false, '/modules/system/scope/DataRoleList.vue', null, '/system/permission/data', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-18 17:26:52.000000', 1399985191002447872, '2023-11-28 21:02:57.000000', 2, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1582302542955769856, 'dax-pay', 1582253011803262976, '用户管理', 'UserList', null, false, '', false, false, '/modules/system/user/UserList.vue', null, '/system/user/info', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-18 17:28:19.000000', 1414143554414059520, '2022-10-18 17:28:19.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1582302764129808384, 'dax-pay', 1582253011803262976, '部门管理', 'DeptList', null, false, '', false, false, '/modules/system/dept/DeptList.vue', null, '/system/user/dept', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-18 17:29:11.000000', 1414143554414059520, '2022-10-18 17:32:26.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1582303143110340608, 'dax-pay', 1582253152903843840, '数据字典', 'DictList', null, false, '', false, false, '/modules/system/dict/DictList.vue', null, '/system/config/dict', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-18 17:30:42.000000', 1414143554414059520, '2022-10-18 17:30:42.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1582303290070364160, 'dax-pay', 1582253152903843840, '定时任务', 'QuartzJobList', null, false, '', false, false, '/modules/baseapi/quartz/QuartzJobList.vue', null, '/system/config/quartz', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-18 17:31:17.000000', 1414143554414059520, '2023-08-09 15:50:46.000000', 2, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1582303447428067328, 'dax-pay', 1582253152903843840, '系统参数', 'SystemParamList', null, false, '', false, false, '/modules/system/param/SystemParamList.vue', null, '/system/config/param', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-18 17:31:54.000000', 1414143554414059520, '2022-10-19 23:14:16.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1582632873244172288, 'dax-pay', 1582276341792985088, '文件管理', 'FileUploadList', null, false, '', false, false, '/modules/develop/file/FileUploadList.vue', null, '/develop/file', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-19 15:20:56.000000', 1414143554414059520, '2022-10-19 15:20:56.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1583074308040925184, 'dax-pay', 1582275875424129024, '接口文档', 'ApiSwagger', null, false, '', false, false, '', null, 'http://127.0.0.1:9999/doc.html', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-20 20:35:02.000000', 1414143554414059520, '2022-11-23 13:59:09.000000', 2, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1583075229563068416, 'dax-pay', 1582275875424129024, '审计日志', 'AuditLog', null, false, '', false, false, 'Layout', null, '/monitor/log', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-20 20:38:42.000000', 1414143554414059520, '2022-10-20 20:41:38.000000', 2, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1583076217481043968, 'dax-pay', 1583075229563068416, '登录日志', 'LoginLogList', null, false, '', false, false, '/modules/monitor/login/LoginLogList.vue', null, '/monitor/log/login', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-20 20:42:37.000000', 1414143554414059520, '2022-10-20 20:43:36.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1583076424935514112, 'dax-pay', 1583075229563068416, '操作日志', 'OperateLogList', null, false, '', false, false, '/modules/monitor/operate/OperateLogList.vue', null, '/monitor/log/operate', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-20 20:43:26.000000', 1414143554414059520, '2022-10-20 20:43:26.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1583076670881112064, 'dax-pay', 1583075229563068416, '数据版本日志', 'DataVersionLogList', null, false, '', false, false, '/modules/monitor/data/DataVersionLogList.vue', null, '/monitor/log/data', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-20 20:44:25.000000', 1414143554414059520, '2022-10-20 20:44:25.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1583076878956339200, 'dax-pay', 1582275875424129024, 'ELK日志', 'ELK', null, false, '', true, false, '', null, 'http://elk.dev.bootx.cn:5601/app/discover', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-20 20:45:15.000000', 1414143554414059520, '2023-08-12 19:26:12.000000', 3, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1583077015434797056, 'dax-pay', 1582275875424129024, 'PlumeLog日志', 'PlumeLog', null, false, '', false, false, '', null, 'http://127.0.0.1:9999/plumelog/#/', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-20 20:45:47.000000', 1414143554414059520, '2022-10-20 20:45:47.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1583077198772019200, 'dax-pay', 1582275875424129024, '系统信息', 'SystemInfoMonitor', null, false, '', false, false, '/modules/monitor/system/SystemInfoMonitor.vue', null, '/monitor/sysinfo', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-20 20:46:31.000000', 1414143554414059520, '2022-10-20 20:46:31.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1583077360827342848, 'dax-pay', 1582275875424129024, 'Redis监控', 'RedisInfoMonitor', null, false, '', false, false, '/modules/monitor/redis/RedisInfoMonitor.vue', null, '/monitor/redis', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-20 20:47:10.000000', 1414143554414059520, '2022-10-20 20:47:10.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1584378294652051456, 'dax-pay', 1582275984849326080, '邮件配置', 'MailConfigList', null, false, '', false, false, '/modules/notice/mail/MailConfigList.vue', null, '/notice/notice', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-24 10:56:36.000000', 1414143554414059520, '2022-10-24 16:14:34.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1584378497824137216, 'dax-pay', 1582275984849326080, '消息模板', 'MessageTemplateList', null, false, '', false, false, '/modules/notice/template/MessageTemplateList.vue', null, '/notice/template', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-24 10:57:25.000000', 1414143554414059520, '2022-10-25 22:14:14.000000', 2, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1584378671266996224, 'dax-pay', 1582275984849326080, '站内信', 'SiteMessageList', null, false, '', false, false, '/modules/notice/site/sender/SiteMessageList.vue', null, '/notice/siteMessage', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-24 10:58:06.000000', 1414143554414059520, '2022-10-24 10:58:06.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1584379602188574720, 'dax-pay', 1582276092038959104, '微信', 'WeChat', null, false, '', false, false, 'Layout', null, '/third/wechat', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-24 11:01:48.000000', 1414143554414059520, '2022-10-24 11:01:48.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1584379704122744832, 'dax-pay', 1582276092038959104, '企业微信', 'WeCom', null, false, '', false, false, 'Layout', null, '/third/wecom', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-24 11:02:12.000000', 1414143554414059520, '2022-10-24 11:02:12.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1584380087805091840, 'dax-pay', 1582276092038959104, '钉钉', 'DingTalk', null, false, '', false, false, 'Layout', null, '/third/dingtalk', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-24 11:03:44.000000', 1414143554414059520, '2022-10-24 11:03:44.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1584380527829524480, 'dax-pay', 1584379602188574720, '消息模板', 'WechatTemplateList', null, false, '', false, false, '/modules/third/wechat/template/WechatTemplateList.vue', null, '/third/wechat/template', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-24 11:05:29.000000', 1414143554414059520, '2022-10-26 15:58:56.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1584380679478779904, 'dax-pay', 1584379602188574720, '自定义菜单', 'WechatMenuList', null, false, '', false, false, '/modules/third/wechat/menu/WechatMenuList.vue', null, '/third/wechat/menu', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-24 11:06:05.000000', 1414143554414059520, '2022-10-27 10:15:24.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1584380824308097024, 'dax-pay', 1584379602188574720, '素材管理', 'WechatMediaList', null, false, '', false, false, '/modules/third/wechat/media/WechatMediaList.vue', null, '/third/wechat/media', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-24 11:06:40.000000', 1414143554414059520, '2022-10-27 16:38:47.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1584381134950834176, 'dax-pay', 1584379704122744832, '企微机器人', 'WeComRobotConfigList', null, false, '', false, false, '/modules/third/wecom/robot/WecomRobotConfigList.vue', null, '/third/wecom/robot', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-24 11:07:54.000000', 1414143554414059520, '2022-11-12 20:58:25.000000', 3, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1584381322184564736, 'dax-pay', 1584380087805091840, '钉钉机器人', 'DingRobotConfigList', null, false, '', false, false, '/modules/third/dingtalk/robot/DingRobotConfigList.vue', null, '/third/dingTalk/robot', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2022-10-24 11:08:38.000000', 1414143554414059520, '2022-11-12 20:58:37.000000', 6, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1599337250200440832, 'dax-pay', null, '关于', '', null, false, 'ant-design:info-circle-outlined', false, false, '', null, '/about/index', '', 99, 0, null, true, false, false, false, null, 1414143554414059520, '2022-12-04 17:38:09.000000', 1399985191002447872, '2024-01-14 23:09:56.000000', 6, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1623494586215579648, 'dax-pay', 1552207982510706688, '行政区划', 'ChinaRegion', null, false, '', true, false, 'develop/region/ChinaRegionList', null, '/develop/region', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2023-02-09 09:30:47.000000', 1399985191002447872, '2023-02-09 17:50:05.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1631946120891707392, 'dax-pay', 1552207982510706688, '可视化大屏', 'ProjectInfoList', null, false, '', false, false, 'develop/report/ProjectInfoList', null, '/develop/report', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2023-03-04 17:14:10.000000', 1399985191002447872, '2023-03-04 17:14:10.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1687369862646558720, 'dax-pay', 1582275984849326080, '短信管理', 'Sms', null, false, '', false, false, 'Layout', null, '/notice/sms', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2023-08-04 15:48:20.000000', 1414143554414059520, '2023-08-04 15:48:32.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1687370142234669056, 'dax-pay', 1687369862646558720, '短信配置', 'SmsChannelConfigList', null, false, '', false, false, '/modules/notice/sms/config/SmsChannelConfigList', null, '/notice/sms/config', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2023-08-04 15:49:26.000000', 1414143554414059520, '2023-08-04 15:49:26.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1687370277496778752, 'dax-pay', 1687369862646558720, '短信模板', 'SmsTemplateList', null, false, '', false, false, '/modules/notice/sms/template/SmsTemplateList', null, '/notice/sms/template', '', 0, 1, null, true, false, false, false, null, 1414143554414059520, '2023-08-04 15:49:59.000000', 1414143554414059520, '2023-08-04 15:50:38.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1713931084759293952, 'dax-pay', 1582253306356649984, '密码安全', 'PassowrdSecurity', null, false, '', false, false, '/modules/system/security/password/PasswordSecurityConfig.vue', null, '/system/config/passowrd', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2023-10-16 22:53:09.000000', 1399985191002447872, '2023-10-16 22:58:59.000000', 2, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1733829906427682816, 'dax-pay', 1582275875424129024, '在线用户', 'OnlineUserList', null, false, '', false, false, '/modules/monitor/user/online/OnlineUserList', null, '/monitor/user/online', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2023-12-10 20:43:57.000000', 1399985191002447872, '2023-12-10 20:43:57.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1744271715476684800, 'dax-pay', null, '支付配置', 'PayConfig', null, false, 'ant-design:setting-filled', false, false, 'Layout', null, '/pay/config', '', 0, 0, null, true, false, false, false, null, 1399985191002447872, '2024-01-08 16:15:59.000000', 1399985191002447872, '2024-01-09 15:38:06.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1744276101384880128, 'dax-pay', 1744271715476684800, '支付通道', 'PayChannelConfigList', null, false, '', false, false, 'payment/system/channel/PayChannelConfigList', null, '/pay/config/channel', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2024-01-08 16:33:24.000000', 1399985191002447872, '2024-01-18 14:49:15.000000', 3, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1744372631231995904, 'dax-pay', 1744271715476684800, '支付方式', 'PayMethodInfoList', null, false, '', false, false, 'payment/system/method/PayMethodInfoList', null, '/pay/config/method', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2024-01-08 22:56:59.000000', 1399985191002447872, '2024-05-01 22:53:13.000000', 3, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1744624886658318336, 'dax-pay', 1744271715476684800, '支付接口', 'PayApiConfigList', null, false, '', false, false, 'payment/system/api/PayApiConfigList', null, '/pay/config/api', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2024-01-09 15:39:21.000000', 1399985191002447872, '2024-01-10 11:52:20.000000', 2, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1744642856348520448, 'dax-pay', null, '订单管理', 'PayOrder', null, false, 'ant-design:wallet-outlined', false, false, 'Layout', null, '/pay/order', '', 0, 0, null, true, false, false, false, null, 1399985191002447872, '2024-01-09 16:50:46.000000', 1399985191002447872, '2024-01-09 16:53:35.000000', 3, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1744643265142165504, 'dax-pay', null, '数据记录', 'PayRecord', null, false, 'ant-design:profile-outlined', false, false, 'Layout', null, '/pay/record', '', 0, 0, null, true, false, false, false, null, 1399985191002447872, '2024-01-09 16:52:23.000000', 1399985191002447872, '2024-01-09 16:53:50.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1744930046228017152, 'dax-pay', 1744643265142165504, '回调记录', 'PayCallbackRecordList', null, false, '', false, false, 'payment/record/callback/PayCallbackRecordList', null, '/pay/record/callback', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2024-01-10 11:51:57.000000', 1399985191002447872, '2024-05-01 23:15:23.000000', 10, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1745126072389963776, 'dax-pay', 1744643265142165504, '关闭记录', 'PayCloseRecordList', null, false, '', false, false, 'payment/record/close/PayCloseRecordList', null, '/pay/record/close', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2024-01-11 00:50:53.000000', 1399985191002447872, '2024-01-11 00:50:53.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1745136155962347520, 'dax-pay', 1744643265142165504, '修复记录', 'PayRepairRecordList', null, false, '', false, false, 'payment/record/repair/PayRepairRecordList', null, '/pay/record/repair', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2024-01-11 01:30:57.000000', 1399985191002447872, '2024-01-11 01:30:57.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1745143528663781376, 'dax-pay', 1744643265142165504, '同步记录', 'PaySyncRecordList', null, false, '', false, false, 'payment/record/sync/PaySyncRecordList', null, '/pay/record/sync', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2024-01-11 02:00:15.000000', 1399985191002447872, '2024-01-11 02:00:33.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1745457623493496832, 'dax-pay', 1744642856348520448, '支付订单', 'PayOrderList', null, false, '', false, false, 'payment/order/pay/PayOrderList', null, '/pay/order/pay', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2024-01-11 22:48:21.000000', 1399985191002447872, '2024-01-11 22:48:21.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1745457746529210368, 'dax-pay', 1744642856348520448, '退款订单', 'RefundOrderList', null, false, '', false, false, 'payment/order/refund/RefundOrderList.vue', null, '/pay/order/refund', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2024-01-11 22:48:50.000000', 1399985191002447872, '2024-01-21 22:50:29.000000', 2, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1745822093382230016, 'dax-pay', 1744271715476684800, '通道配置', 'ChannelPayConfigList', null, false, '', false, false, 'payment/channel/config/ChannelPayConfigList', null, '/pay/config/channelpay', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2024-01-12 22:56:38.000000', 1399985191002447872, '2024-02-06 14:32:08.000000', 2, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1746194891925561344, 'dax-pay', 1744271715476684800, '平台配置', 'PayPlatformConfig', null, false, '', false, false, 'payment/system/platform/PayPlatformConfig', null, '/pay/config/platform', '', -1, 1, null, true, false, false, false, null, 1399985191002447872, '2024-01-13 23:38:00.000000', 1399985191002447872, '2024-01-13 23:38:00.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1749262518385082368, 'dax-pay', 1786808188825194496, '对账单', 'ReconcileOrderList', null, false, '', false, false, 'payment/reconcile/order/ReconcileOrderList.vue', null, '/pay/reconcile/order', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2024-01-22 10:47:39.000000', 1399985191002447872, '2024-05-05 17:09:14.000000', 9, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1759768820429352960, 'dax-pay', null, '演示模块', '', null, false, 'ant-design:crown-outlined', false, false, 'Layout', null, '/pay/demo', '', 9, 0, null, true, false, false, false, null, 1399985191002447872, '2024-02-20 10:35:56.000000', 1399985191002447872, '2024-02-20 10:35:56.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1759769092698402816, 'dax-pay', 1759768820429352960, '收银台演示', '', null, false, '', false, false, '', null, 'outside:///cashier', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2024-02-20 10:37:01.000000', 1399985191002447872, '2024-02-20 10:37:01.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1761429304959528960, 'dax-pay', null, '支付通知', 'PayNotic', null, false, 'ant-design:clock-circle-outlined', false, false, 'Layout', null, '/pay/notice', '', 0, 0, null, true, false, false, false, null, 1399985191002447872, '2024-02-25 00:34:07.000000', 1399985191002447872, '2024-05-08 15:31:04.000000', 3, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1761429682618855424, 'dax-pay', 1761429304959528960, '通知记录', 'ClientNoticeTaskList', null, false, '', false, false, 'payment/task/notice/ClientNoticeTaskList', null, '/pay/notice/record', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2024-02-25 00:35:37.000000', 1399985191002447872, '2024-05-08 15:30:56.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1775089099078553600, 'dax-pay', null, '分账管理', 'Allocation', null, false, 'ant-design:sliders-twotone', false, false, 'Layout', null, '/pay/allocation', '', 0, 0, null, true, false, false, false, null, 1399985191002447872, '2024-04-02 17:13:15.000000', 1399985191002447872, '2024-04-02 17:13:15.000000', 0, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1775089820368818176, 'dax-pay', 1775089099078553600, '分账接收者', 'AllocationReceiverList', null, false, '', false, false, 'payment/allocation/receiver/AllocationReceiverList', null, '/pay/allocation/receiver', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2024-04-02 17:16:07.000000', 1399985191002447872, '2024-04-02 17:23:13.000000', 2, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1775091561835450368, 'dax-pay', 1775089099078553600, '分账组', 'AllocationGroupList', null, false, '', false, false, 'payment/allocation/group/AllocationGroupList', null, '/pay/allocation/group', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2024-04-02 17:23:03.000000', 1399985191002447872, '2024-04-02 17:23:27.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1777688382748700672, 'dax-pay', 1775089099078553600, '分账订单', 'AllocationOrderList', null, false, '', false, false, 'payment/allocation/order/AllocationOrderList', null, '/pay/allocation/order', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2024-04-09 21:21:53.000000', 1399985191002447872, '2024-05-05 17:06:17.000000', 3, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1786808188825194496, 'dax-pay', null, '对账管理', 'Reconcile', null, false, 'ant-design:arrows-alt-outlined', false, false, 'Layout', null, '/pay/reconcile', '', 0, 0, null, true, false, false, false, null, 1399985191002447872, '2024-05-05 01:20:44.000000', 1399985191002447872, '2024-05-05 01:20:54.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1786810890951020544, 'dax-pay', 1786808188825194496, '对账差异', 'ReconcileDiffList', null, false, '', false, false, 'payment/reconcile/diff/ReconcileDiffList.vue', null, '/pay/reconcile/diff', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2024-05-05 01:31:28.000000', 1399985191002447872, '2024-05-05 17:08:38.000000', 1, false); +INSERT INTO iam_perm_menu (id, client_code, parent_id, title, name, perm_code, effect, icon, hidden, hide_children_in_menu, component, component_name, path, redirect, sort_no, menu_type, leaf, keep_alive, target_outside, hidden_header_content, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1786811341285052416, 'dax-pay', 1786808188825194496, '外部交易明细', 'ReconcileDetailList', null, false, '', true, false, 'payment/reconcile/detail/ReconcileDetailList.vue', null, '/pay/reconcile/detail', '', 0, 1, null, true, false, false, false, null, 1399985191002447872, '2024-05-05 01:33:16.000000', 1399985191002447872, '2024-05-05 20:24:24.000000', 2, false); + +----- +create table iam_perm_path +( + id bigint not null + primary key, + code varchar(200) not null, + name varchar(255), + request_type varchar(10) not null, + path varchar(255) not null, + group_name varchar(255), + enable boolean not null, + generate boolean not null, + remark varchar(255), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + deleted boolean not null, + version integer not null +); + +comment on table iam_perm_path is '权限_请求'; + +comment on column iam_perm_path.code is '权限标识'; + +comment on column iam_perm_path.name is '权限名称'; + +comment on column iam_perm_path.request_type is '请求类型'; + +comment on column iam_perm_path.path is '请求路径'; + +comment on column iam_perm_path.group_name is '分组名称'; + +comment on column iam_perm_path.enable is '启用状态'; + +comment on column iam_perm_path.generate is '是否通过系统生成的权限'; + +comment on column iam_perm_path.remark is '描述'; + + + +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556416, 'UserInfoController#existsUsername', '账号是否被使用', 'GET', '/user/existsUsername', '用户管理', false, true, '用户管理 账号是否被使用', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556417, 'FIleUpLoadController#page', '分页', 'GET', '/file/page', '文件上传', false, true, '文件上传 分页', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556418, 'AllocationOrderController#retryAllocation', '分账重试', 'POST', '/order/allocation/retry', '分账订单控制器', false, true, '分账订单控制器 分账重试', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556419, 'WeChatPayConfigController#toBase64', '将文件转换成base64', 'POST', '/wechat/pay/config/toBase64', '微信支付配置', false, true, '微信支付配置 将文件转换成base64', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556420, 'AllocationReceiverController#removeByGateway', '从三方支付系统中删除', 'POST', '/allocation/receiver/removeByGateway', '分账接收方控制器', false, true, '分账接收方控制器 从三方支付系统中删除', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556421, 'UserThirdController#unbind', '解绑第三方账号', 'POST', '/user/third/unbind', '用户三方登录管理', false, true, '用户三方登录管理 解绑第三方账号', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556422, 'ChinaRegionController#findAllProvince', '获取一级行政区', 'GET', '/china/region/findAllProvince', '中国行政区划', false, true, '中国行政区划 获取一级行政区', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556423, 'AllocationGroupController#unbindReceivers', '批量取消绑定接收者', 'POST', '/allocation/group/unbindReceivers', '分账组', false, true, '分账组 批量取消绑定接收者', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556424, 'DataRoleController#findUsersByDataRoleId', '获取关联的用户列表', 'GET', '/data/role/findUsersByDataRoleId', '数据角色配置', false, true, '数据角色配置 获取关联的用户列表', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556425, 'AggregateController#getInfo', '获取聚合支付信息', 'GET', '/demo/aggregate/getInfo', '聚合支付', false, true, '聚合支付 获取聚合支付信息', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556426, 'UniQueryController#queryRefundOrder', '退款订单查询接口', 'POST', '/uni/query/refundOrder', '统一查询接口', false, true, '统一查询接口 退款订单查询接口', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556427, 'SmsTemplateController#update', '修改', 'POST', '/sms/template/update', '短信模板配置', false, true, '短信模板配置 修改', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556428, 'AllocationReceiverController#findById', '查询详情', 'GET', '/allocation/receiver/findById', '分账接收方控制器', false, true, '分账接收方控制器 查询详情', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556429, 'PayMethodInfoController#update', '更新', 'POST', '/pay/method/info/update', '支付方式管理', false, true, '支付方式管理 更新', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556430, 'CashierController#getUniCashierUrl', '获取手机收银台链接', 'GET', '/demo/cashier/getUniCashierUrl', '结算台演示', false, true, '结算台演示 获取手机收银台链接', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556431, 'ReconcileOrderController#pageDiff', '对账差异分页', 'GET', '/order/reconcile/diff/page', '对账控制器', false, true, '对账控制器 对账差异分页', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556432, 'OnlineUserController#page', '分页', 'GET', '/online/user/page', '在线用户', false, true, '在线用户 分页', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556433, 'UserInfoController#existsPhone', '手机号是否被使用(不包含自己)', 'GET', '/user/existsPhoneNotId', '用户管理', false, true, '用户管理 手机号是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556434, 'DataRoleController#add', '添加', 'POST', '/data/role/add', '数据角色配置', false, true, '数据角色配置 添加', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556435, 'PlatformConfigController#getConfig', '获取平台配置', 'GET', '/platform/config/getConfig', '支付平台配置控制器', false, true, '支付平台配置控制器 获取平台配置', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556436, 'SmsTemplateController#delete', '删除', 'DELETE', '/sms/template/delete', '短信模板配置', false, true, '短信模板配置 删除', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556437, 'DataRoleController#findById', '获取', 'GET', '/data/role/findById', '数据角色配置', false, true, '数据角色配置 获取', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556438, 'DingRobotConfigController#delete', '删除', 'DELETE', '/ding/robot/config/delete', '钉钉机器人配置', false, true, '钉钉机器人配置 删除', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556439, 'UserDataRoleController#saveAssign', '给用户分配数据角色', 'POST', '/user/data/role/saveAssign', '用户数据角色配置', false, true, '用户数据角色配置 给用户分配数据角色', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556440, 'SiteMessageController#read', '标为已读', 'POST', '/site/message/read', '站内信', false, true, '站内信 标为已读', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556441, 'SystemParamController#findByParamKey', '根据键名获取键值', 'GET', '/system/param/findByParamKey', '系统参数', false, true, '系统参数 根据键名获取键值', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556442, 'UserInfoController#bindEmail', '绑定邮箱', 'POST', '/user/bindEmail', '用户管理', false, true, '用户管理 绑定邮箱', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556443, 'RoleMenuController#save', '保存请求权限关系', 'POST', '/role/menu/save', '角色菜单权限关系', false, true, '角色菜单权限关系 保存请求权限关系', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556444, 'RoleController#findAll', '查询所有的角色', 'GET', '/role/findAll', '角色管理', false, true, '角色管理 查询所有的角色', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556445, 'SmsChannelConfigController#findById', '通过ID查询', 'GET', '/sms/config/findById', '短信渠道配置', false, true, '短信渠道配置 通过ID查询', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556446, 'PermPathController#add', '添加权限', 'POST', '/perm/path/add', '请求权限管理', false, true, '请求权限管理 添加权限', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556447, 'AuthAssistController#sendSmsCaptcha', '发送短信验证码', 'POST', '/auth/sendSmsCaptcha', '认证支撑接口', false, true, '认证支撑接口 发送短信验证码', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556448, 'CockpitReportController#getRefundAmount', '退款金额(分)', 'GET', '/report/cockpit/getRefundAmount', '驾驶舱接口', false, true, '驾驶舱接口 退款金额(分)', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556449, 'PermMenuController#existsByPermCode', '编码是否被使用', 'GET', '/perm/menu/existsByPermCode', '菜单和权限码', false, true, '菜单和权限码 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556450, 'WeChatTemplateController#findById', '通过ID查询', 'GET', '/wechat/template/findById', '微信模板消息', false, true, '微信模板消息 通过ID查询', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556451, 'UserInfoController#updateEmail', '修改邮箱', 'POST', '/user/updateEmail', '用户管理', false, true, '用户管理 修改邮箱', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556452, 'AggregateController#createUrl', '创建聚合支付码', 'POST', '/demo/aggregate/createUrl', '聚合支付', false, true, '聚合支付 创建聚合支付码', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556453, 'MessageTemplateController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/message/template/existsByCodeNotId', '消息模板', false, true, '消息模板 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556454, 'DingRobotConfigController#update', '修改机器人配置', 'POST', '/ding/robot/config/update', '钉钉机器人配置', false, true, '钉钉机器人配置 修改机器人配置', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556455, 'WeChatPortalController#auth', 'auth', 'GET', '/wechat/portal', '微信接入入口', false, true, '微信接入入口 auth', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556456, 'SystemParamController#add', '添加', 'POST', '/system/param/add', '系统参数', false, true, '系统参数 添加', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556457, 'DingRobotConfigController#page', '分页', 'GET', '/ding/robot/config/page', '钉钉机器人配置', false, true, '钉钉机器人配置 分页', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556458, 'QuartzJobController#findById', '单条', 'GET', '/quartz/findById', '定时任务', false, true, '定时任务 单条', 1399985191002447872, '2024-05-13 19:16:54.069000', 1399985191002447872, '2024-05-13 19:16:54.069000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117562556459, 'RoleController#existsByName', '名称是否被使用', 'GET', '/role/existsByName', '角色管理', false, true, '角色管理 名称是否被使用', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750720, 'WeChatMenuController#findById', '通过ID查询', 'GET', '/wechat/menu/findById', '微信菜单管理', false, true, '微信菜单管理 通过ID查询', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750721, 'UserInfoController#existsEmail', '邮箱是否被使用(不包含自己)', 'GET', '/user/existsEmailNotId', '用户管理', false, true, '用户管理 邮箱是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750722, 'UniPayController#syncPay', '支付同步接口', 'POST', '/unipay/syncPay', '统一支付接口', false, true, '统一支付接口 支付同步接口', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750723, 'PermPathController#page', '权限分页', 'GET', '/perm/path/page', '请求权限管理', false, true, '请求权限管理 权限分页', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750724, 'WeChatPortalController#post', 'post', 'POST', '/wechat/portal', '微信接入入口', false, true, '微信接入入口 post', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750725, 'DeptController#findById', '获取', 'GET', '/dept/findById', '部门管理', false, true, '部门管理 获取', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750726, 'PayOrderController#allocation', '发起分账', 'POST', '/order/pay/allocation', '支付订单控制器', false, true, '支付订单控制器 发起分账', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750727, 'DictionaryController#add', '添加', 'POST', '/dict/add', '字典', false, true, '字典 添加', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750728, 'RefundOrderController#getTotalAmount', '查询金额汇总', 'GET', '/order/refund/getTotalAmount', '支付退款控制器', false, true, '支付退款控制器 查询金额汇总', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750729, 'UserInfoController#getUserBaseInfo', '查询用户基础信息', 'GET', '/user/getUserBaseInfo', '用户管理', false, true, '用户管理 查询用户基础信息', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750730, 'CockpitReportController#getRefundOrderCount', '退款订单数量', 'GET', '/report/cockpit/getRefundOrderCount', '驾驶舱接口', false, true, '驾驶舱接口 退款订单数量', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750731, 'UserinternalController#update', '修改用户', 'POST', '/user/internal/update', '管理用户(管理员级别)', false, true, '管理用户(管理员级别) 修改用户', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750732, 'WeChatMenuController#importMenu', '导入微信自定义菜单到系统中', 'POST', '/wechat/menu/importMenu', '微信菜单管理', false, true, '微信菜单管理 导入微信自定义菜单到系统中', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750733, 'WalletConfigController#update', '更新', 'POST', '/wallet/config/update', '钱包配置', false, true, '钱包配置 更新', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750734, 'DeptController#deleteAndChildren', '强制级联删除', 'DELETE', '/dept/deleteAndChildren', '部门管理', false, true, '部门管理 强制级联删除', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750735, 'PermPathController#deleteBatch', '批量删除', 'DELETE', '/perm/path/deleteBatch', '请求权限管理', false, true, '请求权限管理 批量删除', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750736, 'PayGatewayNoticeController#wechatPayNotice', '微信消息通知', 'POST', '/gateway/notice/wechat', '三方支付网关消息通知', false, true, '三方支付网关消息通知 微信消息通知', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750737, 'DataRoleController#saveDeptAssign', '保存关联部门', 'POST', '/data/role/saveDeptAssign', '数据角色配置', false, true, '数据角色配置 保存关联部门', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750738, 'PayCallbackController#wechatPayNotify', '微信支付信息回调', 'POST', '/callback/pay/wechat', '支付通道信息回调', false, true, '支付通道信息回调 微信支付信息回调', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750739, 'WeChatMediaController#uploadFile', '上传素材', 'POST', '/wechat/media/uploadFile', '微信素材管理', false, true, '微信素材管理 上传素材', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750740, 'AllocationReceiverController#registerByGateway', '同步到三方支付系统中', 'POST', '/allocation/receiver/registerByGateway', '分账接收方控制器', false, true, '分账接收方控制器 同步到三方支付系统中', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750741, 'WalletController#recharge', '充值', 'POST', '/wallet/recharge', '钱包管理', false, true, '钱包管理 充值', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750742, 'UniPayAssistController#getWxAccessToken', '获取微信AccessToken', 'POST', '/unipay/assist/getWxAccessToken', '支付支撑接口', false, true, '支付支撑接口 获取微信AccessToken', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750743, 'FIleUpLoadController#getFileDownloadUrl', '获取文件下载地址(流量会经过后端)', 'GET', '/file/getFileDownloadUrl', '文件上传', false, true, '文件上传 获取文件下载地址(流量会经过后端)', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750744, 'AllocationGroupController#clearDefault', '清除默认分账组', 'POST', '/allocation/group/clearDefault', '分账组', false, true, '分账组 清除默认分账组', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750745, 'DictionaryController#findById', '根据id获取', 'GET', '/dict/findById', '字典', false, true, '字典 根据id获取', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750746, 'ReconcileOrderController#compare', '手动触发交易对账单比对', 'POST', '/order/reconcile/compare', '对账控制器', false, true, '对账控制器 手动触发交易对账单比对', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750747, 'TestController#lock1', '锁测试1', 'GET', '/test/lock1', '测试', false, true, '测试 锁测试1', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750748, 'UserInfoController#updatePhone', '修改手机号', 'POST', '/user/updatePhone', '用户管理', false, true, '用户管理 修改手机号', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750749, 'UserInfoController#getLoginAfterUserInfo', '登录后获取用户信息', 'GET', '/user/getLoginAfterUserInfo', '用户管理', false, true, '用户管理 登录后获取用户信息', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750750, 'ClientController#delete', '删除', 'DELETE', '/client/delete', '认证终端', false, true, '认证终端 删除', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750751, 'PayChannelConfigController#findAll', '查询全部', 'GET', '/pay/channel/config/findAll', '支付通道信息', false, true, '支付通道信息 查询全部', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750752, 'SmsChannelConfigController#add', '添加', 'POST', '/sms/config/add', '短信渠道配置', false, true, '短信渠道配置 添加', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750753, 'PayCloseRecordController#page', '分页查询', 'GET', '/record/close/page', '支付订单关闭记录', false, true, '支付订单关闭记录 分页查询', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750754, 'UserInfoController#bindPhone', '绑定手机', 'POST', '/user/bindPhone', '用户管理', false, true, '用户管理 绑定手机', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750755, 'DictionaryItemController#update', '修改字典项(返回字典项对象)', 'POST', '/dict/item/update', '字典项', false, true, '字典项 修改字典项(返回字典项对象)', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750756, 'WeChatMediaController#pageFile', '非图文素材分页', 'GET', '/wechat/media/pageFile', '微信素材管理', false, true, '微信素材管理 非图文素材分页', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750757, 'ChinaRegionController#findAllProvinceAndCityAndArea', ' 获取省市区县三级联动列表', 'GET', '/china/region/findAllProvinceAndCityAndArea', '中国行政区划', false, true, '中国行政区划 获取省市区县三级联动列表', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750758, 'WalletConfigController#findPayWays', '支付宝支持支付方式', 'GET', '/wallet/config/findPayWays', '钱包配置', false, true, '钱包配置 支付宝支持支付方式', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750759, 'AllocationGroupController#bindReceivers', '批量绑定接收者', 'POST', '/allocation/group/bindReceivers', '分账组', false, true, '分账组 批量绑定接收者', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750760, 'ReconcileOrderController#upload', '手动上传交易对账单文件', 'POST', '/order/reconcile/upload', '对账控制器', false, true, '对账控制器 手动上传交易对账单文件', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750761, 'SystemParamController#update', '更新', 'POST', '/system/param/update', '系统参数', false, true, '系统参数 更新', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750762, 'PayCallbackRecordController#page', '分页查询', 'GET', '/record/callback/page', '支付回调信息记录', false, true, '支付回调信息记录 分页查询', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750763, 'RefundOrderController#findByRefundNo', '查询退款订单详情', 'GET', '/order/refund/findByOrderNo', '支付退款控制器', false, true, '支付退款控制器 查询退款订单详情', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750764, 'ClientController#page', '分页查询', 'GET', '/client/page', '认证终端', false, true, '认证终端 分页查询', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750765, 'UserAssistController#sendPhoneForgetCaptcha', '发送找回密码手机验证码', 'POST', '/user/sendPhoneForgetCaptcha', '用户操作支撑服务', false, true, '用户操作支撑服务 发送找回密码手机验证码', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750766, 'CashierController#wxAuthCallback', '微信授权回调页面', 'GET', '/demo/cashier/wxAuthCallback', '结算台演示', false, true, '结算台演示 微信授权回调页面', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750767, 'UserInfoController#getUserSecurityInfo', '查询用户安全信息', 'GET', '/user/getUserSecurityInfo', '用户管理', false, true, '用户管理 查询用户安全信息', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750768, 'PaySyncRecordController#findById', '查询单条', 'GET', '/record/sync/findById', '支付同步记录控制器', false, true, '支付同步记录控制器 查询单条', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750769, 'DataRoleController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/data/role/existsByCodeNotId', '数据角色配置', false, true, '数据角色配置 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750770, 'DataRoleController#existsByName', '名称是否被使用(不包含自己)', 'GET', '/data/role/existsByNameNotId', '数据角色配置', false, true, '数据角色配置 名称是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750771, 'UniQueryController#queryPayOrder', '支付订单查询接口', 'POST', '/uni/query/payOrder', '统一查询接口', false, true, '统一查询接口 支付订单查询接口', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750772, 'QuartzJobController#delete', '删除', 'DELETE', '/quartz/delete', '定时任务', false, true, '定时任务 删除', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750773, 'PermMenuController#add', '添加菜单权限', 'POST', '/perm/menu/add', '菜单和权限码', false, true, '菜单和权限码 添加菜单权限', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750774, 'ChinaRegionController#findAllProvinceAndCity', '获取省市二级联动列表', 'GET', '/china/region/findAllProvinceAndCity', '中国行政区划', false, true, '中国行政区划 获取省市二级联动列表', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750775, 'WeChatMenuController#page', '分页查询', 'GET', '/wechat/menu/page', '微信菜单管理', false, true, '微信菜单管理 分页查询', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750776, 'PermPathController#findById', '获取详情', 'GET', '/perm/path/findById', '请求权限管理', false, true, '请求权限管理 获取详情', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750777, 'QuartzJobController#stop', '停止', 'POST', '/quartz/stop', '定时任务', false, true, '定时任务 停止', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750778, 'UserAssistController#sendEmailChangeCaptcha', '发送更改/绑定邮箱验证码', 'POST', '/user/sendEmailChangeCaptcha', '用户操作支撑服务', false, true, '用户操作支撑服务 发送更改/绑定邮箱验证码', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750779, 'DictionaryController#page', '分页', 'GET', '/dict/page', '字典', false, true, '字典 分页', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750780, 'OnlineUserController#kickOut', '踢出用户', 'GET', '/online/user/kickOut', '在线用户', false, true, '在线用户 踢出用户', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750781, 'UniPayController#refund', '统一退款接口', 'POST', '/unipay/refund', '统一支付接口', false, true, '统一支付接口 统一退款接口', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750782, 'PayCallbackController#unionPayNotify', '云闪付支付信息回调', 'POST', '/callback/pay/union', '支付通道信息回调', false, true, '支付通道信息回调 云闪付支付信息回调', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750783, 'ReconcileOrderController#downLocalCsv', '下载系统对账单(CSV格式)', 'GET', '/order/reconcile/downLocalCsv', '对账控制器', false, true, '对账控制器 下载系统对账单(CSV格式)', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750784, 'DataRoleController#delete', '删除', 'DELETE', '/data/role/delete', '数据角色配置', false, true, '数据角色配置 删除', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750785, 'DataRoleController#deleteUserAssigns', '批量删除数据角色关联用户', 'DELETE', '/data/role/deleteUserAssigns', '数据角色配置', false, true, '数据角色配置 批量删除数据角色关联用户', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750786, 'ClientController#findById', '通过ID查询', 'GET', '/client/findById', '认证终端', false, true, '认证终端 通过ID查询', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750787, 'ClientController#existsByCode', '编码是否被使用', 'GET', '/client/existsByCode', '认证终端', false, true, '认证终端 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750788, 'FIleUpLoadController#local', '上传', 'POST', '/file/upload', '文件上传', false, true, '文件上传 上传', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750789, 'AllocationGroupController#findById', '查询详情', 'GET', '/allocation/group/findById', '分账组', false, true, '分账组 查询详情', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750790, 'PermMenuController#menuAndPermCodeTree', '获取菜单和权限码树', 'GET', '/perm/menu/menuAndPermCodeTree', '菜单和权限码', false, true, '菜单和权限码 获取菜单和权限码树', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750791, 'WeChatArticleController#page', '分页', 'GET', '/wechat/article/page', '微信文章管理', false, true, '微信文章管理 分页', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750792, 'UserInfoController#updatePassword', '修改密码', 'POST', '/user/updatePassword', '用户管理', false, true, '用户管理 修改密码', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750793, 'MessageTemplateController#existsByCode', '编码是否被使用', 'GET', '/message/template/existsByCode', '消息模板', false, true, '消息模板 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750794, 'LoginTypeController#superPage', '超级查询', 'POST', '/loginType/superPage', '登录方式管理', false, true, '登录方式管理 超级查询', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750795, 'WalletController#page', '钱包分页', 'GET', '/wallet/page', '钱包管理', false, true, '钱包管理 钱包分页', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750796, 'UserinternalController#getUserInfoWhole', '查询用户详情', 'GET', '/user/internal/getUserInfoWhole', '管理用户(管理员级别)', false, true, '管理用户(管理员级别) 查询用户详情', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750797, 'AlipayConfigController#update', '更新', 'POST', '/alipay/config/update', '支付宝配置', false, true, '支付宝配置 更新', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750798, 'UniPayController#syncRefund', '退款同步接口', 'POST', '/unipay/syncRefund', '统一支付接口', false, true, '统一支付接口 退款同步接口', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750799, 'QuartzJobController#add', '添加', 'POST', '/quartz/add', '定时任务', false, true, '定时任务 添加', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750800, 'OperateLogController#page', '分页', 'GET', '/log/operate/page', '操作日志', false, true, '操作日志 分页', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750801, 'ClientNoticeTaskController#findRecordById', '查询单条', 'GET', '/task/notice/record/findById', '客户系统通知任务', false, true, '客户系统通知任务 查询单条', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750802, 'OpenApiWebMvcResource#openapiYaml', 'openapiYaml', 'GET', '/v3/api-docs.yaml', 'OpenApiWebMvcResource', false, true, 'OpenApiWebMvcResource openapiYaml', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750803, 'PayOrderController#findById', '查询订单详情', 'GET', '/order/pay/findById', '支付订单控制器', false, true, '支付订单控制器 查询订单详情', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750804, 'WeChatQrLoginController#getStatus', '获取扫码状态', 'GET', '/token/wechat/qr/getStatus', '微信扫码登录', false, true, '微信扫码登录 获取扫码状态', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750805, 'DeptController#tree', '树状展示', 'GET', '/dept/tree', '部门管理', false, true, '部门管理 树状展示', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750806, 'WeChatMenuController#publish', '发布菜单', 'POST', '/wechat/menu/publish', '微信菜单管理', false, true, '微信菜单管理 发布菜单', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750807, 'AllocationGroupController#findReceiversByGroups', '查询分账接收方信息', 'GET', '/allocation/group/findReceiversByGroups', '分账组', false, true, '分账组 查询分账接收方信息', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750808, 'LoginLogController#deleteByDay', '清除指定天数之前的日志', 'DELETE', '/log/login/deleteByDay', '登录日志', false, true, '登录日志 清除指定天数之前的日志', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750809, 'PayOrderController#syncById', '同步支付状态', 'POST', '/order/pay/syncByOrderNo', '支付订单控制器', false, true, '支付订单控制器 同步支付状态', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750810, 'WeChatTemplateController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/wechat/template/existsByCodeNotId', '微信模板消息', false, true, '微信模板消息 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750811, 'WeChatMenuController#add', '添加', 'POST', '/wechat/menu/add', '微信菜单管理', false, true, '微信菜单管理 添加', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750812, 'WeChatMenuController#clearMenu', '清空微信自定义菜单', 'POST', '/wechat/menu/clearMenu', '微信菜单管理', false, true, '微信菜单管理 清空微信自定义菜单', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750813, 'QuartzJobLogController#page', '分页', 'GET', '/quartz/log/page', '定时任务执行日志', false, true, '定时任务执行日志 分页', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750814, 'UserInfoController#updateBaseInfo', '修改用户基础信息', 'POST', '/user/updateBaseInfo', '用户管理', false, true, '用户管理 修改用户基础信息', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750815, 'PayCallbackController#aliPayNotify', '支付宝信息回调', 'POST', '/callback/pay/alipay', '支付通道信息回调', false, true, '支付通道信息回调 支付宝信息回调', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750816, 'DataRoleController#existsByCode', '编码是否被使用', 'GET', '/data/role/existsByCode', '数据角色配置', false, true, '数据角色配置 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750817, 'MessageTemplateController#delete', '删除', 'DELETE', '/message/template/delete', '消息模板', false, true, '消息模板 删除', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750818, 'LoginTypeController#findById', '通过ID查询登录方式', 'GET', '/loginType/findById', '登录方式管理', false, true, '登录方式管理 通过ID查询登录方式', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750819, 'ReconcileOrderController#page', '对账单分页', 'GET', '/order/reconcile/page', '对账控制器', false, true, '对账控制器 对账单分页', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750820, 'UnionPayConfigController#findPayWays', '支持的支付方式', 'GET', '/union/pay/config/findPayWays', '云闪付配置', false, true, '云闪付配置 支持的支付方式', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750821, 'DataRoleController#getDeptIds', '获取关联部门id', 'GET', '/data/role/getDeptIds', '数据角色配置', false, true, '数据角色配置 获取关联部门id', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750822, 'PayOrderController#close', '关闭支付记录', 'POST', '/order/pay/close', '支付订单控制器', false, true, '支付订单控制器 关闭支付记录', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750823, 'DingRobotConfigController#findById', '获取详情', 'GET', '/ding/robot/config/findById', '钉钉机器人配置', false, true, '钉钉机器人配置 获取详情', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750824, 'MessageTemplateController#update', '更新', 'POST', '/message/template/update', '消息模板', false, true, '消息模板 更新', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750825, 'CaptchaController#imgCaptcha', '获取图片验证码', 'POST', '/captcha/imgCaptcha', '验证码服务', false, true, '验证码服务 获取图片验证码', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750826, 'SystemParamController#delete', '删除', 'DELETE', '/system/param/delete', '系统参数', false, true, '系统参数 删除', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750827, 'UserInfoController#register', '注册账号', 'POST', '/user/register', '用户管理', false, true, '用户管理 注册账号', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750828, 'DictionaryItemController#add', '添加字典项(返回字典项对象)', 'POST', '/dict/item/add', '字典项', false, true, '字典项 添加字典项(返回字典项对象)', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750829, 'UserinternalController#restartPassword', '重置密码', 'POST', '/user/internal/restartPassword', '管理用户(管理员级别)', false, true, '管理用户(管理员级别) 重置密码', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750830, 'ClientController#update', '修改', 'POST', '/client/update', '认证终端', false, true, '认证终端 修改', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750831, 'SmsTemplateController#page', '分页查询', 'GET', '/sms/template/page', '短信模板配置', false, true, '短信模板配置 分页查询', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750832, 'MailConfigController#updateMailConfig', '更新邮箱配置', 'POST', '/mail/config/update', '邮箱配置', false, true, '邮箱配置 更新邮箱配置', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117566750833, 'UniPayController#allocation', '开启分账接口', 'POST', '/unipay/allocation', '统一支付接口', false, true, '统一支付接口 开启分账接口', 1399985191002447872, '2024-05-13 19:16:54.070000', 1399985191002447872, '2024-05-13 19:16:54.070000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945024, 'ReconcileOrderController#downAndSave', '手动触发对账文件下载', 'POST', '/order/reconcile/downAndSave', '对账控制器', false, true, '对账控制器 手动触发对账文件下载', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945025, 'ForwardFrontController#toH5', 'toH5', 'GET', '/front/', 'ForwardFrontController', false, true, 'ForwardFrontController toH5', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945026, 'RoleController#page', '分页查询角色', 'GET', '/role/page', '角色管理', false, true, '角色管理 分页查询角色', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945027, 'TokenEndpoint#logout', '退出', 'POST', '/token/logout', '认证相关', false, true, '认证相关 退出', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945028, 'PayChannelConfigController#findById', '根据ID获取', 'GET', '/pay/channel/config/findById', '支付通道信息', false, true, '支付通道信息 根据ID获取', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945029, 'ReconcileOrderController#pageDetail', '对账明细分页', 'GET', '/order/reconcile/detail/page', '对账控制器', false, true, '对账控制器 对账明细分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945030, 'PasswordSecurityConfigController#getDefault', '获取配置', 'GET', '/security/password/getDefault', '密码安全策略', false, true, '密码安全策略 获取配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945031, 'DictionaryItemController#findById', '根据字典项ID查询', 'GET', '/dict/item/findById', '字典项', false, true, '字典项 根据字典项ID查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945032, 'DictionaryItemController#findByDictionaryId', '查询指定字典ID下的所有字典项', 'GET', '/dict/item/findByDictionaryId', '字典项', false, true, '字典项 查询指定字典ID下的所有字典项', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945033, 'ForwardH5Controller#toH5', 'toH5', 'GET', '/h5/', 'ForwardH5Controller', false, true, 'ForwardH5Controller toH5', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945034, 'SiteMessageController#findById', '消息详情', 'GET', '/site/message/findById', '站内信', false, true, '站内信 消息详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945035, 'DictionaryController#update', '更新', 'POST', '/dict/update', '字典', false, true, '字典 更新', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945036, 'FIleUpLoadController#download', '下载文件(流量会经过后端)', 'GET', '/file/download/{id}', '文件上传', false, true, '文件上传 下载文件(流量会经过后端)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945037, 'SiteMessageController#pageBySender', '发送消息分页', 'GET', '/site/message/pageBySender', '站内信', false, true, '站内信 发送消息分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945038, 'AllocationGroupController#unbindReceiver', '取消绑定接收者', 'POST', '/allocation/group/unbindReceiver', '分账组', false, true, '分账组 取消绑定接收者', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945039, 'AlipayConfigController#readPem', '读取证书文件内容', 'POST', '/alipay/config/readPem', '支付宝配置', false, true, '支付宝配置 读取证书文件内容', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945040, 'ClientNoticeReceiveController#refund', '退款消息(对象)', 'POST', '/demo/callback/refundObject', '回调测试', false, true, '回调测试 退款消息(对象)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945041, 'PermMenuController#update', '修改菜单权限', 'POST', '/perm/menu/update', '菜单和权限码', false, true, '菜单和权限码 修改菜单权限', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945042, 'QuartzJobController#update', '更新', 'POST', '/quartz/update', '定时任务', false, true, '定时任务 更新', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945043, 'RoleController#dropdown', '角色下拉框', 'GET', '/role/dropdown', '角色管理', false, true, '角色管理 角色下拉框', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945044, 'AggregateController#aliH5Pay', '支付宝通过聚合支付码发起支付', 'POST', '/demo/aggregate/aliH5Pay', '聚合支付', false, true, '聚合支付 支付宝通过聚合支付码发起支付', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945045, 'UserRoleController#findRolesByUser', '根据用户ID获取到角色集合', 'GET', '/user/role/findRolesByUser', '用户角色管理', false, true, '用户角色管理 根据用户ID获取到角色集合', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945046, 'UserInfoController#existsPhone', '手机号是否被使用', 'GET', '/user/existsPhone', '用户管理', false, true, '用户管理 手机号是否被使用', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945047, 'ClientNoticeReceiveController#pay', '支付消息(对象接收)', 'POST', '/demo/callback/payObject', '回调测试', false, true, '回调测试 支付消息(对象接收)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945048, 'PayMethodInfoController#findAll', '获取全部', 'GET', '/pay/method/info/findAll', '支付方式管理', false, true, '支付方式管理 获取全部', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945049, 'LoginTypeController#page', '分页查询登录方式', 'GET', '/loginType/page', '登录方式管理', false, true, '登录方式管理 分页查询登录方式', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945050, 'DictionaryItemController#findAllByEnable', '获取启用的字典项列表', 'GET', '/dict/item/findAllByEnable', '字典项', false, true, '字典项 获取启用的字典项列表', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945051, 'RolePathController#save', '保存角色请求权限关联关系', 'POST', '/role/path/save', '角色请求权限消息关系', false, true, '角色请求权限消息关系 保存角色请求权限关联关系', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945052, 'WalletController#findById', '查询钱包详情', 'GET', '/wallet/findById', '钱包管理', false, true, '钱包管理 查询钱包详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945053, 'OnlineUserController#pageByLogin', '登录用户分页', 'GET', '/online/user/pageByLogin', '在线用户', false, true, '在线用户 登录用户分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945054, 'MailConfigController#delete', '删除', 'DELETE', '/mail/config/delete', '邮箱配置', false, true, '邮箱配置 删除', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945055, 'DictionaryController#delete', '根据id删除', 'DELETE', '/dict/delete', '字典', false, true, '字典 根据id删除', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945056, 'PayOrderController#getExtraById', '查询支付订单扩展信息', 'GET', '/order/pay/getExtraById', '支付订单控制器', false, true, '支付订单控制器 查询支付订单扩展信息', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945057, 'SiteMessageController#send', '发送站内信', 'POST', '/site/message/send', '站内信', false, true, '站内信 发送站内信', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945058, 'SiteMessageController#delete', '删除消息', 'DELETE', '/site/message/delete', '站内信', false, true, '站内信 删除消息', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945059, 'AlipayConfigController#findPayWays', '支付宝支持支付方式', 'GET', '/alipay/config/findPayWays', '支付宝配置', false, true, '支付宝配置 支付宝支持支付方式', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945060, 'SiteMessageController#listByReceiveNotRead', '小程序获取未读的接收消息标题列表', 'GET', '/site/message/listByReceiveNotRead', '站内信', false, true, '站内信 小程序获取未读的接收消息标题列表', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945061, 'ClientNoticeReceiveController#refund', '退款消息', 'POST', '/demo/callback/refund', '回调测试', false, true, '回调测试 退款消息', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945062, 'CashierController#getPayEnv', '获取支付环境', 'GET', '/demo/cashier/getPayEnv', '结算台演示', false, true, '结算台演示 获取支付环境', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945063, 'UserinternalController#banBatch', '批量封禁用户', 'POST', '/user/internal/banBatch', '管理用户(管理员级别)', false, true, '管理用户(管理员级别) 批量封禁用户', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945064, 'PayReturnController#wechat', '微信同步通知', 'GET', '/return/pay/wechat', '支付同步通知', false, true, '支付同步通知 微信同步通知', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945065, 'DictionaryItemController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/dict/item/existsByCodeNotId', '字典项', false, true, '字典项 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945066, 'DictionaryItemController#pageByDictionaryId', '分页查询指定字典下的字典项', 'GET', '/dict/item/pageByDictionaryId', '字典项', false, true, '字典项 分页查询指定字典下的字典项', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945067, 'AggregateController#wxAuthCallback', '微信授权回调页面', 'GET', '/demo/aggregate/wxAuthCallback', '聚合支付', false, true, '聚合支付 微信授权回调页面', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945068, 'LoginTypeController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/loginType/existsByCodeNotId', '登录方式管理', false, true, '登录方式管理 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945069, 'MessageTemplateController#page', '分页', 'GET', '/message/template/page', '消息模板', false, true, '消息模板 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945070, 'FIleUpLoadController#getFilePreviewUrl', '获取文件预览地址(流量会经过后端)', 'GET', '/file/getFilePreviewUrl', '文件上传', false, true, '文件上传 获取文件预览地址(流量会经过后端)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945071, 'LoginTypeController#findByCode', '通过code查询登录方式', 'GET', '/loginType/findByCode', '登录方式管理', false, true, '登录方式管理 通过code查询登录方式', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945072, 'PayReturnController#alipay', '支付宝同步跳转连接', 'GET', '/return/pay/alipay', '支付同步通知', false, true, '支付同步通知 支付宝同步跳转连接', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945073, 'PayOrderController#findByOrderNo', '查询订单详情', 'GET', '/order/pay/findByOrderNo', '支付订单控制器', false, true, '支付订单控制器 查询订单详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945074, 'ReconcileOrderController#findById', '对账单详情', 'GET', '/order/reconcile/findById', '对账控制器', false, true, '对账控制器 对账单详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945075, 'UserAssistController#sendPhoneChangeCaptcha', '发送更改/绑定手机号验证码', 'POST', '/user/sendPhoneChangeCaptcha', '用户操作支撑服务', false, true, '用户操作支撑服务 发送更改/绑定手机号验证码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945076, 'MultipleOpenApiWebMvcResource#openapiYaml', 'openapiYaml', 'GET', '/v3/api-docs.yaml/{group}', 'MultipleOpenApiWebMvcResource', false, true, 'MultipleOpenApiWebMvcResource openapiYaml', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945077, 'PermMenuController#delete', '删除', 'DELETE', '/perm/menu/delete', '菜单和权限码', false, true, '菜单和权限码 删除', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945078, 'AggregateController#barCodePay', '通过付款码发起支付', 'POST', '/demo/aggregate/barCodePay', '聚合支付', false, true, '聚合支付 通过付款码发起支付', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945079, 'SiteMessageController#pageByReceive', '接收消息分页', 'GET', '/site/message/pageByReceive', '站内信', false, true, '站内信 接收消息分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945080, 'ReconcileOrderController#downDiffCsv', '下载对账差异单(CSV格式)', 'GET', '/order/reconcile/downDiffCsv', '对账控制器', false, true, '对账控制器 下载对账差异单(CSV格式)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945081, 'WechatNoticeConfigController#update', '更新微信消息通知配置', 'POST', '/wx/notice/update', '微信消息通知配置', false, true, '微信消息通知配置 更新微信消息通知配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945082, 'AllocationReceiverController#page', '分页', 'GET', '/allocation/receiver/page', '分账接收方控制器', false, true, '分账接收方控制器 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945083, 'ThirdLoginController#toLoginUrl', '跳转到登陆页', 'GET', '/auth/third/toLoginUrl/{loginType}', '三方登录', false, true, '三方登录 跳转到登陆页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945084, 'AlipayConfigController#getConfig', '获取配置', 'GET', '/alipay/config/getConfig', '支付宝配置', false, true, '支付宝配置 获取配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945085, 'AllocationOrderController#findChannels', '获取可以分账的通道', 'GET', '/order/allocation/findChannels', '分账订单控制器', false, true, '分账订单控制器 获取可以分账的通道', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945086, 'MailConfigController#page', '分页', 'GET', '/mail/config/page', '邮箱配置', false, true, '邮箱配置 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945087, 'CashierController#simplePayCashier', '创建支付订单并发起', 'POST', '/demo/cashier/simplePayCashier', '结算台演示', false, true, '结算台演示 创建支付订单并发起', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945088, 'ClientController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/client/existsByCodeNotId', '认证终端', false, true, '认证终端 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945089, 'UserInfoController#existsEmail', '邮箱是否被使用', 'GET', '/user/existsEmail', '用户管理', false, true, '用户管理 邮箱是否被使用', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945090, 'WecomRobotConfigController#existsByCode', '编码是否被使用', 'GET', '/wecom/robot/config/existsByCode', '企业微信机器人配置', false, true, '企业微信机器人配置 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945091, 'ClientNoticeReceiveController#pay', '支付消息(map接收)', 'POST', '/demo/callback/pay', '回调测试', false, true, '回调测试 支付消息(map接收)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945092, 'RoleMenuController#findTreeByRole', '获取当前角色下可见的菜单和权限码树(分配时用)', 'GET', '/role/menu/findTreeByRole', '角色菜单权限关系', false, true, '角色菜单权限关系 获取当前角色下可见的菜单和权限码树(分配时用)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945093, 'MessageTemplateController#add', '添加', 'POST', '/message/template/add', '消息模板', false, true, '消息模板 添加', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945094, 'WalletConfigController#getConfig', '获取配置', 'GET', '/wallet/config/getConfig', '钱包配置', false, true, '钱包配置 获取配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945095, 'WechatNoticeConfigController#getConfig', '获取微信消息通知配置', 'GET', '/wx/notice/getConfig', '微信消息通知配置', false, true, '微信消息通知配置 获取微信消息通知配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945096, 'DictionaryController#existsByCode', '编码是否被使用', 'GET', '/dict/existsByCode', '字典', false, true, '字典 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945097, 'RoleMenuController#findMenuIds', '获取权限菜单id列表,不包含资源权限', 'GET', '/role/menu/findMenuIds', '角色菜单权限关系', false, true, '角色菜单权限关系 获取权限菜单id列表,不包含资源权限', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945098, 'PayRepairRecordController#findById', '查询单条', 'GET', '/record/repair/findById', '支付修复记录', false, true, '支付修复记录 查询单条', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945099, 'RoleController#delete', '删除角色', 'DELETE', '/role/delete', '角色管理', false, true, '角色管理 删除角色', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945100, 'AllocationGroupController#page', '分页', 'GET', '/allocation/group/page', '分账组', false, true, '分账组 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945101, 'UserDeptController#findIdsByUser', '根据用户ID获取到部门id集合', 'GET', '/user/dept/findIdsByUser', '用户部门关联关系', false, true, '用户部门关联关系 根据用户ID获取到部门id集合', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945102, 'SwaggerWelcomeWebMvc#redirectToUi', 'redirectToUi', 'GET', '/swagger-ui.html', 'SwaggerWelcomeWebMvc', false, true, 'SwaggerWelcomeWebMvc redirectToUi', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945103, 'RoleController#update', '修改角色(返回角色对象)', 'POST', '/role/update', '角色管理', false, true, '角色管理 修改角色(返回角色对象)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945104, 'UniPayAssistController#getWxAuthUrl', '获取微信OAuth2授权链接', 'POST', '/unipay/assist/getWxAuthUrl', '支付支撑接口', false, true, '支付支撑接口 获取微信OAuth2授权链接', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945105, 'PermMenuController#resourceList', '资源(权限码)列表', 'GET', '/perm/menu/resourceList', '菜单和权限码', false, true, '菜单和权限码 资源(权限码)列表', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945106, 'PasswordSecurityConfigController#addOrUpdate', '新增或添加密码安全配置', 'POST', '/security/password/addOrUpdate', '密码安全策略', false, true, '密码安全策略 新增或添加密码安全配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945107, 'PayGatewayNoticeController#aliPayNotice', '支付宝消息通知', 'POST', '/gateway/notice/alipay', '三方支付网关消息通知', false, true, '三方支付网关消息通知 支付宝消息通知', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945108, 'SmsTemplateController#findAll', '查询所有', 'GET', '/sms/template/findAll', '短信模板配置', false, true, '短信模板配置 查询所有', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945109, 'PasswordSecurityConfigController#check', '登录后检查密码相关的情况', 'GET', '/security/password/check', '密码安全策略', false, true, '密码安全策略 登录后检查密码相关的情况', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945110, 'SystemMonitorController#getRedisInfo', '获取Redis信息', 'GET', '/monitor/system/getRedisInfo', '系统信息监控', false, true, '系统信息监控 获取Redis信息', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945111, 'AllocationGroupController#delete', '删除', 'POST', '/allocation/group/delete', '分账组', false, true, '分账组 删除', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945112, 'SystemMonitorController#getSystemInfo', '获取系统消息', 'GET', '/monitor/system/getSystemInfo', '系统信息监控', false, true, '系统信息监控 获取系统消息', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945113, 'MailConfigController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/mail/config/existsByCodeNotId', '邮箱配置', false, true, '邮箱配置 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945114, 'AllocationReceiverController#add', '新增', 'POST', '/allocation/receiver/add', '分账接收方控制器', false, true, '分账接收方控制器 新增', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945115, 'AllocationOrderController#findById', '查询详情', 'GET', '/order/allocation/findById', '分账订单控制器', false, true, '分账订单控制器 查询详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945116, 'AllocationOrderController#findDetailById', '查询明细详情', 'GET', '/order/allocation/detail/findById', '分账订单控制器', false, true, '分账订单控制器 查询明细详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945117, 'SystemParamController#existsByKeyNotId', '判断编码是否存在(不包含自己)', 'GET', '/system/param/existsByKeyNotId', '系统参数', false, true, '系统参数 判断编码是否存在(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945118, 'WeChatMediaController#pageNews', '图文素材分页', 'GET', '/wechat/media/pageNews', '微信素材管理', false, true, '微信素材管理 图文素材分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945119, 'RoleController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/role/existsByCodeNotId', '角色管理', false, true, '角色管理 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945120, 'DataRoleController#page', '分页', 'GET', '/data/role/page', '数据角色配置', false, true, '数据角色配置 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945121, 'OperateLogController#deleteByDay', '清除指定天数的日志', 'DELETE', '/log/operate/deleteByDay', '操作日志', false, true, '操作日志 清除指定天数的日志', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945122, 'OnlineUserController#getSessionByUserId', '获取用户链接信息', 'GET', '/online/user/getSessionByUserId', '在线用户', false, true, '在线用户 获取用户链接信息', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945123, 'LoginTypeController#add', '添加登录方式', 'POST', '/loginType/add', '登录方式管理', false, true, '登录方式管理 添加登录方式', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945124, 'UnionPayConfigController#getConfig', '获取配置', 'GET', '/union/pay/config/getConfig', '云闪付配置', false, true, '云闪付配置 获取配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945125, 'WeChatMenuController#delete', '删除', 'DELETE', '/wechat/menu/delete', '微信菜单管理', false, true, '微信菜单管理 删除', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945126, 'BaseApiController#authEcho', '回声测试(必须要进行登录)', 'GET', '/auth/echo', '系统基础接口', false, true, '系统基础接口 回声测试(必须要进行登录)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945127, 'WeChatQrLoginController#applyQrCode', '申请登录用QR码', 'POST', '/token/wechat/qr/applyQrCode', '微信扫码登录', false, true, '微信扫码登录 申请登录用QR码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945128, 'FIleUpLoadController#delete', '删除', 'DELETE', '/file/delete', '文件上传', false, true, '文件上传 删除', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945129, 'CockpitReportController#getRefundChannelInfo', '显示通道退款订单金额和订单数', 'GET', '/report/cockpit/getRefundChannelInfo', '驾驶舱接口', false, true, '驾驶舱接口 显示通道退款订单金额和订单数', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945130, 'RoleController#add', '添加角色(返回角色对象)', 'POST', '/role/add', '角色管理', false, true, '角色管理 添加角色(返回角色对象)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945131, 'ClientController#add', '添加', 'POST', '/client/add', '认证终端', false, true, '认证终端 添加', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945132, 'UserInfoController#forgetPasswordByPhone', '通过手机号重置密码', 'POST', '/user/forgetPasswordByPhone', '用户管理', false, true, '用户管理 通过手机号重置密码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945133, 'RolePathController#findPathsByRole', '获取当前用户角色下可见的请求权限列表(分配时用)', 'GET', '/role/path/findPathsByRole', '角色请求权限消息关系', false, true, '角色请求权限消息关系 获取当前用户角色下可见的请求权限列表(分配时用)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945134, 'WeChatMenuController#findAll', '查询所有', 'GET', '/wechat/menu/findAll', '微信菜单管理', false, true, '微信菜单管理 查询所有', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945135, 'ClientController#findAll', '查询所有', 'GET', '/client/findAll', '认证终端', false, true, '认证终端 查询所有', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945136, 'RefundOrderController#findExtraById', '查询扩展信息', 'GET', '/order/refund/findExtraById', '支付退款控制器', false, true, '支付退款控制器 查询扩展信息', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945137, 'UserDataRoleController#saveAssignBatch', '给用户分配权限(批量)', 'POST', '/user/data/role/saveAssignBatch', '用户数据角色配置', false, true, '用户数据角色配置 给用户分配权限(批量)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945138, 'LoginLogController#page', '分页', 'GET', '/log/login/page', '登录日志', false, true, '登录日志 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945139, 'FIleUpLoadController#findById', '获取单条详情', 'GET', '/file/findById', '文件上传', false, true, '文件上传 获取单条详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945140, 'MessageTemplateController#findById', '获取详情', 'GET', '/message/template/findById', '消息模板', false, true, '消息模板 获取详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945141, 'DataRoleController#saveUserAssign', '保存数据角色关联用户权限', 'POST', '/data/role/saveUserAssign', '数据角色配置', false, true, '数据角色配置 保存数据角色关联用户权限', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945142, 'ThirdLoginController#callback', '扫码后回调', 'GET', '/auth/third/callback/{loginType}', '三方登录', false, true, '三方登录 扫码后回调', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945143, 'SmsChannelConfigController#findByCode', '通过Code查询', 'GET', '/sms/config/findByCode', '短信渠道配置', false, true, '短信渠道配置 通过Code查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945144, 'PayApiConfigController#findById', '根据ID获取', 'GET', '/pay/api/config/findById', '支付接口配置', false, true, '支付接口配置 根据ID获取', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945145, 'DataVersionLogController#findById', '获取', 'GET', '/log/dataVersion/findById', '数据版本日志', false, true, '数据版本日志 获取', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945146, 'PermPathController#update', '更新权限', 'POST', '/perm/path/update', '请求权限管理', false, true, '请求权限管理 更新权限', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945147, 'MailConfigController#setUpActivity', '设置启用的邮箱配置', 'POST', '/mail/config/setUpActivity', '邮箱配置', false, true, '邮箱配置 设置启用的邮箱配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945148, 'SmsTemplateController#findById', '通过ID查询', 'GET', '/sms/template/findById', '短信模板配置', false, true, '短信模板配置 通过ID查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945149, 'DingRobotConfigController#add', '新增机器人配置', 'POST', '/ding/robot/config/add', '钉钉机器人配置', false, true, '钉钉机器人配置 新增机器人配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945150, 'PayCloseRecordController#findById', '查询单条', 'GET', '/record/close/findById', '支付订单关闭记录', false, true, '支付订单关闭记录 查询单条', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945151, 'DataVersionLogController#page', '分页', 'GET', '/log/dataVersion/page', '数据版本日志', false, true, '数据版本日志 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945152, 'OpenApiWebMvcResource#openapiJson', 'openapiJson', 'GET', '/v3/api-docs', 'OpenApiWebMvcResource', false, true, 'OpenApiWebMvcResource openapiJson', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945153, 'PermPathController#findAll', '权限列表', 'GET', '/perm/path/findAll', '请求权限管理', false, true, '请求权限管理 权限列表', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945154, 'UserinternalController#add', '添加用户', 'POST', '/user/internal/add', '管理用户(管理员级别)', false, true, '管理用户(管理员级别) 添加用户', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945155, 'PayCallbackRecordController#findById', '查询单条', 'GET', '/record/callback/findById', '支付回调信息记录', false, true, '支付回调信息记录 查询单条', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945156, 'WecomRobotConfigController#page', '分页', 'GET', '/wecom/robot/config/page', '企业微信机器人配置', false, true, '企业微信机器人配置 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945157, 'WeChatMenuController#update', '修改', 'POST', '/wechat/menu/update', '微信菜单管理', false, true, '微信菜单管理 修改', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945158, 'TestController#lock2', '锁测试2', 'GET', '/test/lock2', '测试', false, true, '测试 锁测试2', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945159, 'DataRoleController#findAll', '查询全部', 'GET', '/data/role/findAll', '数据角色配置', false, true, '数据角色配置 查询全部', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945160, 'UserInfoController#forgetPasswordByEmail', '通过邮箱重置密码', 'POST', '/user/forgetPasswordByEmail', '用户管理', false, true, '用户管理 通过邮箱重置密码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945161, 'RefundOrderController#page', '分页查询', 'GET', '/order/refund/page', '支付退款控制器', false, true, '支付退款控制器 分页查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945162, 'AllocationOrderController#finish', '分账完结', 'POST', '/order/allocation/finish', '分账订单控制器', false, true, '分账订单控制器 分账完结', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945163, 'PayApiConfigController#findAll', '获取全部', 'GET', '/pay/api/config/findAll', '支付接口配置', false, true, '支付接口配置 获取全部', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945164, 'ClientNoticeTaskController#resetSend', '重新发送消息通知', 'POST', '/task/notice/resetSend', '客户系统通知任务', false, true, '客户系统通知任务 重新发送消息通知', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945165, 'PlatformConfigController#update', '更新平台配置项', 'POST', '/platform/config/update', '支付平台配置控制器', false, true, '支付平台配置控制器 更新平台配置项', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945166, 'UserRoleController#saveAssign', '给用户分配角色', 'POST', '/user/role/saveAssign', '用户角色管理', false, true, '用户角色管理 给用户分配角色', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945167, 'UniPayController#close', '支付关闭接口', 'POST', '/unipay/close', '统一支付接口', false, true, '统一支付接口 支付关闭接口', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945168, 'UserDataRoleController#findDataRoleIdByUser', '根据用户ID获取到数据角色Id', 'GET', '/user/data/role/findDataRoleIdByUser', '用户数据角色配置', false, true, '用户数据角色配置 根据用户ID获取到数据角色Id', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945169, 'MailConfigController#existsByCode', '编码是否被使用', 'GET', '/mail/config/existsByCode', '邮箱配置', false, true, '邮箱配置 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945170, 'AllocationGroupController#updateRate', '修改分账比例', 'POST', '/allocation/group/updateRate', '分账组', false, true, '分账组 修改分账比例', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945171, 'WeChatPayConfigController#getConfig', '获取配置', 'GET', '/wechat/pay/config/getConfig', '微信支付配置', false, true, '微信支付配置 获取配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945172, 'AllocationReceiverController#findChannels', '获取可以分账的通道', 'GET', '/allocation/receiver/findChannels', '分账接收方控制器', false, true, '分账接收方控制器 获取可以分账的通道', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945173, 'UserAssistController#validateCurrentChangeEmailCaptcha', '验证当前用户发送更改邮箱验证码', 'GET', '/user/validateCurrentChangeEmailCaptcha', '用户操作支撑服务', false, true, '用户操作支撑服务 验证当前用户发送更改邮箱验证码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945174, 'UserRoleController#saveAssignBatch', '给用户分配角色(批量)', 'POST', '/user/role/saveAssignBatch', '用户角色管理', false, true, '用户角色管理 给用户分配角色(批量)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945175, 'ClientNoticeTaskController#page', '分页查询', 'GET', '/task/notice/page', '客户系统通知任务', false, true, '客户系统通知任务 分页查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945176, 'UserinternalController#getByEmail', '根据邮箱查询用户', 'GET', '/user/internal/getByEmail', '管理用户(管理员级别)', false, true, '管理用户(管理员级别) 根据邮箱查询用户', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945177, 'RefundOrderController#syncByRefundNo', '退款同步', 'POST', '/order/refund/syncByRefundNo', '支付退款控制器', false, true, '支付退款控制器 退款同步', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945178, 'DeptController#delete', '普通删除', 'DELETE', '/dept/delete', '部门管理', false, true, '部门管理 普通删除', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945179, 'SystemParamController#page', '分页', 'GET', '/system/param/page', '系统参数', false, true, '系统参数 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945180, 'DingRobotConfigController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/ding/robot/config/existsByCodeNotId', '钉钉机器人配置', false, true, '钉钉机器人配置 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945181, 'AllocationReceiverController#update', '修改', 'POST', '/allocation/receiver/update', '分账接收方控制器', false, true, '分账接收方控制器 修改', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945182, 'AggregateController#qrPayPage', '聚合支付扫码跳转中间页', 'GET', '/demo/aggregate/qrPayPage/{code}', '聚合支付', false, true, '聚合支付 聚合支付扫码跳转中间页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945183, 'UserinternalController#getByPhone', '根据手机号查询用户', 'GET', '/user/internal/getByPhone', '管理用户(管理员级别)', false, true, '管理用户(管理员级别) 根据手机号查询用户', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945184, 'AllocationOrderController#findDetailsByOrderId', '分账明细列表', 'GET', '/order/allocation/detail/findAll', '分账订单控制器', false, true, '分账订单控制器 分账明细列表', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945185, 'LoginLogController#findById', '获取', 'GET', '/log/login/findById', '登录日志', false, true, '登录日志 获取', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945186, 'WalletController#existsByUserId', '判断用户是否开通了钱包', 'GET', '/wallet/existsByUserId', '钱包管理', false, true, '钱包管理 判断用户是否开通了钱包', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945187, 'MailConfigController#add', '增加新邮箱配置', 'POST', '/mail/config/add', '邮箱配置', false, true, '邮箱配置 增加新邮箱配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945188, 'RoleController#existsByName', '名称是否被使用(不包含自己)', 'GET', '/role/existsByNameNotId', '角色管理', false, true, '角色管理 名称是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945189, 'PayMethodInfoController#findById', '根据ID获取', 'GET', '/pay/method/info/findById', '支付方式管理', false, true, '支付方式管理 根据ID获取', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945190, 'UserinternalController#restartPasswordBatch', '批量重置密码', 'POST', '/user/internal/restartPasswordBatch', '管理用户(管理员级别)', false, true, '管理用户(管理员级别) 批量重置密码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945191, 'DictionaryItemController#existsByCode', '编码是否被使用', 'GET', '/dict/item/existsByCode', '字典项', false, true, '字典项 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945192, 'AllocationReceiverController#delete', '删除', 'POST', '/allocation/receiver/delete', '分账接收方控制器', false, true, '分账接收方控制器 删除', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945193, 'UserDeptController#findAllByUser', '根据用户ID获取到部门集合', 'GET', '/user/dept/findAllByUser', '用户部门关联关系', false, true, '用户部门关联关系 根据用户ID获取到部门集合', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945194, 'ClientNoticeTaskController#findById', '查询单条', 'GET', '/task/notice/findById', '客户系统通知任务', false, true, '客户系统通知任务 查询单条', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945195, 'UserThirdController#getThirdBindInfo', '获取绑定详情', 'GET', '/user/third/getThirdBindInfo', '用户三方登录管理', false, true, '用户三方登录管理 获取绑定详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945196, 'OperateLogController#findById', '获取', 'GET', '/log/operate/findById', '操作日志', false, true, '操作日志 获取', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945197, 'MailConfigController#findById', '通过 id 获取指定邮箱配置', 'GET', '/mail/config/findById', '邮箱配置', false, true, '邮箱配置 通过 id 获取指定邮箱配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945198, 'AggregateController#getWxJsapiPay', '获取微信支付调起Jsapi支付的信息', 'POST', '/demo/aggregate/getWxJsapiPay', '聚合支付', false, true, '聚合支付 获取微信支付调起Jsapi支付的信息', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945199, 'PermPathController#delete', '删除权限', 'DELETE', '/perm/path/delete', '请求权限管理', false, true, '请求权限管理 删除权限', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945200, 'WeChatPayConfigController#findPayWays', '微信支持支付方式', 'GET', '/wechat/pay/config/findPayWays', '微信支付配置', false, true, '微信支付配置 微信支持支付方式', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945201, 'UserAssistController#validatePhoneChangeCaptcha', '验证改/绑定手机验证码', 'GET', '/user/validatePhoneChangeCaptcha', '用户操作支撑服务', false, true, '用户操作支撑服务 验证改/绑定手机验证码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945202, 'UserAssistController#validateEmailForgetCaptcha', '验证找回密码邮箱验证码', 'GET', '/user/validateEmailForgetCaptcha', '用户操作支撑服务', false, true, '用户操作支撑服务 验证找回密码邮箱验证码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945203, 'ReconcileOrderController#downOriginal', '下载原始交易对账单文件', 'GET', '/order/reconcile/downOriginal', '对账控制器', false, true, '对账控制器 下载原始交易对账单文件', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945204, 'SmsChannelConfigController#update', '修改', 'POST', '/sms/config/update', '短信渠道配置', false, true, '短信渠道配置 修改', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945205, 'LoginTypeController#delete', '删除登录方式', 'DELETE', '/loginType/delete', '登录方式管理', false, true, '登录方式管理 删除登录方式', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945206, 'DeptController#update', '更新', 'POST', '/dept/update', '部门管理', false, true, '部门管理 更新', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945207, 'WeChatTemplateController#sync', '同步消息模板数据', 'POST', '/wechat/template/sync', '微信模板消息', false, true, '微信模板消息 同步消息模板数据', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945208, 'UserDeptController#saveAssignBatch', '给用户分配部门(批量)', 'POST', '/user/dept/saveAssignBatch', '用户部门关联关系', false, true, '用户部门关联关系 给用户分配部门(批量)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945209, 'UserinternalController#unlockBatch', '批量解锁用户', 'POST', '/user/internal/unlockBatch', '管理用户(管理员级别)', false, true, '管理用户(管理员级别) 批量解锁用户', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945210, 'WecomRobotConfigController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/wecom/robot/config/existsByCodeNotId', '企业微信机器人配置', false, true, '企业微信机器人配置 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945211, 'WeChatPayConfigController#update', '更新', 'POST', '/wechat/pay/config/update', '微信支付配置', false, true, '微信支付配置 更新', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945212, 'UserThirdController#findById', '获取详情', 'POST', '/user/third/findById', '用户三方登录管理', false, true, '用户三方登录管理 获取详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945213, 'RefundOrderController#resetRefund', '重新发起退款', 'POST', '/order/refund/resetRefund', '支付退款控制器', false, true, '支付退款控制器 重新发起退款', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945214, 'LoginTypeController#update', '修改登录方式(返回登录方式对象)', 'POST', '/loginType/update', '登录方式管理', false, true, '登录方式管理 修改登录方式(返回登录方式对象)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945215, 'ReconcileOrderController#findDetailById', '对账明细详情', 'GET', '/order/reconcile/detail/findById', '对账控制器', false, true, '对账控制器 对账明细详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945216, 'QuartzJobController#execute', '立即执行', 'POST', '/quartz/execute', '定时任务', false, true, '定时任务 立即执行', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945217, 'QuartzJobController#start', '启动', 'POST', '/quartz/start', '定时任务', false, true, '定时任务 启动', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945218, 'DictionaryController#findAll', '查询全部', 'GET', '/dict/findAll', '字典', false, true, '字典 查询全部', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945219, 'WeChatMediaController#deleteFile', '删除素材', 'DELETE', '/wechat/media/deleteFile', '微信素材管理', false, true, '微信素材管理 删除素材', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945220, 'UniPayController#allocationFinish', '分账完结接口', 'POST', '/unipay/allocationFinish', '统一支付接口', false, true, '统一支付接口 分账完结接口', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945221, 'DataRoleController#update', '更新', 'POST', '/data/role/update', '数据角色配置', false, true, '数据角色配置 更新', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945222, 'UnionPayConfigController#toBase64', '读取证书文件内容', 'POST', '/union/pay/config/toBase64', '云闪付配置', false, true, '云闪付配置 读取证书文件内容', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945223, 'LoginTypeController#findAll', '查询所有的登录方式', 'GET', '/loginType/findAll', '登录方式管理', false, true, '登录方式管理 查询所有的登录方式', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945258, 'AllocationOrderController#sync', '同步分账结果', 'POST', '/order/allocation/sync', '分账订单控制器', false, true, '分账订单控制器 同步分账结果', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945224, 'UserInfoController#findUsernameByPhoneCaptcha', '根据手机验证码查询账号', 'GET', '/user/findUsernameByPhoneCaptcha', '用户管理', false, true, '用户管理 根据手机验证码查询账号', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945225, 'UserAssistController#sendCurrentPhoneChangeCaptcha', '给当前用户发送更改手机号验证码', 'POST', '/user/sendCurrentPhoneChangeCaptcha', '用户操作支撑服务', false, true, '用户操作支撑服务 给当前用户发送更改手机号验证码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945226, 'DeptController#add', '添加', 'POST', '/dept/add', '部门管理', false, true, '部门管理 添加', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945227, 'SystemParamController#findById', '获取单条', 'GET', '/system/param/findById', '系统参数', false, true, '系统参数 获取单条', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945228, 'QuartzJobLogController#findById', '单条', 'GET', '/quartz/log/findById', '定时任务执行日志', false, true, '定时任务执行日志 单条', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945229, 'RoleController#existsByCode', '编码是否被使用', 'GET', '/role/existsByCode', '角色管理', false, true, '角色管理 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945230, 'CockpitReportController#getPayChannelInfo', '显示通道支付订单金额和订单数', 'GET', '/report/cockpit/getPayChannelInfo', '驾驶舱接口', false, true, '驾驶舱接口 显示通道支付订单金额和订单数', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945231, 'AllocationReceiverController#findReceiverTypeByChannel', '根据通道获取分账接收方类型', 'GET', '/allocation/receiver/findReceiverTypeByChannel', '分账接收方控制器', false, true, '分账接收方控制器 根据通道获取分账接收方类型', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945232, 'UserinternalController#unlock', '解锁用户', 'POST', '/user/internal/unlock', '管理用户(管理员级别)', false, true, '管理用户(管理员级别) 解锁用户', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945233, 'WecomRobotConfigController#add', '新增机器人配置', 'POST', '/wecom/robot/config/add', '企业微信机器人配置', false, true, '企业微信机器人配置 新增机器人配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945234, 'AllocationGroupController#setDefault', '设置默认分账组', 'POST', '/allocation/group/setDefault', '分账组', false, true, '分账组 设置默认分账组', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945235, 'UserinternalController#findById', '根据用户id查询用户', 'GET', '/user/internal/findById', '管理用户(管理员级别)', false, true, '管理用户(管理员级别) 根据用户id查询用户', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945236, 'PayRepairRecordController#page', '分页查询', 'GET', '/record/repair/page', '支付修复记录', false, true, '支付修复记录 分页查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945237, 'AllocationOrderController#page', '分页', 'GET', '/order/allocation/page', '分账订单控制器', false, true, '分账订单控制器 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945238, 'PasswordSecurityConfigController#isRecentlyUsed', '查看要修改的密码是否重复', 'GET', '/security/password/isRecentlyUsed', '密码安全策略', false, true, '密码安全策略 查看要修改的密码是否重复', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945239, 'WalletController#deduct', '扣减', 'POST', '/wallet/deduct', '钱包管理', false, true, '钱包管理 扣减', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945240, 'FIleUpLoadController#getFilePreviewUrlPrefix', '获取文件预览地址前缀', 'GET', '/file/getFilePreviewUrlPrefix', '文件上传', false, true, '文件上传 获取文件预览地址前缀', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945241, 'PermMenuController#existsByPermCode', '编码是否被使用(不包含自己)', 'GET', '/perm/menu/existsByPermCodeNotId', '菜单和权限码', false, true, '菜单和权限码 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945242, 'WeChatTemplateController#update', '修改', 'POST', '/wechat/template/update', '微信模板消息', false, true, '微信模板消息 修改', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945243, 'CashierController#queryPayOrder', '查询支付订单', 'GET', '/demo/cashier/queryPayOrderSuccess', '结算台演示', false, true, '结算台演示 查询支付订单', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945244, 'ReconcileOrderController#downOriginal2Csv', '下载原始交易对账单记录(CSV格式)', 'GET', '/order/reconcile/downOriginal2Csv', '对账控制器', false, true, '对账控制器 下载原始交易对账单记录(CSV格式)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945245, 'SmsChannelConfigController#findAll', '查询所有', 'GET', '/sms/config/findAll', '短信渠道配置', false, true, '短信渠道配置 查询所有', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945246, 'RoleMenuController#getPermissions', '获取菜单和权限码(根据用户进行筛选)', 'GET', '/role/menu/getPermissions', '角色菜单权限关系', false, true, '角色菜单权限关系 获取菜单和权限码(根据用户进行筛选)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945247, 'UserRoleController#findRoleIdsByUser', '根据用户ID获取到角色id集合', 'GET', '/user/role/findRoleIdsByUser', '用户角色管理', false, true, '用户角色管理 根据用户ID获取到角色id集合', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945248, 'AllocationGroupController#update', '修改', 'POST', '/allocation/group/update', '分账组', false, true, '分账组 修改', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945249, 'FIleUpLoadController#preview', '预览文件(流量会经过后端)', 'GET', '/file/preview/{id}', '文件上传', false, true, '文件上传 预览文件(流量会经过后端)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945250, 'QuartzJobController#judgeJobClass', '判断是否是定时任务类', 'GET', '/quartz/judgeJobClass', '定时任务', false, true, '定时任务 判断是否是定时任务类', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945251, 'PayOrderController#getTotalAmount', '查询金额汇总', 'GET', '/order/pay/getTotalAmount', '支付订单控制器', false, true, '支付订单控制器 查询金额汇总', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945252, 'UserAssistController#sendCurrentEmailChangeCaptcha', '给当前用户发送更改邮箱验证码', 'POST', '/user/sendCurrentEmailChangeCaptcha', '用户操作支撑服务', false, true, '用户操作支撑服务 给当前用户发送更改邮箱验证码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945253, 'WecomRobotConfigController#update', '修改机器人配置', 'POST', '/wecom/robot/config/update', '企业微信机器人配置', false, true, '企业微信机器人配置 修改机器人配置', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945254, 'UserThirdController#bind', '绑定第三方账号', 'POST', '/user/third/bind', '用户三方登录管理', false, true, '用户三方登录管理 绑定第三方账号', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945255, 'RoleController#tree', '角色树', 'GET', '/role/tree', '角色管理', false, true, '角色管理 角色树', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945256, 'UniPayController#pay', '统一支付接口', 'POST', '/unipay/pay', '统一支付接口', false, true, '统一支付接口 统一支付接口', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945257, 'LoginTypeController#existsByCode', '编码是否被使用', 'GET', '/loginType/existsByCode', '登录方式管理', false, true, '登录方式管理 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945259, 'UserinternalController#page', '分页', 'GET', '/user/internal/page', '管理用户(管理员级别)', false, true, '管理用户(管理员级别) 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945260, 'RolePathController#findIdsByRole', '根据角色id获取关联权限id', 'GET', '/role/path/findIdsByRole', '角色请求权限消息关系', false, true, '角色请求权限消息关系 根据角色id获取关联权限id', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945261, 'MultipleOpenApiWebMvcResource#openapiJson', 'openapiJson', 'GET', '/v3/api-docs/{group}', 'MultipleOpenApiWebMvcResource', false, true, 'MultipleOpenApiWebMvcResource openapiJson', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945262, 'UserThirdController#page', '分页', 'GET', '/user/third/page', '用户三方登录管理', false, true, '用户三方登录管理 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945263, 'RoleController#findById', '通过ID查询角色', 'GET', '/role/findById', '角色管理', false, true, '角色管理 通过ID查询角色', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945264, 'ReconcileOrderController#create', '手动创建对账订单', 'POST', '/order/reconcile/create', '对账控制器', false, true, '对账控制器 手动创建对账订单', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945265, 'PayApiConfigController#update', '更新', 'POST', '/pay/api/config/update', '支付接口配置', false, true, '支付接口配置 更新', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945266, 'PayOrderController#page', '分页查询', 'GET', '/order/pay/page', '支付订单控制器', false, true, '支付订单控制器 分页查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945267, 'UserInfoController#existsUsername', '账号是否被使用(不包含自己)', 'GET', '/user/existsUsernameNotId', '用户管理', false, true, '用户管理 账号是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945268, 'UserDeptController#saveAssign', '给用户分配部门', 'POST', '/user/dept/saveAssign', '用户部门关联关系', false, true, '用户部门关联关系 给用户分配部门', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945269, 'CockpitReportController#getPayOrderCount', '支付订单数量', 'GET', '/report/cockpit/getPayOrderCount', '驾驶舱接口', false, true, '驾驶舱接口 支付订单数量', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945270, 'UserAssistController#sendEmailForgetCaptcha', '发送找回密码邮箱验证码', 'POST', '/user/sendEmailForgetCaptcha', '用户操作支撑服务', false, true, '用户操作支撑服务 发送找回密码邮箱验证码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945271, 'WecomRobotConfigController#findById', '获取详情', 'GET', '/wecom/robot/config/findById', '企业微信机器人配置', false, true, '企业微信机器人配置 获取详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945272, 'ClientNoticeTaskController#recordPage', '分页查询', 'GET', '/task/notice/record/page', '客户系统通知任务', false, true, '客户系统通知任务 分页查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945273, 'RefundOrderController#findById', '查询单条', 'GET', '/order/refund/findById', '支付退款控制器', false, true, '支付退款控制器 查询单条', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945274, 'UserDataRoleController#findDataRoleByUser', '根据用户ID获取到数据角色列表', 'GET', '/user/data/role/findDataRoleByUser', '用户数据角色配置', false, true, '用户数据角色配置 根据用户ID获取到数据角色列表', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945275, 'ChinaRegionController#findAllRegionByParentCode', '根据编码获取下一级行政区划的列表', 'GET', '/china/region/findAllRegionByParentCode', '中国行政区划', false, true, '中国行政区划 根据编码获取下一级行政区划的列表', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945276, 'DataRoleController#existsByName', '名称是否被使用', 'GET', '/data/role/existsByName', '数据角色配置', false, true, '数据角色配置 名称是否被使用', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945277, 'AllocationGroupController#create', '创建', 'POST', '/allocation/group/create', '分账组', false, true, '分账组 创建', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945278, 'UserAssistController#validatePhoneForgetCaptcha', '验证找回密码手机验证码', 'GET', '/user/validatePhoneForgetCaptcha', '用户操作支撑服务', false, true, '用户操作支撑服务 验证找回密码手机验证码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945279, 'PayChannelConfigController#update', '更新', 'POST', '/pay/channel/config/update', '支付通道信息', false, true, '支付通道信息 更新', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945280, 'DictionaryController#existsByCode', '编码是否被使用(不包含自己)', 'GET', '/dict/existsByCodeNotId', '字典', false, true, '字典 编码是否被使用(不包含自己)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945281, 'PermMenuController#menuTree', '获取菜单树', 'GET', '/perm/menu/menuTree', '菜单和权限码', false, true, '菜单和权限码 获取菜单树', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945282, 'DictionaryItemController#delete', '删除字典项', 'DELETE', '/dict/item/delete', '字典项', false, true, '字典项 删除字典项', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945283, 'DingRobotConfigController#existsByCode', '编码是否被使用', 'GET', '/ding/robot/config/existsByCode', '钉钉机器人配置', false, true, '钉钉机器人配置 编码是否被使用', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945284, 'SiteMessageController#countByReceiveNotRead', '获取未读的接收消息条数', 'GET', '/site/message/countByReceiveNotRead', '站内信', false, true, '站内信 获取未读的接收消息条数', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945285, 'WecomRobotConfigController#findAll', '查询全部', 'GET', '/wecom/robot/config/findAll', '企业微信机器人配置', false, true, '企业微信机器人配置 查询全部', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945286, 'PayReturnController#union', '云闪付同步通知', 'POST', '/return/pay/union', '支付同步通知', false, true, '支付同步通知 云闪付同步通知', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945287, 'UserAssistController#validateCurrentPhoneChangeCaptcha', '验证当前用户发送更改手机号验证码', 'GET', '/user/validateCurrentPhoneChangeCaptcha', '用户操作支撑服务', false, true, '用户操作支撑服务 验证当前用户发送更改手机号验证码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945288, 'WeChatTemplateController#page', '分页查询', 'GET', '/wechat/template/page', '微信模板消息', false, true, '微信模板消息 分页查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945289, 'SmsTemplateController#add', '添加', 'POST', '/sms/template/add', '短信模板配置', false, true, '短信模板配置 添加', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945290, 'PermPathController#batchUpdateEnable', '批量更新状态', 'POST', '/perm/path/batchUpdateEnable', '请求权限管理', false, true, '请求权限管理 批量更新状态', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945291, 'DingRobotConfigController#findAll', '查询全部', 'GET', '/ding/robot/config/findAll', '钉钉机器人配置', false, true, '钉钉机器人配置 查询全部', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945292, 'QuartzJobController#syncJobStatus', '同步定时任务状态', 'POST', '/quartz/syncJobStatus', '定时任务', false, true, '定时任务 同步定时任务状态', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945293, 'SiteMessageController#cancel', '撤回消息', 'POST', '/site/message/cancel', '站内信', false, true, '站内信 撤回消息', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945294, 'DictionaryItemController#findAll', '获取全部字典项', 'GET', '/dict/item/findAll', '字典项', false, true, '字典项 获取全部字典项', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945295, 'UserAssistController#validateEmailCaptcha', '验证更改/绑定邮箱验证码', 'GET', '/user/validateEmailChangeCaptcha', '用户操作支撑服务', false, true, '用户操作支撑服务 验证更改/绑定邮箱验证码', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945296, 'PermMenuController#findById', '根据id查询', 'GET', '/perm/menu/findById', '菜单和权限码', false, true, '菜单和权限码 根据id查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945297, 'RoleMenuController#findPermissionIdsByRole', '获取当前角色下关联权限id集合(包含权限码和菜单)', 'GET', '/role/menu/findPermissionIdsByRole', '角色菜单权限关系', false, true, '角色菜单权限关系 获取当前角色下关联权限id集合(包含权限码和菜单)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945298, 'SwaggerConfigResource#openapiJson', 'openapiJson', 'GET', '/v3/api-docs/swagger-config', 'SwaggerConfigResource', false, true, 'SwaggerConfigResource openapiJson', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945299, 'UnionPayConfigController#update', '更新', 'POST', '/union/pay/config/update', '云闪付配置', false, true, '云闪付配置 更新', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945300, 'WecomRobotConfigController#delete', '删除', 'DELETE', '/wecom/robot/config/delete', '企业微信机器人配置', false, true, '企业微信机器人配置 删除', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945301, 'TokenEndpoint#login', '普通登录', 'POST', '/token/login', '认证相关', false, true, '认证相关 普通登录', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945302, 'RefundOrderController#refund', '手动发起退款', 'POST', '/order/refund/refund', '支付退款控制器', false, true, '支付退款控制器 手动发起退款', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945303, 'QuartzJobController#page', '分页', 'GET', '/quartz/page', '定时任务', false, true, '定时任务 分页', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945304, 'CockpitReportController#getPayAmount', '支付金额(分)', 'GET', '/report/cockpit/getPayAmount', '驾驶舱接口', false, true, '驾驶舱接口 支付金额(分)', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945305, 'SiteMessageController#saveOrUpdate', '保存站内信草稿', 'POST', '/site/message/saveOrUpdate', '站内信', false, true, '站内信 保存站内信草稿', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945306, 'UserinternalController#ban', '封禁用户', 'POST', '/user/internal/ban', '管理用户(管理员级别)', false, true, '管理用户(管理员级别) 封禁用户', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945307, 'MessageTemplateController#rendering', '渲染模板', 'POST', '/message/template/rendering', '消息模板', false, true, '消息模板 渲染模板', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945308, 'WalletController#create', '创建钱包', 'POST', '/wallet/create', '钱包管理', false, true, '钱包管理 创建钱包', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945309, 'PermPathController#syncSystem', '同步系统请求资源', 'POST', '/perm/path/syncSystem', '请求权限管理', false, true, '请求权限管理 同步系统请求资源', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945310, 'SystemParamController#existsByKey', '判断编码是否存在', 'GET', '/system/param/existsByKey', '系统参数', false, true, '系统参数 判断编码是否存在', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945311, 'BaseApiController#echo', '回声测试', 'GET', '/echo', '系统基础接口', false, true, '系统基础接口 回声测试', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945312, 'ReconcileOrderController#findDiffById', '对账差异详情', 'GET', '/order/reconcile/diff/findById', '对账控制器', false, true, '对账控制器 对账差异详情', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945313, 'PaySyncRecordController#page', '分页查询', 'GET', '/record/sync/page', '支付同步记录控制器', false, true, '支付同步记录控制器 分页查询', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); +INSERT INTO iam_perm_path (id, code, name, request_type, path, group_name, enable, generate, remark, creator, create_time, last_modifier, last_modified_time, deleted, version) VALUES (1789978117570945314, 'CashierController#getWxAuthUrl', '获取微信授权链接', 'GET', '/demo/cashier/getWxAuthUrl', '结算台演示', false, true, '结算台演示 获取微信授权链接', 1399985191002447872, '2024-05-13 19:16:54.071000', 1399985191002447872, '2024-05-13 19:16:54.071000', false, 0); + +----- +create table iam_role +( + id bigint not null + primary key, + code varchar(50), + pid bigint, + name varchar(150), + internal boolean not null, + remark varchar(255), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table iam_role is '角色'; + +comment on column iam_role.id is '角色ID'; + +comment on column iam_role.code is '编码'; + +comment on column iam_role.pid is '父ID'; + +comment on column iam_role.name is '名称'; + +comment on column iam_role.internal is '是否系统内置'; + +comment on column iam_role.remark is '说明'; + +comment on column iam_role.creator is '创建人'; + +comment on column iam_role.create_time is '创建时间'; + +comment on column iam_role.last_modifier is '最后修改人'; + +comment on column iam_role.last_modified_time is '最后修改时间'; + +comment on column iam_role.version is '版本'; + +comment on column iam_role.deleted is '0:未删除。1:已删除'; + + + +INSERT INTO iam_role (id, code, pid, name, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1757297023118462976, 'daxpayinternal', null, '支付网关管理员', false, '', 1399985191002447872, '2024-02-13 14:53:54.000000', 1399985191002447872, '2024-02-13 14:53:54.000000', 0, false); +INSERT INTO iam_role (id, code, pid, name, internal, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1757298887092326400, 'daxpayDemo', 1757297023118462976, '支付演示角色', false, '用于进行演示的角色, 没有修改和删除的权限', 1399985191002447872, '2024-02-13 15:01:18.000000', 1399985191002447872, '2024-02-13 15:01:18.000000', 0, false); + +----- +create table iam_role_menu +( + id bigint not null + primary key, + role_id bigint not null, + client_code varchar(50) not null, + permission_id bigint not null +); + +comment on table iam_role_menu is '角色菜单权限表'; + +comment on column iam_role_menu.role_id is '角色id'; + +comment on column iam_role_menu.client_code is '终端code'; + +comment on column iam_role_menu.permission_id is '菜单权限id'; + + + +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298674730520576, 1757297023118462976, 'dax-pay', 1744271715476684800); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298674730520577, 1757297023118462976, 'dax-pay', 1744642856348520448); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298674730520578, 1757297023118462976, 'dax-pay', 1745457623493496832); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298674730520579, 1757297023118462976, 'dax-pay', 1745457746529210368); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298674730520580, 1757297023118462976, 'dax-pay', 1749262518385082368); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298674730520582, 1757297023118462976, 'dax-pay', 1744643265142165504); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298674730520583, 1757297023118462976, 'dax-pay', 1745126072389963776); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298674730520584, 1757297023118462976, 'dax-pay', 1745136155962347520); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298674730520585, 1757297023118462976, 'dax-pay', 1745143528663781376); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298674730520586, 1757297023118462976, 'dax-pay', 1745822093382230016); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298674730520587, 1757297023118462976, 'dax-pay', 1744624886658318336); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298674730520588, 1757297023118462976, 'dax-pay', 1744372631231995904); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298674730520589, 1757297023118462976, 'dax-pay', 1744276101384880128); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298674730520590, 1757297023118462976, 'dax-pay', 1746194891925561344); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059200, 1757298887092326400, 'dax-pay', 1744271715476684800); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059201, 1757298887092326400, 'dax-pay', 1746194891925561344); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059202, 1757298887092326400, 'dax-pay', 1744276101384880128); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059203, 1757298887092326400, 'dax-pay', 1744372631231995904); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059204, 1757298887092326400, 'dax-pay', 1744624886658318336); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059205, 1757298887092326400, 'dax-pay', 1745822093382230016); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059206, 1757298887092326400, 'dax-pay', 1744642856348520448); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059207, 1757298887092326400, 'dax-pay', 1745457623493496832); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059208, 1757298887092326400, 'dax-pay', 1745457746529210368); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059209, 1757298887092326400, 'dax-pay', 1749262518385082368); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059210, 1757298887092326400, 'dax-pay', 1744643265142165504); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059212, 1757298887092326400, 'dax-pay', 1745126072389963776); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059213, 1757298887092326400, 'dax-pay', 1745136155962347520); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059214, 1757298887092326400, 'dax-pay', 1745143528663781376); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059215, 1757298887092326400, 'dax-pay', 1744271715476684800); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059216, 1757298887092326400, 'dax-pay', 1746194891925561344); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059217, 1757298887092326400, 'dax-pay', 1744276101384880128); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059218, 1757298887092326400, 'dax-pay', 1744372631231995904); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059219, 1757298887092326400, 'dax-pay', 1744624886658318336); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059220, 1757298887092326400, 'dax-pay', 1745822093382230016); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059221, 1757298887092326400, 'dax-pay', 1744642856348520448); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059222, 1757298887092326400, 'dax-pay', 1745457623493496832); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059223, 1757298887092326400, 'dax-pay', 1745457746529210368); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059224, 1757298887092326400, 'dax-pay', 1749262518385082368); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059225, 1757298887092326400, 'dax-pay', 1744643265142165504); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059227, 1757298887092326400, 'dax-pay', 1745126072389963776); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059228, 1757298887092326400, 'dax-pay', 1745136155962347520); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059229, 1757298887092326400, 'dax-pay', 1745143528663781376); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059230, 1757298887092326400, 'dax-pay', 1744271715476684800); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059231, 1757298887092326400, 'dax-pay', 1746194891925561344); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059232, 1757298887092326400, 'dax-pay', 1744276101384880128); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059233, 1757298887092326400, 'dax-pay', 1744372631231995904); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059234, 1757298887092326400, 'dax-pay', 1744624886658318336); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059235, 1757298887092326400, 'dax-pay', 1745822093382230016); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059236, 1757298887092326400, 'dax-pay', 1744642856348520448); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059237, 1757298887092326400, 'dax-pay', 1745457623493496832); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059238, 1757298887092326400, 'dax-pay', 1745457746529210368); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059239, 1757298887092326400, 'dax-pay', 1749262518385082368); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059240, 1757298887092326400, 'dax-pay', 1744643265142165504); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059242, 1757298887092326400, 'dax-pay', 1745126072389963776); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059243, 1757298887092326400, 'dax-pay', 1745136155962347520); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059244, 1757298887092326400, 'dax-pay', 1745143528663781376); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059245, 1757298887092326400, 'dax-pay', 1744271715476684800); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059246, 1757298887092326400, 'dax-pay', 1746194891925561344); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059247, 1757298887092326400, 'dax-pay', 1744276101384880128); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059248, 1757298887092326400, 'dax-pay', 1744372631231995904); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059249, 1757298887092326400, 'dax-pay', 1744624886658318336); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059250, 1757298887092326400, 'dax-pay', 1745822093382230016); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059251, 1757298887092326400, 'dax-pay', 1744642856348520448); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059252, 1757298887092326400, 'dax-pay', 1745457623493496832); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059253, 1757298887092326400, 'dax-pay', 1745457746529210368); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059254, 1757298887092326400, 'dax-pay', 1749262518385082368); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059255, 1757298887092326400, 'dax-pay', 1744643265142165504); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059257, 1757298887092326400, 'dax-pay', 1745126072389963776); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059258, 1757298887092326400, 'dax-pay', 1745136155962347520); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1757298924107059259, 1757298887092326400, 'dax-pay', 1745143528663781376); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1762112282006073350, 1757297023118462976, 'dax-pay', 1761429304959528960); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1762112282006073351, 1757297023118462976, 'dax-pay', 1761429682618855424); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1762112282006073352, 1757297023118462976, 'dax-pay', 1759768820429352960); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1762112282006073353, 1757297023118462976, 'dax-pay', 1759769092698402816); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1762112282232565766, 1757298887092326400, 'dax-pay', 1761429304959528960); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1762112282232565767, 1757298887092326400, 'dax-pay', 1761429682618855424); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1762112282232565768, 1757298887092326400, 'dax-pay', 1759768820429352960); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1762112282232565769, 1757298887092326400, 'dax-pay', 1759769092698402816); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1780416732268605440, 1757297023118462976, 'dax-pay', 1775089099078553600); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1780416732268605441, 1757297023118462976, 'dax-pay', 1775089820368818176); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1780416732268605442, 1757297023118462976, 'dax-pay', 1775091561835450368); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1780416732268605443, 1757297023118462976, 'dax-pay', 1777688382748700672); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1780416732574789632, 1757298887092326400, 'dax-pay', 1775089099078553600); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1780416732574789633, 1757298887092326400, 'dax-pay', 1775089820368818176); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1780416732574789634, 1757298887092326400, 'dax-pay', 1775091561835450368); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1780416732574789635, 1757298887092326400, 'dax-pay', 1777688382748700672); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1789979742020689920, 1757297023118462976, 'dax-pay', 1786808188825194496); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1789979742020689921, 1757297023118462976, 'dax-pay', 1786810890951020544); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1789979742020689922, 1757297023118462976, 'dax-pay', 1744930046228017152); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1789979742314291200, 1757298887092326400, 'dax-pay', 1786808188825194496); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1789979742314291201, 1757298887092326400, 'dax-pay', 1786810890951020544); +INSERT INTO iam_role_menu (id, role_id, client_code, permission_id) VALUES (1789979742314291202, 1757298887092326400, 'dax-pay', 1744930046228017152); + +----- +create table iam_role_path +( + id bigint not null + primary key, + role_id bigint not null, + permission_id bigint not null +); + +comment on table iam_role_path is '角色请求权限表'; + +comment on column iam_role_path.role_id is '角色id'; + +comment on column iam_role_path.permission_id is '请求权限id'; + + + +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343680, 1757297023118462976, 1789978117570945313); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343681, 1757297023118462976, 1789978117566750768); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343682, 1757297023118462976, 1789978117570945312); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343683, 1757297023118462976, 1789978117570945264); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343684, 1757297023118462976, 1789978117570945244); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343685, 1757297023118462976, 1789978117570945215); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343686, 1757297023118462976, 1789978117570945203); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343687, 1757297023118462976, 1789978117570945080); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343688, 1757297023118462976, 1789978117570945074); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343689, 1757297023118462976, 1789978117570945029); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343690, 1757297023118462976, 1789978117570945024); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343691, 1757297023118462976, 1789978117566750819); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343692, 1757297023118462976, 1789978117566750783); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343693, 1757297023118462976, 1789978117566750760); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343694, 1757297023118462976, 1789978117566750746); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343695, 1757297023118462976, 1789978117562556431); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343696, 1757297023118462976, 1789978117570945311); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343697, 1757297023118462976, 1789978117570945126); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343698, 1757297023118462976, 1789978117570945304); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343699, 1757297023118462976, 1789978117570945269); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343700, 1757297023118462976, 1789978117570945230); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343701, 1757297023118462976, 1789978117570945129); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343702, 1757297023118462976, 1789978117566750730); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343703, 1757297023118462976, 1789978117562556448); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343704, 1757297023118462976, 1789978117570945302); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343705, 1757297023118462976, 1789978117570945273); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343706, 1757297023118462976, 1789978117570945213); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343707, 1757297023118462976, 1789978117570945177); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343708, 1757297023118462976, 1789978117570945161); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343709, 1757297023118462976, 1789978117570945136); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343710, 1757297023118462976, 1789978117566750763); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343711, 1757297023118462976, 1789978117566750728); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343712, 1757297023118462976, 1789978117570945299); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343713, 1757297023118462976, 1789978117570945222); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343714, 1757297023118462976, 1789978117570945124); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343715, 1757297023118462976, 1789978117566750820); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343716, 1757297023118462976, 1789978117570945286); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343717, 1757297023118462976, 1789978117570945072); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343718, 1757297023118462976, 1789978117570945064); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343719, 1757297023118462976, 1789978117570945279); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343720, 1757297023118462976, 1789978117570945028); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343721, 1757297023118462976, 1789978117566750751); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343722, 1757297023118462976, 1789978117570945277); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343723, 1757297023118462976, 1789978117570945248); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343724, 1757297023118462976, 1789978117570945234); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343725, 1757297023118462976, 1789978117570945170); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343726, 1757297023118462976, 1789978117570945111); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343727, 1757297023118462976, 1789978117570945100); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343728, 1757297023118462976, 1789978117570945038); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343729, 1757297023118462976, 1789978117566750807); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343730, 1757297023118462976, 1789978117566750789); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343731, 1757297023118462976, 1789978117566750759); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343732, 1757297023118462976, 1789978117566750744); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343733, 1757297023118462976, 1789978117562556423); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343734, 1757297023118462976, 1789978117570945266); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343735, 1757297023118462976, 1789978117570945251); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343736, 1757297023118462976, 1789978117570945073); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343737, 1757297023118462976, 1789978117570945056); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343738, 1757297023118462976, 1789978117566750822); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343739, 1757297023118462976, 1789978117566750809); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343740, 1757297023118462976, 1789978117566750803); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343741, 1757297023118462976, 1789978117566750726); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343742, 1757297023118462976, 1789978117570945265); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343743, 1757297023118462976, 1789978117570945163); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343744, 1757297023118462976, 1789978117570945144); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343745, 1757297023118462976, 1789978117570945258); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343746, 1757297023118462976, 1789978117570945237); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343747, 1757297023118462976, 1789978117570945184); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343748, 1757297023118462976, 1789978117570945162); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343749, 1757297023118462976, 1789978117570945116); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343750, 1757297023118462976, 1789978117570945115); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343751, 1757297023118462976, 1789978117570945085); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343752, 1757297023118462976, 1789978117562556418); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343753, 1757297023118462976, 1789978117570945236); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343754, 1757297023118462976, 1789978117570945098); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343755, 1757297023118462976, 1789978117570945231); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343756, 1757297023118462976, 1789978117570945192); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343757, 1757297023118462976, 1789978117570945181); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343758, 1757297023118462976, 1789978117570945172); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343759, 1757297023118462976, 1789978117570945114); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343760, 1757297023118462976, 1789978117570945082); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343761, 1757297023118462976, 1789978117566750740); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343762, 1757297023118462976, 1789978117562556428); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343763, 1757297023118462976, 1789978117562556420); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343764, 1757297023118462976, 1789978117570945198); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343765, 1757297023118462976, 1789978117570945182); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343766, 1757297023118462976, 1789978117570945078); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343767, 1757297023118462976, 1789978117570945067); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343768, 1757297023118462976, 1789978117570945044); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343769, 1757297023118462976, 1789978117562556452); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343770, 1757297023118462976, 1789978117562556425); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343771, 1757297023118462976, 1789978117570945211); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343772, 1757297023118462976, 1789978117570945200); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343773, 1757297023118462976, 1789978117570945171); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343774, 1757297023118462976, 1789978117562556419); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343775, 1757297023118462976, 1789978117570945189); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343776, 1757297023118462976, 1789978117570945048); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343777, 1757297023118462976, 1789978117562556429); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343778, 1757297023118462976, 1789978117570945165); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343779, 1757297023118462976, 1789978117562556435); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343780, 1757297023118462976, 1789978117570945155); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343781, 1757297023118462976, 1789978117566750762); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343782, 1757297023118462976, 1789978117570945150); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343783, 1757297023118462976, 1789978117566750753); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343784, 1757297023118462976, 1789978117570945107); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343785, 1757297023118462976, 1789978117566750736); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343786, 1757297023118462976, 1789978117570945104); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979321814343787, 1757297023118462976, 1789978117566750742); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636736, 1757298887092326400, 1789978117570945313); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636737, 1757298887092326400, 1789978117566750768); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636738, 1757298887092326400, 1789978117570945312); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636739, 1757298887092326400, 1789978117570945264); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636740, 1757298887092326400, 1789978117570945244); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636741, 1757298887092326400, 1789978117570945215); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636742, 1757298887092326400, 1789978117570945203); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636743, 1757298887092326400, 1789978117570945080); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636744, 1757298887092326400, 1789978117570945074); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636745, 1757298887092326400, 1789978117570945029); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636746, 1757298887092326400, 1789978117570945024); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636747, 1757298887092326400, 1789978117566750819); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636748, 1757298887092326400, 1789978117566750783); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636749, 1757298887092326400, 1789978117566750760); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636750, 1757298887092326400, 1789978117566750746); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636751, 1757298887092326400, 1789978117562556431); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636752, 1757298887092326400, 1789978117570945311); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636753, 1757298887092326400, 1789978117570945126); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636754, 1757298887092326400, 1789978117570945304); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636755, 1757298887092326400, 1789978117570945269); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636756, 1757298887092326400, 1789978117570945230); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636757, 1757298887092326400, 1789978117570945129); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636758, 1757298887092326400, 1789978117566750730); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636759, 1757298887092326400, 1789978117562556448); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636760, 1757298887092326400, 1789978117570945302); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636761, 1757298887092326400, 1789978117570945273); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636762, 1757298887092326400, 1789978117570945213); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636763, 1757298887092326400, 1789978117570945177); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636764, 1757298887092326400, 1789978117570945161); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636765, 1757298887092326400, 1789978117570945136); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636766, 1757298887092326400, 1789978117566750763); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636767, 1757298887092326400, 1789978117566750728); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636769, 1757298887092326400, 1789978117570945222); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636771, 1757298887092326400, 1789978117566750820); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636772, 1757298887092326400, 1789978117570945286); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636773, 1757298887092326400, 1789978117570945072); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636774, 1757298887092326400, 1789978117570945064); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636775, 1757298887092326400, 1789978117570945279); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636776, 1757298887092326400, 1789978117570945028); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636777, 1757298887092326400, 1789978117566750751); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636778, 1757298887092326400, 1789978117570945277); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636783, 1757298887092326400, 1789978117570945100); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636786, 1757298887092326400, 1789978117566750789); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636790, 1757298887092326400, 1789978117570945266); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636791, 1757298887092326400, 1789978117570945251); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636792, 1757298887092326400, 1789978117570945073); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636793, 1757298887092326400, 1789978117570945056); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636794, 1757298887092326400, 1789978117566750822); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636795, 1757298887092326400, 1789978117566750809); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636796, 1757298887092326400, 1789978117566750803); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636797, 1757298887092326400, 1789978117566750726); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636799, 1757298887092326400, 1789978117570945163); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636800, 1757298887092326400, 1789978117570945144); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636801, 1757298887092326400, 1789978117570945258); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636802, 1757298887092326400, 1789978117570945237); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636803, 1757298887092326400, 1789978117570945184); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636804, 1757298887092326400, 1789978117570945162); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636805, 1757298887092326400, 1789978117570945116); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636806, 1757298887092326400, 1789978117570945115); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636807, 1757298887092326400, 1789978117570945085); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636808, 1757298887092326400, 1789978117562556418); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636809, 1757298887092326400, 1789978117570945236); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636810, 1757298887092326400, 1789978117570945098); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636811, 1757298887092326400, 1789978117570945231); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636812, 1757298887092326400, 1789978117570945192); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636813, 1757298887092326400, 1789978117570945181); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636814, 1757298887092326400, 1789978117570945172); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636815, 1757298887092326400, 1789978117570945114); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636816, 1757298887092326400, 1789978117570945082); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636817, 1757298887092326400, 1789978117566750740); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636818, 1757298887092326400, 1789978117562556428); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636819, 1757298887092326400, 1789978117562556420); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636820, 1757298887092326400, 1789978117570945198); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636821, 1757298887092326400, 1789978117570945182); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636822, 1757298887092326400, 1789978117570945078); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636823, 1757298887092326400, 1789978117570945067); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636824, 1757298887092326400, 1789978117570945044); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636825, 1757298887092326400, 1789978117562556452); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636826, 1757298887092326400, 1789978117562556425); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636828, 1757298887092326400, 1789978117570945200); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636829, 1757298887092326400, 1789978117570945171); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636830, 1757298887092326400, 1789978117562556419); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636831, 1757298887092326400, 1789978117570945189); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636832, 1757298887092326400, 1789978117570945048); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636835, 1757298887092326400, 1789978117562556435); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636836, 1757298887092326400, 1789978117570945155); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636837, 1757298887092326400, 1789978117566750762); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636838, 1757298887092326400, 1789978117570945150); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636839, 1757298887092326400, 1789978117566750753); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636840, 1757298887092326400, 1789978117570945107); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636841, 1757298887092326400, 1789978117566750736); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636842, 1757298887092326400, 1789978117570945104); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979322187636843, 1757298887092326400, 1789978117566750742); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979908043825152, 1757297023118462976, 1789978117570945084); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979908043825153, 1757297023118462976, 1789978117570945059); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979908043825154, 1757297023118462976, 1789978117570945039); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979908043825155, 1757297023118462976, 1789978117566750797); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979908324843520, 1757298887092326400, 1789978117570945084); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979908324843521, 1757298887092326400, 1789978117570945059); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789979908324843522, 1757298887092326400, 1789978117570945039); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789982023252303872, 1757297023118462976, 1789978117570945308); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789982023252303873, 1757297023118462976, 1789978117570945239); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789982023252303874, 1757297023118462976, 1789978117570945186); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789982023252303875, 1757297023118462976, 1789978117570945052); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789982023252303876, 1757297023118462976, 1789978117566750795); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789982023252303877, 1757297023118462976, 1789978117566750741); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789982023252303878, 1757297023118462976, 1789978117570945094); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789982023252303879, 1757297023118462976, 1789978117566750758); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789982023252303880, 1757297023118462976, 1789978117566750733); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789982023529127937, 1757298887092326400, 1789978117570945239); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789982023529127938, 1757298887092326400, 1789978117570945186); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789982023529127939, 1757298887092326400, 1789978117570945052); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789982023529127940, 1757298887092326400, 1789978117566750795); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789982023529127941, 1757298887092326400, 1789978117566750741); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789982023529127942, 1757298887092326400, 1789978117570945094); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789982023529127943, 1757298887092326400, 1789978117566750758); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1789986071959429120, 1757298887092326400, 1789978117570945124); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1790355320001957888, 1757297023118462976, 1789978117570945272); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1790355320001957889, 1757297023118462976, 1789978117570945194); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1790355320001957890, 1757297023118462976, 1789978117570945175); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1790355320001957891, 1757297023118462976, 1789978117570945164); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1790355320001957892, 1757297023118462976, 1789978117566750801); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1790355320102621184, 1757298887092326400, 1789978117570945272); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1790355320102621185, 1757298887092326400, 1789978117570945194); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1790355320102621186, 1757298887092326400, 1789978117570945175); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1790355320102621187, 1757298887092326400, 1789978117570945164); +INSERT INTO iam_role_path (id, role_id, permission_id) VALUES (1790355320102621188, 1757298887092326400, 1789978117566750801); + +----- +create table iam_user_data_role +( + id bigint not null + primary key, + user_id bigint not null, + role_id bigint not null +); + +comment on table iam_user_data_role is '用户数据范围关系 +'; + +comment on column iam_user_data_role.id is '主键'; + +comment on column iam_user_data_role.user_id is '用户ID'; + +comment on column iam_user_data_role.role_id is '数据角色ID'; + + + + +----- +create table iam_user_dept +( + id bigint not null + primary key, + user_id bigint not null, + dept_id bigint not null +); + +comment on table iam_user_dept is '用户部门关联表'; + +comment on column iam_user_dept.user_id is '用户id'; + +comment on column iam_user_dept.dept_id is '部门id'; + + + + +----- +create table iam_user_expand_info +( + id bigint not null + primary key, + sex integer, + birthday date, + avatar varchar(255), + last_login_time timestamp(6), + current_login_time timestamp(6), + initial_password boolean not null, + expire_password boolean not null, + last_change_password_time timestamp(6), + register_time timestamp(6) not null, + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table iam_user_expand_info is '用户扩展信息'; + +comment on column iam_user_expand_info.id is '主键'; + +comment on column iam_user_expand_info.sex is '性别'; + +comment on column iam_user_expand_info.birthday is '生日'; + +comment on column iam_user_expand_info.avatar is '头像'; + +comment on column iam_user_expand_info.last_login_time is '上次登录时间'; + +comment on column iam_user_expand_info.current_login_time is '本次登录时间'; + +comment on column iam_user_expand_info.initial_password is '是否初始密码'; + +comment on column iam_user_expand_info.expire_password is '密码是否过期'; + +comment on column iam_user_expand_info.last_change_password_time is '上次修改密码时间'; + +comment on column iam_user_expand_info.register_time is '注册时间'; + +comment on column iam_user_expand_info.creator is '创建者ID'; + +comment on column iam_user_expand_info.create_time is '创建时间'; + +comment on column iam_user_expand_info.last_modifier is '最后修者ID'; + +comment on column iam_user_expand_info.last_modified_time is '最后修改时间'; + +comment on column iam_user_expand_info.version is '乐观锁'; + +comment on column iam_user_expand_info.deleted is '删除标志'; + + + +INSERT INTO iam_user_expand_info (id, sex, birthday, avatar, last_login_time, current_login_time, initial_password, expire_password, last_change_password_time, register_time, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1757317255899869184, null, null, null, '2024-04-25 22:10:31.000000', '2024-04-26 09:22:54.000000', false, false, null, '2024-02-13 16:14:18.000000', 1399985191002447872, '2024-02-13 16:14:18.000000', 0, '2024-04-26 09:22:54.000000', 9, false); +INSERT INTO iam_user_expand_info (id, sex, birthday, avatar, last_login_time, current_login_time, initial_password, expire_password, last_change_password_time, register_time, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1757299137932677120, 1, '2024-02-13', null, '2024-05-26 00:09:21.000000', '2024-05-31 00:04:11.682000', false, false, null, '2024-02-13 15:02:18.000000', 1399985191002447872, '2024-02-13 15:02:18.000000', 0, '2024-05-31 00:04:11.686000', 8, false); +INSERT INTO iam_user_expand_info (id, sex, birthday, avatar, last_login_time, current_login_time, initial_password, expire_password, last_change_password_time, register_time, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1399985191002447872, 1, '1996-12-01', null, '2024-05-31 20:50:02.184000', '2024-05-31 21:50:08.425000', false, false, '2023-10-19 14:14:08.000000', '2021-08-01 18:52:37.000000', 1, '2021-06-02 15:04:15.000000', 0, '2024-05-31 21:50:08.426000', 457, false); + +----- +create table iam_user_info +( + id bigint not null + primary key, + name varchar(200) not null, + username varchar(50) not null, + password varchar(255) not null, + phone varchar(32), + email varchar(255), + client_ids text, + internalistrator boolean not null, + status varchar(55) not null, + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table iam_user_info is '用户信息'; + +comment on column iam_user_info.name is '名称'; + +comment on column iam_user_info.username is '账号'; + +comment on column iam_user_info.password is '密码'; + +comment on column iam_user_info.phone is '手机号'; + +comment on column iam_user_info.email is '邮箱'; + +comment on column iam_user_info.client_ids is '关联终端ds'; + +comment on column iam_user_info.internalistrator is '是否超级管理员'; + +comment on column iam_user_info.status is '账号状态'; + +comment on column iam_user_info.creator is '创建人'; + +comment on column iam_user_info.create_time is '创建时间'; + +comment on column iam_user_info.last_modifier is '最后修改人'; + +comment on column iam_user_info.last_modified_time is '最后修改时间'; + +comment on column iam_user_info.version is '版本'; + +comment on column iam_user_info.deleted is '0:未删除。1:已删除'; + + + +INSERT INTO iam_user_info (id, name, username, password, phone, email, client_ids, internalistrator, status, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1399985191002447872, 'Bootx', 'bootx', 'f52020dca765fd3943ed40a615dc2c5c', '13333333333', 'bootx@bootx.cn', '1430430071299207168,1430430071299207169,1626840094767714304,1580487061605175296', true, 'normal', 1, '2021-06-02 15:04:15.000000', 1399985191002447872, '2024-04-11 18:55:34.000000', 65, false); +INSERT INTO iam_user_info (id, name, username, password, phone, email, client_ids, internalistrator, status, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1757299137932677120, 'DaxPay演示', 'daxpay', 'f52020dca765fd3943ed40a615dc2c5c', '14443332251', 'daxpay@qq.com', '1580487061605175296', false, 'normal', 1399985191002447872, '2024-02-13 15:02:18.000000', 1757299137932677120, '2024-02-13 16:09:44.000000', 2, false); +INSERT INTO iam_user_info (id, name, username, password, phone, email, client_ids, internalistrator, status, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1757317255899869184, 'DaxPay管理员', 'daxpayinternal', '1e9e3c3deaa4a06d08326e82a49d1b63', '12222333223', 'daxpayinternal@qq.com', '1580487061605175296', false, 'normal', 1399985191002447872, '2024-02-13 16:14:18.000000', 1399985191002447872, '2024-02-13 16:14:18.000000', 0, false); + +----- +create table iam_user_role +( + id bigint not null + primary key, + user_id bigint not null, + role_id bigint not null +); + +comment on table iam_user_role is '用户角色关系 +'; + +comment on column iam_user_role.id is '主键'; + +comment on column iam_user_role.user_id is '用户ID'; + +comment on column iam_user_role.role_id is '角色ID'; + + + +INSERT INTO iam_user_role (id, user_id, role_id) VALUES (1757299293314863104, 1757299137932677120, 1757298887092326400); +INSERT INTO iam_user_role (id, user_id, role_id) VALUES (1757317495407210496, 1757317255899869184, 1757297023118462976); + +----- +create table iam_user_third +( + id bigint not null + primary key, + user_id bigint, + we_chat_id varchar(50), + we_chat_open_id varchar(50), + qq_id varchar(50), + weibo_id varchar(50), + gitee_id varchar(50), + ding_talk_id varchar(50), + we_com_id varchar(50), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table iam_user_third is '用户三方登录绑定'; + +comment on column iam_user_third.id is '主键'; + +comment on column iam_user_third.user_id is '用户id'; + +comment on column iam_user_third.we_chat_id is '微信openId'; + +comment on column iam_user_third.we_chat_open_id is '微信开放平台id'; + +comment on column iam_user_third.qq_id is 'qqId'; + +comment on column iam_user_third.weibo_id is '微博Id'; + +comment on column iam_user_third.gitee_id is '码云唯一标识'; + +comment on column iam_user_third.ding_talk_id is '钉钉唯一标识'; + +comment on column iam_user_third.we_com_id is '企业微信唯一标识'; + +comment on column iam_user_third.creator is '创建人'; + +comment on column iam_user_third.create_time is '创建时间'; + +comment on column iam_user_third.last_modifier is '最后修改人'; + +comment on column iam_user_third.last_modified_time is '最后修改时间'; + +comment on column iam_user_third.version is '版本'; + +comment on column iam_user_third.deleted is '0:未删除。1:已删除'; + + + +create index pk_user_index + on iam_user_third (user_id); + +comment on index pk_user_index is '用户id索引'; + + +----- +create table iam_user_third_info +( + id bigint not null + primary key, + user_id bigint not null, + client_code varchar(50) not null, + username varchar(255), + nickname varchar(255), + avatar varchar(255), + third_user_id varchar(64), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null +); + +comment on table iam_user_third_info is '用户三方登录绑定详情'; + +comment on column iam_user_third_info.id is '主键'; + +comment on column iam_user_third_info.user_id is '用户id'; + +comment on column iam_user_third_info.client_code is '第三方终端类型'; + +comment on column iam_user_third_info.username is '用户名'; + +comment on column iam_user_third_info.nickname is '用户昵称'; + +comment on column iam_user_third_info.avatar is '用户头像'; + +comment on column iam_user_third_info.third_user_id is '关联第三方平台的用户id'; + +comment on column iam_user_third_info.creator is '创建人'; + +comment on column iam_user_third_info.create_time is '创建时间'; + +comment on column iam_user_third_info.last_modifier is '最后修改人'; + +comment on column iam_user_third_info.last_modified_time is '最后修改时间'; + +comment on column iam_user_third_info.version is '版本'; + + + +create index pk_user_client + on iam_user_third_info (user_id, client_code); + +comment on index pk_user_client is '用户id和终端code'; + + +----- +create table notice_mail_config +( + id bigint not null + primary key, + code varchar(32), + name varchar(64), + host varchar(128) not null, + port integer not null, + username varchar(128) not null, + password varchar(128) not null, + sender varchar(128), + from_ varchar(128), + activity boolean, + security_type integer, + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + deleted boolean, + version integer +); + +comment on table notice_mail_config is '邮件配置'; + +comment on column notice_mail_config.code is '编号'; + +comment on column notice_mail_config.name is '名称'; + +comment on column notice_mail_config.host is '邮箱服务器host'; + +comment on column notice_mail_config.port is '邮箱服务器 port'; + +comment on column notice_mail_config.username is '邮箱服务器 username'; + +comment on column notice_mail_config.password is '邮箱服务器 password'; + +comment on column notice_mail_config.sender is '邮箱服务器 sender'; + +comment on column notice_mail_config.from_ is '邮箱服务器 from'; + +comment on column notice_mail_config.activity is '是否默认配置,0:否。1:是'; + +comment on column notice_mail_config.security_type is '安全传输方式 1:plain 2:tls 3:ssl'; + +comment on column notice_mail_config.creator is '创建人'; + +comment on column notice_mail_config.create_time is '创建时间'; + +comment on column notice_mail_config.last_modifier is '最后修改人'; + +comment on column notice_mail_config.last_modified_time is '最后修改时间'; + +comment on column notice_mail_config.deleted is '0:未删除。1:已删除'; + +comment on column notice_mail_config.version is '版本'; + + + + +----- +create table notice_message_template +( + id bigint not null + primary key, + code varchar(255) not null, + name varchar(255), + data text, + type varchar(50), + remark varchar(255), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table notice_message_template is '消息模板'; + +comment on column notice_message_template.code is '编码'; + +comment on column notice_message_template.name is '名称'; + +comment on column notice_message_template.data is '模板数据'; + +comment on column notice_message_template.type is '模板类型'; + +comment on column notice_message_template.remark is '备注'; + +comment on column notice_message_template.creator is '创建人'; + +comment on column notice_message_template.create_time is '创建时间'; + +comment on column notice_message_template.last_modifier is '最后修改人'; + +comment on column notice_message_template.last_modified_time is '最后修改时间'; + +comment on column notice_message_template.version is '版本'; + +comment on column notice_message_template.deleted is '0:未删除。1:已删除'; + + + +INSERT INTO notice_message_template (id, code, name, data, type, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1424936204932169730, 'cs', '测试', 'hello ${msg}6666666666666666666666666666', '1', '测试模板', 0, '2021-08-10 11:30:40.000000', 0, '2021-08-10 11:30:40.000000', 0, false); + +----- +create table notice_site_message +( + id bigint not null + primary key, + title varchar(255), + content text, + sender_id bigint, + sender_name varchar(255), + sender_time timestamp(6), + receive_type varchar(50), + send_state varchar(50), + efficient_time timestamp(6), + cancel_time timestamp(6), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table notice_site_message is '站内信'; + +comment on column notice_site_message.id is '主键'; + +comment on column notice_site_message.title is '消息标题'; + +comment on column notice_site_message.content is '消息内容'; + +comment on column notice_site_message.sender_id is '发送者id'; + +comment on column notice_site_message.sender_name is '发送者姓名'; + +comment on column notice_site_message.sender_time is '发送时间'; + +comment on column notice_site_message.receive_type is '消息类型'; + +comment on column notice_site_message.send_state is '发布状态'; + +comment on column notice_site_message.efficient_time is '截至有效期'; + +comment on column notice_site_message.cancel_time is '撤回时间'; + +comment on column notice_site_message.creator is '创建人'; + +comment on column notice_site_message.create_time is '创建时间'; + +comment on column notice_site_message.last_modifier is '最后修改人'; + +comment on column notice_site_message.last_modified_time is '最后修改时间'; + +comment on column notice_site_message.version is '版本'; + +comment on column notice_site_message.deleted is '0:未删除。1:已删除'; + + + +INSERT INTO notice_site_message (id, title, content, sender_id, sender_name, sender_time, receive_type, send_state, efficient_time, cancel_time, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1796213354295259136, 'aaa', '

aaaa

', 1399985191002447872, 'Bootx', '2024-05-31 00:16:27.231000', 'all', 'sent', '2024-06-30 00:00:00.000000', null, 1399985191002447872, '2024-05-31 00:13:30.354000', 1399985191002447872, '2024-05-31 00:16:27.238000', 1, false); +INSERT INTO notice_site_message (id, title, content, sender_id, sender_name, sender_time, receive_type, send_state, efficient_time, cancel_time, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1796527782318743552, '已完成PGSQL的适配', '

已完成PGSQL的适配

', 1399985191002447872, 'Bootx', '2024-05-31 21:02:59.349000', 'all', 'sent', '2024-06-30 00:00:00.000000', null, 1399985191002447872, '2024-05-31 21:02:55.833000', 1399985191002447872, '2024-05-31 21:02:59.351000', 1, false); + +----- +create table notice_site_message_user +( + id bigint not null + primary key, + message_id bigint not null, + receive_id bigint not null, + have_read boolean not null, + read_time timestamp(6), + creator bigint, + create_time timestamp(6), + deleted boolean default false not null +); + +comment on table notice_site_message_user is '消息用户关联'; + +comment on column notice_site_message_user.id is '主键'; + +comment on column notice_site_message_user.message_id is '消息id'; + +comment on column notice_site_message_user.receive_id is '接收者id'; + +comment on column notice_site_message_user.have_read is '已读/未读'; + +comment on column notice_site_message_user.read_time is '已读时间'; + +comment on column notice_site_message_user.creator is '创建人'; + +comment on column notice_site_message_user.create_time is '创建时间'; + +comment on column notice_site_message_user.deleted is '0:未删除。1:已删除'; + + + +create index inx_message + on notice_site_message_user (message_id); + +comment on index inx_message is '消息索引'; + +create unique index uni_receive_message + on notice_site_message_user (receive_id, message_id); + +comment on index uni_receive_message is '接收人和消息联合索引'; + +INSERT INTO notice_site_message_user (id, message_id, receive_id, have_read, read_time, creator, create_time, deleted) VALUES (1796214068241297408, 1796213354295259136, 1399985191002447872, true, '2024-05-31 00:16:20.565000', 1399985191002447872, '2024-05-31 00:16:20.570000', false); +INSERT INTO notice_site_message_user (id, message_id, receive_id, have_read, read_time, creator, create_time, deleted) VALUES (1796539685040463872, 1796527782318743552, 1399985191002447872, true, '2024-05-31 21:50:13.662000', 1399985191002447872, '2024-05-31 21:50:13.663000', false); + +----- +create table notice_sms_channel_config +( + id bigint not null + primary key, + code varchar(255), + name varchar(255), + state varchar(255), + access_key varchar(255), + config text, + remark varchar(255), + access_secret varchar(255), + image bigint, + sort_no double precision, + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table notice_sms_channel_config is '短信渠道配置'; + +comment on column notice_sms_channel_config.id is '主键'; + +comment on column notice_sms_channel_config.code is '渠道类型编码'; + +comment on column notice_sms_channel_config.name is '渠道类型名称'; + +comment on column notice_sms_channel_config.state is '状态'; + +comment on column notice_sms_channel_config.access_key is 'AccessKey'; + +comment on column notice_sms_channel_config.config is '配置字符串'; + +comment on column notice_sms_channel_config.remark is '备注'; + +comment on column notice_sms_channel_config.access_secret is 'AccessSecret'; + +comment on column notice_sms_channel_config.image is '图片'; + +comment on column notice_sms_channel_config.sort_no is '排序'; + +comment on column notice_sms_channel_config.creator is '创建者ID'; + +comment on column notice_sms_channel_config.create_time is '创建时间'; + +comment on column notice_sms_channel_config.last_modifier is '最后修者ID'; + +comment on column notice_sms_channel_config.last_modified_time is '最后修改时间'; + +comment on column notice_sms_channel_config.version is '乐观锁'; + +comment on column notice_sms_channel_config.deleted is '删除标志'; + + + +INSERT INTO notice_sms_channel_config (id, code, name, state, access_key, config, remark, access_secret, image, sort_no, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1688432603289337856, 'alibaba', '阿里云短信', 'normal', '1', '{"accessKeyId":"1231231231232111","accessKeySecret":"12312312321111","signature":"1231","templateId":"2312313","templateName":"123","requestUrl":"五千二无二","action":"SendSms","version":"11","regionId":"cn-hangzhou"}', null, '1', null, 0, 1414143554414059520, '2023-08-07 14:11:17.000000', 1414143554414059520, '2023-08-07 15:35:34.000000', 0, false); +INSERT INTO notice_sms_channel_config (id, code, name, state, access_key, config, remark, access_secret, image, sort_no, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1688456604610953216, 'huawei', '华为云短信', 'normal', '1', '{"appKey":"1231231231232","appSecret":"1111","signature":"1","sender":"1","templateId":"12","statusCallBack":"1","url":"1"}', null, '1', null, 0, 1414143554414059520, '2023-08-07 15:46:39.000000', 1414143554414059520, '2023-08-07 15:46:49.000000', 0, false); +INSERT INTO notice_sms_channel_config (id, code, name, state, access_key, config, remark, access_secret, image, sort_no, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1688461302302732288, 'yunpian', '云片短信', 'normal', '1', '{"accessKeyId":"1","accessKeySecret":"1","signature":null,"templateId":null,"callbackUrl":null,"templateName":null}', null, '1', null, 0, 1414143554414059520, '2023-08-07 16:05:19.000000', 1414143554414059520, '2023-08-08 14:12:23.000000', 0, false); +INSERT INTO notice_sms_channel_config (id, code, name, state, access_key, config, remark, access_secret, image, sort_no, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1688788784751001600, 'tencent', '腾讯短信', 'normal', '1', '{"accessKeyId":"1","accessKeySecret":"1","signature":null,"templateId":null,"sdkAppId":null,"territory":"ap-guangzhou","connTimeout":60,"requestUrl":"sms.tencentcloudapi.com","action":"SendSms","version":"2021-01-11","service":"sms"}', null, '1', null, 0, 1414143554414059520, '2023-08-08 13:46:37.000000', 1414143554414059520, '2023-08-08 13:46:37.000000', 0, false); +INSERT INTO notice_sms_channel_config (id, code, name, state, access_key, config, remark, access_secret, image, sort_no, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1688788807228276736, 'uni_sms', '合一短信', 'normal', '1', '{"accessKeyId":"1","accessKeySecret":"1","signature":null,"templateId":null,"isSimple":true,"templateName":null}', null, '1', null, 0, 1414143554414059520, '2023-08-08 13:46:42.000000', 1414143554414059520, '2023-08-08 13:46:43.000000', 0, false); +INSERT INTO notice_sms_channel_config (id, code, name, state, access_key, config, remark, access_secret, image, sort_no, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1688788823900635136, 'netease', '网易云短信', 'normal', '1', '{"accessKeyId":"1","accessKeySecret":"1","signature":null,"templateId":null,"templateName":null,"templateUrl":"https://api.netease.im/sms/sendtemplate.action","codeUrl":"https://api.netease.im/sms/sendcode.action","verifyUrl":"https://api.netease.im/sms/verifycode.action","needUp":null}', null, '1', null, 0, 1414143554414059520, '2023-08-08 13:46:46.000000', 1414143554414059520, '2023-08-08 13:46:47.000000', 0, false); +INSERT INTO notice_sms_channel_config (id, code, name, state, access_key, config, remark, access_secret, image, sort_no, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1688788846944141312, 'ctyun', '天翼云短信', 'normal', '1', '{"accessKeyId":"1","accessKeySecret":"1","signature":null,"templateId":null,"templateName":null,"requestUrl":"https://sms-global.ctapi.ctyun.cn/sms/api/v1","action":"SendSms"}', null, '1', null, 0, 1414143554414059520, '2023-08-08 13:46:52.000000', 1414143554414059520, '2023-08-08 13:46:52.000000', 0, false); +INSERT INTO notice_sms_channel_config (id, code, name, state, access_key, config, remark, access_secret, image, sort_no, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1688788862987354112, 'emay', '亿美短信', 'normal', '1', '{"appId":"1","secretKey":"1","requestUrl":null}', null, '1', null, 0, 1414143554414059520, '2023-08-08 13:46:56.000000', 1414143554414059520, '2023-08-08 14:03:04.000000', 0, false); +INSERT INTO notice_sms_channel_config (id, code, name, state, access_key, config, remark, access_secret, image, sort_no, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1688788885141667840, 'cloopen', '容联短信', 'normal', '1', '{"accessKeyId":"1","accessKeySecret":"1","signature":null,"templateId":null,"appId":null,"baseUrl":"https://app.cloopen.com:8883/2013-12-26","serverIp":null,"serverPort":null}', null, '1', null, 0, 1414143554414059520, '2023-08-08 13:47:01.000000', 1414143554414059520, '2023-08-08 13:47:01.000000', 0, false); +INSERT INTO notice_sms_channel_config (id, code, name, state, access_key, config, remark, access_secret, image, sort_no, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1688788904481603584, 'jd_cloud', '京东短信', 'normal', '1', '{"accessKeyId":"1","accessKeySecret":"1","signature":null,"templateId":null,"region":"cn-north-1"}', null, '1', null, 0, 1414143554414059520, '2023-08-08 13:47:06.000000', 1414143554414059520, '2023-08-08 13:47:06.000000', 0, false); + +----- +create table notice_sms_config +( + id bigint not null + primary key, + tid bigint not null, + code varchar(32) not null, + name varchar(64), + account_sid varchar(512) not null, + path_sid varchar(512), + auth_token varchar(512) not null, + from_num varchar(512) not null, + is_default boolean, + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer, + deleted boolean, + secret varchar(512), + isp varchar(64), + reply_msg varchar(512) +); + +comment on table notice_sms_config is '短信配置'; + +comment on column notice_sms_config.tid is '租户id'; + +comment on column notice_sms_config.path_sid is '发送号码的唯一标识(基于twillio的命名风格)'; + +comment on column notice_sms_config.is_default is '是否默认配置,0:否。1:是'; + +comment on column notice_sms_config.deleted is '0:未删除。1:已删除'; + + + + +----- +create table notice_sms_template +( + id bigint not null + primary key, + supplier_type varchar(255), + template_id varchar(255), + name varchar(255), + content varchar(255), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table notice_sms_template is '短信模板配置'; + +comment on column notice_sms_template.id is '主键'; + +comment on column notice_sms_template.supplier_type is '短信渠道商类型'; + +comment on column notice_sms_template.template_id is '短信渠道商类型'; + +comment on column notice_sms_template.name is '短信模板名称'; + +comment on column notice_sms_template.content is '短信模板内容'; + +comment on column notice_sms_template.creator is '创建者ID'; + +comment on column notice_sms_template.create_time is '创建时间'; + +comment on column notice_sms_template.last_modifier is '最后修者ID'; + +comment on column notice_sms_template.last_modified_time is '最后修改时间'; + +comment on column notice_sms_template.version is '乐观锁'; + +comment on column notice_sms_template.deleted is '删除标志'; + + + + +----- +create table notice_wechat_config +( + id bigint not null + primary key, + tid bigint not null, + code varchar(32) not null, + name varchar(64), + corp_id varchar(512) not null, + corp_secret varchar(512) not null, + is_default boolean, + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer, + deleted boolean +); + +comment on table notice_wechat_config is '微信消息配置'; + +comment on column notice_wechat_config.tid is '租户id'; + +comment on column notice_wechat_config.is_default is '是否默认配置,0:否。1:是'; + +comment on column notice_wechat_config.deleted is '0:未删除。1:已删除'; + + + + +----- +create table pay_alipay_config +( + id bigint not null + primary key, + app_id varchar(255), + enable boolean, + notify_url varchar(255), + return_url varchar(255), + server_url varchar(255), + auth_type varchar(255), + sign_type varchar(255), + alipay_public_key text, + private_key text, + app_cert text, + alipay_cert text, + alipay_root_cert text, + sandbox boolean, + single_limit integer, + pay_ways varchar(255), + allocation boolean, + alipay_user_id varchar(255), + remark varchar(255), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table pay_alipay_config is '支付宝支付配置'; + +comment on column pay_alipay_config.id is '主键'; + +comment on column pay_alipay_config.app_id is '支付宝商户appId'; + +comment on column pay_alipay_config.enable is '是否启用'; + +comment on column pay_alipay_config.notify_url is '异步通知页面路径'; + +comment on column pay_alipay_config.return_url is '同步通知页面路径'; + +comment on column pay_alipay_config.server_url is '支付网关地址'; + +comment on column pay_alipay_config.auth_type is '认证类型'; + +comment on column pay_alipay_config.sign_type is '签名类型 RSA2'; + +comment on column pay_alipay_config.alipay_public_key is '支付宝公钥'; + +comment on column pay_alipay_config.private_key is '私钥'; + +comment on column pay_alipay_config.app_cert is '应用公钥证书'; + +comment on column pay_alipay_config.alipay_cert is '支付宝公钥证书'; + +comment on column pay_alipay_config.alipay_root_cert is '支付宝CA根证书'; + +comment on column pay_alipay_config.sandbox is '是否沙箱环境'; + +comment on column pay_alipay_config.single_limit is '支付限额'; + +comment on column pay_alipay_config.pay_ways is '可用支付方式'; + +comment on column pay_alipay_config.allocation is '是否支付分账'; + +comment on column pay_alipay_config.alipay_user_id is '合作者身份ID'; + +comment on column pay_alipay_config.remark is '备注'; + +comment on column pay_alipay_config.creator is '创建者ID'; + +comment on column pay_alipay_config.create_time is '创建时间'; + +comment on column pay_alipay_config.last_modifier is '最后修者ID'; + +comment on column pay_alipay_config.last_modified_time is '最后修改时间'; + +comment on column pay_alipay_config.version is '乐观锁'; + +comment on column pay_alipay_config.deleted is '删除标志'; + + + +----- +create table pay_alipay_reconcile_bill_detail +( + id bigint not null + primary key, + trade_no varchar(255), + out_trade_no varchar(255), + trade_type varchar(255), + subject varchar(255), + create_time varchar(255), + end_time varchar(255), + store_id varchar(255), + store_name varchar(255), + operator varchar(255), + terminal_id varchar(255), + other_account varchar(255), + order_amount varchar(255), + real_amount varchar(255), + alipay_amount varchar(255), + jfb_amount varchar(255), + alipay_discount_amount varchar(255), + discount_amount varchar(255), + coupon_discount_amount varchar(255), + coupon_name varchar(255), + coupon_amount varchar(255), + card_amount varchar(255), + batch_no varchar(255), + service_amount varchar(255), + split_amount varchar(255), + remark varchar(255), + reconcile_id bigint +); + +comment on table pay_alipay_reconcile_bill_detail is '支付宝业务明细对账单'; + +comment on column pay_alipay_reconcile_bill_detail.id is '主键'; + +comment on column pay_alipay_reconcile_bill_detail.trade_no is '支付宝交易号'; + +comment on column pay_alipay_reconcile_bill_detail.out_trade_no is '商户订单号'; + +comment on column pay_alipay_reconcile_bill_detail.trade_type is '业务类型'; + +comment on column pay_alipay_reconcile_bill_detail.subject is '商品名称'; + +comment on column pay_alipay_reconcile_bill_detail.create_time is '创建时间'; + +comment on column pay_alipay_reconcile_bill_detail.end_time is '完成时间'; + +comment on column pay_alipay_reconcile_bill_detail.store_id is '门店编号'; + +comment on column pay_alipay_reconcile_bill_detail.store_name is '门店名称'; + +comment on column pay_alipay_reconcile_bill_detail.operator is '操作员'; + +comment on column pay_alipay_reconcile_bill_detail.terminal_id is '终端号'; + +comment on column pay_alipay_reconcile_bill_detail.other_account is '对方账户'; + +comment on column pay_alipay_reconcile_bill_detail.order_amount is '订单金额(元)'; + +comment on column pay_alipay_reconcile_bill_detail.real_amount is '商家实收(元)'; + +comment on column pay_alipay_reconcile_bill_detail.alipay_amount is '支付宝红包(元)'; + +comment on column pay_alipay_reconcile_bill_detail.jfb_amount is '集分宝(元)'; + +comment on column pay_alipay_reconcile_bill_detail.alipay_discount_amount is '支付宝优惠(元)'; + +comment on column pay_alipay_reconcile_bill_detail.discount_amount is '商家优惠(元)'; + +comment on column pay_alipay_reconcile_bill_detail.coupon_discount_amount is '券核销金额(元)'; + +comment on column pay_alipay_reconcile_bill_detail.coupon_name is '券名称'; + +comment on column pay_alipay_reconcile_bill_detail.coupon_amount is '商家红包消费金额(元)'; + +comment on column pay_alipay_reconcile_bill_detail.card_amount is '卡消费金额(元)'; + +comment on column pay_alipay_reconcile_bill_detail.batch_no is '退款批次号/请求号'; + +comment on column pay_alipay_reconcile_bill_detail.service_amount is '服务费(元)'; + +comment on column pay_alipay_reconcile_bill_detail.split_amount is '分润(元)'; + +comment on column pay_alipay_reconcile_bill_detail.remark is '备注'; + +comment on column pay_alipay_reconcile_bill_detail.reconcile_id is '关联对账订单ID'; + + + + +----- +create table pay_alipay_reconcile_bill_total +( + id bigint not null + primary key, + record_order_id bigint, + store_id varchar(255), + store_name varchar(255), + total_num varchar(255), + total_refund_num varchar(255), + total_order_amount varchar(255), + total_amount varchar(255), + total_discount_amount varchar(255), + total_coupon_amount varchar(255), + total_consume_amount varchar(255), + total_service_amount varchar(255), + total_share_amount varchar(255), + total_net_amount varchar(255) +); + +comment on table pay_alipay_reconcile_bill_total is '支付宝业务汇总对账单'; + +comment on column pay_alipay_reconcile_bill_total.id is '主键'; + +comment on column pay_alipay_reconcile_bill_total.record_order_id is '关联对账订单ID'; + +comment on column pay_alipay_reconcile_bill_total.store_id is '门店编号'; + +comment on column pay_alipay_reconcile_bill_total.store_name is '门店名称'; + +comment on column pay_alipay_reconcile_bill_total.total_num is '交易订单总笔数'; + +comment on column pay_alipay_reconcile_bill_total.total_refund_num is '退款订单总笔数'; + +comment on column pay_alipay_reconcile_bill_total.total_order_amount is '订单金额(元)'; + +comment on column pay_alipay_reconcile_bill_total.total_amount is '商家实收(元)'; + +comment on column pay_alipay_reconcile_bill_total.total_discount_amount is '支付宝优惠(元)'; + +comment on column pay_alipay_reconcile_bill_total.total_coupon_amount is '商家优惠(元)'; + +comment on column pay_alipay_reconcile_bill_total.total_consume_amount is '卡消费金额(元)'; + +comment on column pay_alipay_reconcile_bill_total.total_service_amount is '服务费(元)'; + +comment on column pay_alipay_reconcile_bill_total.total_share_amount is '分润(元)'; + +comment on column pay_alipay_reconcile_bill_total.total_net_amount is '实收净额(元)'; + + + + +----- +create table pay_allocation_group +( + id bigint not null + primary key, + name varchar(255), + channel varchar(255), + total_rate integer, + remark varchar(255), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null, + default_group boolean +); + +comment on table pay_allocation_group is '分账组'; + +comment on column pay_allocation_group.id is '主键'; + +comment on column pay_allocation_group.name is '名称'; + +comment on column pay_allocation_group.channel is '通道'; + +comment on column pay_allocation_group.total_rate is '总分账比例(万分之多少)'; + +comment on column pay_allocation_group.remark is '备注'; + +comment on column pay_allocation_group.creator is '创建者ID'; + +comment on column pay_allocation_group.create_time is '创建时间'; + +comment on column pay_allocation_group.last_modifier is '最后修者ID'; + +comment on column pay_allocation_group.last_modified_time is '最后修改时间'; + +comment on column pay_allocation_group.version is '乐观锁'; + +comment on column pay_allocation_group.deleted is '删除标志'; + +comment on column pay_allocation_group.default_group is '默认分账组'; + + + + +----- +create table pay_allocation_group_receiver +( + id bigint not null + primary key, + group_id bigint, + receiver_id bigint, + rate integer, + creator bigint, + create_time timestamp(6) +); + +comment on table pay_allocation_group_receiver is '分账接收组关系'; + +comment on column pay_allocation_group_receiver.id is '主键'; + +comment on column pay_allocation_group_receiver.group_id is '分账组ID'; + +comment on column pay_allocation_group_receiver.receiver_id is '接收者ID'; + +comment on column pay_allocation_group_receiver.rate is '分账比例(万分之多少)'; + +comment on column pay_allocation_group_receiver.creator is '创建者ID'; + +comment on column pay_allocation_group_receiver.create_time is '创建时间'; + + + + +----- +create table pay_allocation_order +( + id bigint not null + primary key, + allocation_no varchar(255), + biz_allocation_no varchar(255), + out_allocation_no varchar(255), + order_id bigint, + order_no varchar(255), + biz_order_no varchar(255), + out_order_no varchar(255), + title varchar(255), + channel varchar(255), + amount integer, + description varchar(255), + status varchar(255), + result varchar(255), + error_code varchar(255), + error_msg varchar(255), + finish_time timestamp(6), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table pay_allocation_order is '分账订单'; + +comment on column pay_allocation_order.id is '主键'; + +comment on column pay_allocation_order.allocation_no is '分账单号'; + +comment on column pay_allocation_order.biz_allocation_no is '商户分账单号'; + +comment on column pay_allocation_order.out_allocation_no is '通道分账号'; + +comment on column pay_allocation_order.order_id is '支付订单ID'; + +comment on column pay_allocation_order.order_no is '支付订单号'; + +comment on column pay_allocation_order.biz_order_no is '商户支付订单号'; + +comment on column pay_allocation_order.out_order_no is '通道支付订单号'; + +comment on column pay_allocation_order.channel is '所属通道'; + +comment on column pay_allocation_order.amount is '总分账金额'; + +comment on column pay_allocation_order.description is '分账描述'; + +comment on column pay_allocation_order.status is '状态'; + +comment on column pay_allocation_order.result is '分账处理结果'; + +comment on column pay_allocation_order.error_code is '错误码'; + +comment on column pay_allocation_order.error_msg is '错误原因'; + +comment on column pay_allocation_order.finish_time is '分账完成时间'; + +comment on column pay_allocation_order.creator is '创建者ID'; + +comment on column pay_allocation_order.create_time is '创建时间'; + +comment on column pay_allocation_order.last_modifier is '最后修者ID'; + +comment on column pay_allocation_order.last_modified_time is '最后修改时间'; + +comment on column pay_allocation_order.version is '乐观锁'; + +comment on column pay_allocation_order.deleted is '删除标志'; + + + + +----- +create table pay_allocation_order_detail +( + id bigint not null + primary key, + allocation_id bigint, + receiver_id bigint, + rate integer, + amount integer, + receiver_type varchar(255), + receiver_account varchar(255), + receiver_name varchar(255), + result varchar(255), + error_code varchar(255), + error_msg varchar(255), + finish_time timestamp(6), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table pay_allocation_order_detail is '分账订单明细'; + +comment on column pay_allocation_order_detail.id is '主键'; + +comment on column pay_allocation_order_detail.allocation_id is '分账订单ID'; + +comment on column pay_allocation_order_detail.receiver_id is '接收者ID'; + +comment on column pay_allocation_order_detail.rate is '分账比例(万分之多少)'; + +comment on column pay_allocation_order_detail.amount is '分账金额'; + +comment on column pay_allocation_order_detail.receiver_type is '分账接收方类型'; + +comment on column pay_allocation_order_detail.receiver_account is '接收方账号'; + +comment on column pay_allocation_order_detail.receiver_name is '接收方姓名'; + +comment on column pay_allocation_order_detail.result is '分账结果'; + +comment on column pay_allocation_order_detail.error_code is '错误代码'; + +comment on column pay_allocation_order_detail.error_msg is '错误原因'; + +comment on column pay_allocation_order_detail.finish_time is '分账完成时间'; + +comment on column pay_allocation_order_detail.creator is '创建者ID'; + +comment on column pay_allocation_order_detail.create_time is '创建时间'; + +comment on column pay_allocation_order_detail.last_modifier is '最后修者ID'; + +comment on column pay_allocation_order_detail.last_modified_time is '最后修改时间'; + +comment on column pay_allocation_order_detail.version is '乐观锁'; + +comment on column pay_allocation_order_detail.deleted is '删除标志'; + + + + +----- +create table pay_allocation_receiver +( + id bigint not null + primary key, + name varchar(255), + channel varchar(255), + receiver_type varchar(255), + receiver_account varchar(255), + receiver_name varchar(255), + relation_type varchar(255), + relation_name varchar(255), + sync boolean, + remark varchar(255), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table pay_allocation_receiver is '分账接收方'; + +comment on column pay_allocation_receiver.id is '主键'; + +comment on column pay_allocation_receiver.name is '账号别名'; + +comment on column pay_allocation_receiver.channel is '所属通道'; + +comment on column pay_allocation_receiver.receiver_type is '分账接收方类型'; + +comment on column pay_allocation_receiver.receiver_account is '接收方账号'; + +comment on column pay_allocation_receiver.receiver_name is '接收方姓名'; + +comment on column pay_allocation_receiver.relation_type is '分账关系类型'; + +comment on column pay_allocation_receiver.relation_name is '关系名称'; + +comment on column pay_allocation_receiver.sync is '是否已经同步到网关'; + +comment on column pay_allocation_receiver.remark is '备注'; + +comment on column pay_allocation_receiver.creator is '创建者ID'; + +comment on column pay_allocation_receiver.create_time is '创建时间'; + +comment on column pay_allocation_receiver.last_modifier is '最后修者ID'; + +comment on column pay_allocation_receiver.last_modified_time is '最后修改时间'; + +comment on column pay_allocation_receiver.version is '乐观锁'; + +comment on column pay_allocation_receiver.deleted is '删除标志'; + + + + +----- +create table pay_api_config +( + id bigint not null + primary key, + code varchar(255), + api varchar(255), + name varchar(255), + notice_support boolean, + enable boolean, + notice boolean, + notice_url varchar(255), + req_sign boolean, + res_sign boolean, + notice_sign boolean, + record boolean, + remark varchar(255), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table pay_api_config is '支付接口配置'; + +comment on column pay_api_config.id is '主键'; + +comment on column pay_api_config.code is '编码'; + +comment on column pay_api_config.api is '接口地址'; + +comment on column pay_api_config.name is '名称'; + +comment on column pay_api_config.notice_support is '支持回调通知'; + +comment on column pay_api_config.enable is '是否启用'; + +comment on column pay_api_config.notice is '是否开启回调通知'; + +comment on column pay_api_config.notice_url is '默认通知地址'; + +comment on column pay_api_config.req_sign is '请求参数是否签名'; + +comment on column pay_api_config.res_sign is '响应参数是否签名'; + +comment on column pay_api_config.notice_sign is '回调信息是否签名'; + +comment on column pay_api_config.record is '是否记录请求的信息'; + +comment on column pay_api_config.remark is '备注'; + +comment on column pay_api_config.creator is '创建者ID'; + +comment on column pay_api_config.create_time is '创建时间'; + +comment on column pay_api_config.last_modifier is '最后修者ID'; + +comment on column pay_api_config.last_modified_time is '最后修改时间'; + +comment on column pay_api_config.version is '乐观锁'; + +comment on column pay_api_config.deleted is '删除标志'; + + + +INSERT INTO pay_api_config (id, code, api, name, notice_support, enable, notice, notice_url, req_sign, res_sign, notice_sign, record, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (3, 'close', '/uniPay/close', '支付关闭接口', false, true, true, null, true, false, false, false, null, 0, '2024-01-03 14:25:53.000000', 0, '2024-01-03 14:25:53.000000', 0, false); +INSERT INTO pay_api_config (id, code, api, name, notice_support, enable, notice, notice_url, req_sign, res_sign, notice_sign, record, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (6, 'syncPay', '/uniPay/syncPay', '支付同步接口', false, true, true, null, true, false, false, false, null, 0, '2024-01-03 14:25:53.000000', 0, '2024-01-03 14:25:53.000000', 0, false); +INSERT INTO pay_api_config (id, code, api, name, notice_support, enable, notice, notice_url, req_sign, res_sign, notice_sign, record, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (7, 'syncRefund', '/uniPay/syncRefund', '退款同步接口', false, true, true, null, true, false, false, false, null, 0, '2024-01-03 14:25:53.000000', 0, '2024-01-03 14:25:53.000000', 0, false); +INSERT INTO pay_api_config (id, code, api, name, notice_support, enable, notice, notice_url, req_sign, res_sign, notice_sign, record, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (8, 'transfer', '/uniPay/transfer', '统一转账接口', true, true, true, null, true, false, false, false, null, 0, '2024-01-03 14:25:53.000000', 0, '2024-01-03 14:25:53.000000', 0, false); +INSERT INTO pay_api_config (id, code, api, name, notice_support, enable, notice, notice_url, req_sign, res_sign, notice_sign, record, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (9, 'allocation', '/uniPay/allocation', '统一分账接口', true, true, true, null, true, false, false, false, null, 0, '2024-01-03 14:25:53.000000', 0, '2024-01-03 14:25:53.000000', 0, false); +INSERT INTO pay_api_config (id, code, api, name, notice_support, enable, notice, notice_url, req_sign, res_sign, notice_sign, record, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (10, 'queryPayOrder', '/uniPay/queryPayOrder', '支付订单查询接口', false, true, false, null, true, false, false, false, null, 0, '2024-01-03 14:25:53.000000', 0, '2024-01-03 14:25:53.000000', 0, false); +INSERT INTO pay_api_config (id, code, api, name, notice_support, enable, notice, notice_url, req_sign, res_sign, notice_sign, record, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (11, 'queryRefundOrder', '/uniPay/queryRefundOrder', '退款订单查询接口', false, true, false, null, true, false, false, false, null, 0, '2024-01-03 14:25:53.000000', 0, '2024-01-03 14:25:53.000000', 0, false); +INSERT INTO pay_api_config (id, code, api, name, notice_support, enable, notice, notice_url, req_sign, res_sign, notice_sign, record, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (12, 'getWxAuthUrl', '/unipay/assist/getWxAuthUrl', '获取微信OAuth2授权链接', false, true, false, null, true, false, false, false, null, 0, '2024-01-03 14:25:53.000000', 0, '2024-01-03 14:25:53.000000', 0, false); +INSERT INTO pay_api_config (id, code, api, name, notice_support, enable, notice, notice_url, req_sign, res_sign, notice_sign, record, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (13, 'getWxAccessToken', '/unipay/assist/getWxAccessToken', '获取微信AccessToken', false, true, false, null, true, false, false, false, null, 0, '2024-01-03 14:25:53.000000', 0, '2024-01-03 14:25:53.000000', 0, false); +INSERT INTO pay_api_config (id, code, api, name, notice_support, enable, notice, notice_url, req_sign, res_sign, notice_sign, record, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1, 'pay', '/uniPay/pay', e'统一支付接口 ', true, true, true, 'https://doc.daxpay.cn/server/demo/callback/payObject', true, false, true, false, null, 0, '2024-01-03 14:25:53.000000', 1399985191002447872, '2024-05-31 20:56:40.077000', 1, false); +INSERT INTO pay_api_config (id, code, api, name, notice_support, enable, notice, notice_url, req_sign, res_sign, notice_sign, record, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (4, 'refund', '/uniPay/refund', '统一退款接口', true, true, true, 'https://doc.daxpay.cn/server/demo/callback/refundObject', true, false, true, false, null, 0, '2024-01-03 14:25:53.000000', 1399985191002447872, '2024-05-31 20:56:54.917000', 1, false); + +----- +create table pay_callback_record +( + id bigint not null + primary key, + trade_no varchar(255), + out_trade_no varchar(255), + channel varchar(255), + callback_type varchar(255), + notify_info text, + status varchar(255), + repair_order_no varchar(255), + error_code varchar(255), + creator bigint, + create_time timestamp(6), + error_msg varchar(255) +); + +comment on table pay_callback_record is '网关回调通知'; + +comment on column pay_callback_record.id is '主键'; + +comment on column pay_callback_record.trade_no is '本地交易号'; + +comment on column pay_callback_record.out_trade_no is '通道交易号'; + +comment on column pay_callback_record.channel is '支付通道'; + +comment on column pay_callback_record.callback_type is '回调类型'; + +comment on column pay_callback_record.notify_info is '通知消息'; + +comment on column pay_callback_record.status is '回调处理状态'; + +comment on column pay_callback_record.error_code is '错误码'; + +comment on column pay_callback_record.creator is '创建者ID'; + +comment on column pay_callback_record.create_time is '创建时间'; + +comment on column pay_callback_record.error_msg is '提示信息'; + + + + +----- +create table pay_channel_config +( + id bigint not null + primary key, + code varchar(255), + name varchar(255), + icon_id bigint, + bg_color varchar(255), + enable boolean, + remark varchar(255), + creator bigint, + create_time timestamp(6), + last_modifier bigint, + last_modified_time timestamp(6), + version integer not null, + deleted boolean not null +); + +comment on table pay_channel_config is '支付通道配置'; + +comment on column pay_channel_config.id is '主键'; + +comment on column pay_channel_config.code is '代码'; + +comment on column pay_channel_config.name is '名称'; + +comment on column pay_channel_config.icon_id is 'ICON图片'; + +comment on column pay_channel_config.bg_color is '卡牌背景色'; + +comment on column pay_channel_config.enable is '是否启用'; + +comment on column pay_channel_config.remark is '备注'; + +comment on column pay_channel_config.creator is '创建者ID'; + +comment on column pay_channel_config.create_time is '创建时间'; + +comment on column pay_channel_config.last_modifier is '最后修者ID'; + +comment on column pay_channel_config.last_modified_time is '最后修改时间'; + +comment on column pay_channel_config.version is '乐观锁'; + +comment on column pay_channel_config.deleted is '删除标志'; + + + +INSERT INTO pay_channel_config (id, code, name, icon_id, bg_color, enable, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (2, 'wechat_pay', '微信支付', null, null, false, '', 0, '2024-01-08 16:47:07.000000', 1399985191002447872, '2024-02-13 15:38:24.000000', 7, false); +INSERT INTO pay_channel_config (id, code, name, icon_id, bg_color, enable, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (3, 'union_pay', '云闪付', null, null, false, null, 0, '2024-01-08 16:47:07.000000', 1399985191002447872, '2024-03-10 15:04:36.000000', 2, false); +INSERT INTO pay_channel_config (id, code, name, icon_id, bg_color, enable, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (5, 'wallet_pay', '钱包支付', null, null, false, null, 0, '2024-01-08 16:47:07.000000', 0, '2024-01-08 16:47:11.000000', 0, false); +INSERT INTO pay_channel_config (id, code, name, icon_id, bg_color, enable, remark, creator, create_time, last_modifier, last_modified_time, version, deleted) VALUES (1, 'ali_pay', '支付宝', null, null, true, '', 0, '2024-01-08 16:47:07.000000', 1399985191002447872, '2024-05-31 20:56:00.196000', 13, false); + +----- +create table pay_client_notice_record +( + id bigint not null + primary key, + task_id bigint, + req_count integer, + success boolean, + send_type varchar(255), + error_msg varchar(255), + creator bigint, + create_time timestamp(6), + error_code varchar(255) +); + +comment on table pay_client_notice_record is '消息通知任务记录'; + +comment on column pay_client_notice_record.id is '主键'; + +comment on column pay_client_notice_record.task_id is '任务ID'; + +comment on column pay_client_notice_record.req_count is '请求次数'; + +comment on column pay_client_notice_record.success is '发送是否成功'; + +comment on column pay_client_notice_record.send_type is '发送类型'; + +comment on column pay_client_notice_record.error_msg is '错误信息'; + +comment on column pay_client_notice_record.creator is '创建者ID'; + +comment on column pay_client_notice_record.create_time is '创建时间'; + +comment on column pay_client_notice_record.error_code is '错误编码'; + + + +INSERT INTO pay_client_notice_record (id, task_id, req_count, success, send_type, error_msg, creator, create_time, error_code) VALUES (1796526918107570176, 1796526917679751168, 1, false, 'auto', e' + + + + + + + + + implements Serializable { private static final long serialVersionUID = -3041700282408360384L; diff --git a/bootx-platform/bootx-common-core/src/main/java/cn/bootx/platform/common/core/rest/dto/KeyValue.java b/bootx-platform/bootx-common-core/src/main/java/cn/bootx/platform/common/core/rest/dto/KeyValue.java index e4b972387..756ba0c0a 100644 --- a/bootx-platform/bootx-common-core/src/main/java/cn/bootx/platform/common/core/rest/dto/KeyValue.java +++ b/bootx-platform/bootx-common-core/src/main/java/cn/bootx/platform/common/core/rest/dto/KeyValue.java @@ -16,7 +16,7 @@ @Setter @NoArgsConstructor @AllArgsConstructor -@ToString +@ToString(callSuper = true) @Accessors(chain = true) @Schema(title = "kv键值对象") public class KeyValue implements Serializable { diff --git a/bootx-platform/bootx-services/service-iam/src/main/java/cn/bootx/platform/iam/core/permission/entity/PermMenu.java b/bootx-platform/bootx-services/service-iam/src/main/java/cn/bootx/platform/iam/core/permission/entity/PermMenu.java index 4b7b135ec..16f781077 100644 --- a/bootx-platform/bootx-services/service-iam/src/main/java/cn/bootx/platform/iam/core/permission/entity/PermMenu.java +++ b/bootx-platform/bootx-services/service-iam/src/main/java/cn/bootx/platform/iam/core/permission/entity/PermMenu.java @@ -6,7 +6,6 @@ import cn.bootx.platform.iam.core.permission.convert.PermConvert; import cn.bootx.platform.iam.dto.permission.PermMenuDto; import cn.bootx.platform.iam.param.permission.PermMenuParam; -import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; import lombok.EqualsAndHashCode; @@ -25,7 +24,6 @@ public class PermMenu extends MpBaseEntity implements EntityBaseFunction { /** 父id */ -// @TableField(updateStrategy = NEVER) private Long parentId; /** 关联终端code */ @@ -86,9 +84,8 @@ public class PermMenu extends MpBaseEntity implements EntityBaseFunction children; diff --git a/bootx-platform/pom.xml b/bootx-platform/pom.xml index 1494c4333..1eac75949 100644 --- a/bootx-platform/pom.xml +++ b/bootx-platform/pom.xml @@ -86,7 +86,7 @@ 2.2.5 2.7.0 2.2.0 - 1.5.4 + 1.5.5 diff --git a/daxpay-single-demo/pom.xml b/daxpay-single-demo/pom.xml index d4864550b..7bd842814 100644 --- a/daxpay-single-demo/pom.xml +++ b/daxpay-single-demo/pom.xml @@ -21,7 +21,7 @@ 1.3.6.2 - 2.0.6 + 2.0.7 diff --git a/daxpay-single-demo/src/main/java/cn/daxpay/single/demo/controller/ClientNoticeReceiveController.java b/daxpay-single-demo/src/main/java/cn/daxpay/single/demo/controller/ClientNoticeReceiveController.java index 83de39c06..bea5dee73 100644 --- a/daxpay-single-demo/src/main/java/cn/daxpay/single/demo/controller/ClientNoticeReceiveController.java +++ b/daxpay-single-demo/src/main/java/cn/daxpay/single/demo/controller/ClientNoticeReceiveController.java @@ -1,8 +1,12 @@ package cn.daxpay.single.demo.controller; import cn.bootx.platform.common.core.annotation.IgnoreAuth; +import cn.daxpay.single.demo.configuration.DaxPayDemoProperties; +import cn.daxpay.single.sdk.model.notice.AllocNoticeModel; import cn.daxpay.single.sdk.model.notice.PayNoticeModel; import cn.daxpay.single.sdk.model.notice.RefundNoticeModel; +import cn.daxpay.single.sdk.util.PaySignUtil; +import cn.hutool.core.bean.BeanUtil; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.RequiredArgsConstructor; @@ -26,11 +30,15 @@ @RequestMapping("/demo/callback") @RequiredArgsConstructor public class ClientNoticeReceiveController { + private final DaxPayDemoProperties daxPayDemoProperties; @Operation(summary = "支付消息(map接收)") @PostMapping("/pay") public String pay(@RequestBody Map map){ log.info("接收到支付回调消息: {}",map); + // 转换为对象 + PayNoticeModel bean = BeanUtil.toBean(map, PayNoticeModel.class); + log.info("验签结果: {}", PaySignUtil.hmacSha256Sign(bean, daxPayDemoProperties.getSignSecret())); return "SUCCESS"; } @@ -39,6 +47,7 @@ public String pay(@RequestBody Map map){ @PostMapping("/payObject") public String pay(@RequestBody PayNoticeModel model){ log.info("接收到支付回调消息: {}",model); + log.info("验签结果: {}", PaySignUtil.verifyHmacSha256Sign(model, daxPayDemoProperties.getSignSecret(),model.getSign())); return "SUCCESS"; } @@ -46,13 +55,35 @@ public String pay(@RequestBody PayNoticeModel model){ @PostMapping("/refund") public String refund(@RequestBody Map map) { log.info("接收到退款回调消息: {}",map); + // 转换为对象 + RefundNoticeModel model = BeanUtil.toBean(map, RefundNoticeModel.class); + log.info("验签结果: {}", PaySignUtil.hmacSha256Sign(model, daxPayDemoProperties.getSignSecret())); return "SUCCESS"; } @Operation(summary = "退款消息(对象)") @PostMapping("/refundObject") - public String refund(@RequestBody RefundNoticeModel map) { - log.info("接收到退款回调消息: {}",map); + public String refund(@RequestBody RefundNoticeModel model) { + log.info("接收到退款回调消息: {}",model); + log.info("验签结果: {}", PaySignUtil.verifyHmacSha256Sign(model, daxPayDemoProperties.getSignSecret(),model.getSign())); + return "SUCCESS"; + } + + @Operation(summary = "分账消息") + @PostMapping("/allocation") + public String allocation(@RequestBody Map map) { + log.info("接收到退款分账消息: {}",map); + // 转换为对象 + AllocNoticeModel model = BeanUtil.toBean(map, AllocNoticeModel.class); + log.info("验签结果: {}", PaySignUtil.hmacSha256Sign(model, daxPayDemoProperties.getSignSecret())); + return "SUCCESS"; + } + + @Operation(summary = "分账消息(对象)") + @PostMapping("/allocationObject") + public String allocation(@RequestBody AllocNoticeModel model) { + log.info("接收到分账回调消息: {}",model); + log.info("验签结果: {}", PaySignUtil.verifyHmacSha256Sign(model, daxPayDemoProperties.getSignSecret(),model.getSign())); return "SUCCESS"; } diff --git a/daxpay-single-demo/src/main/java/cn/daxpay/single/demo/service/AggregateService.java b/daxpay-single-demo/src/main/java/cn/daxpay/single/demo/service/AggregateService.java index c5c7be452..60a08de93 100644 --- a/daxpay-single-demo/src/main/java/cn/daxpay/single/demo/service/AggregateService.java +++ b/daxpay-single-demo/src/main/java/cn/daxpay/single/demo/service/AggregateService.java @@ -144,28 +144,28 @@ public String wxAuthCallback(String aggregateCode, String authCode) { public WxJsapiSignResult wxJsapiPrePay(String aggregateCode, String openId) { AggregatePayInfo aggregatePayInfo = getInfo(aggregateCode); // 拼装支付发起参数 - PayParam simplePayParam = new PayParam(); - simplePayParam.setBizOrderNo(aggregatePayInfo.getBizOrderNo()); - simplePayParam.setTitle(aggregatePayInfo.getTitle()); - simplePayParam.setAmount(aggregatePayInfo.getAmount()); - simplePayParam.setChannel(PayChannelEnum.WECHAT.getCode()); - simplePayParam.setMethod(PayMethodEnum.JSAPI.getCode()); + PayParam payParam = new PayParam(); + payParam.setBizOrderNo(aggregatePayInfo.getBizOrderNo()); + payParam.setTitle(aggregatePayInfo.getTitle()); + payParam.setAmount(aggregatePayInfo.getAmount()); + payParam.setChannel(PayChannelEnum.WECHAT.getCode()); + payParam.setMethod(PayMethodEnum.JSAPI.getCode()); // 设置微信专属请求参数 WeChatPayParam weChatPayParam = new WeChatPayParam(); weChatPayParam.setOpenId(openId); - simplePayParam.setExtraParam(weChatPayParam); + payParam.setExtraParam(weChatPayParam); String ip = Optional.ofNullable(WebServletUtil.getRequest()) .map(ServletUtil::getClientIP) .orElse("127.0.0.1"); - simplePayParam.setClientIp(ip); + payParam.setClientIp(ip); // 异步回调地址 - simplePayParam.setNotifyUrl(StrUtil.format("{}/result/success", daxPayDemoProperties.getFrontH5Url())); + payParam.setNotifyUrl(StrUtil.format("{}/result/success", daxPayDemoProperties.getFrontH5Url())); // 同步回调地址 - simplePayParam.setReturnUrl(StrUtil.format("{}/result/success", daxPayDemoProperties.getFrontH5Url())); + payParam.setReturnUrl(StrUtil.format("{}/result/success", daxPayDemoProperties.getFrontH5Url())); - DaxPayResult execute = DaxPayKit.execute(simplePayParam); + DaxPayResult execute = DaxPayKit.execute(payParam); // 判断是否支付成功 if (execute.getCode() != 0){ throw new BizException(execute.getMsg()); @@ -180,6 +180,9 @@ public PayOrderResult aliH5Pay(String code) { AggregatePayInfo aggregatePayInfo = getInfo(code); PayParam payParam = new PayParam(); payParam.setBizOrderNo(aggregatePayInfo.getBizOrderNo()); + // 如果开启分账默认为自动分账 + payParam.setAutoAllocation(aggregatePayInfo.getAllocation()); + payParam.setAllocation(aggregatePayInfo.getAllocation()); payParam.setTitle(aggregatePayInfo.getTitle()); payParam.setAmount(aggregatePayInfo.getAmount()); payParam.setChannel(PayChannelEnum.ALI.getCode()); @@ -218,23 +221,25 @@ public PayOrderResult barPay(AggregateSimplePayParam param){ .multiply(BigDecimal.valueOf(100)) .intValue(); - PayParam simplePayParam = new PayParam(); - simplePayParam.setBizOrderNo(param.getBizOrderNo()); - simplePayParam.setAllocation(param.getAllocation()); - simplePayParam.setTitle(param.getTitle()); - simplePayParam.setAmount(amount); - simplePayParam.setChannel(payChannel.getCode()); - simplePayParam.setMethod(PayMethodEnum.BARCODE.getCode()); + PayParam payParam = new PayParam(); + payParam.setBizOrderNo(param.getBizOrderNo()); + payParam.setAllocation(param.getAllocation()); + // 如果开启分账默认为自动分账 + payParam.setAutoAllocation(param.getAllocation()); + payParam.setTitle(param.getTitle()); + payParam.setAmount(amount); + payParam.setChannel(payChannel.getCode()); + payParam.setMethod(PayMethodEnum.BARCODE.getCode()); BarCodePayParam barCodePayParam = new BarCodePayParam(); barCodePayParam.setAuthCode(param.getAuthCode()); - simplePayParam.setExtraParam(barCodePayParam); + payParam.setExtraParam(barCodePayParam); String ip = Optional.ofNullable(WebServletUtil.getRequest()) .map(ServletUtil::getClientIP) .orElse("127.0.0.1"); - simplePayParam.setClientIp(ip); + payParam.setClientIp(ip); - DaxPayResult execute = DaxPayKit.execute(simplePayParam); + DaxPayResult execute = DaxPayKit.execute(payParam); // 判断是否支付成功 if (execute.getCode() != 0){ diff --git a/daxpay-single-demo/src/main/java/cn/daxpay/single/demo/service/CashierService.java b/daxpay-single-demo/src/main/java/cn/daxpay/single/demo/service/CashierService.java index 241b709db..db8741b47 100644 --- a/daxpay-single-demo/src/main/java/cn/daxpay/single/demo/service/CashierService.java +++ b/daxpay-single-demo/src/main/java/cn/daxpay/single/demo/service/CashierService.java @@ -53,6 +53,8 @@ public PayOrderResult simplePayCashier(CashierSimplePayParam param){ PayParam payParam = new PayParam(); payParam.setBizOrderNo(param.getBizOrderNo()); payParam.setAllocation(param.getAllocation()); + // 如果为分账, 则设置为默认分账 + payParam.setAutoAllocation(param.getAllocation()); int amount = param.getAmount() .multiply(BigDecimal.valueOf(100)) .intValue(); @@ -118,15 +120,16 @@ public boolean queryPayOrderSuccess(String bizOrderNoeNo){ QueryPayParam queryPayOrderParam = new QueryPayParam(); queryPayOrderParam.setBizOrderNoeNo(bizOrderNoeNo); DaxPayResult execute = DaxPayKit.execute(queryPayOrderParam); - // 未查询到订单 - if (execute.getCode() == 10010){ - return false; - } if (execute.getCode() != 0){ throw new BizException(execute.getMsg()); } PayOrderModel data = execute.getData(); + + // todo 暂时先这样处理聚合支付的查询,后续需要替换为异常码判断响应状态 + if (Objects.equals(data.getMsg(),"支付订单不存在")){ + return false; + } String status = data.getStatus(); if (Objects.equals(status, PayStatusEnum.PROGRESS.getCode())){ return false; diff --git a/daxpay-single-sdk/pom.xml b/daxpay-single-sdk/pom.xml index 5f96d421a..1a3151403 100644 --- a/daxpay-single-sdk/pom.xml +++ b/daxpay-single-sdk/pom.xml @@ -6,7 +6,7 @@ cn.daxpay.single daxpay-single-sdk - 2.0.6 + 2.0.7 jar @@ -45,7 +45,7 @@ 1.8 UTF-8 1.2.7 - 5.8.25 + 5.8.27 1.18.30 4.13.2 diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/code/AllocDetailResultEnum.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/code/AllocDetailResultEnum.java new file mode 100644 index 000000000..7b0bca056 --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/code/AllocDetailResultEnum.java @@ -0,0 +1,24 @@ +package cn.daxpay.single.sdk.code; + +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * 分账明细处理结果 + * @author xxm + * @since 2024/4/16 + */ +@Getter +@AllArgsConstructor +public enum AllocDetailResultEnum { + + PENDING("pending", "待分账"), + SUCCESS("success", "分账成功"), + FAIL("fail", "分账失败"), + /** 金额为0时不进行分账 */ + IGNORE("ignore", "忽略分账"), + ; + + private final String code; + private final String name; +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/code/AllocOrderResultEnum.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/code/AllocOrderResultEnum.java new file mode 100644 index 000000000..3fec715af --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/code/AllocOrderResultEnum.java @@ -0,0 +1,23 @@ +package cn.daxpay.single.sdk.code; + +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * 分账订单处理结果 + * @author xxm + * @since 2024/4/16 + */ +@Getter +@AllArgsConstructor +public enum AllocOrderResultEnum { + + ALL_PENDING("all_pending", "全部处理中"), + ALL_SUCCESS("all_success", "全部成功"), + PART_SUCCESS("part_success", "部分成功"), + ALL_FAILED("all_failed", "全部失败"), + ; + + private final String code; + private final String name; +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/code/AllocReceiverTypeEnum.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/code/AllocReceiverTypeEnum.java new file mode 100644 index 000000000..713345268 --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/code/AllocReceiverTypeEnum.java @@ -0,0 +1,50 @@ +package cn.daxpay.single.sdk.code; + +import lombok.AllArgsConstructor; +import lombok.Getter; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +/** + * 分账接收方类型 + * @author xxm + * @since 2024/4/1 + */ +@Getter +@AllArgsConstructor +public enum AllocReceiverTypeEnum { + /** 个人 */ + WX_PERSONAL("wx_personal", "个人"), + /** 商户 */ + WX_MERCHANT("wx_merchant", "商户"), + + /** userId 以2088开头的纯16位数字 */ + ALI_USER_ID("ali_user_id", "用户ID"), + /** openId */ + ALI_OPEN_ID("ali_open_id", "openId"), + /** 账号 */ + ALI_LOGIN_NAME("ali_login_name", "账号"); + + /** 编码 */ + private final String code; + /** 名称 */ + private final String name; + + /** + * 根据编码查找 + */ + public static AllocReceiverTypeEnum findByCode(String code) { + return Arrays.stream(AllocReceiverTypeEnum.values()) + .filter(e -> e.getCode().equals(code)) + .findFirst() + .orElseThrow(() -> new IllegalArgumentException("未找到对应的分账接收方类型")); + } + + /** 微信支持类型 */ + public static final List WECHAT_LIST = Collections.unmodifiableList(Arrays.asList(WX_PERSONAL, WX_MERCHANT)); + /** 支付宝支持类型 */ + public static final List ALI_LIST = Collections.unmodifiableList(Arrays.asList(ALI_OPEN_ID, ALI_USER_ID, ALI_LOGIN_NAME)); + +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/code/AllocRelationTypeEnum.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/code/AllocRelationTypeEnum.java new file mode 100644 index 000000000..546d01df7 --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/code/AllocRelationTypeEnum.java @@ -0,0 +1,28 @@ +package cn.daxpay.single.sdk.code; + +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * 分账关系类型 + * @author xxm + * @since 2024/3/27 + */ +@Getter +@AllArgsConstructor +public enum AllocRelationTypeEnum { + SERVICE_PROVIDER("SERVICE_PROVIDER","服务商"), + STORE("STORE","门店"), + STAFF("STAFF","员工"), + STORE_OWNER("STORE_OWNER","店主"), + PARTNER("PARTNER","合作伙伴"), + HEADQUARTER("HEADQUARTER","总部"), + BRAND("BRAND","品牌方"), + DISTRIBUTOR("DISTRIBUTOR","分销商"), + USER("USER","用户"), + SUPPLIER("SUPPLIER","供应商"), + CUSTOM("CUSTOM","自定义"); + + private final String code; + private final String name; +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/code/PayOrderAllocStatusEnum.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/code/PayOrderAllocStatusEnum.java new file mode 100644 index 000000000..52d252b0b --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/code/PayOrderAllocStatusEnum.java @@ -0,0 +1,20 @@ +package cn.daxpay.single.sdk.code; + +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * 支付订单分账状态 + * @author xxm + * @since 2024/4/16 + */ +@Getter +@AllArgsConstructor +public enum PayOrderAllocStatusEnum { + WAITING("waiting", "待分账"), + ALLOCATION("allocation", "已分账"), + ; + + final String code; + final String name; +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocOrderDetailModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocOrderDetailModel.java new file mode 100644 index 000000000..67a7ade6f --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocOrderDetailModel.java @@ -0,0 +1,54 @@ +package cn.daxpay.single.sdk.model.allocation; + +import cn.daxpay.single.sdk.code.AllocDetailResultEnum; +import cn.daxpay.single.sdk.code.AllocReceiverTypeEnum; +import lombok.Data; +import lombok.experimental.Accessors; + +import java.time.LocalDateTime; + +/** + * 分账订单明细 + * @author xxm + * @since 2024/5/21 + */ +@Data +@Accessors(chain = true) +public class AllocOrderDetailModel { + + /** 分账接收方编号 */ + private String receiverNo; + + /** 分账金额 */ + private Integer amount; + + /** 分账比例 万分之多少 */ + private Integer rate; + + /** + * 分账接收方类型 + * @see AllocReceiverTypeEnum + */ + private String receiverType; + + /** 接收方账号 */ + private String receiverAccount; + + /** 接收方姓名 */ + private String receiverName; + + /** + * 分账结果 + * @see AllocDetailResultEnum + */ + private String result; + + /** 错误代码 */ + private String errorCode; + + /** 错误原因 */ + private String errorMsg; + + /** 分账完成时间 */ + private LocalDateTime finishTime; +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocOrderModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocOrderModel.java new file mode 100644 index 000000000..36b0e4ba1 --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocOrderModel.java @@ -0,0 +1,81 @@ +package cn.daxpay.single.sdk.model.allocation; + +import cn.daxpay.single.sdk.code.AllocOrderResultEnum; +import cn.daxpay.single.sdk.code.AllocOrderStatusEnum; +import cn.daxpay.single.sdk.code.PayChannelEnum; +import cn.daxpay.single.sdk.net.DaxPayResponseModel; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.time.LocalDateTime; +import java.util.List; + +/** + * 分账订单返回结果 + * @author xxm + * @since 2024/5/21 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@Accessors(chain = true) +public class AllocOrderModel extends DaxPayResponseModel { + + /** 分账单号 */ + private String allocationNo; + + /** 商户分账单号 */ + private String bizAllocationNo; + + /** 通道分账号 */ + private String outAllocationNo; + + /** 支付订单号 */ + private String orderNo; + + /** 商户支付订单号 */ + private String bizOrderNo; + + /** 通道支付订单号 */ + private String outOrderNo; + + /** 支付订单标题 */ + private String title; + + /** + * 所属通道 + * @see PayChannelEnum + */ + private String channel; + + /** 总分账金额 */ + private Integer amount; + + /** 分账描述 */ + private String description; + + /** + * 状态 + * @see AllocOrderStatusEnum + */ + private String status; + + /** + * 处理结果 + * @see AllocOrderResultEnum + */ + private String result; + + /** 错误码 */ + private String errorCode; + + /** 错误信息 */ + private String errorMsg; + + /** 分账订单完成时间 */ + private LocalDateTime finishTime; + + /** 分账明细 */ + private List details; + +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocReceiverAddModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocReceiverAddModel.java new file mode 100644 index 000000000..fa6f05c73 --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocReceiverAddModel.java @@ -0,0 +1,16 @@ +package cn.daxpay.single.sdk.model.allocation; + +import cn.daxpay.single.sdk.net.DaxPayResponseModel; +import lombok.*; +import lombok.experimental.Accessors; + +/** + * 分账接收方添加返回结果 + * @author xxm + * @since 2024/5/21 + */ +@Getter +@Setter +@ToString(callSuper = true) +public class AllocReceiverAddModel extends DaxPayResponseModel { +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocReceiverModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocReceiverModel.java new file mode 100644 index 000000000..39a55e5af --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocReceiverModel.java @@ -0,0 +1,50 @@ +package cn.daxpay.single.sdk.model.allocation; + +import cn.daxpay.single.sdk.code.AllocReceiverTypeEnum; +import cn.daxpay.single.sdk.code.AllocRelationTypeEnum; +import cn.daxpay.single.sdk.code.PayChannelEnum; +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; + +/** + * 分账接收方 + * @author xxm + * @since 2024/5/21 + */ +@Getter +@Setter +@ToString(callSuper = true) +public class AllocReceiverModel { + + /** 分账接收方编号, 需要保证唯一 */ + private String receiverNo; + + /** + * 所属通道 + * @see PayChannelEnum + */ + private String channel; + + /** + * 分账接收方类型 + * @see AllocReceiverTypeEnum + */ + private String receiverType; + + /** 接收方账号 */ + private String receiverAccount; + + /** 接收方姓名 */ + private String receiverName; + + /** + * 分账关系类型 + * @see AllocRelationTypeEnum + */ + private String relationType; + + /** 关系名称 */ + private String relationName; + +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocReceiverRemoveModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocReceiverRemoveModel.java new file mode 100644 index 000000000..0093e6b78 --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocReceiverRemoveModel.java @@ -0,0 +1,17 @@ +package cn.daxpay.single.sdk.model.allocation; + +import cn.daxpay.single.sdk.net.DaxPayResponseModel; +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; + +/** + * 分账接收方删除返回结果 + * @author xxm + * @since 2024/5/21 + */ +@Getter +@Setter +@ToString(callSuper = true) +public class AllocReceiverRemoveModel extends DaxPayResponseModel { +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocReceiversModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocReceiversModel.java new file mode 100644 index 000000000..d19cd5e61 --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocReceiversModel.java @@ -0,0 +1,23 @@ +package cn.daxpay.single.sdk.model.allocation; + +import cn.daxpay.single.sdk.net.DaxPayResponseModel; +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; + +import java.util.List; + +/** + * 分账接收方返回结果 + * @author xxm + * @since 2024/5/21 + */ +@Getter +@Setter +@ToString(callSuper = true) +public class AllocReceiversModel extends DaxPayResponseModel { + + /** 接收方列表 */ + private List receivers; + +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocationModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocationModel.java index edbbd2c07..96ffbe808 100644 --- a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocationModel.java +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/allocation/AllocationModel.java @@ -1,5 +1,6 @@ package cn.daxpay.single.sdk.model.allocation; +import cn.daxpay.single.sdk.code.AllocOrderStatusEnum; import cn.daxpay.single.sdk.net.DaxPayResponseModel; import lombok.Getter; import lombok.Setter; @@ -12,6 +13,18 @@ */ @Getter @Setter -@ToString +@ToString(callSuper = true) public class AllocationModel extends DaxPayResponseModel { + + /** 分账订单号 */ + private String allocationNo; + + /** 分账订单号 */ + private String bizAllocationNo; + + /** + * 分账状态 + * @see AllocOrderStatusEnum + */ + private String status; } diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/assist/WxAccessTokenModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/assist/WxAccessTokenModel.java index 17a320214..bc4d13848 100644 --- a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/assist/WxAccessTokenModel.java +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/assist/WxAccessTokenModel.java @@ -12,7 +12,7 @@ */ @Getter @Setter -@ToString +@ToString(callSuper = true) public class WxAccessTokenModel extends DaxPayResponseModel { /** 微信AccessToken */ diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/assist/WxAuthUrlModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/assist/WxAuthUrlModel.java index e27a496c1..f8e673c7d 100644 --- a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/assist/WxAuthUrlModel.java +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/assist/WxAuthUrlModel.java @@ -12,7 +12,7 @@ */ @Getter @Setter -@ToString +@ToString(callSuper = true) public class WxAuthUrlModel extends DaxPayResponseModel { /** 微信oauth2授权的url连接 */ diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/notice/AllocDetailNoticeModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/notice/AllocDetailNoticeModel.java new file mode 100644 index 000000000..3816e5587 --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/notice/AllocDetailNoticeModel.java @@ -0,0 +1,51 @@ +package cn.daxpay.single.sdk.model.notice; + +import cn.daxpay.single.sdk.code.AllocDetailResultEnum; +import cn.daxpay.single.sdk.code.AllocReceiverTypeEnum; +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; + +/** + * 分账明细 + * @author xxm + * @since 2024/5/30 + */ +@Getter +@Setter +@ToString(callSuper = true) +public class AllocDetailNoticeModel { + + /** 分账接收方编号 */ + private String receiverNo; + + /** 分账金额 */ + private Integer amount; + + /** + * 分账接收方类型 + * @see AllocReceiverTypeEnum + */ + private String receiverType; + + /** 接收方账号 */ + private String receiverAccount; + + /** 接收方姓名 */ + private String receiverName; + + /** + * 分账结果 + * @see AllocDetailResultEnum + */ + private String result; + + /** 错误代码 */ + private String errorCode; + + /** 错误原因 */ + private String errorMsg; + + /** 分账完成时间 */ + private Long finishTime; +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/notice/AllocNoticeModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/notice/AllocNoticeModel.java new file mode 100644 index 000000000..0f0492a4a --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/notice/AllocNoticeModel.java @@ -0,0 +1,99 @@ +package cn.daxpay.single.sdk.model.notice; + +import cn.daxpay.single.sdk.code.AllocOrderResultEnum; +import cn.daxpay.single.sdk.code.AllocOrderStatusEnum; +import cn.daxpay.single.sdk.code.PayChannelEnum; +import cn.daxpay.single.sdk.net.DaxPayResponseModel; +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; + +import java.util.List; + +/** + * 分账异步通知类 + * @author xxm + * @since 2024/5/21 + */ +@Getter +@Setter +@ToString(callSuper = true) +public class AllocNoticeModel extends DaxPayResponseModel { + /** + * 分账单号 + */ + private String allocationNo; + + /** + * 商户分账单号 + */ + private String bizAllocationNo; + + /** + * 通道分账号 + */ + private String outAllocationNo; + + /** + * 支付订单号 + */ + private String orderNo; + + /** + * 商户支付订单号 + */ + private String bizOrderNo; + + + /** + * 支付订单标题 + */ + private String title; + + /** + * 所属通道 + * @see PayChannelEnum + */ + private String channel; + + /** + * 总分账金额 + */ + private Integer amount; + + /** + * 分账描述 + */ + private String description; + + /** + * 状态 + * @see AllocOrderStatusEnum + */ + private String status; + + /** + * 处理结果 + * @see AllocOrderResultEnum + */ + private String result; + + /** 分账订单完成时间 */ + private Long finishTime; + + /** 商户扩展参数 */ + private String attach; + + /** 分账明细 */ + private List details; + + /** + * 错误码 + */ + private String errorCode; + + /** + * 错误信息 + */ + private String errorMsg; +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/notice/PayNoticeModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/notice/PayNoticeModel.java index 20c5a1916..e17653e05 100644 --- a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/notice/PayNoticeModel.java +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/notice/PayNoticeModel.java @@ -1,7 +1,9 @@ package cn.daxpay.single.sdk.model.notice; import cn.daxpay.single.sdk.code.PayChannelEnum; +import cn.daxpay.single.sdk.code.PayOrderAllocStatusEnum; import cn.daxpay.single.sdk.code.PayStatusEnum; +import cn.daxpay.single.sdk.net.DaxPayResponseModel; import lombok.Getter; import lombok.Setter; import lombok.ToString; @@ -13,8 +15,8 @@ */ @Getter @Setter -@ToString -public class PayNoticeModel { +@ToString(callSuper = true) +public class PayNoticeModel extends DaxPayResponseModel { /** 订单号 */ private String orderNo; @@ -22,9 +24,20 @@ public class PayNoticeModel { /** 商户订单号 */ private String bizOrderNo; + /** 通道系统交易号 */ + private String outOrderNo; + /** 标题 */ private String title; + /** 描述 */ + private String description; + + /** 是否支持分账 */ + private Boolean allocation; + + /** 是否开启自动分账,*/ + private Boolean autoAllocation; /** * 支付通道 * @see PayChannelEnum @@ -43,9 +56,18 @@ public class PayNoticeModel { */ private String status; + /** + * 分账状态 + * @see PayOrderAllocStatusEnum + */ + private String allocationStatus; + /** 支付成功时间 */ private Long payTime; + /** 过期时间 */ + private Long expiredTime; + /** 支付关闭时间 */ private Long closeTime; @@ -55,7 +77,10 @@ public class PayNoticeModel { /** 商户扩展参数,回调时会原样返回 */ private String attach; - /** 签名 */ - private String sign; + /** 错误码 */ + private String errorCode; + + /** 错误原因 */ + private String errorMsg; } diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/notice/RefundNoticeModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/notice/RefundNoticeModel.java index cf9a864af..963bf8e63 100644 --- a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/notice/RefundNoticeModel.java +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/notice/RefundNoticeModel.java @@ -1,7 +1,7 @@ package cn.daxpay.single.sdk.model.notice; import cn.daxpay.single.sdk.code.PayChannelEnum; -import cn.daxpay.single.sdk.code.RefundStatusEnum; +import cn.daxpay.single.sdk.net.DaxPayResponseModel; import lombok.Getter; import lombok.Setter; import lombok.ToString; @@ -13,8 +13,20 @@ */ @Getter @Setter -@ToString -public class RefundNoticeModel { +@ToString(callSuper = true) +public class RefundNoticeModel extends DaxPayResponseModel { + + /** 支付订单号 */ + private String orderNo; + + /** 商户支付订单号 */ + private String bizOrderNo; + + /** 通道支付订单号 */ + private String outOrderNo; + + /** 支付标题 */ + private String title; /** 退款号 */ private String refundNo; @@ -22,20 +34,23 @@ public class RefundNoticeModel { /** 商户退款号 */ private String bizRefundNo; + /** 通道退款交易号 */ + private String outRefundNo; + /** - * 支付通道 + * 退款通道 * @see PayChannelEnum */ private String channel; + /** 订单金额 */ + private Integer orderAmount; + /** 退款金额 */ private Integer amount; - /** - * 退款状态 - * @see RefundStatusEnum - */ - private String status; + /** 退款原因 */ + private String reason; /** 退款成功时间 */ private Long finishTime; @@ -46,6 +61,9 @@ public class RefundNoticeModel { /** 商户扩展参数,回调时会原样返回 */ private String attach; - /** 签名 */ - private String sign; + /** 错误码 */ + private String errorCode; + + /** 错误原因 */ + private String errorMsg; } diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/pay/PayCloseModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/pay/PayCloseModel.java index c1da0bddf..36bb52f82 100644 --- a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/pay/PayCloseModel.java +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/pay/PayCloseModel.java @@ -12,6 +12,6 @@ */ @Getter @Setter -@ToString +@ToString(callSuper = true) public class PayCloseModel extends DaxPayResponseModel { } diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/pay/PayModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/pay/PayModel.java index 1d9fa7aaa..fc1f75689 100644 --- a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/pay/PayModel.java +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/pay/PayModel.java @@ -12,7 +12,7 @@ */ @Getter @Setter -@ToString +@ToString(callSuper = true) public class PayModel extends DaxPayResponseModel { /** 商户订单号 */ diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/pay/PayOrderModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/pay/PayOrderModel.java index ad32ccf00..decf9c4ac 100644 --- a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/pay/PayOrderModel.java +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/pay/PayOrderModel.java @@ -1,6 +1,7 @@ package cn.daxpay.single.sdk.model.pay; import cn.daxpay.single.sdk.code.PayChannelEnum; +import cn.daxpay.single.sdk.code.PayOrderAllocStatusEnum; import cn.daxpay.single.sdk.code.PayStatusEnum; import cn.daxpay.single.sdk.net.DaxPayResponseModel; import lombok.Getter; @@ -14,21 +15,31 @@ */ @Getter @Setter -@ToString +@ToString(callSuper = true) public class PayOrderModel extends DaxPayResponseModel { - /** 支付订单号 */ + + /** 订单号 */ private String orderNo; - /** 业务系统订单号 */ + /** 商户订单号 */ private String bizOrderNo; + /** 通道系统交易号 */ + private String outOrderNo; + /** 标题 */ private String title; /** 描述 */ private String description; + /** 是否支持分账 */ + private Boolean allocation; + + /** 是否开启自动分账, 不传输为不开启 */ + private Boolean autoAllocation; + /** * 支付通道 * @see PayChannelEnum @@ -52,6 +63,13 @@ public class PayOrderModel extends DaxPayResponseModel { */ private String status; + /** + * 分账状态 + * @see PayOrderAllocStatusEnum + */ + private String allocationStatus; + + /** 支付时间 */ private Long payTime; @@ -60,4 +78,10 @@ public class PayOrderModel extends DaxPayResponseModel { /** 关闭时间 */ private Long closeTime; + + /** 错误码 */ + private String errorCode; + + /** 错误信息 */ + private String errorMsg; } diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/refund/RefundModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/refund/RefundModel.java index b9aeada76..feeec803f 100644 --- a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/refund/RefundModel.java +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/refund/RefundModel.java @@ -12,7 +12,7 @@ */ @Getter @Setter -@ToString +@ToString(callSuper = true) public class RefundModel extends DaxPayResponseModel { /** 退款号 */ diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/refund/RefundOrderModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/refund/RefundOrderModel.java index 00136bd8b..a9b16a671 100644 --- a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/refund/RefundOrderModel.java +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/refund/RefundOrderModel.java @@ -1,5 +1,6 @@ package cn.daxpay.single.sdk.model.refund; +import cn.daxpay.single.sdk.code.PayChannelEnum; import cn.daxpay.single.sdk.code.RefundStatusEnum; import cn.daxpay.single.sdk.net.DaxPayResponseModel; import lombok.Getter; @@ -15,30 +16,61 @@ */ @Getter @Setter -@ToString +@ToString(callSuper = true) public class RefundOrderModel extends DaxPayResponseModel { + + /** 支付订单号 */ + private String orderNo; + + /** 商户支付订单号 */ + private String bizOrderNo; + + /** 通道支付订单号 */ + private String outOrderNo; + + /** 支付标题 */ + private String title; + /** 退款号 */ private String refundNo; /** 商户退款号 */ private String bizRefundNo; - /** 标题 */ - private String title; + /** 通道退款交易号 */ + private String outRefundNo; + + /** + * 退款通道 + * @see PayChannelEnum + */ + private String channel; + + /** 订单金额 */ + private Integer orderAmount; /** 退款金额 */ private BigDecimal amount; - /** 退款完成时间 */ - private Long finishTime; + /** 退款原因 */ + private String reason; /** 退款发起时间 */ private Long refundTime; + /** 退款完成时间 */ + private Long finishTime; + /** * 退款状态 * @see RefundStatusEnum */ private String status; + + /** 错误码 */ + private String errorCode; + + /** 错误信息 */ + private String errorMsg; } diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/sync/AllocSyncModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/sync/AllocSyncModel.java new file mode 100644 index 000000000..0422dabcf --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/sync/AllocSyncModel.java @@ -0,0 +1,17 @@ +package cn.daxpay.single.sdk.model.sync; + +import cn.daxpay.single.sdk.net.DaxPayResponseModel; +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; + +/** + * 分账同步结果 + * @author xxm + * @since 2024/5/27 + */ +@Getter +@Setter +@ToString(callSuper = true) +public class AllocSyncModel extends DaxPayResponseModel { +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/sync/PaySyncModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/sync/PaySyncModel.java new file mode 100644 index 000000000..ad998143e --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/sync/PaySyncModel.java @@ -0,0 +1,25 @@ +package cn.daxpay.single.sdk.model.sync; + +import cn.daxpay.single.sdk.code.PaySyncStatusEnum; +import cn.daxpay.single.sdk.net.DaxPayResponseModel; +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; + +/** + * 交易同步结果 + * @author xxm + * @since 2023/12/27 + */ +@Getter +@Setter +@ToString(callSuper = true) +public class PaySyncModel extends DaxPayResponseModel { + + /** + * 同步结果 + * @see PaySyncStatusEnum + */ + private String status; + +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/sync/SyncModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/sync/RefundSyncModel.java similarity index 73% rename from daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/sync/SyncModel.java rename to daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/sync/RefundSyncModel.java index ee298ae58..8f0fa4bae 100644 --- a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/sync/SyncModel.java +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/model/sync/RefundSyncModel.java @@ -1,6 +1,5 @@ package cn.daxpay.single.sdk.model.sync; -import cn.daxpay.single.sdk.code.PaySyncStatusEnum; import cn.daxpay.single.sdk.code.RefundSyncStatusEnum; import cn.daxpay.single.sdk.net.DaxPayResponseModel; import lombok.Getter; @@ -14,12 +13,11 @@ */ @Getter @Setter -@ToString -public class SyncModel extends DaxPayResponseModel { +@ToString(callSuper = true) +public class RefundSyncModel extends DaxPayResponseModel { /** * 同步结果 - * @see PaySyncStatusEnum * @see RefundSyncStatusEnum */ private String status; diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/net/DaxPayResponseModel.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/net/DaxPayResponseModel.java index b6c157609..a49e5343e 100644 --- a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/net/DaxPayResponseModel.java +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/net/DaxPayResponseModel.java @@ -11,7 +11,7 @@ */ @Setter @Getter -@ToString +@ToString(callSuper = true) public abstract class DaxPayResponseModel { /** 状态码 */ diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/AllocFinishParam.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/AllocFinishParam.java new file mode 100644 index 000000000..bb7e887c5 --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/AllocFinishParam.java @@ -0,0 +1,42 @@ +package cn.daxpay.single.sdk.param.allocation; + +import cn.daxpay.single.sdk.model.allocation.AllocationModel; +import cn.daxpay.single.sdk.net.DaxPayRequest; +import cn.daxpay.single.sdk.response.DaxPayResult; +import cn.hutool.core.lang.TypeReference; +import cn.hutool.json.JSONUtil; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 分账完结参数 + * @author xxm + * @since 2024/4/7 + */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AllocFinishParam extends DaxPayRequest { + + /** 商户分账单号 */ + private String bizAllocationNo; + + /** 分账单号 */ + private String allocationNo; + + /** + * 方法请求路径 + */ + @Override + public String path() { + return "/unipay/allocation/finish"; + } + + /** + * 将请求返回结果反序列化为实体类 + */ + @Override + public DaxPayResult toModel(String json) { + return JSONUtil.toBean(json, new TypeReference>() {}, false); + } + +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/AllocReceiverAddParam.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/AllocReceiverAddParam.java new file mode 100644 index 000000000..eacbd39ff --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/AllocReceiverAddParam.java @@ -0,0 +1,70 @@ +package cn.daxpay.single.sdk.param.allocation; + +import cn.daxpay.single.sdk.code.AllocReceiverTypeEnum; +import cn.daxpay.single.sdk.code.AllocRelationTypeEnum; +import cn.daxpay.single.sdk.code.PayChannelEnum; +import cn.daxpay.single.sdk.model.allocation.AllocReceiverAddModel; +import cn.daxpay.single.sdk.net.DaxPayRequest; +import cn.daxpay.single.sdk.response.DaxPayResult; +import cn.hutool.core.lang.TypeReference; +import cn.hutool.json.JSONUtil; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * 分账接收者添加参数 + * @author xxm + * @since 2024/5/20 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@Accessors(chain = true) +public class AllocReceiverAddParam extends DaxPayRequest { + + /** 接收者编号 */ + private String receiverNo; + + /** + * 所属通道 + * @see PayChannelEnum + */ + private String channel; + + /** + * 分账接收方类型 根据不同类型的通道进行传输 + * @see AllocReceiverTypeEnum + */ + private String receiverType; + + /** 接收方账号 */ + private String receiverAccount; + + /** 接收方姓名 */ + private String receiverName; + + /** + * 分账关系类型 + * @see AllocRelationTypeEnum + */ + private String relationType; + + /** 关系名称 关系类型为自定义是填写 */ + private String relationName; + + /** + * 方法请求路径 + */ + @Override + public String path() { + return "/unipay/allocation/receiver/add"; + } + + /** + * 将请求返回结果反序列化为实体类 + */ + @Override + public DaxPayResult toModel(String json) { + return JSONUtil.toBean(json, new TypeReference>() {}, false); + } +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/AllocReceiverParam.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/AllocReceiverParam.java new file mode 100644 index 000000000..b843d24a3 --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/AllocReceiverParam.java @@ -0,0 +1,20 @@ +package cn.daxpay.single.sdk.param.allocation; + +import lombok.Getter; +import lombok.Setter; + +/** + * 分账接收方列表参数 + * @author xxm + * @since 2024/5/21 + */ +@Getter +@Setter +public class AllocReceiverParam { + + /** 分账接收方编号 */ + private String receiverNo; + + /** 分账金额 */ + private Integer amount; +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/AllocReceiverRemoveParam.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/AllocReceiverRemoveParam.java new file mode 100644 index 000000000..433cc0171 --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/AllocReceiverRemoveParam.java @@ -0,0 +1,40 @@ +package cn.daxpay.single.sdk.param.allocation; + +import cn.daxpay.single.sdk.model.allocation.AllocReceiverRemoveModel; +import cn.daxpay.single.sdk.net.DaxPayRequest; +import cn.daxpay.single.sdk.response.DaxPayResult; +import cn.hutool.core.lang.TypeReference; +import cn.hutool.json.JSONUtil; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * 分账接收者删除参数 + * @author xxm + * @since 2024/5/20 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@Accessors(chain = true) +public class AllocReceiverRemoveParam extends DaxPayRequest { + + /** 接收者编号 */ + private String receiverNo; + + /** + * 方法请求路径 + */ + @Override + public String path() { + return "/unipay/allocation/receiver/remove"; + } + + /** + * 将请求返回结果反序列化为实体类 + */ + @Override + public DaxPayResult toModel(String json) { + return JSONUtil.toBean(json, new TypeReference>() {}, false); + } +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/AllocSyncParam.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/AllocSyncParam.java new file mode 100644 index 000000000..efda2cb37 --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/AllocSyncParam.java @@ -0,0 +1,35 @@ +package cn.daxpay.single.sdk.param.allocation; + +import cn.daxpay.single.sdk.model.sync.AllocSyncModel; +import cn.daxpay.single.sdk.net.DaxPayRequest; +import cn.daxpay.single.sdk.response.DaxPayResult; +import cn.hutool.core.lang.TypeReference; +import cn.hutool.json.JSONUtil; +import lombok.Getter; +import lombok.Setter; + +/** + * 分账订单同步 + * @author xxm + * @since 2024/5/27 + */ +@Getter +@Setter +public class AllocSyncParam extends DaxPayRequest { + + /** 分账号 */ + private String allocationNo; + + /** 商户分账号 */ + private String bizAllocationNo; + + @Override + public String path() { + return "/unipay/sync/allocation"; + } + + @Override + public DaxPayResult toModel(String json) { + return JSONUtil.toBean(json, new TypeReference>() {}, false); + } +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/AllocationParam.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/AllocationParam.java index f0e84140a..936294a0e 100644 --- a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/AllocationParam.java +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/AllocationParam.java @@ -8,8 +8,10 @@ import lombok.Getter; import lombok.Setter; +import java.util.List; + /** - * 分账请求接口(目前未支持) + * 分账请求接口 * @author xxm * @since 2024/2/7 */ @@ -17,29 +19,42 @@ @Setter public class AllocationParam extends DaxPayRequest { + /** 商户分账单号 */ + private String bizAllocationNo; + /** 支付订单号 */ private String orderNo; /** 商户订单号 */ private String bizOrderNo; - /** 商户分账单号(保证唯一) */ - private String bizAllocationNo; - /** 分账描述 */ private String description; /** - * 分账组ID, 不传输分账组使用默认分账组进行分账 + * 优先级 分账接收方列表 > 分账组编号 > 默认分账组 */ - private Long allocationGroupId; + private String groupNo; + + /** 分账接收方列表 */ + private List receivers; + + /** 是否不启用异步通知 */ + private Boolean notNotify; + + /** 回调通知地址 */ + private String notifyUrl; + + /** 商户扩展参数,回调时会原样返回 */ + private String attach; + /** * 方法请求路径 */ @Override public String path() { - return "/unipay/allocation"; + return "/unipay/allocation/start"; } /** diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/QueryAllocOrderParam.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/QueryAllocOrderParam.java new file mode 100644 index 000000000..ff482e8de --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/QueryAllocOrderParam.java @@ -0,0 +1,41 @@ +package cn.daxpay.single.sdk.param.allocation; + +import cn.daxpay.single.sdk.model.allocation.AllocOrderModel; +import cn.daxpay.single.sdk.net.DaxPayRequest; +import cn.daxpay.single.sdk.response.DaxPayResult; +import cn.hutool.core.lang.TypeReference; +import cn.hutool.json.JSONUtil; +import lombok.Getter; +import lombok.Setter; + +/** + * 分账订单查询参数 + * @author xxm + * @since 2024/6/3 + */ +@Getter +@Setter +public class QueryAllocOrderParam extends DaxPayRequest { + + /** 分账单号 */ + private String allocationNo; + + /** 商户分账单号 */ + private String bizAllocationNo; + + /** + * 方法请求路径 + */ + @Override + public String path() { + return "/unipay/query/allocationOrder"; + } + + /** + * 将请求返回结果反序列化为实体类 + */ + @Override + public DaxPayResult toModel(String json) { + return JSONUtil.toBean(json, new TypeReference>() {}, false); + } +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/QueryAllocReceiverParam.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/QueryAllocReceiverParam.java new file mode 100644 index 000000000..c4356188c --- /dev/null +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/allocation/QueryAllocReceiverParam.java @@ -0,0 +1,43 @@ +package cn.daxpay.single.sdk.param.allocation; + +import cn.daxpay.single.sdk.code.PayChannelEnum; +import cn.daxpay.single.sdk.model.allocation.AllocReceiversModel; +import cn.daxpay.single.sdk.net.DaxPayRequest; +import cn.daxpay.single.sdk.response.DaxPayResult; +import cn.hutool.core.lang.TypeReference; +import cn.hutool.json.JSONUtil; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * 查询分账接收者参数 + * @author xxm + * @since 2024/5/20 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@Accessors(chain = true) +public class QueryAllocReceiverParam extends DaxPayRequest { + + /** + * 所属通道 + * @see PayChannelEnum + */ + private String channel; + + /** 分账接收方编号 */ + private String receiverNo; + + + + @Override + public String path() { + return "/unipay/query/allocationReceiver"; + } + + @Override + public DaxPayResult toModel(String json) { + return JSONUtil.toBean(json, new TypeReference>() {}, false); + } +} diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/pay/PayParam.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/pay/PayParam.java index 95b406591..10f5555c9 100644 --- a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/pay/PayParam.java +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/pay/PayParam.java @@ -24,7 +24,7 @@ */ @Getter @Setter -@ToString +@ToString(callSuper = true) public class PayParam extends DaxPayRequest { /** 商户订单号 */ diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/sync/PaySyncParam.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/pay/PaySyncParam.java similarity index 69% rename from daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/sync/PaySyncParam.java rename to daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/pay/PaySyncParam.java index ece4b87f6..17c43b000 100644 --- a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/sync/PaySyncParam.java +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/pay/PaySyncParam.java @@ -1,6 +1,6 @@ -package cn.daxpay.single.sdk.param.sync; +package cn.daxpay.single.sdk.param.pay; -import cn.daxpay.single.sdk.model.sync.SyncModel; +import cn.daxpay.single.sdk.model.sync.PaySyncModel; import cn.daxpay.single.sdk.net.DaxPayRequest; import cn.daxpay.single.sdk.response.DaxPayResult; import cn.hutool.core.lang.TypeReference; @@ -15,7 +15,7 @@ */ @Getter @Setter -public class PaySyncParam extends DaxPayRequest { +public class PaySyncParam extends DaxPayRequest { /** 订单号 */ private String orderNo; @@ -28,14 +28,14 @@ public class PaySyncParam extends DaxPayRequest { */ @Override public String path() { - return "/unipay/syncPay"; + return "/unipay/sync/pay"; } /** * 将请求返回结果反序列化为实体类 */ @Override - public DaxPayResult toModel(String json) { - return JSONUtil.toBean(json, new TypeReference>() {}, false); + public DaxPayResult toModel(String json) { + return JSONUtil.toBean(json, new TypeReference>() {}, false); } } diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/pay/QueryPayParam.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/pay/QueryPayParam.java index 819fe1391..37b09de24 100644 --- a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/pay/QueryPayParam.java +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/pay/QueryPayParam.java @@ -28,7 +28,7 @@ public class QueryPayParam extends DaxPayRequest { */ @Override public String path() { - return "/uni/query/payOrder"; + return "/unipay/query/payOrder"; } /** diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/refund/QueryRefundParam.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/refund/QueryRefundParam.java index ac0742866..cd760bca6 100644 --- a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/refund/QueryRefundParam.java +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/refund/QueryRefundParam.java @@ -29,7 +29,7 @@ public class QueryRefundParam extends DaxPayRequest { */ @Override public String path() { - return "/uni/query/refundOrder"; + return "/unipay/query/refundOrder"; } /** diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/refund/RefundParam.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/refund/RefundParam.java index b62d0fad6..74090eb31 100644 --- a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/refund/RefundParam.java +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/refund/RefundParam.java @@ -20,7 +20,7 @@ */ @Getter @Setter -@ToString +@ToString(callSuper = true) public class RefundParam extends DaxPayRequest { diff --git a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/sync/RefundSyncParam.java b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/refund/RefundSyncParam.java similarity index 68% rename from daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/sync/RefundSyncParam.java rename to daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/refund/RefundSyncParam.java index 910fc220f..16ebb292c 100644 --- a/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/sync/RefundSyncParam.java +++ b/daxpay-single-sdk/src/main/java/cn/daxpay/single/sdk/param/refund/RefundSyncParam.java @@ -1,6 +1,6 @@ -package cn.daxpay.single.sdk.param.sync; +package cn.daxpay.single.sdk.param.refund; -import cn.daxpay.single.sdk.model.sync.SyncModel; +import cn.daxpay.single.sdk.model.sync.RefundSyncModel; import cn.daxpay.single.sdk.net.DaxPayRequest; import cn.daxpay.single.sdk.response.DaxPayResult; import cn.hutool.core.lang.TypeReference; @@ -15,7 +15,7 @@ */ @Getter @Setter -public class RefundSyncParam extends DaxPayRequest { +public class RefundSyncParam extends DaxPayRequest { /** 退款号 */ private String refundNo; @@ -28,14 +28,14 @@ public class RefundSyncParam extends DaxPayRequest { */ @Override public String path() { - return "/unipay/syncRefund"; + return "/unipay/sync/refund"; } /** * 将请求返回结果反序列化为实体类 */ @Override - public DaxPayResult toModel(String json) { - return JSONUtil.toBean(json, new TypeReference>() {}, false); + public DaxPayResult toModel(String json) { + return JSONUtil.toBean(json, new TypeReference>() {}, false); } } diff --git a/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/allocation/AllocationReceiverTest.java b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/allocation/AllocationReceiverTest.java new file mode 100644 index 000000000..daadf535f --- /dev/null +++ b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/allocation/AllocationReceiverTest.java @@ -0,0 +1,79 @@ +package cn.daxpay.single.sdk.allocation; + +import cn.daxpay.single.sdk.code.AllocReceiverTypeEnum; +import cn.daxpay.single.sdk.code.AllocRelationTypeEnum; +import cn.daxpay.single.sdk.code.PayChannelEnum; +import cn.daxpay.single.sdk.code.SignTypeEnum; +import cn.daxpay.single.sdk.model.allocation.AllocReceiverAddModel; +import cn.daxpay.single.sdk.model.allocation.AllocReceiverRemoveModel; +import cn.daxpay.single.sdk.model.allocation.AllocReceiversModel; +import cn.daxpay.single.sdk.net.DaxPayConfig; +import cn.daxpay.single.sdk.net.DaxPayKit; +import cn.daxpay.single.sdk.param.allocation.AllocReceiverAddParam; +import cn.daxpay.single.sdk.param.allocation.AllocReceiverRemoveParam; +import cn.daxpay.single.sdk.param.allocation.QueryAllocReceiverParam; +import cn.daxpay.single.sdk.response.DaxPayResult; +import cn.hutool.json.JSONUtil; +import org.junit.Before; +import org.junit.Test; + +/** + * 分账接收者测试类 + * @author xxm + * @since 2024/5/27 + */ +public class AllocationReceiverTest { + + @Before + public void init() { + // 初始化支付配置 + DaxPayConfig config = DaxPayConfig.builder() + .serviceUrl("http://127.0.0.1:9000") + .signSecret("123456") + .signType(SignTypeEnum.HMAC_SHA256) + .build(); + DaxPayKit.initConfig(config); + } + + /** + * 添加 + */ + @Test + public void add() { + AllocReceiverAddParam param = new AllocReceiverAddParam(); + param.setChannel(PayChannelEnum.ALI.getCode()); + param.setClientIp("127.0.0.1"); + param.setRelationType(AllocRelationTypeEnum.HEADQUARTER.getCode()); + param.setReceiverNo("123456"); + param.setReceiverType(AllocReceiverTypeEnum.ALI_USER_ID.getCode()); + param.setReceiverAccount("20881233343"); + DaxPayResult execute = DaxPayKit.execute(param); + System.out.println(JSONUtil.toJsonStr(execute)); + } + + /** + * 删除 + */ + @Test + public void remove() { + AllocReceiverRemoveParam param = new AllocReceiverRemoveParam(); + param.setClientIp("127.0.0.1"); + param.setReceiverNo("123456"); + DaxPayResult execute = DaxPayKit.execute(param); + System.out.println(JSONUtil.toJsonStr(execute)); + } + + /** + * 查询 + */ + @Test + public void query() { + QueryAllocReceiverParam param = new QueryAllocReceiverParam(); + param.setChannel(PayChannelEnum.ALI.getCode()); + param.setReceiverNo("1231"); + param.setClientIp("127.0.0.1"); + DaxPayResult execute = DaxPayKit.execute(param); + System.out.println(JSONUtil.toJsonStr(execute)); + } + +} diff --git a/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/allocation/AllocationTest.java b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/allocation/AllocationTest.java new file mode 100644 index 000000000..4e9c6fdd3 --- /dev/null +++ b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/allocation/AllocationTest.java @@ -0,0 +1,171 @@ +package cn.daxpay.single.sdk.allocation; + +import cn.daxpay.single.sdk.code.PayChannelEnum; +import cn.daxpay.single.sdk.code.PayMethodEnum; +import cn.daxpay.single.sdk.code.SignTypeEnum; +import cn.daxpay.single.sdk.model.allocation.AllocationModel; +import cn.daxpay.single.sdk.model.pay.PayModel; +import cn.daxpay.single.sdk.model.sync.AllocSyncModel; +import cn.daxpay.single.sdk.net.DaxPayConfig; +import cn.daxpay.single.sdk.net.DaxPayKit; +import cn.daxpay.single.sdk.param.allocation.AllocFinishParam; +import cn.daxpay.single.sdk.param.allocation.AllocReceiverParam; +import cn.daxpay.single.sdk.param.allocation.AllocSyncParam; +import cn.daxpay.single.sdk.param.allocation.AllocationParam; +import cn.daxpay.single.sdk.param.pay.PayParam; +import cn.daxpay.single.sdk.response.DaxPayResult; +import cn.hutool.core.util.RandomUtil; +import cn.hutool.json.JSONUtil; +import org.junit.Before; +import org.junit.Test; + +import java.util.Collections; + +/** + * 支付分账测试 + * @author xxm + * @since 2024/4/6 + */ +public class AllocationTest { + + @Before + public void init() { + // 初始化支付配置 + DaxPayConfig config = DaxPayConfig.builder() + .serviceUrl("http://127.0.0.1:9000") + .signSecret("123456") + .signType(SignTypeEnum.HMAC_SHA256) + .build(); + DaxPayKit.initConfig(config); + } + + /** + * 创建手动分账订单 + */ + @Test + public void allocationOrder() { + PayParam param = new PayParam(); + param.setClientIp("127.0.0.1"); + param.setNotNotify(true); + + param.setBizOrderNo("SDK_"+ System.currentTimeMillis()); + param.setTitle("测试手动分账"); + param.setDescription("这是支付备注"); + param.setAmount(10000); + param.setChannel(PayChannelEnum.ALI.getCode()); + param.setMethod(PayMethodEnum.QRCODE.getCode()); + param.setAttach("{回调参数}"); + param.setAllocation(true); + + DaxPayResult execute = DaxPayKit.execute(param); + System.out.println(JSONUtil.toJsonStr(execute)); + + } + + /** + * 创建自动分账订单 + */ + @Test + public void allocationAutoOrder() { + PayParam param = new PayParam(); + param.setClientIp("127.0.0.1"); + param.setNotNotify(true); + + param.setBizOrderNo("SDK_"+ System.currentTimeMillis()); + param.setTitle("测试手动分账"); + param.setDescription("这是支付备注"); + param.setAmount(10000); + param.setChannel(PayChannelEnum.UNION_PAY.getCode()); + param.setMethod(PayMethodEnum.QRCODE.getCode()); + param.setAttach("{回调参数}"); + param.setAllocation(true); + param.setAutoAllocation(true); + + DaxPayResult execute = DaxPayKit.execute(param); + System.out.println(JSONUtil.toJsonStr(execute)); + + } + + /** + * 手动发起分账, 使用默认分账组 + */ + @Test + public void allocationOpen() { + // 分账参数 + AllocationParam param = new AllocationParam(); + param.setBizAllocationNo("A"+ RandomUtil.randomNumbers(5)); + param.setAttach("88899"); + param.setBizOrderNo("SDK_1717264053245"); + param.setDescription("测试分账"); + param.setClientIp("127.0.0.1"); + + DaxPayResult execute = DaxPayKit.execute(param); + System.out.println(JSONUtil.toJsonStr(execute)); + } + + /** + * 手动发起分账, 使用指定分账组 + */ + @Test + public void allocationOpenByGroup() { + // 分账参数 + AllocationParam param = new AllocationParam(); + param.setBizAllocationNo("A"+ RandomUtil.randomNumbers(5)); + param.setAttach("88899"); + param.setBizOrderNo("SDK_1717257064753"); + param.setGroupNo("123"); + param.setDescription("测试分账"); + param.setClientIp("127.0.0.1"); + + DaxPayResult execute = DaxPayKit.execute(param); + System.out.println(JSONUtil.toJsonStr(execute)); + } + + /** + * 手动发起分账, 手动传入接收方 + */ + @Test + public void allocationOpenByReceivers() { + // 分账参数 + AllocationParam param = new AllocationParam(); + param.setBizAllocationNo("A"+ RandomUtil.randomNumbers(5)); + param.setAttach("88899"); + param.setOrderNo("DEVP24060201473363000001"); + AllocReceiverParam allocReceiverParam = new AllocReceiverParam(); + allocReceiverParam.setReceiverNo("123"); + allocReceiverParam.setAmount(6500); + param.setReceivers(Collections.singletonList(allocReceiverParam)); + param.setDescription("测试分账"); + param.setClientIp("127.0.0.1"); + + DaxPayResult execute = DaxPayKit.execute(param); + System.out.println(JSONUtil.toJsonStr(execute)); + } + + /** + * 分账完结 + */ + @Test + public void allocationFinish() { + // 分账完结参数 + AllocFinishParam param = new AllocFinishParam(); + param.setAllocationNo("DEVA24060117191963000003"); + + DaxPayResult execute = DaxPayKit.execute(param); + System.out.println(JSONUtil.toJsonStr(execute)); + } + + /** + * 分账同步 + */ + @Test + public void allocationSync() { + // 分账同步参数 + AllocSyncParam param = new AllocSyncParam(); + param.setAllocationNo("DEVA24060117191963000003"); + + DaxPayResult execute = DaxPayKit.execute(param); + System.out.println(JSONUtil.toJsonStr(execute)); + } + +} diff --git a/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/PayAllocationTest.java b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/PayAllocationTest.java deleted file mode 100644 index 234c44645..000000000 --- a/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/PayAllocationTest.java +++ /dev/null @@ -1,48 +0,0 @@ -package cn.daxpay.single.sdk.payment; - -import cn.daxpay.single.sdk.code.SignTypeEnum; -import cn.daxpay.single.sdk.model.allocation.AllocationModel; -import cn.daxpay.single.sdk.net.DaxPayConfig; -import cn.daxpay.single.sdk.net.DaxPayKit; -import cn.daxpay.single.sdk.param.allocation.AllocationParam; -import cn.daxpay.single.sdk.response.DaxPayResult; -import cn.hutool.core.util.RandomUtil; -import org.junit.Before; -import org.junit.Test; - -/** - * 支付分账测试 - * @author xxm - * @since 2024/4/6 - */ -public class PayAllocationTest { - - @Before - public void init() { - // 初始化支付配置 - DaxPayConfig config = DaxPayConfig.builder() - .serviceUrl("http://127.0.0.1:9000") - .signSecret("123456") - .signType(SignTypeEnum.HMAC_SHA256) - .build(); - DaxPayKit.initConfig(config); - } - - /** - * 开启分账 - */ - @Test - public void allocation() { - // 分账参数 - AllocationParam param = new AllocationParam(); - param.setBizAllocationNo("A"+ RandomUtil.randomNumbers(5)); - param.setDescription("测试分账"); - param.setAllocationGroupId(1L); - param.setClientIp("127.0.0.1"); - param.setBizOrderNo("112324"); - - DaxPayResult execute = DaxPayKit.execute(param); - System.out.println(execute); - } - -} diff --git a/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/PayCloseOrderTest.java b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/PayCloseOrderTest.java index 4dd4507c4..51592947b 100644 --- a/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/PayCloseOrderTest.java +++ b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/PayCloseOrderTest.java @@ -6,6 +6,7 @@ import cn.daxpay.single.sdk.net.DaxPayKit; import cn.daxpay.single.sdk.param.pay.PayCloseParam; import cn.daxpay.single.sdk.response.DaxPayResult; +import cn.hutool.json.JSONUtil; import org.junit.Before; import org.junit.Test; @@ -34,6 +35,6 @@ public void close(){ param.setOrderNo("DEVP24051019404463000001"); param.setClientIp("127.0.0.1"); DaxPayResult execute = DaxPayKit.execute(param); - System.out.println(execute); + System.out.println(JSONUtil.toJsonStr(execute)); } } diff --git a/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/PayOrderSyncTest.java b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/PayOrderSyncTest.java index 958a20a89..8136b0e10 100644 --- a/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/PayOrderSyncTest.java +++ b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/PayOrderSyncTest.java @@ -1,11 +1,12 @@ package cn.daxpay.single.sdk.payment; import cn.daxpay.single.sdk.code.SignTypeEnum; -import cn.daxpay.single.sdk.model.sync.SyncModel; +import cn.daxpay.single.sdk.model.sync.PaySyncModel; import cn.daxpay.single.sdk.net.DaxPayConfig; import cn.daxpay.single.sdk.net.DaxPayKit; -import cn.daxpay.single.sdk.param.sync.PaySyncParam; +import cn.daxpay.single.sdk.param.pay.PaySyncParam; import cn.daxpay.single.sdk.response.DaxPayResult; +import cn.hutool.json.JSONUtil; import org.junit.Before; import org.junit.Test; @@ -16,7 +17,6 @@ */ public class PayOrderSyncTest { - @Before public void init() { // 初始化支付配置 @@ -32,9 +32,9 @@ public void init() { public void testPay() { PaySyncParam param = new PaySyncParam(); param.setBizOrderNo("SDK_1715341621498"); - DaxPayResult execute = DaxPayKit.execute(param); - System.out.println(execute); - System.out.println(execute.getData()); + DaxPayResult execute = DaxPayKit.execute(param); + System.out.println(JSONUtil.toJsonStr(execute)); + } } diff --git a/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/PayOrderTest.java b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/PayOrderTest.java index 85a0e5a7d..2f3f9c793 100644 --- a/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/PayOrderTest.java +++ b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/PayOrderTest.java @@ -8,6 +8,7 @@ import cn.daxpay.single.sdk.net.DaxPayKit; import cn.daxpay.single.sdk.param.pay.PayParam; import cn.daxpay.single.sdk.response.DaxPayResult; +import cn.hutool.json.JSONUtil; import org.junit.Before; import org.junit.Test; @@ -36,7 +37,6 @@ public void init() { public void pay() { PayParam param = new PayParam(); param.setClientIp("127.0.0.1"); - param.setNotNotify(true); param.setBizOrderNo("SDK_"+ System.currentTimeMillis()); param.setTitle("测试接口支付"); @@ -50,7 +50,7 @@ public void pay() { param.setNotifyUrl("https://abc.com/callback"); DaxPayResult execute = DaxPayKit.execute(param); - System.out.println(execute); - System.out.println(execute.getData()); + System.out.println(JSONUtil.toJsonStr(execute)); + } } diff --git a/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/RefundOrderSyncTest.java b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/RefundOrderSyncTest.java index d8692a62f..cd4a16bb9 100644 --- a/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/RefundOrderSyncTest.java +++ b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/RefundOrderSyncTest.java @@ -1,11 +1,12 @@ package cn.daxpay.single.sdk.payment; import cn.daxpay.single.sdk.code.SignTypeEnum; -import cn.daxpay.single.sdk.model.sync.SyncModel; +import cn.daxpay.single.sdk.model.sync.RefundSyncModel; import cn.daxpay.single.sdk.net.DaxPayConfig; import cn.daxpay.single.sdk.net.DaxPayKit; -import cn.daxpay.single.sdk.param.sync.RefundSyncParam; +import cn.daxpay.single.sdk.param.refund.RefundSyncParam; import cn.daxpay.single.sdk.response.DaxPayResult; +import cn.hutool.json.JSONUtil; import org.junit.Before; import org.junit.Test; @@ -33,9 +34,9 @@ public void testPay() { RefundSyncParam param = new RefundSyncParam(); param.setRefundNo("DEVR24051020530263000002"); param.setClientIp("127.0.0.1"); - DaxPayResult execute = DaxPayKit.execute(param); - System.out.println(execute); - System.out.println(execute.getData()); + DaxPayResult execute = DaxPayKit.execute(param); + System.out.println(JSONUtil.toJsonStr(execute)); + } } diff --git a/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/RefundOrderTest.java b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/RefundOrderTest.java index d0e92c2a9..cf5b2797e 100644 --- a/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/RefundOrderTest.java +++ b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/RefundOrderTest.java @@ -8,6 +8,7 @@ import cn.daxpay.single.sdk.response.DaxPayResult; import cn.daxpay.single.sdk.util.PaySignUtil; import cn.hutool.core.util.RandomUtil; +import cn.hutool.json.JSONUtil; import org.junit.Before; import org.junit.Test; @@ -45,8 +46,8 @@ public void refund(){ param.setClientIp("127.0.0.1"); DaxPayResult execute = DaxPayKit.execute(param); - System.out.println(execute); - System.out.println(execute.getData()); + System.out.println(JSONUtil.toJsonStr(execute)); + System.out.println(PaySignUtil.verifyHmacSha256Sign(execute.getData(), "123456", execute.getData().getSign())); } diff --git a/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/SimpleRefundOrderTest.java b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/SimpleRefundOrderTest.java deleted file mode 100644 index 59bbe766d..000000000 --- a/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/payment/SimpleRefundOrderTest.java +++ /dev/null @@ -1,50 +0,0 @@ -package cn.daxpay.single.sdk.payment; - -import cn.daxpay.single.sdk.code.SignTypeEnum; -import cn.daxpay.single.sdk.model.refund.RefundModel; -import cn.daxpay.single.sdk.net.DaxPayConfig; -import cn.daxpay.single.sdk.net.DaxPayKit; -import cn.daxpay.single.sdk.param.refund.RefundParam; -import cn.daxpay.single.sdk.response.DaxPayResult; -import cn.hutool.core.util.RandomUtil; -import org.junit.Before; -import org.junit.Test; - -/** - * 简单退款演示 - * @author xxm - * @since 2024/2/26 - */ -public class SimpleRefundOrderTest { - - /** - * 初始化 - */ - @Before - public void init() { - // 初始化支付配置 - DaxPayConfig config = DaxPayConfig.builder() - .serviceUrl("http://127.0.0.1:9000") - .signSecret("123456") - .signType(SignTypeEnum.HMAC_SHA256) - .build(); - DaxPayKit.initConfig(config); - } - - /** - * 退款 - */ - @Test - public void refund(){ - RefundParam param = new RefundParam(); - param.setClientIp("127.0.0.1"); - - param.setBizRefundNo("R" + RandomUtil.randomNumbers(5)); - // 设置具体的退款参数 - param.setAmount(19); - - DaxPayResult execute = DaxPayKit.execute(param); - System.out.println(execute); - System.out.println(execute.getData()); - } -} diff --git a/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/query/QueryAllocOrderTest.java b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/query/QueryAllocOrderTest.java new file mode 100644 index 000000000..d7c98c2c9 --- /dev/null +++ b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/query/QueryAllocOrderTest.java @@ -0,0 +1,60 @@ +package cn.daxpay.single.sdk.query; + +import cn.daxpay.single.sdk.code.PayChannelEnum; +import cn.daxpay.single.sdk.code.SignTypeEnum; +import cn.daxpay.single.sdk.model.allocation.AllocOrderModel; +import cn.daxpay.single.sdk.model.allocation.AllocReceiversModel; +import cn.daxpay.single.sdk.net.DaxPayConfig; +import cn.daxpay.single.sdk.net.DaxPayKit; +import cn.daxpay.single.sdk.param.allocation.QueryAllocOrderParam; +import cn.daxpay.single.sdk.param.allocation.QueryAllocReceiverParam; +import cn.daxpay.single.sdk.response.DaxPayResult; +import cn.hutool.json.JSONUtil; +import org.junit.Before; +import org.junit.Test; + +/** + * 查询分账订单测试类 + * @author xxm + * @since 2024/6/3 + */ +public class QueryAllocOrderTest { + + @Before + public void init() { + // 初始化支付配置 + DaxPayConfig config = DaxPayConfig.builder() + .serviceUrl("http://127.0.0.1:9000") + .signSecret("123456") + .signType(SignTypeEnum.HMAC_SHA256) + .build(); + DaxPayKit.initConfig(config); + } + + /** + * 分账订单查询 + */ + @Test + public void queryAllocOrder() { + QueryAllocOrderParam param = new QueryAllocOrderParam(); + param.setAllocationNo("DEVA240602000243630000101"); + param.setClientIp("127.0.0.1"); + DaxPayResult execute = DaxPayKit.execute(param); + System.out.println(JSONUtil.toJsonStr(execute)); + } + + /** + * 分账接收方查询 + */ + @Test + public void queryAllocReceiver() { + QueryAllocReceiverParam param = new QueryAllocReceiverParam(); + param.setChannel(PayChannelEnum.ALI.getCode()); + param.setReceiverNo("123"); + param.setClientIp("127.0.0.1"); + DaxPayResult execute = DaxPayKit.execute(param); + System.out.println(JSONUtil.toJsonStr(execute)); + } + + +} diff --git a/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/query/QueryPayOrderTest.java b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/query/QueryPayOrderTest.java index e92114d66..bdf6bc67c 100644 --- a/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/query/QueryPayOrderTest.java +++ b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/query/QueryPayOrderTest.java @@ -6,6 +6,7 @@ import cn.daxpay.single.sdk.net.DaxPayKit; import cn.daxpay.single.sdk.param.pay.QueryPayParam; import cn.daxpay.single.sdk.response.DaxPayResult; +import cn.hutool.json.JSONUtil; import org.junit.Before; import org.junit.Test; @@ -31,10 +32,11 @@ public void init() { public void testPay() { QueryPayParam param = new QueryPayParam(); - param.setBizOrderNoeNo("2"); + param.setBizOrderNoeNo("P17141882417921"); + param.setClientIp("127.0.0.1"); DaxPayResult execute = DaxPayKit.execute(param); - System.out.println(execute); - System.out.println(execute.getData()); + System.out.println(JSONUtil.toJsonStr(execute)); + } } diff --git a/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/query/QueryRefundOrderTest.java b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/query/QueryRefundOrderTest.java index f0cf55166..edccae95c 100644 --- a/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/query/QueryRefundOrderTest.java +++ b/daxpay-single-sdk/src/test/java/cn/daxpay/single/sdk/query/QueryRefundOrderTest.java @@ -6,6 +6,7 @@ import cn.daxpay.single.sdk.net.DaxPayKit; import cn.daxpay.single.sdk.param.refund.QueryRefundParam; import cn.daxpay.single.sdk.response.DaxPayResult; +import cn.hutool.json.JSONUtil; import org.junit.Before; import org.junit.Test; @@ -28,13 +29,14 @@ public void init() { } @Test - public void testPay() { + public void testRefund() { QueryRefundParam param = new QueryRefundParam(); - param.setBizRefundNo("1755263825769361408"); + param.setRefundNo("DEVR24051020531763000014"); + param.setClientIp("127.0.0.1"); DaxPayResult execute = DaxPayKit.execute(param); - System.out.println(execute); - System.out.println(execute.getData()); + System.out.println(JSONUtil.toJsonStr(execute)); + } } diff --git a/daxpay-single-start/pom.xml b/daxpay-single-start/pom.xml index 7d2dc24d3..8a4983c8b 100644 --- a/daxpay-single-start/pom.xml +++ b/daxpay-single-start/pom.xml @@ -17,7 +17,7 @@ 1.3.6.2 - 2.0.6 + 2.0.7 diff --git a/daxpay-single-start/src/main/resources/application-dev.yml b/daxpay-single-start/src/main/resources/application-dev.yml index 54ecafe23..6f66a712d 100644 --- a/daxpay-single-start/src/main/resources/application-dev.yml +++ b/daxpay-single-start/src/main/resources/application-dev.yml @@ -60,7 +60,7 @@ springdoc: # 开发时显示debug日志 logging: level: - cn.bootx.**: debug + cn.daxpay.**: debug org.springframework.jdbc.core: debug # 项目配置 bootx: @@ -69,14 +69,14 @@ bootx: swagger: enabled: true author: bootx - version: 2.0.6 + version: 2.0.7 title: 开源支付平台-单商户 description: 开源支付平台-单商户版 # 多模块扫码 base-packages: - "[支付网关API]": cn.bootx.platform.daxpay.gateway - "[支付管理接口]": cn.bootx.platform.daxpay.admin - "[支付演示模块]": cn.bootx.platform.daxpay.demo + "[支付网关API]": cn.daxpay.single.gateway + "[支付管理接口]": cn.daxpay.single.admin + "[支付演示模块]": cn.daxpay.single.demo "[BootxPlatform接口]": - cn.bootx.platform.common - cn.bootx.platform.starter @@ -143,7 +143,7 @@ table-modify: update-type: update database-type: mysql fail-fast: true - scan-package: cn.bootx.platform.daxpay + scan-package: cn.daxpay.single dromara: #文件存储配置, x-file-storage: diff --git a/daxpay-single-start/src/main/resources/application-prod.yml b/daxpay-single-start/src/main/resources/application-prod.yml index a03808ba8..9468898ef 100644 --- a/daxpay-single-start/src/main/resources/application-prod.yml +++ b/daxpay-single-start/src/main/resources/application-prod.yml @@ -65,7 +65,7 @@ bootx: swagger: enabled: false author: bootx - version: 2.0.6 + version: 2.0.7 title: 开源支付平台-单商户 description: 开源支付平台-单商户版 # 缓存 diff --git a/daxpay-single/daxpay-single-admin/pom.xml b/daxpay-single/daxpay-single-admin/pom.xml index 79bba4a51..bff5f318b 100644 --- a/daxpay-single/daxpay-single-admin/pom.xml +++ b/daxpay-single/daxpay-single-admin/pom.xml @@ -6,7 +6,7 @@ cn.daxpay.single daxpay-single - 2.0.6 + 2.0.7 daxpay-single-admin diff --git a/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/allocation/AllocationGroupController.java b/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/allocation/AllocationGroupController.java index 7b048197e..87c00e330 100644 --- a/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/allocation/AllocationGroupController.java +++ b/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/allocation/AllocationGroupController.java @@ -42,6 +42,13 @@ public ResResult findById(Long id){ return Res.ok(allocationGroupService.findById(id)); } + + @Operation(summary = "编码是否存在") + @GetMapping("/existsByGroupNo") + public ResResult existsByGroupNo(String groupNo){ + return Res.ok(allocationGroupService.existsByGroupNo(groupNo)); + } + @Operation(summary = "查询分账接收方信息") @GetMapping("/findReceiversByGroups") public ResResult> findReceiversByGroups(Long groupId){ diff --git a/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/allocation/AllocationOrderController.java b/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/allocation/AllocationOrderController.java index 02ceb8df8..11aad17e9 100644 --- a/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/allocation/AllocationOrderController.java +++ b/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/allocation/AllocationOrderController.java @@ -5,13 +5,18 @@ import cn.bootx.platform.common.core.rest.ResResult; import cn.bootx.platform.common.core.rest.dto.LabelValue; import cn.bootx.platform.common.core.rest.param.PageParam; -import cn.daxpay.single.param.payment.allocation.AllocationSyncParam; -import cn.daxpay.single.param.payment.allocation.AllocationFinishParam; -import cn.daxpay.single.param.payment.allocation.AllocationResetParam; -import cn.daxpay.single.service.core.order.allocation.service.AllocationOrderService; +import cn.daxpay.single.code.PaymentApiCode; +import cn.daxpay.single.param.payment.allocation.AllocFinishParam; +import cn.daxpay.single.param.payment.allocation.AllocSyncParam; +import cn.daxpay.single.param.payment.allocation.AllocationParam; +import cn.daxpay.single.service.annotation.InitPaymentContext; +import cn.daxpay.single.service.core.order.allocation.service.AllocationOrderQueryService; import cn.daxpay.single.service.core.payment.allocation.service.AllocationService; +import cn.daxpay.single.service.core.payment.allocation.service.AllocationSyncService; +import cn.daxpay.single.service.dto.order.allocation.AllocationOrderAndExtraDto; import cn.daxpay.single.service.dto.order.allocation.AllocationOrderDetailDto; import cn.daxpay.single.service.dto.order.allocation.AllocationOrderDto; +import cn.daxpay.single.service.dto.order.allocation.AllocationOrderExtraDto; import cn.daxpay.single.service.param.order.AllocationOrderQuery; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; @@ -34,65 +39,79 @@ @RequiredArgsConstructor public class AllocationOrderController { - private final AllocationOrderService allocationOrderService; + private final AllocationOrderQueryService queryService; private final AllocationService allocationService; + private final AllocationSyncService allocationSyncService; + @Operation(summary = "分页") @GetMapping("/page") public ResResult> page(PageParam pageParam, AllocationOrderQuery param){ - return Res.ok(allocationOrderService.page(pageParam,param)); + return Res.ok(queryService.page(pageParam,param)); } @Operation(summary = "分账明细列表") @GetMapping("/detail/findAll") public ResResult> findDetailsByOrderId(Long orderId){ - return Res.ok(allocationOrderService.findDetailsByOrderId(orderId)); + return Res.ok(queryService.findDetailsByOrderId(orderId)); } @Operation(summary = "查询详情") @GetMapping("/findById") public ResResult findById(Long id){ - return Res.ok(allocationOrderService.findById(id)); + return Res.ok(queryService.findById(id)); } - @Operation(summary = "查询明细详情") @GetMapping("/detail/findById") public ResResult findDetailById(Long id){ - return Res.ok(allocationOrderService.findDetailById(id)); + return Res.ok(queryService.findDetailById(id)); + } + + @Operation(summary = "查询扩展信息") + @GetMapping("/findByAllocNo") + public ResResult findByAllocNo(String allocNo){ + AllocationOrderAndExtraDto result = new AllocationOrderAndExtraDto(); + AllocationOrderDto order = queryService.findByAllocNo(allocNo); + AllocationOrderExtraDto extra = queryService.findExtraById(order.getId()); + result.setOrder(order).setExtra(extra); + return Res.ok(result); } @Operation(summary = "获取可以分账的通道") @GetMapping("/findChannels") public ResResult> findChannels(){ - return Res.ok(allocationOrderService.findChannels()); + return Res.ok(queryService.findChannels()); } + @InitPaymentContext(PaymentApiCode.SYNC_ALLOCATION) @Operation(summary = "同步分账结果") @PostMapping("/sync") public ResResult sync(String allocationNo){ - AllocationSyncParam param = new AllocationSyncParam(); + AllocSyncParam param = new AllocSyncParam(); param.setAllocationNo(allocationNo); - allocationService.sync(param); + allocationSyncService.sync(param); return Res.ok(); } + @InitPaymentContext(PaymentApiCode.ALLOCATION_FINISH) @Operation(summary = "分账完结") @PostMapping("/finish") - public ResResult finish(Long id){ - AllocationFinishParam param = new AllocationFinishParam(); - param.setOrderId(id); + public ResResult finish(String allocationNo){ + AllocFinishParam param = new AllocFinishParam(); + param.setAllocationNo(allocationNo); allocationService.finish(param); return Res.ok(); } - @Operation(summary = "分账重试") + @InitPaymentContext(PaymentApiCode.ALLOCATION) + @Operation(summary = "重新发起分账") @PostMapping("/retry") - public ResResult retryAllocation(Long id){ - AllocationResetParam param = new AllocationResetParam(); - param.setOrderId(id); - allocationService.retryAllocation(param); + public ResResult retryAllocation(String bizAllocationNo){ + AllocationParam param = new AllocationParam(); + param.setBizAllocationNo(bizAllocationNo); + allocationService.allocation(param); return Res.ok(); } } diff --git a/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/allocation/AllocationReceiverController.java b/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/allocation/AllocationReceiverController.java index cd3be8bd7..bced1beff 100644 --- a/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/allocation/AllocationReceiverController.java +++ b/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/allocation/AllocationReceiverController.java @@ -5,10 +5,13 @@ import cn.bootx.platform.common.core.rest.ResResult; import cn.bootx.platform.common.core.rest.dto.LabelValue; import cn.bootx.platform.common.core.rest.param.PageParam; +import cn.daxpay.single.code.PaymentApiCode; +import cn.daxpay.single.param.payment.allocation.AllocReceiverAddParam; +import cn.daxpay.single.param.payment.allocation.AllocReceiverRemoveParam; +import cn.daxpay.single.service.annotation.InitPaymentContext; import cn.daxpay.single.service.core.payment.allocation.service.AllocationReceiverService; import cn.daxpay.single.service.dto.allocation.AllocationReceiverDto; -import cn.daxpay.single.service.param.allocation.group.AllocationReceiverParam; -import cn.daxpay.single.service.param.allocation.group.AllocationReceiverQuery; +import cn.daxpay.single.service.param.allocation.receiver.AllocationReceiverQuery; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.RequiredArgsConstructor; @@ -41,6 +44,12 @@ public ResResult findById(Long id){ return Res.ok(receiverService.findById(id)); } + @Operation(summary = "编码是否存在") + @GetMapping("/existsByReceiverNo") + public ResResult existsByReceiverNo(String receiverNo){ + return Res.ok(receiverService.existsByReceiverNo(receiverNo)); + } + @Operation(summary = "获取可以分账的通道") @GetMapping("/findChannels") public ResResult> findChannels(){ @@ -53,39 +62,19 @@ public ResResult> findReceiverTypeByChannel(String channel){ return Res.ok(receiverService.findReceiverTypeByChannel(channel)); } - @Operation(summary = "新增") + @InitPaymentContext(value = PaymentApiCode.ALLOCATION_RECEIVER_ADD) + @Operation(summary = "添加") @PostMapping("add") - public ResResult add(@RequestBody AllocationReceiverParam param){ - receiverService.add(param); - return Res.ok(); - } - - @Operation(summary = "修改") - @PostMapping("update") - public ResResult update(@RequestBody AllocationReceiverParam param){ - receiverService.update(param); + public ResResult add(@RequestBody AllocReceiverAddParam param){ + receiverService.addAndSync(param); return Res.ok(); } + @InitPaymentContext(value = PaymentApiCode.ALLOCATION_RECEIVER_REMOVE) @Operation(summary = "删除") @PostMapping("delete") - public ResResult delete(Long id){ - receiverService.remove(id); - return Res.ok(); - } - - @Operation(summary = "同步到三方支付系统中") - @PostMapping("registerByGateway") - public ResResult registerByGateway(Long id){ - receiverService.registerByGateway(id); - return Res.ok(); - } - - @Operation(summary = "从三方支付系统中删除") - @PostMapping("removeByGateway") - public ResResult removeByGateway(Long id){ - receiverService.removeByGateway(id); + public ResResult delete(@RequestBody AllocReceiverRemoveParam param){ + receiverService.remove(param); return Res.ok(); } - } diff --git a/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/order/PayOrderController.java b/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/order/PayOrderController.java index 2732ceaa1..6f803616d 100644 --- a/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/order/PayOrderController.java +++ b/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/order/PayOrderController.java @@ -5,17 +5,19 @@ import cn.bootx.platform.common.core.rest.Res; import cn.bootx.platform.common.core.rest.ResResult; import cn.bootx.platform.common.core.rest.param.PageParam; -import cn.daxpay.single.param.payment.allocation.AllocationStartParam; +import cn.daxpay.single.code.PaymentApiCode; +import cn.daxpay.single.param.payment.allocation.AllocationParam; import cn.daxpay.single.param.payment.pay.PayCloseParam; import cn.daxpay.single.param.payment.pay.PaySyncParam; -import cn.daxpay.single.result.pay.SyncResult; +import cn.daxpay.single.result.sync.PaySyncResult; +import cn.daxpay.single.service.annotation.InitPaymentContext; import cn.daxpay.single.service.core.order.pay.entity.PayOrder; import cn.daxpay.single.service.core.order.pay.service.PayOrderExtraService; import cn.daxpay.single.service.core.order.pay.service.PayOrderQueryService; import cn.daxpay.single.service.core.payment.allocation.service.AllocationService; import cn.daxpay.single.service.core.payment.close.service.PayCloseService; import cn.daxpay.single.service.core.payment.sync.service.PaySyncService; -import cn.daxpay.single.service.dto.order.pay.PayOrderDetailDto; +import cn.daxpay.single.service.dto.order.pay.PayOrderAndExtraDto; import cn.daxpay.single.service.dto.order.pay.PayOrderDto; import cn.daxpay.single.service.dto.order.pay.PayOrderExtraDto; import cn.daxpay.single.service.param.order.PayOrderQuery; @@ -63,11 +65,11 @@ public ResResult findById(Long id){ @Operation(summary = "查询订单详情") @GetMapping("/findByOrderNo") - public ResResult findByOrderNo(String orderNo){ + public ResResult findByOrderNo(String orderNo){ PayOrderDto order = queryService.findByOrderNo(orderNo) .map(PayOrder::toDto) .orElseThrow(() -> new DataNotExistException("支付订单不存在")); - PayOrderDetailDto detailDto=new PayOrderDetailDto(); + PayOrderAndExtraDto detailDto=new PayOrderAndExtraDto(); detailDto.setPayOrder(order); detailDto.setPayOrderExtra(payOrderExtraService.findById(order.getId())); return Res.ok(detailDto); @@ -81,7 +83,7 @@ public ResResult getExtraById(Long id){ @Operation(summary = "同步支付状态") @PostMapping("/syncByOrderNo") - public ResResult syncById(String orderNo){ + public ResResult syncById(String orderNo){ PaySyncParam param = new PaySyncParam(); param.setOrderNo(orderNo); return Res.ok(paySyncService.sync(param)); @@ -97,9 +99,10 @@ public ResResult close(String orderNo){ } @Operation(summary = "发起分账") + @InitPaymentContext(PaymentApiCode.ALLOCATION) @PostMapping("/allocation") public ResResult allocation(String orderNo){ - AllocationStartParam param = new AllocationStartParam(); + AllocationParam param = new AllocationParam(); param.setOrderNo(orderNo); param.setBizAllocationNo(OrderNoGenerateUtil.allocation()); allocationService.allocation(param); diff --git a/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/order/ReconcileOrderController.java b/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/order/ReconcileOrderController.java index a8ef28640..8b0d02600 100644 --- a/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/order/ReconcileOrderController.java +++ b/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/order/ReconcileOrderController.java @@ -8,7 +8,7 @@ import cn.daxpay.single.service.core.order.reconcile.service.ReconcileDiffService; import cn.daxpay.single.service.core.order.reconcile.service.ReconcileQueryService; import cn.daxpay.single.service.core.payment.reconcile.service.ReconcileService; -import cn.daxpay.single.service.dto.order.reconcile.ReconcileTradeDetailDto; +import cn.daxpay.single.service.dto.order.reconcile.ReconcileOutTradeDto; import cn.daxpay.single.service.dto.order.reconcile.ReconcileDiffDto; import cn.daxpay.single.service.dto.order.reconcile.ReconcileOrderDto; import cn.daxpay.single.service.param.reconcile.*; @@ -101,13 +101,13 @@ public ResResult findById(Long id){ @Operation(summary = "对账明细分页") @GetMapping("/detail/page") - public ResResult> pageDetail(PageParam pageParam, ReconcileTradeDetailQuery query){ + public ResResult> pageDetail(PageParam pageParam, ReconcileTradeDetailQuery query){ return Res.ok(reconcileQueryService.pageDetail(pageParam, query)); } @Operation(summary = "对账明细详情") @GetMapping("/detail/findById") - public ResResult findDetailById(Long id){ + public ResResult findDetailById(Long id){ return Res.ok(reconcileQueryService.findDetailById(id)); } diff --git a/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/order/RefundOrderController.java b/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/order/RefundOrderController.java index 272080a47..d0f6ec803 100644 --- a/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/order/RefundOrderController.java +++ b/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/order/RefundOrderController.java @@ -4,12 +4,14 @@ import cn.bootx.platform.common.core.rest.Res; import cn.bootx.platform.common.core.rest.ResResult; import cn.bootx.platform.common.core.rest.param.PageParam; +import cn.daxpay.single.code.PaymentApiCode; import cn.daxpay.single.param.payment.refund.RefundSyncParam; -import cn.daxpay.single.result.pay.SyncResult; +import cn.daxpay.single.result.sync.RefundSyncResult; +import cn.daxpay.single.service.annotation.InitPaymentContext; import cn.daxpay.single.service.core.order.refund.service.RefundOrderQueryService; import cn.daxpay.single.service.core.order.refund.service.RefundOrderService; import cn.daxpay.single.service.core.payment.sync.service.RefundSyncService; -import cn.daxpay.single.service.dto.order.refund.RefundOrderDetailDto; +import cn.daxpay.single.service.dto.order.refund.RefundOrderAndExtraDto; import cn.daxpay.single.service.dto.order.refund.RefundOrderDto; import cn.daxpay.single.service.dto.order.refund.RefundOrderExtraDto; import cn.daxpay.single.service.param.order.PayOrderQuery; @@ -42,10 +44,10 @@ public ResResult> page(PageParam pageParam, RefundOrd @Operation(summary = "查询退款订单详情") - @GetMapping("/findByOrderNo") - public ResResult findByRefundNo(String refundNo){ + @GetMapping("/findByRefundNo") + public ResResult findByRefundNo(String refundNo){ RefundOrderDto order = queryService.findByRefundNo(refundNo); - RefundOrderDetailDto detailDto = new RefundOrderDetailDto(); + RefundOrderAndExtraDto detailDto = new RefundOrderAndExtraDto(); detailDto.setRefundOrder(order); detailDto.setRefundOrderExtra(queryService.findExtraById(order.getId())); return Res.ok(detailDto); @@ -63,6 +65,7 @@ public ResResult findExtraById(Long id){ return Res.ok(queryService.findExtraById(id)); } + @InitPaymentContext(PaymentApiCode.REFUND) @Operation(summary = "手动发起退款") @PostMapping("/refund") public ResResult refund(@RequestBody PayOrderRefundParam param){ @@ -70,6 +73,7 @@ public ResResult refund(@RequestBody PayOrderRefundParam param){ return Res.ok(); } + @InitPaymentContext(PaymentApiCode.REFUND) @Operation(summary = "重新发起退款") @PostMapping("/resetRefund") public ResResult resetRefund(Long id){ @@ -79,7 +83,7 @@ public ResResult resetRefund(Long id){ @Operation(summary = "退款同步") @PostMapping("/syncByRefundNo") - public ResResult syncByRefundNo(String refundNo){ + public ResResult syncByRefundNo(String refundNo){ RefundSyncParam refundSyncParam = new RefundSyncParam(); refundSyncParam.setRefundNo(refundNo); return Res.ok(refundSyncService.sync(refundSyncParam)); diff --git a/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/record/TradeFlowRecordController.java b/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/record/TradeFlowRecordController.java new file mode 100644 index 000000000..7c1f2061c --- /dev/null +++ b/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/record/TradeFlowRecordController.java @@ -0,0 +1,40 @@ +package cn.daxpay.single.admin.controller.record; + +import cn.bootx.platform.common.core.rest.PageResult; +import cn.bootx.platform.common.core.rest.Res; +import cn.bootx.platform.common.core.rest.ResResult; +import cn.bootx.platform.common.core.rest.param.PageParam; +import cn.daxpay.single.service.core.record.flow.service.TradeFlowRecordService; +import cn.daxpay.single.service.dto.record.flow.TradeFlowRecordDto; +import cn.daxpay.single.service.param.record.TradeFlowRecordQuery; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * 交易流水记录控制器 + * @author xxm + * @since 2024/5/17 + */ +@Tag(name = "交易流水记录控制器") +@RestController +@RequestMapping("/record/flow") +@RequiredArgsConstructor +public class TradeFlowRecordController { + private final TradeFlowRecordService service; + + @Operation(summary = "分页查询") + @GetMapping("/page") + public ResResult> page(PageParam pageParam, TradeFlowRecordQuery query) { + return Res.ok(service.page(pageParam, query)); + } + + @Operation(summary = "查询单条") + @GetMapping("/findById") + public ResResult findById(Long id) { + return Res.ok(service.findById(id)); + } +} diff --git a/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/task/ClientNoticeTaskController.java b/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/task/ClientNoticeTaskController.java index 375434f6d..0e8f9f779 100644 --- a/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/task/ClientNoticeTaskController.java +++ b/daxpay-single/daxpay-single-admin/src/main/java/cn/daxpay/single/admin/controller/task/ClientNoticeTaskController.java @@ -4,7 +4,7 @@ import cn.bootx.platform.common.core.rest.Res; import cn.bootx.platform.common.core.rest.ResResult; import cn.bootx.platform.common.core.rest.param.PageParam; -import cn.daxpay.single.service.core.task.notice.service.ClientNoticeTaskService; +import cn.daxpay.single.service.core.notice.service.ClientNoticeTaskService; import cn.daxpay.single.service.dto.record.notice.ClientNoticeRecordDto; import cn.daxpay.single.service.dto.record.notice.ClientNoticeTaskDto; import cn.daxpay.single.service.param.record.ClientNoticeRecordQuery; diff --git a/daxpay-single/daxpay-single-core/pom.xml b/daxpay-single/daxpay-single-core/pom.xml index 44c0bf689..b65ca6223 100644 --- a/daxpay-single/daxpay-single-core/pom.xml +++ b/daxpay-single/daxpay-single-core/pom.xml @@ -6,7 +6,7 @@ cn.daxpay.single daxpay-single - 2.0.6 + 2.0.7 daxpay-single-core diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/code/AllocDetailResultEnum.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/code/AllocDetailResultEnum.java index 3d3662a38..867eaf7e2 100644 --- a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/code/AllocDetailResultEnum.java +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/code/AllocDetailResultEnum.java @@ -15,6 +15,8 @@ public enum AllocDetailResultEnum { PENDING("pending", "待分账"), SUCCESS("success", "分账成功"), FAIL("fail", "分账失败"), + /** 金额为0时不进行分账 */ + IGNORE("ignore", "忽略分账"), ; private final String code; diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/code/AllocOrderStatusEnum.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/code/AllocOrderStatusEnum.java index 3d06d0c37..f7efa97ad 100644 --- a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/code/AllocOrderStatusEnum.java +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/code/AllocOrderStatusEnum.java @@ -17,6 +17,8 @@ public enum AllocOrderStatusEnum { ALLOCATION_FAILED("allocation_failed", "分账失败"), FINISH("finish", "完结"), FINISH_FAILED("finish_failed", "完结失败"), + /** 忽略, 如果金额为0, 不进行分账 */ + IGNORE("ignore", "忽略"), ; final String code; diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/code/PaymentApiCode.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/code/PaymentApiCode.java index b243ce171..fbe8bd278 100644 --- a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/code/PaymentApiCode.java +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/code/PaymentApiCode.java @@ -6,29 +6,43 @@ * @since 2024/2/25 */ public interface PaymentApiCode { - + /** 支付 */ String PAY = "pay"; - + /** 退款 */ String REFUND = "refund"; - + /** 关闭订单 */ String CLOSE = "close"; - + /** 分账 */ String ALLOCATION = "allocation"; - + /** 转账 */ + String TRANSFER = "transfer"; + /** 分账完结 */ String ALLOCATION_FINISH = "allocationFinish"; - + /** 支付同步 */ String SYNC_PAY = "syncPay"; - + /** 退款同步 */ String SYNC_REFUND = "syncRefund"; - + /** 分账同步 */ + String SYNC_ALLOCATION = "syncAllocation"; + /** 转账同步 */ + String SYNC_TRANSFER = "syncTransfer"; + /** 查询支付订单 */ String QUERY_PAY_ORDER = "queryPayOrder"; - + /** 查询退款订单 */ String QUERY_REFUND_ORDER = "queryRefundOrder"; - + /** 查询分账订单 */ + String QUERY_ALLOCATION_ORDER = "queryAllocationOrder"; + /** 查询转账订单 */ + String QUERY_TRANSFER_ORDER = "queryTransferOrder"; + /** 查询分账接收方 */ + String QUERY_ALLOCATION_RECEIVER = "queryAllocationReceiver"; + /** 获取微信授权链接 */ String GET_WX_AUTH_URL = "getWxAuthUrl"; - + /** 获取微信AccessToken */ String GET_WX_ACCESS_TOKEN = "getWxAccessToken"; - - + /** 添加分账方 */ + String ALLOCATION_RECEIVER_ADD = "allocationReceiverAdd"; + /** 删除分账方 */ + String ALLOCATION_RECEIVER_REMOVE = "allocationReceiverRemove"; } diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/PaymentCommonParam.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/PaymentCommonParam.java index db4a3afac..5ca4fb02a 100644 --- a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/PaymentCommonParam.java +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/PaymentCommonParam.java @@ -18,7 +18,6 @@ public abstract class PaymentCommonParam { /** 客户端ip */ -// @NotBlank(message = "客户端ip不可为空") @Schema(description = "客户端ip") private String clientIp; diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocationFinishParam.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocFinishParam.java similarity index 75% rename from daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocationFinishParam.java rename to daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocFinishParam.java index 10ccabc2d..57b9bfe26 100644 --- a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocationFinishParam.java +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocFinishParam.java @@ -13,10 +13,10 @@ @EqualsAndHashCode(callSuper = true) @Data @Schema(title = "分账请求参数") -public class AllocationFinishParam extends PaymentCommonParam { +public class AllocFinishParam extends PaymentCommonParam { - @Schema(description = "分账订单ID") - private Long orderId; + @Schema(description = "商户分账单号") + private String bizAllocationNo; @Schema(description = "分账单号") private String allocationNo; diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/allocation/group/AllocationReceiverParam.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocReceiverAddParam.java similarity index 52% rename from daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/allocation/group/AllocationReceiverParam.java rename to daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocReceiverAddParam.java index 19474847b..045265b21 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/allocation/group/AllocationReceiverParam.java +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocReceiverAddParam.java @@ -1,44 +1,50 @@ -package cn.daxpay.single.service.param.allocation.group; +package cn.daxpay.single.param.payment.allocation; import cn.daxpay.single.code.AllocReceiverTypeEnum; import cn.daxpay.single.code.AllocRelationTypeEnum; import cn.daxpay.single.code.PayChannelEnum; +import cn.daxpay.single.param.PaymentCommonParam; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; +import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; +import javax.validation.constraints.NotEmpty; + /** - * 分账接收方参数 + * 分账接收者添加参数 * @author xxm - * @since 2024/3/28 + * @since 2024/5/20 */ +@EqualsAndHashCode(callSuper = true) @Data @Accessors(chain = true) -@Schema(title = "分账接收方参数") -public class AllocationReceiverParam { - +@Schema(title = "分账接收者添加参数") +public class AllocReceiverAddParam extends PaymentCommonParam { - @Schema(description = "主键") - private Long id; - - @Schema(description = "账号别名") - private String name; + @Schema(description = "接收者编号, 需要保证唯一") + @NotEmpty(message = "接收者编号必填") + private String receiverNo; /** + * 所属通道 * @see PayChannelEnum */ @Schema(description = "所属通道") + @NotEmpty(message = "所属通道必填") private String channel; /** - * 分账接收方类型 个人/商户 + * 分账接收方类型 根据不同类型的通道进行传输 * @see AllocReceiverTypeEnum */ @Schema(description = "分账接收方类型") + @NotEmpty(message = "分账接收方类型必填") private String receiverType; - + /** 接收方账号 */ @Schema(description = "接收方账号") + @NotEmpty(message = "接收方账号必填") private String receiverAccount; /** 接收方姓名 */ @@ -50,15 +56,10 @@ public class AllocationReceiverParam { * @see AllocRelationTypeEnum */ @Schema(description = "分账关系类型") + @NotEmpty(message = "分账关系类型必填") private String relationType; + /** 关系名称 关系类型为自定义是填写 */ @Schema(description = "关系名称") private String relationName; - - @Schema(description = "是否已经同步到网关") - private Boolean sync; - - @Schema(description = "备注") - private String remark; - } diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocReceiverParam.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocReceiverParam.java new file mode 100644 index 000000000..7ab1fb8e1 --- /dev/null +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocReceiverParam.java @@ -0,0 +1,31 @@ +package cn.daxpay.single.param.payment.allocation; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.experimental.Accessors; + +import javax.validation.constraints.Min; +import javax.validation.constraints.NotEmpty; +import javax.validation.constraints.NotNull; + +/** + * 分账接收方列表 + * @author xxm + * @since 2024/5/21 + */ +@Data +@Accessors(chain = true) +@Schema(title = "分账接收方列表") +public class AllocReceiverParam { + + /** 分账接收方编号 */ + @Schema(description = "分账接收方编号") + @NotEmpty(message = "分账接收方编号必填") + private String receiverNo; + + /** 分账金额 */ + @Schema(description = "分账金额") + @NotNull(message = "分账金额必填") + @Min(value = 1,message = "分账金额至少为0.01元") + private Integer amount; +} diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocReceiverRemoveParam.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocReceiverRemoveParam.java new file mode 100644 index 000000000..06f21e6dd --- /dev/null +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocReceiverRemoveParam.java @@ -0,0 +1,26 @@ +package cn.daxpay.single.param.payment.allocation; + +import cn.daxpay.single.param.PaymentCommonParam; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import javax.validation.constraints.NotEmpty; + +/** + * 分账接收者删除参数 + * @author xxm + * @since 2024/5/20 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@Accessors(chain = true) +@Schema(title = "分账接收者删除参数") +public class AllocReceiverRemoveParam extends PaymentCommonParam { + + @Schema(description = "接收者编号") + @NotEmpty(message = "接收者编号必填") + private String receiverNo; + +} diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocationSyncParam.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocSyncParam.java similarity index 69% rename from daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocationSyncParam.java rename to daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocSyncParam.java index 61e598d9b..b01508a00 100644 --- a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocationSyncParam.java +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocSyncParam.java @@ -1,16 +1,19 @@ package cn.daxpay.single.param.payment.allocation; +import cn.daxpay.single.param.PaymentCommonParam; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; +import lombok.EqualsAndHashCode; /** * 分账同步请求参数 * @author xxm * @since 2024/4/12 */ +@EqualsAndHashCode(callSuper = true) @Data @Schema(title = "分账同步请求参数") -public class AllocationSyncParam { +public class AllocSyncParam extends PaymentCommonParam { @Schema(description = "分账号") private String allocationNo; diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocationParam.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocationParam.java new file mode 100644 index 000000000..1ffe9f730 --- /dev/null +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocationParam.java @@ -0,0 +1,62 @@ +package cn.daxpay.single.param.payment.allocation; + +import cn.daxpay.single.param.PaymentCommonParam; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import javax.validation.Valid; +import javax.validation.constraints.NotBlank; +import java.util.List; + +/** + * 开始分账请求参数 + * @author xxm + * @since 2024/4/6 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@Schema(title = "分账请求参数") +public class AllocationParam extends PaymentCommonParam { + + /** 商户分账单号 */ + @Schema(description = "商户分账单号") + @NotBlank(message = "商户分账单号不可为空") + private String bizAllocationNo; + + /** 支付订单号 */ + @Schema(description = "支付订单号") + private String orderNo; + + /** 商户支付订单号 */ + @Schema(description = "商户支付订单号") + private String bizOrderNo; + + /** 分账描述 */ + @Schema(description = "分账描述") + private String description; + + /** + * 优先级 分账接收方列表 > 分账组编号 > 默认分账组 + */ + @Schema(description = "分账组编号") + private String groupNo; + + /** 分账接收方列表 */ + @Schema(description = "分账接收方列表") + @Valid + private List receivers; + + /** 是否不启用异步通知 */ + @Schema(description = "是否不启用异步通知") + private Boolean notNotify; + + /** 回调通知地址 */ + @Schema(description = "回调通知地址") + private String notifyUrl; + + /** 商户扩展参数,回调时会原样返回 */ + @Schema(description = "商户扩展参数,回调时会原样返回") + private String attach; + +} diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocationResetParam.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocationResetParam.java deleted file mode 100644 index 3262a024e..000000000 --- a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocationResetParam.java +++ /dev/null @@ -1,22 +0,0 @@ -package cn.daxpay.single.param.payment.allocation; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; -import lombok.experimental.Accessors; - -/** - * 重新分账参数 - * @author xxm - * @since 2024/4/15 - */ -@Data -@Accessors(chain = true) -@Schema(title = "重新分账参数") -public class AllocationResetParam { - - @Schema(description = "分账订单ID") - private Long orderId; - - @Schema(description = "分账单号") - private String allocationNo; -} diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocationStartParam.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocationStartParam.java deleted file mode 100644 index ef0fdfb5e..000000000 --- a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/AllocationStartParam.java +++ /dev/null @@ -1,39 +0,0 @@ -package cn.daxpay.single.param.payment.allocation; - -import cn.daxpay.single.param.PaymentCommonParam; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import javax.validation.constraints.NotBlank; - -/** - * 开始分账请求参数 - * @author xxm - * @since 2024/4/6 - */ -@EqualsAndHashCode(callSuper = true) -@Data -@Schema(title = "开始分账请求参数") -public class AllocationStartParam extends PaymentCommonParam { - - @Schema(description = "商户分账单号") - @NotBlank(message = "商户分账单号不可为空") - private String bizAllocationNo; - - @Schema(description = "支付订单号") - private String orderNo; - - @Schema(description = "商户订单号") - private String bizOrderNo; - - @Schema(description = "分账描述") - private String description; - - /** - * 不传输分账组使用默认分账组进行分账 - */ - @Schema(description = "分账组ID") - private Long allocationGroupId; - -} diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/QueryAllocReceiverParam.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/QueryAllocReceiverParam.java new file mode 100644 index 000000000..1fc094f47 --- /dev/null +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/allocation/QueryAllocReceiverParam.java @@ -0,0 +1,27 @@ +package cn.daxpay.single.param.payment.allocation; + +import cn.daxpay.single.param.PaymentCommonParam; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * 查询分账接收者参数 + * @author xxm + * @since 2024/5/20 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@Accessors(chain = true) +@Schema(title = "查询分账接收者参数") +public class QueryAllocReceiverParam extends PaymentCommonParam { + + /** 所属通道 */ + @Schema(description = "所属通道") + private String channel; + + /** 分账接收方编号 */ + @Schema(description = "分账接收方编号") + private String receiverNo; +} diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/transfer/QueryTransferParam.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/transfer/QueryTransferParam.java new file mode 100644 index 000000000..67a1da657 --- /dev/null +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/transfer/QueryTransferParam.java @@ -0,0 +1,19 @@ +package cn.daxpay.single.param.payment.transfer; + +import cn.daxpay.single.param.PaymentCommonParam; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * 转正订单查询参数 + * @author xxm + * @since 2024/5/27 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@Accessors(chain = true) +@Schema(title = "转正订单查询参数") +public class QueryTransferParam extends PaymentCommonParam { +} diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/transfer/TransferParam.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/transfer/TransferParam.java new file mode 100644 index 000000000..99f50633b --- /dev/null +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/param/payment/transfer/TransferParam.java @@ -0,0 +1,19 @@ +package cn.daxpay.single.param.payment.transfer; + +import cn.daxpay.single.param.PaymentCommonParam; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * 转账参数 + * @author xxm + * @since 2024/5/26 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@Accessors(chain = true) +@Schema(title = "转账参数") +public class TransferParam extends PaymentCommonParam { +} diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/DaxResult.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/DaxResult.java index 8d252eba7..a4ec33ed0 100644 --- a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/DaxResult.java +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/DaxResult.java @@ -15,7 +15,7 @@ */ @Getter @Setter -@ToString +@ToString(callSuper = true) @EqualsAndHashCode(callSuper = true) public class DaxResult extends ResResult { diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/allocation/AllocReceiverAddResult.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/allocation/AllocReceiverAddResult.java new file mode 100644 index 000000000..87e1c6814 --- /dev/null +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/allocation/AllocReceiverAddResult.java @@ -0,0 +1,19 @@ +package cn.daxpay.single.result.allocation; + +import cn.daxpay.single.result.pay.PayCloseResult; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * 分账接收方添加返回结果 + * @author xxm + * @since 2024/5/21 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@Accessors(chain = true) +@Schema(title = "分账接收方返回结果") +public class AllocReceiverAddResult extends PayCloseResult { +} diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/allocation/AllocReceiverRemoveResult.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/allocation/AllocReceiverRemoveResult.java new file mode 100644 index 000000000..151f15ae7 --- /dev/null +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/allocation/AllocReceiverRemoveResult.java @@ -0,0 +1,19 @@ +package cn.daxpay.single.result.allocation; + +import cn.daxpay.single.result.pay.PayCloseResult; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * 分账接收方删除返回结果 + * @author xxm + * @since 2024/5/21 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@Accessors(chain = true) +@Schema(title = "分账接收方返回结果") +public class AllocReceiverRemoveResult extends PayCloseResult { +} diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/allocation/AllocReceiverResult.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/allocation/AllocReceiverResult.java new file mode 100644 index 000000000..15b8738e3 --- /dev/null +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/allocation/AllocReceiverResult.java @@ -0,0 +1,50 @@ +package cn.daxpay.single.result.allocation; + +import cn.daxpay.single.code.AllocReceiverTypeEnum; +import cn.daxpay.single.code.AllocRelationTypeEnum; +import cn.daxpay.single.code.PayChannelEnum; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.experimental.Accessors; + +/** + * 分账接收方 + * @author xxm + * @since 2024/5/21 + */ +@Data +@Accessors(chain = true) +@Schema(title = "分账接收方") +public class AllocReceiverResult { + + /** 分账接收方编号, 需要保证唯一 */ + private String receiverNo; + + /** + * 所属通道 + * @see PayChannelEnum + */ + private String channel; + + /** + * 分账接收方类型 + * @see AllocReceiverTypeEnum + */ + private String receiverType; + + /** 接收方账号 */ + private String receiverAccount; + + /** 接收方姓名 */ + private String receiverName; + + /** + * 分账关系类型 + * @see AllocRelationTypeEnum + */ + private String relationType; + + /** 关系名称 */ + private String relationName; + +} diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/allocation/AllocReceiversResult.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/allocation/AllocReceiversResult.java new file mode 100644 index 000000000..d156dd047 --- /dev/null +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/allocation/AllocReceiversResult.java @@ -0,0 +1,25 @@ +package cn.daxpay.single.result.allocation; + +import cn.daxpay.single.result.pay.PayCloseResult; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.util.List; + +/** + * 分账接收方返回结果 + * @author xxm + * @since 2024/5/21 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@Accessors(chain = true) +@Schema(title = "分账接收方返回结果") +public class AllocReceiversResult extends PayCloseResult { + + @Schema(description = "接收方列表") + private List receivers; + +} diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/allocation/AllocationResult.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/allocation/AllocationResult.java index b1ff49ad7..ca0444cca 100644 --- a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/allocation/AllocationResult.java +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/allocation/AllocationResult.java @@ -1,5 +1,6 @@ package cn.daxpay.single.result.allocation; +import cn.daxpay.single.code.AllocOrderStatusEnum; import cn.daxpay.single.result.PaymentCommonResult; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; @@ -17,12 +18,18 @@ @Schema(title = "分账请求结果") public class AllocationResult extends PaymentCommonResult { - @Schema(description = "分账订单ID") - private Long orderId; - - @Schema(description = "分账订单号, 如果请求时未传, 则默认使用分账订单ID") + /** 分账订单号 */ + @Schema(description = "分账订单号") private String allocationNo; + /** 商户分账订单号 */ + @Schema(description = "商户分账订单号") + private String bizAllocationNo; + + /** + * 分账状态 + * @see AllocOrderStatusEnum + */ @Schema(description = "分账状态") private String status; } diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/order/AllocOrderDetailResult.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/order/AllocOrderDetailResult.java new file mode 100644 index 000000000..a896e9aa7 --- /dev/null +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/order/AllocOrderDetailResult.java @@ -0,0 +1,65 @@ +package cn.daxpay.single.result.order; + +import cn.daxpay.single.code.AllocDetailResultEnum; +import cn.daxpay.single.code.AllocReceiverTypeEnum; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.experimental.Accessors; + +import java.time.LocalDateTime; + +/** + * 分账订单明细 + * @author xxm + * @since 2024/5/21 + */ +@Data +@Accessors(chain = true) +@Schema(title = "分账订单明细") +public class AllocOrderDetailResult { + + @Schema(description = "分账接收方编号") + private String receiverNo; + + /** 分账金额 */ + @Schema(description = "分账金额") + private Integer amount; + + /** 分账比例 */ + @Schema(description = "分账比例(万分之多少)") + private Integer rate; + + /** + * 分账接收方类型 + * @see AllocReceiverTypeEnum + */ + @Schema(description = "分账接收方类型") + private String receiverType; + + /** 接收方账号 */ + @Schema(description = "接收方账号") + private String receiverAccount; + + /** 接收方姓名 */ + @Schema(description = "接收方姓名") + private String receiverName; + + /** + * 分账结果 + * @see AllocDetailResultEnum + */ + @Schema(description = "分账结果") + private String result; + + /** 错误代码 */ + @Schema(description = "错误代码") + private String errorCode; + + /** 错误原因 */ + @Schema(description = "错误原因") + private String errorMsg; + + /** 分账完成时间 */ + @Schema(description = "分账完成时间") + private LocalDateTime finishTime; +} diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/order/AllocOrderResult.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/order/AllocOrderResult.java new file mode 100644 index 000000000..2ab85ea4b --- /dev/null +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/order/AllocOrderResult.java @@ -0,0 +1,111 @@ +package cn.daxpay.single.result.order; + +import cn.daxpay.single.code.AllocOrderResultEnum; +import cn.daxpay.single.code.AllocOrderStatusEnum; +import cn.daxpay.single.code.PayChannelEnum; +import cn.daxpay.single.result.PaymentCommonResult; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.time.LocalDateTime; +import java.util.List; + +/** + * 分账订单返回结果 + * @author xxm + * @since 2024/5/21 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@Accessors(chain = true) +@Schema(title = "分账订单返回结果") +public class AllocOrderResult extends PaymentCommonResult { + + /** 分账单号 */ + @Schema(description = "分账单号") + private String allocationNo; + + /** 商户分账单号 */ + @Schema(description = "商户分账单号") + private String bizAllocationNo; + + /** 通道分账号 */ + @Schema(description = "通道分账号") + private String outAllocationNo; + + /** + * 支付订单号 + */ + @Schema(description = "支付订单号") + private String orderNo; + + /** 商户支付订单号 */ + @Schema(description = "商户支付订单号") + private String bizOrderNo; + + /** 通道支付订单号 */ + @Schema(description = "通道支付订单号") + private String outOrderNo; + + /** + * 支付订单标题 + */ + @Schema(description = "支付订单标题") + private String title; + + /** + * 所属通道 + * @see PayChannelEnum + */ + @Schema(description = "所属通道") + private String channel; + + /** + * 总分账金额 + */ + @Schema(description = "总分账金额") + private Integer amount; + + /** + * 分账描述 + */ + @Schema(description = "分账描述") + private String description; + + /** + * 状态 + * @see AllocOrderStatusEnum + */ + @Schema(description = "状态") + private String status; + + /** + * 处理结果 + * @see AllocOrderResultEnum + */ + @Schema(description = "处理结果") + private String result; + + /** + * 错误码 + */ + @Schema(description = "错误码") + private String errorCode; + + /** + * 错误信息 + */ + @Schema(description = "错误原因") + private String errorMsg; + + /** 分账订单完成时间 */ + @Schema(description = "分账订单完成时间") + private LocalDateTime finishTime; + + /** 分账明细 */ + @Schema(description = "分账明细") + private List details; + +} diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/order/PayOrderResult.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/order/PayOrderResult.java index 3e3aa974b..d7bdbb577 100644 --- a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/order/PayOrderResult.java +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/order/PayOrderResult.java @@ -1,6 +1,7 @@ package cn.daxpay.single.result.order; import cn.daxpay.single.code.PayChannelEnum; +import cn.daxpay.single.code.PayOrderAllocStatusEnum; import cn.daxpay.single.code.PayStatusEnum; import cn.daxpay.single.result.PaymentCommonResult; import cn.daxpay.single.serializer.LocalDateTimeToTimestampSerializer; @@ -23,13 +24,16 @@ @Schema(title = "支付单响应参数") public class PayOrderResult extends PaymentCommonResult { - /** 支付订单号 */ + /** 商户订单号 */ + @Schema(description = "商户订单号") + private String bizOrderNo; + @Schema(description = "支付订单号") private String orderNo; - /** 业务系统订单号 */ - @Schema(description = "业务号") - private String bizOrderNo; + /** 通道系统交易号 */ + @Schema(description = "通道支付订单号") + private String outOrderNo; /** 标题 */ @Schema(description = "标题") @@ -39,6 +43,14 @@ public class PayOrderResult extends PaymentCommonResult { @Schema(description = "描述") private String description; + /** 是否支持分账 */ + @Schema(description = "是否需要分账") + private Boolean allocation; + + /** 是否开启自动分账, 不传输为不开启 */ + @Schema(description = "是否开启自动分账") + private Boolean autoAllocation; + /** * 支付通道 * @see PayChannelEnum @@ -67,6 +79,13 @@ public class PayOrderResult extends PaymentCommonResult { @Schema(description = "支付状态") private String status; + /** + * 分账状态 + * @see PayOrderAllocStatusEnum + */ + @Schema(description = "分账状态") + private String allocationStatus; + /** 支付时间 */ @Schema(description = "支付时间") @JsonSerialize(using = LocalDateTimeToTimestampSerializer.class) @@ -82,4 +101,12 @@ public class PayOrderResult extends PaymentCommonResult { @JsonSerialize(using = LocalDateTimeToTimestampSerializer.class) private LocalDateTime closeTime; + /** 错误码 */ + @Schema(description = "错误码") + private String errorCode; + + /** 错误信息 */ + @Schema(description = "错误信息") + private String errorMsg; + } diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/order/RefundOrderResult.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/order/RefundOrderResult.java index 5914b83d2..f2f9b1a4b 100644 --- a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/order/RefundOrderResult.java +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/order/RefundOrderResult.java @@ -1,5 +1,6 @@ package cn.daxpay.single.result.order; +import cn.daxpay.single.code.PayChannelEnum; import cn.daxpay.single.code.RefundStatusEnum; import cn.daxpay.single.result.PaymentCommonResult; import cn.daxpay.single.serializer.LocalDateTimeToTimestampSerializer; @@ -9,7 +10,6 @@ import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; -import java.math.BigDecimal; import java.time.LocalDateTime; /** @@ -23,25 +23,74 @@ @Schema(title = "退款订单数据") public class RefundOrderResult extends PaymentCommonResult { + /** 支付订单号 */ + @Schema(description = "支付订单号") + private String orderNo; + + /** 商户支付订单号 */ + @Schema(description = "商户支付订单号") + private String bizOrderNo; + + /** 通道支付订单号 */ + @Schema(description = "通道支付订单号") + private String outOrderNo; + + /** 支付标题 */ + @Schema(description = "支付标题") + private String title; + + /** 退款号 */ @Schema(description = "退款号") private String refundNo; + /** 商户退款号 */ @Schema(description = "商户退款号") private String bizRefundNo; - @Schema(description = "标题") - private String title; + /** 通道退款交易号 */ + @Schema(description = "通道退款交易号") + private String outRefundNo; + /** + * 退款通道 + * @see PayChannelEnum + */ + @Schema(description = "支付通道") + private String channel; + + /** 订单金额 */ + @Schema(description = "订单金额") + private Integer orderAmount; + + /** 退款金额 */ @Schema(description = "退款金额") - private BigDecimal amount; + private Integer amount; + + /** 退款原因 */ + @Schema(description = "退款原因") + private String reason; + + /** 退款发起时间 */ + @Schema(description = "退款发起时间") + @JsonSerialize(using = LocalDateTimeToTimestampSerializer.class) + private LocalDateTime refundTime; @Schema(description = "退款完成时间") @JsonSerialize(using = LocalDateTimeToTimestampSerializer.class) private LocalDateTime finishTime; /** + * 退款状态 * @see RefundStatusEnum */ @Schema(description = "退款状态") private String status; + + /** 错误码 */ + @Schema(description = "错误码") + private String errorCode; + + /** 错误信息 */ + @Schema(description = "错误信息") + private String errorMsg; } diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/sync/AllocSyncResult.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/sync/AllocSyncResult.java new file mode 100644 index 000000000..1fe925e3a --- /dev/null +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/sync/AllocSyncResult.java @@ -0,0 +1,19 @@ +package cn.daxpay.single.result.sync; + +import cn.daxpay.single.result.PaymentCommonResult; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * 分账同步接口返回类 + * @author xxm + * @since 2024/5/20 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@Accessors(chain = true) +@Schema(title = "分账同步接口") +public class AllocSyncResult extends PaymentCommonResult { +} diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/sync/PaySyncResult.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/sync/PaySyncResult.java new file mode 100644 index 000000000..2098a64ad --- /dev/null +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/sync/PaySyncResult.java @@ -0,0 +1,30 @@ +package cn.daxpay.single.result.sync; + +import cn.daxpay.single.code.PaySyncStatusEnum; +import cn.daxpay.single.result.PaymentCommonResult; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import static cn.daxpay.single.code.PaySyncStatusEnum.FAIL; + +/** + * 支付同步结果 + * @author xxm + * @since 2023/12/27 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@Accessors(chain = true) +@Schema(title = "支付同步结果") +public class PaySyncResult extends PaymentCommonResult { + + /** + * 支付网关同步状态 + * @see PaySyncStatusEnum + */ + @Schema(description = "同步状态") + private String status = FAIL.getCode(); + +} diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/pay/SyncResult.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/sync/RefundSyncResult.java similarity index 68% rename from daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/pay/SyncResult.java rename to daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/sync/RefundSyncResult.java index 3a3dfd673..fdf25067c 100644 --- a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/pay/SyncResult.java +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/result/sync/RefundSyncResult.java @@ -1,8 +1,7 @@ -package cn.daxpay.single.result.pay; +package cn.daxpay.single.result.sync; -import cn.daxpay.single.code.AllocOrderStatusEnum; -import cn.daxpay.single.code.RefundSyncStatusEnum; import cn.daxpay.single.code.PaySyncStatusEnum; +import cn.daxpay.single.code.RefundSyncStatusEnum; import cn.daxpay.single.result.PaymentCommonResult; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; @@ -12,23 +11,22 @@ import static cn.daxpay.single.code.PaySyncStatusEnum.FAIL; /** - * 各种单据同步结果 + * 退款同步结果 * @author xxm * @since 2023/12/27 */ @EqualsAndHashCode(callSuper = true) @Data @Accessors(chain = true) -@Schema(title = "同步结果") -public class SyncResult extends PaymentCommonResult { +@Schema(title = "支付同步结果") +public class RefundSyncResult extends PaymentCommonResult { /** * 支付网关同步状态 * @see PaySyncStatusEnum * @see RefundSyncStatusEnum - * @see AllocOrderStatusEnum */ - @Schema(description = "支付网关同步状态") + @Schema(description = "同步状态") private String status = FAIL.getCode(); } diff --git a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/util/PayUtil.java b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/util/PayUtil.java index e8d4d5553..7ab669d39 100644 --- a/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/util/PayUtil.java +++ b/daxpay-single/daxpay-single-core/src/main/java/cn/daxpay/single/util/PayUtil.java @@ -6,6 +6,8 @@ import cn.hutool.core.date.DatePattern; import lombok.experimental.UtilityClass; +import java.math.BigDecimal; +import java.math.RoundingMode; import java.time.LocalDateTime; import java.time.temporal.ChronoUnit; @@ -16,6 +18,7 @@ */ @UtilityClass public class PayUtil { + private static final BigDecimal HUNDRED = new BigDecimal(100); /** * 校验参数 @@ -62,4 +65,23 @@ public String getUnionExpiredTime(LocalDateTime dateTime) { public LocalDateTime getPaymentExpiredTime(Integer minute) { return LocalDateTimeUtil.offset(LocalDateTime.now(), minute, ChronoUnit.MINUTES); } + + /** + * 元转分 + * @param amount 元的金额 + * @return 分的金额 + */ + public static int convertCentAmount(BigDecimal amount) { + return amount.multiply(HUNDRED).setScale(0, RoundingMode.HALF_UP).intValue(); + } + + /** + * 分转元,保留两位小数 + * + * @param amount 元的金额 + * @return 元的金额 两位小数 + */ + public static BigDecimal conversionAmount(int amount) { + return BigDecimal.valueOf(amount).divide(HUNDRED,2, RoundingMode.HALF_UP); + } } diff --git a/daxpay-single/daxpay-single-gateway/pom.xml b/daxpay-single/daxpay-single-gateway/pom.xml index 9e1679d50..96f1ab411 100644 --- a/daxpay-single/daxpay-single-gateway/pom.xml +++ b/daxpay-single/daxpay-single-gateway/pom.xml @@ -6,7 +6,7 @@ cn.daxpay.single daxpay-single - 2.0.6 + 2.0.7 daxpay-single-gateway diff --git a/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/PayGatewayNoticeController.java b/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/PayNoticeReceiverController.java similarity index 54% rename from daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/PayGatewayNoticeController.java rename to daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/PayNoticeReceiverController.java index 2caac728b..a34beb89c 100644 --- a/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/PayGatewayNoticeController.java +++ b/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/PayNoticeReceiverController.java @@ -1,6 +1,8 @@ package cn.daxpay.single.gateway.controller; import cn.bootx.platform.common.core.annotation.IgnoreAuth; +import cn.daxpay.single.service.core.channel.alipay.service.AliPayNoticeReceiverService; +import com.ijpay.alipay.AliPayApi; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.RequiredArgsConstructor; @@ -8,31 +10,35 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; +import javax.servlet.http.HttpServletRequest; import java.util.HashMap; import java.util.Map; import java.util.Objects; /** - * 网关消息通知 + * 支付通道消息通知 * @author xxm * @since 2024/4/16 */ @IgnoreAuth -@Tag(name = "三方支付网关消息通知") +@Tag(name = "支付通道网关消息通知") @RestController -@RequestMapping("/gateway/notice") +@RequestMapping("/callback/notice") @RequiredArgsConstructor -public class PayGatewayNoticeController { +public class PayNoticeReceiverController { + + private final AliPayNoticeReceiverService aliPayNoticeReceiverService; @Operation(summary = "支付宝消息通知") @PostMapping("/alipay") - public String aliPayNotice() { - return "success"; + public String aliPayNotice(HttpServletRequest request) { + Map map = AliPayApi.toMap(request); + return aliPayNoticeReceiverService.noticeReceiver(map); } @Operation(summary = "微信消息通知") @PostMapping("/wechat") - public Map wechatPayNotice() { + public Map wechatPayNotice(HttpServletRequest request) { return new HashMap<>(); } } diff --git a/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/UniAllocationController.java b/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/UniAllocationController.java new file mode 100644 index 000000000..eb66788c5 --- /dev/null +++ b/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/UniAllocationController.java @@ -0,0 +1,75 @@ +package cn.daxpay.single.gateway.controller; + +import cn.bootx.platform.common.core.annotation.IgnoreAuth; +import cn.daxpay.single.code.PaymentApiCode; +import cn.daxpay.single.param.payment.allocation.AllocFinishParam; +import cn.daxpay.single.param.payment.allocation.AllocReceiverAddParam; +import cn.daxpay.single.param.payment.allocation.AllocReceiverRemoveParam; +import cn.daxpay.single.param.payment.allocation.AllocationParam; +import cn.daxpay.single.result.DaxResult; +import cn.daxpay.single.result.allocation.AllocReceiverAddResult; +import cn.daxpay.single.result.allocation.AllocReceiverRemoveResult; +import cn.daxpay.single.result.allocation.AllocationResult; +import cn.daxpay.single.service.annotation.PaymentSign; +import cn.daxpay.single.service.annotation.InitPaymentContext; +import cn.daxpay.single.service.core.payment.allocation.service.AllocationReceiverService; +import cn.daxpay.single.service.core.payment.allocation.service.AllocationService; +import cn.daxpay.single.util.DaxRes; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * 分账控制器 + * @author xxm + * @since 2024/5/17 + */ +@IgnoreAuth +@Tag(name = "分账控制器") +@RestController +@RequestMapping("/unipay/allocation") +@RequiredArgsConstructor +public class UniAllocationController { + + private final AllocationService allocationService; + + private final AllocationReceiverService receiverService; + + @PaymentSign + @InitPaymentContext(PaymentApiCode.ALLOCATION) + @Operation(summary = "发起分账接口") + @PostMapping("/start") + public DaxResult start(@RequestBody AllocationParam param){ + return DaxRes.ok(allocationService.allocation(param)); + } + + @PaymentSign + @InitPaymentContext(PaymentApiCode.ALLOCATION_FINISH) + @Operation(summary = "分账完结接口") + @PostMapping("/finish") + public DaxResult finish(@RequestBody AllocFinishParam param){ + return DaxRes.ok(allocationService.finish(param)); + } + + @PaymentSign + @InitPaymentContext(PaymentApiCode.ALLOCATION_RECEIVER_ADD) + @Operation(summary = "分账接收方添加接口") + @PostMapping("/receiver/add") + public DaxResult receiverAdd(@RequestBody AllocReceiverAddParam param){ + return DaxRes.ok(receiverService.addAndSync(param)); + } + + @PaymentSign + @InitPaymentContext(PaymentApiCode.ALLOCATION_RECEIVER_REMOVE) + @Operation(summary = "分账接收方删除接口") + @PostMapping("/receiver/remove") + public DaxResult receiverRemove(@RequestBody AllocReceiverRemoveParam param){ + return DaxRes.ok(receiverService.remove(param)); + } + + +} diff --git a/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/UniPayAssistController.java b/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/UniPayAssistController.java index 7ff036682..026ec0221 100644 --- a/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/UniPayAssistController.java +++ b/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/UniPayAssistController.java @@ -9,7 +9,8 @@ import cn.daxpay.single.result.DaxResult; import cn.daxpay.single.result.assist.WxAccessTokenResult; import cn.daxpay.single.result.assist.WxAuthUrlResult; -import cn.daxpay.single.service.annotation.PaymentApi; +import cn.daxpay.single.service.annotation.InitPaymentContext; +import cn.daxpay.single.service.annotation.PaymentSign; import cn.daxpay.single.service.core.payment.assist.service.UniPayAssistService; import cn.daxpay.single.util.DaxRes; import io.swagger.v3.oas.annotations.Operation; @@ -33,14 +34,16 @@ public class UniPayAssistController { private final UniPayAssistService uniPayAssistService; - @PaymentApi(PaymentApiCode.GET_WX_AUTH_URL) + @PaymentSign + @InitPaymentContext(PaymentApiCode.GET_WX_AUTH_URL) @Operation(summary = "获取微信OAuth2授权链接") @PostMapping("/getWxAuthUrl") public DaxResult getWxAuthUrl(@RequestBody WxAuthUrlParam param){ return DaxRes.ok(uniPayAssistService.getWxAuthUrl(param)); } - @PaymentApi(PaymentApiCode.GET_WX_ACCESS_TOKEN) + @PaymentSign + @InitPaymentContext(PaymentApiCode.GET_WX_ACCESS_TOKEN) @Operation(summary = "获取微信AccessToken") @PostMapping("/getWxAccessToken") public ResResult getWxAccessToken(@RequestBody WxAccessTokenParam param){ diff --git a/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/UniPayController.java b/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/UniPayController.java index 9a5528839..697c9fbfa 100644 --- a/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/UniPayController.java +++ b/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/UniPayController.java @@ -2,26 +2,19 @@ import cn.bootx.platform.common.core.annotation.IgnoreAuth; import cn.daxpay.single.code.PaymentApiCode; -import cn.daxpay.single.param.payment.allocation.AllocationFinishParam; -import cn.daxpay.single.param.payment.allocation.AllocationStartParam; import cn.daxpay.single.param.payment.pay.PayCloseParam; import cn.daxpay.single.param.payment.pay.PayParam; -import cn.daxpay.single.param.payment.pay.PaySyncParam; import cn.daxpay.single.param.payment.refund.RefundParam; -import cn.daxpay.single.param.payment.refund.RefundSyncParam; +import cn.daxpay.single.param.payment.transfer.TransferParam; import cn.daxpay.single.result.DaxResult; -import cn.daxpay.single.result.allocation.AllocationResult; import cn.daxpay.single.result.pay.PayCloseResult; import cn.daxpay.single.result.pay.PayResult; import cn.daxpay.single.result.pay.RefundResult; -import cn.daxpay.single.result.pay.SyncResult; -import cn.daxpay.single.service.annotation.PaymentApi; -import cn.daxpay.single.service.core.payment.allocation.service.AllocationService; +import cn.daxpay.single.service.annotation.PaymentSign; +import cn.daxpay.single.service.annotation.InitPaymentContext; import cn.daxpay.single.service.core.payment.close.service.PayCloseService; import cn.daxpay.single.service.core.payment.pay.service.PayService; import cn.daxpay.single.service.core.payment.refund.service.RefundService; -import cn.daxpay.single.service.core.payment.sync.service.PaySyncService; -import cn.daxpay.single.service.core.payment.sync.service.RefundSyncService; import cn.daxpay.single.util.DaxRes; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; @@ -44,62 +37,38 @@ public class UniPayController { private final PayService payService; private final RefundService refundService; - private final PaySyncService paySyncService; private final PayCloseService payCloseService; - private final RefundSyncService refundSyncService; - private final AllocationService allocationService; - - @PaymentApi(PaymentApiCode.PAY) + @PaymentSign + @InitPaymentContext(PaymentApiCode.PAY) @Operation(summary = "统一支付接口") @PostMapping("/pay") public DaxResult pay(@RequestBody PayParam payParam){ return DaxRes.ok(payService.pay(payParam)); } - @PaymentApi(PaymentApiCode.CLOSE) + @PaymentSign + @InitPaymentContext(PaymentApiCode.CLOSE) @Operation(summary = "支付关闭接口") @PostMapping("/close") public DaxResult close(@RequestBody PayCloseParam param){ return DaxRes.ok(payCloseService.close(param)); } - @PaymentApi(PaymentApiCode.REFUND) + @PaymentSign + @InitPaymentContext(PaymentApiCode.REFUND) @Operation(summary = "统一退款接口") @PostMapping("/refund") public DaxResult refund(@RequestBody RefundParam param){ return DaxRes.ok(refundService.refund(param)); } - @PaymentApi(PaymentApiCode.SYNC_PAY) - @Operation(summary = "支付同步接口") - @PostMapping("/syncPay") - public DaxResult syncPay(@RequestBody PaySyncParam param){ - return DaxRes.ok(paySyncService.sync(param)); - } - - @PaymentApi(PaymentApiCode.SYNC_REFUND) - @Operation(summary = "退款同步接口") - @PostMapping("/syncRefund") - public DaxResult syncRefund(@RequestBody RefundSyncParam param){ - return DaxRes.ok(refundSyncService.sync(param)); - } - - @PaymentApi(PaymentApiCode.ALLOCATION) - @Operation(summary = "开启分账接口") - @PostMapping("/allocation") - public DaxResult allocation(@RequestBody AllocationStartParam param){ - return DaxRes.ok(allocationService.allocation(param)); - } - - @PaymentApi(PaymentApiCode.ALLOCATION_FINISH) - @Operation(summary = "分账完结接口") - @PostMapping("/allocationFinish") - public DaxResult allocationFinish(@RequestBody AllocationFinishParam param){ - allocationService.finish(param); + @PaymentSign + @InitPaymentContext(PaymentApiCode.TRANSFER) + @Operation(summary = "统一转账接口") + @PostMapping("/transfer") + public DaxResult transfer(@RequestBody TransferParam param){ return DaxRes.ok(); } - - } diff --git a/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/UniPaySyncController.java b/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/UniPaySyncController.java new file mode 100644 index 000000000..81736671f --- /dev/null +++ b/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/UniPaySyncController.java @@ -0,0 +1,75 @@ +package cn.daxpay.single.gateway.controller; + +import cn.bootx.platform.common.core.annotation.IgnoreAuth; +import cn.daxpay.single.code.PaymentApiCode; +import cn.daxpay.single.param.payment.allocation.AllocSyncParam; +import cn.daxpay.single.param.payment.pay.PaySyncParam; +import cn.daxpay.single.param.payment.refund.RefundSyncParam; +import cn.daxpay.single.result.DaxResult; +import cn.daxpay.single.result.sync.AllocSyncResult; +import cn.daxpay.single.result.sync.PaySyncResult; +import cn.daxpay.single.result.sync.RefundSyncResult; +import cn.daxpay.single.service.annotation.PaymentSign; +import cn.daxpay.single.service.annotation.InitPaymentContext; +import cn.daxpay.single.service.core.payment.allocation.service.AllocationSyncService; +import cn.daxpay.single.service.core.payment.sync.service.PaySyncService; +import cn.daxpay.single.service.core.payment.sync.service.RefundSyncService; +import cn.daxpay.single.util.DaxRes; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * 统一同步接口 + * @author xxm + * @since 2024/5/26 + */ +@IgnoreAuth +@Tag(name = "统一同步接口") +@RestController +@RequestMapping("/unipay/sync") +@RequiredArgsConstructor +public class UniPaySyncController { + + private final PaySyncService paySyncService; + private final RefundSyncService refundSyncService; + private final AllocationSyncService allocationSyncService; + + @PaymentSign + @InitPaymentContext(PaymentApiCode.SYNC_PAY) + @Operation(summary = "支付同步接口") + @PostMapping("/pay") + public DaxResult pay(@RequestBody PaySyncParam param){ + return DaxRes.ok(paySyncService.sync(param)); + } + + @PaymentSign + @InitPaymentContext(PaymentApiCode.SYNC_REFUND) + @Operation(summary = "退款同步接口") + @PostMapping("/refund") + public DaxResult refund(@RequestBody RefundSyncParam param){ + return DaxRes.ok(refundSyncService.sync(param)); + } + + + @PaymentSign + @InitPaymentContext(PaymentApiCode.SYNC_ALLOCATION) + @Operation(summary = "分账同步接口") + @PostMapping("/allocation") + public DaxResult allocation(@RequestBody AllocSyncParam param){ + return DaxRes.ok(allocationSyncService.sync(param)); + } + + @PaymentSign + @InitPaymentContext(PaymentApiCode.SYNC_TRANSFER) + @Operation(summary = "转账同步接口") + @PostMapping("/transfer") + public DaxResult transfer(@RequestBody AllocSyncParam param){ + allocationSyncService.sync(param); + return DaxRes.ok(); + } +} diff --git a/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/UniQueryController.java b/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/UniQueryController.java index 338b2d945..e3375202c 100644 --- a/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/UniQueryController.java +++ b/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/UniQueryController.java @@ -2,15 +2,25 @@ import cn.bootx.platform.common.core.annotation.IgnoreAuth; import cn.daxpay.single.code.PaymentApiCode; +import cn.daxpay.single.exception.pay.PayFailureException; +import cn.daxpay.single.param.payment.allocation.QueryAllocOrderParam; +import cn.daxpay.single.param.payment.allocation.QueryAllocReceiverParam; import cn.daxpay.single.param.payment.pay.QueryPayParam; import cn.daxpay.single.param.payment.refund.QueryRefundParam; +import cn.daxpay.single.param.payment.transfer.QueryTransferParam; import cn.daxpay.single.result.DaxResult; +import cn.daxpay.single.result.order.AllocOrderResult; +import cn.daxpay.single.result.allocation.AllocReceiversResult; import cn.daxpay.single.result.order.PayOrderResult; import cn.daxpay.single.result.order.RefundOrderResult; -import cn.daxpay.single.service.annotation.PaymentApi; +import cn.daxpay.single.service.annotation.PaymentSign; +import cn.daxpay.single.service.annotation.InitPaymentContext; import cn.daxpay.single.service.core.order.pay.service.PayOrderQueryService; import cn.daxpay.single.service.core.order.refund.service.RefundOrderQueryService; +import cn.daxpay.single.service.core.payment.allocation.service.AllocationReceiverService; +import cn.daxpay.single.service.core.payment.allocation.service.AllocationService; import cn.daxpay.single.util.DaxRes; +import cn.hutool.core.util.StrUtil; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.RequiredArgsConstructor; @@ -27,24 +37,56 @@ @IgnoreAuth @Tag(name = "统一查询接口") @RestController -@RequestMapping("/uni/query") +@RequestMapping("/unipay/query") @RequiredArgsConstructor public class UniQueryController { private final PayOrderQueryService payOrderQueryService; private final RefundOrderQueryService refundOrderQueryService; + private final AllocationReceiverService allocationReceiverService; + private final AllocationService allocationService; - @PaymentApi(PaymentApiCode.QUERY_PAY_ORDER) + @PaymentSign + @InitPaymentContext(PaymentApiCode.QUERY_PAY_ORDER) @Operation(summary = "支付订单查询接口") @PostMapping("/payOrder") public DaxResult queryPayOrder(@RequestBody QueryPayParam param){ return DaxRes.ok(payOrderQueryService.queryPayOrder(param)); } - @PaymentApi(PaymentApiCode.QUERY_REFUND_ORDER) + @PaymentSign + @InitPaymentContext(PaymentApiCode.QUERY_REFUND_ORDER) @Operation(summary = "退款订单查询接口") @PostMapping("/refundOrder") public DaxResult queryRefundOrder(@RequestBody QueryRefundParam param){ return DaxRes.ok(refundOrderQueryService.queryRefundOrder(param)); } + + @PaymentSign + @InitPaymentContext(PaymentApiCode.QUERY_ALLOCATION_ORDER) + @Operation(summary = "分账订单查询接口") + @PostMapping("/allocationOrder") + public DaxResult queryAllocationOrder(@RequestBody QueryAllocOrderParam param){ + return DaxRes.ok(allocationService.queryAllocationOrder(param)); + } + + @PaymentSign + @InitPaymentContext(PaymentApiCode.QUERY_TRANSFER_ORDER) + @Operation(summary = "转账订单查询接口") + @PostMapping("/transferOrder") + public DaxResult transferOrder(@RequestBody QueryTransferParam param){ + return DaxRes.ok(); + } + + @PaymentSign + @InitPaymentContext(PaymentApiCode.QUERY_ALLOCATION_RECEIVER) + @Operation(summary = "分账接收方查询接口") + @PostMapping("/allocationReceiver") + public DaxResult queryAllocReceive(@RequestBody QueryAllocReceiverParam param){ + if (StrUtil.isAllBlank(param.getChannel(), param.getReceiverNo())){ + throw new PayFailureException("所属通道和接收方编号不可同时为空"); + } + return DaxRes.ok(allocationReceiverService.queryAllocReceive(param)); + } + } diff --git a/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/UniReconcileController.java b/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/UniReconcileController.java new file mode 100644 index 000000000..cb66c7bd6 --- /dev/null +++ b/daxpay-single/daxpay-single-gateway/src/main/java/cn/daxpay/single/gateway/controller/UniReconcileController.java @@ -0,0 +1,36 @@ +package cn.daxpay.single.gateway.controller; + +import cn.bootx.platform.common.core.annotation.IgnoreAuth; +import cn.daxpay.single.code.PaymentApiCode; +import cn.daxpay.single.result.DaxResult; +import cn.daxpay.single.service.annotation.PaymentSign; +import cn.daxpay.single.service.annotation.InitPaymentContext; +import cn.daxpay.single.util.DaxRes; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * 对账相关接口 + * @author xxm + * @since 2024/5/17 + */ +@IgnoreAuth +@Tag(name = "对账接口处理器") +@RestController +@RequestMapping("/unipay/reconcile") +@RequiredArgsConstructor +public class UniReconcileController { + + @PaymentSign + @InitPaymentContext(PaymentApiCode.PAY) + @Operation(summary = "下载指定日期的资金流水") + @PostMapping("/pay") + public DaxResult down(){ + return DaxRes.ok(); + } + +} diff --git a/daxpay-single/daxpay-single-service/pom.xml b/daxpay-single/daxpay-single-service/pom.xml index 3d5397bc8..e3917bed8 100644 --- a/daxpay-single/daxpay-single-service/pom.xml +++ b/daxpay-single/daxpay-single-service/pom.xml @@ -6,7 +6,7 @@ cn.daxpay.single daxpay-single - 2.0.6 + 2.0.7 daxpay-single-service diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/annotation/InitPaymentContext.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/annotation/InitPaymentContext.java new file mode 100644 index 000000000..e376297bb --- /dev/null +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/annotation/InitPaymentContext.java @@ -0,0 +1,23 @@ +package cn.daxpay.single.service.annotation; + +import cn.daxpay.single.code.PaymentApiCode; + +import java.lang.annotation.*; + +/** + * 初始化平台信息和接口API相关的上下文信息 + * @author xxm + * @since 2024/5/22 + */ +@Target({ ElementType.METHOD }) +@Retention(RetentionPolicy.RUNTIME) +@Documented +@Inherited +public @interface InitPaymentContext { + + /** + * 接口标识 + * @see PaymentApiCode + */ + String value(); +} diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/annotation/PaymentApi.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/annotation/PaymentSign.java similarity index 76% rename from daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/annotation/PaymentApi.java rename to daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/annotation/PaymentSign.java index 3845db251..95967ecb5 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/annotation/PaymentApi.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/annotation/PaymentSign.java @@ -3,7 +3,7 @@ import java.lang.annotation.*; /** - * 支付接口标识, + * 支付校验签名标识 * 支付方法至少有一个参数,并且需要签名支付参数需要放在第一位 * 返回对象必须为 ResResult 格式 * @author xxm @@ -13,10 +13,5 @@ @Retention(RetentionPolicy.RUNTIME) @Documented @Inherited -public @interface PaymentApi { - - /** - * 支付接口编码 - */ - String value(); +public @interface PaymentSign { } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/code/AliPayCode.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/code/AliPayCode.java index 67230a441..a28f0ef16 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/code/AliPayCode.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/code/AliPayCode.java @@ -113,7 +113,7 @@ public interface AliPayCode { String ALLOC_FAIL = "FAIL"; /** 异步分账 */ - String ALLOC_ASYNC = "ASYNC"; + String ALLOC_ASYNC = "async"; /** 同步分账 */ - String ALLOC_SYNC = "SYNC"; + String ALLOC_SYNC = "sync"; } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/code/ClientNoticeTypeEnum.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/code/ClientNoticeTypeEnum.java index e17bc0593..a59ab3f2d 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/code/ClientNoticeTypeEnum.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/code/ClientNoticeTypeEnum.java @@ -12,7 +12,9 @@ @AllArgsConstructor public enum ClientNoticeTypeEnum { PAY("pay", "支付通知"), - REFUND("refund", "退款通知"); + REFUND("refund", "退款通知"), + ALLOCATION("allocation", "分账通知"), + ; private final String type; private final String name; diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/code/PaymentTypeEnum.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/code/PaymentTypeEnum.java index 6a72152c9..4602f3797 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/code/PaymentTypeEnum.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/code/PaymentTypeEnum.java @@ -18,7 +18,8 @@ public enum PaymentTypeEnum { PAY("pay","支付"), REFUND("refund","退款"), - TRANSFER("transfer","转账"); + TRANSFER("transfer","转账"), + ALLOCATION("allocation","分账"); private final String code; private final String name; diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/common/context/AllocationLocal.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/common/context/AllocationLocal.java index 15fa11767..5a17bd57c 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/common/context/AllocationLocal.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/common/context/AllocationLocal.java @@ -12,6 +12,6 @@ @Accessors(chain = true) public class AllocationLocal { - /** 三方系统分账号 */ + /** 通道分账号 */ private String outAllocationNo; } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/common/context/ReconcileLocal.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/common/context/ReconcileLocal.java index f066bee4c..86bf3d5e1 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/common/context/ReconcileLocal.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/common/context/ReconcileLocal.java @@ -1,6 +1,6 @@ package cn.daxpay.single.service.common.context; -import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileTradeDetail; +import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileOutTrade; import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileOrder; import lombok.Data; import lombok.experimental.Accessors; @@ -20,6 +20,6 @@ public class ReconcileLocal { private ReconcileOrder reconcileOrder; /** 通用支付对账记录 */ - private List reconcileTradeDetails; + private List reconcileTradeDetails; } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayAllocationService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayAllocationService.java index 3cf70ceea..314b22c63 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayAllocationService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayAllocationService.java @@ -8,8 +8,11 @@ import cn.daxpay.single.service.common.local.PaymentContextLocal; import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrder; import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrderDetail; +import cn.daxpay.single.service.core.payment.sync.result.AllocRemoteSyncResult; +import cn.daxpay.single.util.PayUtil; import cn.hutool.core.date.LocalDateTimeUtil; import cn.hutool.core.util.StrUtil; +import cn.hutool.json.JSONUtil; import com.alipay.api.AlipayResponse; import com.alipay.api.domain.*; import com.alipay.api.request.AlipayTradeOrderSettleQueryRequest; @@ -46,7 +49,7 @@ public class AliPayAllocationService { public void allocation(AllocationOrder allocationOrder, List orderDetails){ // 分账主体参数 AlipayTradeOrderSettleModel model = new AlipayTradeOrderSettleModel(); - model.setOutRequestNo(allocationOrder.getOrderNo()); + model.setOutRequestNo(allocationOrder.getAllocationNo()); model.setTradeNo(allocationOrder.getOutOrderNo()); model.setRoyaltyMode(AliPayCode.ALLOC_ASYNC); @@ -55,7 +58,7 @@ public void allocation(AllocationOrder allocationOrder, List royaltyParameters = orderDetails.stream() .map(o -> { OpenApiRoyaltyDetailInfoPojo infoPojo = new OpenApiRoyaltyDetailInfoPojo(); - infoPojo.setAmount(String.valueOf(o.getAmount() / 100.0)); + infoPojo.setAmount(PayUtil.conversionAmount(o.getAmount()).toString()); infoPojo.setTransIn(o.getReceiverAccount()); return infoPojo; }) @@ -76,12 +79,12 @@ public void allocation(AllocationOrder allocationOrder, List orderDetails ){ // 分账主体参数 AlipayTradeOrderSettleModel model = new AlipayTradeOrderSettleModel(); - model.setOutRequestNo(String.valueOf(allocationOrder.getOrderNo())); + model.setOutRequestNo(String.valueOf(allocationOrder.getAllocationNo())); model.setTradeNo(allocationOrder.getOutOrderNo()); model.setRoyaltyMode(AliPayCode.ALLOC_ASYNC); // 分账完结参数 SettleExtendParams extendParams = new SettleExtendParams(); - extendParams.setRoyaltyFinish("true"); + extendParams.setRoyaltyFinish(Boolean.TRUE.toString()); model.setExtendParams(extendParams); // 分账子参数 根据Id排序 @@ -89,7 +92,7 @@ public void finish(AllocationOrder allocationOrder, List List royaltyParameters = orderDetails.stream() .map(o -> { OpenApiRoyaltyDetailInfoPojo infoPojo = new OpenApiRoyaltyDetailInfoPojo(); - infoPojo.setAmount(String.valueOf(o.getAmount() / 100.0)); + infoPojo.setAmount(PayUtil.conversionAmount(o.getAmount()).toString()); infoPojo.setTransIn(o.getReceiverAccount()); return infoPojo; }) @@ -103,10 +106,10 @@ public void finish(AllocationOrder allocationOrder, List * 分账状态同步 */ @SneakyThrows - public void sync(AllocationOrder allocationOrder, List allocationOrderDetails){ + public AllocRemoteSyncResult sync(AllocationOrder allocationOrder, List allocationOrderDetails){ AlipayTradeOrderSettleQueryModel model = new AlipayTradeOrderSettleQueryModel(); model.setTradeNo(allocationOrder.getOutOrderNo()); - model.setOutRequestNo(allocationOrder.getOrderNo()); + model.setOutRequestNo(allocationOrder.getAllocationNo()); AlipayTradeOrderSettleQueryRequest request = new AlipayTradeOrderSettleQueryRequest(); request.setBizModel(model); AlipayTradeOrderSettleQueryResponse response = AliPayApi.execute(request); @@ -131,6 +134,7 @@ public void sync(AllocationOrder allocationOrder, List al } } } + return new AllocRemoteSyncResult().setSyncInfo(JSONUtil.toJsonStr(response)); } /** diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayCloseService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayCloseService.java index 1f4316a89..2d936af92 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayCloseService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayCloseService.java @@ -3,7 +3,7 @@ import cn.bootx.platform.common.spring.exception.RetryableException; import cn.daxpay.single.code.PaySyncStatusEnum; import cn.daxpay.single.service.code.AliPayCode; -import cn.daxpay.single.service.core.payment.sync.result.PaySyncResult; +import cn.daxpay.single.service.core.payment.sync.result.PayRemoteSyncResult; import cn.daxpay.single.service.core.order.pay.entity.PayOrder; import cn.daxpay.single.exception.pay.PayFailureException; import com.alipay.api.AlipayApiException; @@ -70,7 +70,7 @@ public void close(PayOrder payOrder) { * 关闭失败后, 获取支付网关的状态, 如果是关闭返回true, 其他情况抛出异常 */ private boolean syncStatus(PayOrder payOrder){ - PaySyncResult gatewaySyncResult = aliPaySyncService.syncPayStatus(payOrder); + PayRemoteSyncResult gatewaySyncResult = aliPaySyncService.syncPayStatus(payOrder); // 已经关闭 if (Objects.equals(gatewaySyncResult.getSyncStatus(), PaySyncStatusEnum.CLOSED)){ return true; diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayNoticeReceiverService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayNoticeReceiverService.java new file mode 100644 index 000000000..111874f5e --- /dev/null +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayNoticeReceiverService.java @@ -0,0 +1,95 @@ +package cn.daxpay.single.service.core.channel.alipay.service; + +import cn.bootx.platform.common.core.util.CertUtil; +import cn.daxpay.single.service.core.channel.alipay.entity.AliPayConfig; +import cn.daxpay.single.service.core.payment.allocation.service.AllocationCallbackService; +import cn.hutool.core.util.CharsetUtil; +import cn.hutool.core.util.StrUtil; +import cn.hutool.json.JSONUtil; +import com.alipay.api.AlipayApiException; +import com.alipay.api.AlipayConstants; +import com.alipay.api.internal.util.AlipaySignature; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import java.util.Map; +import java.util.Objects; + +import static cn.daxpay.single.service.code.AliPayCode.APP_ID; +import static cn.daxpay.single.service.code.AliPayCode.AUTH_TYPE_KEY; + +/** + * 支付宝通知消息接收 + * @author xxm + * @since 2024/5/31 + */ +@Slf4j +@Service +@RequiredArgsConstructor +public class AliPayNoticeReceiverService { + + private final AllocationCallbackService allocationCallbackService; + + private final AliPayConfigService aliPayConfigService; + + /** + * 消息通知处理 + */ + public String noticeReceiver(Map map) { + + // 首先进行验签 + if (!this.verifyNotify(map)){ + log.error("支付宝消息通知验签失败"); + return "fail"; + } + + // 通过 msg_method 获取消息类型 + String msgMethod = map.get("msg_method"); + // 通过 biz_content 获取值 + String bizContent = map.get("biz_content"); + + // 分账结果通知 + if ("alipay.trade.order.settle.notify".equals(msgMethod)) { + // 转换成对象 + + // 获取分账号 + + // 调用统一分账回调处理 + + // 分账完成 + + } + // 返回处理成功 + return "success"; + } + + /** + * 校验消息通知 + */ + private boolean verifyNotify(Map params) { + String callReq = JSONUtil.toJsonStr(params); + log.info("支付宝消息通知报文: {}", callReq); + String appId = params.get(APP_ID); + if (StrUtil.isBlank(appId)) { + log.error("支付宝消息通知报文appId为空"); + return false; + } + AliPayConfig alipayConfig = aliPayConfigService.getConfig(); + if (Objects.isNull(alipayConfig)) { + log.error("支付宝支付配置不存在"); + return false; + } + try { + if (Objects.equals(alipayConfig.getAuthType(), AUTH_TYPE_KEY)) { + return AlipaySignature.rsaCheckV1(params, alipayConfig.getAlipayPublicKey(), CharsetUtil.UTF_8, AlipayConstants.SIGN_TYPE_RSA2); + } + else { + return AlipaySignature.verifyV1(params, CertUtil.getCertByContent(alipayConfig.getAlipayCert()), CharsetUtil.UTF_8, AlipayConstants.SIGN_TYPE_RSA2); + } + } catch (AlipayApiException e) { + log.error("支付宝验签失败", e); + return false; + } + } +} diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayReconcileService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayReconcileService.java index 35f03d4b0..0d71396d0 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayReconcileService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayReconcileService.java @@ -12,9 +12,10 @@ import cn.daxpay.single.service.core.channel.alipay.entity.AliReconcileBillDetail; import cn.daxpay.single.service.core.channel.alipay.entity.AliReconcileBillTotal; import cn.daxpay.single.service.core.order.reconcile.dao.ReconcileFileManager; -import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileTradeDetail; import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileFile; import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileOrder; +import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileOutTrade; +import cn.daxpay.single.util.PayUtil; import cn.hutool.core.date.DatePattern; import cn.hutool.core.io.IoUtil; import cn.hutool.core.text.csv.CsvReader; @@ -39,6 +40,7 @@ import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.InputStreamReader; +import java.math.BigDecimal; import java.time.LocalDateTime; import java.util.ArrayList; import java.util.List; @@ -162,7 +164,7 @@ private void saveBillTotal(List billTotals){ * 转换为通用对账记录对象 */ private void convertAndSave(List billDetails){ - List collect = billDetails.stream() + List collect = billDetails.stream() .map(this::convert) .collect(Collectors.toList()); // 写入到上下文中 @@ -172,14 +174,12 @@ private void convertAndSave(List billDetails){ /** * 转换为通用对账记录对象 */ - private ReconcileTradeDetail convert(AliReconcileBillDetail billDetail){ + private ReconcileOutTrade convert(AliReconcileBillDetail billDetail){ // 金额 - String orderAmount = billDetail.getOrderAmount(); - double v = Double.parseDouble(orderAmount) * 100; - int amount = Math.abs(((int) v)); + int amount = PayUtil.convertCentAmount(new BigDecimal(billDetail.getOrderAmount())); // 默认为支付对账记录 - ReconcileTradeDetail reconcileTradeDetail = new ReconcileTradeDetail() + ReconcileOutTrade reconcileTradeDetail = new ReconcileOutTrade() .setReconcileId(billDetail.getReconcileId()) .setTradeNo(billDetail.getOutTradeNo()) .setType(ReconcileTradeEnum.PAY.getCode()) diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayRefundService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayRefundService.java index 9d9b1b27e..6ff8c8266 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayRefundService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayRefundService.java @@ -6,6 +6,7 @@ import cn.daxpay.single.service.common.context.RefundLocal; import cn.daxpay.single.service.common.local.PaymentContextLocal; import cn.daxpay.single.service.core.order.refund.entity.RefundOrder; +import cn.daxpay.single.util.PayUtil; import com.alipay.api.AlipayApiException; import com.alipay.api.domain.AlipayTradeRefundModel; import com.alipay.api.response.AlipayTradeRefundResponse; @@ -36,7 +37,7 @@ public void refund(RefundOrder refundOrder) { refundModel.setOutTradeNo(refundOrder.getOrderNo()); refundModel.setOutRequestNo(refundOrder.getRefundNo()); // 金额转换 - String refundAmount = String.valueOf(refundOrder.getAmount()*0.01); + String refundAmount = PayUtil.conversionAmount(refundOrder.getAmount()).toString(); refundModel.setRefundAmount(refundAmount); // 设置退款信息 diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayService.java index 59b6247f8..abeeeee91 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPayService.java @@ -6,8 +6,8 @@ import cn.daxpay.single.param.payment.pay.PayParam; import cn.daxpay.single.service.code.AliPayCode; import cn.daxpay.single.service.code.AliPayWay; -import cn.daxpay.single.service.common.context.PayLocal; import cn.daxpay.single.service.common.context.NoticeLocal; +import cn.daxpay.single.service.common.context.PayLocal; import cn.daxpay.single.service.common.local.PaymentContextLocal; import cn.daxpay.single.service.core.channel.alipay.entity.AliPayConfig; import cn.daxpay.single.service.core.order.pay.entity.PayOrder; @@ -71,7 +71,7 @@ public void validation(PayParam payParam, AliPayConfig alipayConfig) { * 调起支付 */ public void pay(PayOrder payOrder, AliPayParam aliPayParam, AliPayConfig alipayConfig) { - Integer amount = payOrder.getAmount(); + String amount = PayUtil.conversionAmount(payOrder.getAmount()).toString(); String payBody = null; // 异步线程存储 PayLocal payInfo = PaymentContextLocal.get().getPayInfo(); @@ -102,12 +102,12 @@ else if (Objects.equals(payOrder.getMethod(), PayMethodEnum.BARCODE.getCode())) /** * wap支付 */ - public String wapPay(int amount, PayOrder payOrder, AliPayConfig alipayConfig) { + public String wapPay(String amount, PayOrder payOrder, AliPayConfig alipayConfig) { NoticeLocal noticeInfo = PaymentContextLocal.get().getNoticeInfo(); AlipayTradeWapPayModel model = new AlipayTradeWapPayModel(); model.setSubject(payOrder.getTitle()); model.setOutTradeNo(payOrder.getOrderNo()); - model.setTotalAmount(String.valueOf(amount*0.01)); + model.setTotalAmount(amount); // 过期时间 model.setTimeExpire(PayUtil.getAliTimeExpire(payOrder.getExpiredTime())); model.setProductCode(AliPayCode.QUICK_WAP_PAY); @@ -141,7 +141,7 @@ public String wapPay(int amount, PayOrder payOrder, AliPayConfig alipayConfig) { /** * app支付 */ - public String appPay(int amount, PayOrder payOrder, AliPayConfig alipayConfig) { + public String appPay(String amount, PayOrder payOrder, AliPayConfig alipayConfig) { AlipayTradeAppPayModel model = new AlipayTradeAppPayModel(); model.setSubject(payOrder.getTitle()); @@ -149,7 +149,7 @@ public String appPay(int amount, PayOrder payOrder, AliPayConfig alipayConfig) { model.setOutTradeNo(payOrder.getOrderNo()); // 过期时间 model.setTimeExpire(PayUtil.getAliTimeExpire(payOrder.getExpiredTime())); - model.setTotalAmount(String.valueOf(amount*0.01)); + model.setTotalAmount(amount); // 是否分账 if (payOrder.getAllocation()){ ExtendParams extendParams = new ExtendParams(); @@ -171,14 +171,14 @@ public String appPay(int amount, PayOrder payOrder, AliPayConfig alipayConfig) { /** * PC支付 */ - public String webPay(int amount, PayOrder payOrder, AliPayConfig alipayConfig) { + public String webPay(String amount, PayOrder payOrder, AliPayConfig alipayConfig) { AlipayTradePagePayModel model = new AlipayTradePagePayModel(); model.setSubject(payOrder.getTitle()); model.setOutTradeNo(payOrder.getOrderNo()); // 过期时间 model.setTimeExpire(PayUtil.getAliTimeExpire(payOrder.getExpiredTime())); - model.setTotalAmount(String.valueOf(amount*0.01)); + model.setTotalAmount(amount); // 目前仅支持FAST_INSTANT_TRADE_PAY model.setProductCode(AliPayCode.FAST_INSTANT_TRADE_PAY); @@ -209,11 +209,11 @@ public String webPay(int amount, PayOrder payOrder, AliPayConfig alipayConfig) { /** * 二维码支付(扫码支付) */ - public String qrCodePay(int amount, PayOrder payOrder, AliPayConfig alipayConfig) { + public String qrCodePay(String amount, PayOrder payOrder, AliPayConfig alipayConfig) { AlipayTradePrecreateModel model = new AlipayTradePrecreateModel(); model.setSubject(payOrder.getTitle()); model.setOutTradeNo(payOrder.getOrderNo()); - model.setTotalAmount(String.valueOf(amount*0.01)); + model.setTotalAmount(amount); // 是否分账 if (payOrder.getAllocation()){ ExtendParams extendParams = new ExtendParams(); @@ -237,7 +237,7 @@ public String qrCodePay(int amount, PayOrder payOrder, AliPayConfig alipayConfig /** * 付款码支付 */ - public void barCode(int amount, PayOrder payOrder, AliPayParam aliPayParam, AliPayConfig alipayConfig) { + public void barCode(String amount, PayOrder payOrder, AliPayParam aliPayParam, AliPayConfig alipayConfig) { PayLocal payInfo = PaymentContextLocal.get().getPayInfo(); AlipayTradePayModel model = new AlipayTradePayModel(); @@ -253,7 +253,7 @@ public void barCode(int amount, PayOrder payOrder, AliPayParam aliPayParam, AliP } // 过期时间 model.setTimeExpire(PayUtil.getAliTimeExpire(payOrder.getExpiredTime())); - model.setTotalAmount(String.valueOf(amount*0.01)); + model.setTotalAmount(amount); try { AlipayTradePayResponse response = AliPayApi.tradePayToResponse(model, alipayConfig.getNotifyUrl()); diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPaySyncService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPaySyncService.java index 183885738..7d5e1c2aa 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPaySyncService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/alipay/service/AliPaySyncService.java @@ -6,8 +6,8 @@ import cn.daxpay.single.service.code.AliPayCode; import cn.daxpay.single.service.core.order.pay.entity.PayOrder; import cn.daxpay.single.service.core.order.refund.entity.RefundOrder; -import cn.daxpay.single.service.core.payment.sync.result.PaySyncResult; -import cn.daxpay.single.service.core.payment.sync.result.RefundSyncResult; +import cn.daxpay.single.service.core.payment.sync.result.PayRemoteSyncResult; +import cn.daxpay.single.service.core.payment.sync.result.RefundRemoteSyncResult; import cn.hutool.json.JSONUtil; import com.alipay.api.AlipayApiException; import com.alipay.api.domain.AlipayTradeFastpayRefundQueryModel; @@ -43,8 +43,8 @@ public class AliPaySyncService { * 4 查询不到 * 5 查询失败 */ - public PaySyncResult syncPayStatus(PayOrder payOrder) { - PaySyncResult syncResult = new PaySyncResult().setSyncStatus(PaySyncStatusEnum.FAIL); + public PayRemoteSyncResult syncPayStatus(PayOrder payOrder) { + PayRemoteSyncResult syncResult = new PayRemoteSyncResult().setSyncStatus(PaySyncStatusEnum.FAIL); // 查询 try { AlipayTradeQueryModel queryModel = new AlipayTradeQueryModel(); @@ -96,8 +96,8 @@ public PaySyncResult syncPayStatus(PayOrder payOrder) { * 退款同步查询 * 注意: 支付宝退款没有网关订单号, 网关订单号是支付单的 */ - public RefundSyncResult syncRefundStatus(RefundOrder refundOrder) { - RefundSyncResult syncResult = new RefundSyncResult().setSyncStatus(RefundSyncStatusEnum.FAIL); + public RefundRemoteSyncResult syncRefundStatus(RefundOrder refundOrder) { + RefundRemoteSyncResult syncResult = new RefundRemoteSyncResult().setSyncStatus(RefundSyncStatusEnum.FAIL); try { AlipayTradeFastpayRefundQueryModel queryModel = new AlipayTradeFastpayRefundQueryModel(); // 退款请求号 diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/union/service/UnionPayReconcileService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/union/service/UnionPayReconcileService.java index 098e49d35..169c56af3 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/union/service/UnionPayReconcileService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/union/service/UnionPayReconcileService.java @@ -11,7 +11,7 @@ import cn.daxpay.single.service.core.channel.union.dao.UnionReconcileBillDetailManager; import cn.daxpay.single.service.core.channel.union.entity.UnionReconcileBillDetail; import cn.daxpay.single.service.core.order.reconcile.dao.ReconcileFileManager; -import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileTradeDetail; +import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileOutTrade; import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileFile; import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileOrder; import cn.daxpay.single.service.sdk.union.api.UnionPayKit; @@ -152,7 +152,7 @@ private UnionReconcileBillDetail convertDetail(String line){ * 转换为通用对账记录对象 */ private void convertAndSave(List billDetails){ - List collect = billDetails.stream() + List collect = billDetails.stream() .map(this::convert) // 只处理支付和退款的对账记录 .filter(Objects::nonNull) @@ -164,7 +164,7 @@ private void convertAndSave(List billDetails){ /** * 转换为通用对账记录对象 */ - private ReconcileTradeDetail convert(UnionReconcileBillDetail billDetail){ + private ReconcileOutTrade convert(UnionReconcileBillDetail billDetail){ ReconcileOrder reconcileOrder = PaymentContextLocal.get() .getReconcileInfo() .getReconcileOrder(); @@ -173,7 +173,7 @@ private ReconcileTradeDetail convert(UnionReconcileBillDetail billDetail){ int amount = Integer.parseInt(orderAmount); // 默认为支付对账记录 - ReconcileTradeDetail reconcileTradeDetail = new ReconcileTradeDetail() + ReconcileOutTrade reconcileTradeDetail = new ReconcileOutTrade() .setReconcileId(billDetail.getReconcileId()) .setTradeNo(billDetail.getOrderId()) .setType(ReconcileTradeEnum.PAY.getCode()) diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/union/service/UnionPayRefundService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/union/service/UnionPayRefundService.java index 586d8248d..31a56541e 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/union/service/UnionPayRefundService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/union/service/UnionPayRefundService.java @@ -7,6 +7,7 @@ import cn.daxpay.single.service.core.order.refund.entity.RefundOrder; import cn.daxpay.single.service.sdk.union.api.UnionPayKit; import cn.daxpay.single.service.sdk.union.bean.UnionRefundOrder; +import cn.daxpay.single.util.PayUtil; import com.egzosn.pay.union.bean.UnionRefundResult; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; @@ -31,8 +32,8 @@ public class UnionPayRefundService { public void refund(RefundOrder refundOrder, UnionPayKit unionPayKit) { // 金额转换 - BigDecimal refundAmount = BigDecimal.valueOf(refundOrder.getAmount() * 0.01); - BigDecimal orderAmount = BigDecimal.valueOf(refundOrder.getOrderAmount() * 0.01); + BigDecimal refundAmount = PayUtil.conversionAmount(refundOrder.getAmount()); + BigDecimal orderAmount =PayUtil.conversionAmount(refundOrder.getOrderAmount()); UnionRefundOrder unionRefundOrder = new UnionRefundOrder(); unionRefundOrder.setRefundNo(refundOrder.getRefundNo()); diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/union/service/UnionPayService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/union/service/UnionPayService.java index 5ba8f1f05..a9ac01023 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/union/service/UnionPayService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/union/service/UnionPayService.java @@ -12,6 +12,7 @@ import cn.daxpay.single.service.core.order.pay.entity.PayOrder; import cn.daxpay.single.service.sdk.union.api.UnionPayKit; import cn.daxpay.single.service.sdk.union.bean.UnionPayOrder; +import cn.daxpay.single.util.PayUtil; import cn.hutool.core.collection.CollUtil; import cn.hutool.core.date.DateUtil; import cn.hutool.core.map.MapUtil; @@ -66,9 +67,8 @@ public void validation(PayParam payParam, UnionPayConfig unionPayConfig) { * 支付接口 */ public void pay(PayOrder payOrder, UnionPayParam unionPayParam, UnionPayKit unionPayKit){ - Integer amount = payOrder.getAmount(); - BigDecimal totalFee = BigDecimal.valueOf(amount * 0.01); - PayLocal payInfo = PaymentContextLocal.get().getPayInfo();; + BigDecimal totalFee = PayUtil.conversionAmount(payOrder.getAmount()); + PayLocal payInfo = PaymentContextLocal.get().getPayInfo(); String payBody = null; PayMethodEnum payMethodEnum = PayMethodEnum.findByCode(payOrder.getMethod()); @@ -198,6 +198,5 @@ private void barCodePay(BigDecimal amount, PayOrder payOrder, String authCode, U String errMsg = MapUtil.getStr(result, UnionPayCode.RESP_MSG); throw new PayFailureException(errMsg); } - } } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/union/service/UnionPaySyncService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/union/service/UnionPaySyncService.java index 38f1f4673..961dae86c 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/union/service/UnionPaySyncService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/union/service/UnionPaySyncService.java @@ -6,8 +6,8 @@ import cn.daxpay.single.service.code.UnionPayCode; import cn.daxpay.single.service.core.order.pay.entity.PayOrder; import cn.daxpay.single.service.core.order.refund.entity.RefundOrder; -import cn.daxpay.single.service.core.payment.sync.result.PaySyncResult; -import cn.daxpay.single.service.core.payment.sync.result.RefundSyncResult; +import cn.daxpay.single.service.core.payment.sync.result.PayRemoteSyncResult; +import cn.daxpay.single.service.core.payment.sync.result.RefundRemoteSyncResult; import cn.daxpay.single.service.sdk.union.api.UnionPayKit; import cn.hutool.core.date.DatePattern; import cn.hutool.core.map.MapUtil; @@ -39,8 +39,8 @@ public class UnionPaySyncService { /** * 支付信息查询 */ - public PaySyncResult syncPayStatus(PayOrder order, UnionPayKit unionPayKit) { - PaySyncResult syncResult = new PaySyncResult().setSyncStatus(PaySyncStatusEnum.FAIL); + public PayRemoteSyncResult syncPayStatus(PayOrder order, UnionPayKit unionPayKit) { + PayRemoteSyncResult syncResult = new PayRemoteSyncResult().setSyncStatus(PaySyncStatusEnum.FAIL); AssistOrder query = new AssistOrder(); query.setOutTradeNo(order.getOrderNo()); @@ -98,8 +98,8 @@ public PaySyncResult syncPayStatus(PayOrder order, UnionPayKit unionPayKit) { * 退款信息查询 * 云闪付退款和支付查询接口是一个 */ - public RefundSyncResult syncRefundStatus(RefundOrder refundOrder, UnionPayKit unionPayKit){ - RefundSyncResult syncResult = new RefundSyncResult(); + public RefundRemoteSyncResult syncRefundStatus(RefundOrder refundOrder, UnionPayKit unionPayKit){ + RefundRemoteSyncResult syncResult = new RefundRemoteSyncResult(); AssistOrder query = new AssistOrder(); query.setOutTradeNo(String.valueOf(refundOrder.getRefundNo())); diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/wechat/service/WeChatPayAllocationReceiverService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/wechat/service/WeChatPayAllocationReceiverService.java index bca35211e..9f26cdc48 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/wechat/service/WeChatPayAllocationReceiverService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/wechat/service/WeChatPayAllocationReceiverService.java @@ -21,6 +21,7 @@ import java.util.Map; import static cn.daxpay.single.code.AllocReceiverTypeEnum.WX_MERCHANT; +import static cn.daxpay.single.code.AllocReceiverTypeEnum.WX_PERSONAL; /** * @@ -36,7 +37,7 @@ public class WeChatPayAllocationReceiverService { * 校验参数是否合法 */ public boolean validation(AllocationReceiver allocationReceiver){ - List list = Arrays.asList(WX_MERCHANT.getCode(), WX_MERCHANT.getCode()); + List list = Arrays.asList(WX_PERSONAL.getCode(), WX_MERCHANT.getCode()); String receiverType = allocationReceiver.getReceiverType(); return list.contains(receiverType); } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/wechat/service/WeChatPayAllocationService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/wechat/service/WeChatPayAllocationService.java index 0a28cc36a..ab0e47b6b 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/wechat/service/WeChatPayAllocationService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/wechat/service/WeChatPayAllocationService.java @@ -9,6 +9,7 @@ import cn.daxpay.single.service.core.channel.wechat.entity.WeChatPayConfig; import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrder; import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrderDetail; +import cn.daxpay.single.service.core.payment.sync.result.AllocRemoteSyncResult; import cn.daxpay.single.service.dto.channel.wechat.WeChatPayAllocationReceiver; import cn.hutool.core.codec.Base64; import cn.hutool.core.date.DatePattern; @@ -57,22 +58,24 @@ public void allocation(AllocationOrder allocationOrder, List list = orderDetails.stream().map(o->{ - AllocReceiverTypeEnum receiverTypeEnum = AllocReceiverTypeEnum.findByCode(o.getReceiverType()); - return ReceiverModel.builder() - .type(receiverTypeEnum.getOutCode()) - .account(o.getReceiverAccount()) - .amount(o.getAmount()) - .description(finalDescription) - .build(); - }).collect(Collectors.toList()); + List list = orderDetails.stream() + .filter(o-> Objects.equals(o.getResult(), AllocDetailResultEnum.PENDING.getCode())) + .map(o->{ + AllocReceiverTypeEnum receiverTypeEnum = AllocReceiverTypeEnum.findByCode(o.getReceiverType()); + return ReceiverModel.builder() + .type(receiverTypeEnum.getOutCode()) + .account(o.getReceiverAccount()) + .amount(o.getAmount()) + .description(finalDescription) + .build(); + }).collect(Collectors.toList()); Map params = ProfitSharingModel.builder() .mch_id(config.getWxMchId()) .appid(config.getWxAppId()) .nonce_str(WxPayKit.generateStr()) .transaction_id(allocationOrder.getOutOrderNo()) - .out_order_no(allocationOrder.getOrderNo()) + .out_order_no(allocationOrder.getAllocationNo()) .receivers(JSON.toJSONString(list)) .build() .createSign(config.getApiKeyV2(), SignType.HMACSHA256); @@ -93,8 +96,9 @@ public void finish(AllocationOrder allocationOrder, WeChatPayConfig config){ .appid(config.getWxAppId()) .nonce_str(WxPayKit.generateStr()) .transaction_id(allocationOrder.getOutOrderNo()) - .out_order_no(allocationOrder.getOrderNo()) - .description("分账完成") + // 分账要使用单独的的流水号, 不能与分账号相同 + .out_order_no(allocationOrder.getAllocationNo()+'F') + .description("分账已完成") .build() .createSign(config.getApiKeyV2(), SignType.HMACSHA256); @@ -108,13 +112,13 @@ public void finish(AllocationOrder allocationOrder, WeChatPayConfig config){ /** * 同步分账状态 */ - public void sync(AllocationOrder allocationOrder, List allocationOrderDetails, WeChatPayConfig config){ + public AllocRemoteSyncResult sync(AllocationOrder allocationOrder, List allocationOrderDetails, WeChatPayConfig config){ // 不要传输AppId参数, 否则会失败 Map params = ProfitSharingModel.builder() .mch_id(config.getWxMchId()) .nonce_str(WxPayKit.generateStr()) .transaction_id(allocationOrder.getOutOrderNo()) - .out_order_no(allocationOrder.getOrderNo()) + .out_order_no(allocationOrder.getAllocationNo()) .build() .createSign(config.getApiKeyV2(), SignType.HMACSHA256); String xmlResult = WxPayApi.profitSharingQuery(params); @@ -137,6 +141,7 @@ public void sync(AllocationOrder allocationOrder, List al } } } + return new AllocRemoteSyncResult().setSyncInfo(JSONUtil.toJsonStr(receivers)); } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/wechat/service/WeChatPayService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/wechat/service/WeChatPayService.java index 331016ede..6771709f3 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/wechat/service/WeChatPayService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/wechat/service/WeChatPayService.java @@ -7,7 +7,7 @@ import cn.daxpay.single.code.PayMethodEnum; import cn.daxpay.single.exception.pay.PayFailureException; import cn.daxpay.single.param.payment.pay.PayParam; -import cn.daxpay.single.result.pay.SyncResult; +import cn.daxpay.single.result.sync.PaySyncResult; import cn.daxpay.single.service.code.WeChatPayCode; import cn.daxpay.single.service.code.WeChatPayWay; import cn.daxpay.single.service.common.context.PayLocal; @@ -275,9 +275,9 @@ private void verifyErrorMsg(Map result) { @Async("bigExecutor") @Retryable(value = RetryableException.class, maxAttempts = 10, backoff = @Backoff(value = 5000L)) public void rotationSync(PayOrder payOrder) { - SyncResult syncResult = paySyncService.syncPayOrder(payOrder); + PaySyncResult paySyncResult = paySyncService.syncPayOrder(payOrder); // 不为支付中状态后, 调用系统同步更新状态, 支付状态则继续重试 - if (Objects.equals(PROGRESS.getCode(), syncResult.getStatus())) { + if (Objects.equals(PROGRESS.getCode(), paySyncResult.getStatus())) { throw new RetryableException(); } } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/wechat/service/WeChatPaySyncService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/wechat/service/WeChatPaySyncService.java index 2e01db630..0b034a22f 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/wechat/service/WeChatPaySyncService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/wechat/service/WeChatPaySyncService.java @@ -7,8 +7,8 @@ import cn.daxpay.single.service.core.channel.wechat.entity.WeChatPayConfig; import cn.daxpay.single.service.core.order.pay.entity.PayOrder; import cn.daxpay.single.service.core.order.refund.entity.RefundOrder; -import cn.daxpay.single.service.core.payment.sync.result.PaySyncResult; -import cn.daxpay.single.service.core.payment.sync.result.RefundSyncResult; +import cn.daxpay.single.service.core.payment.sync.result.PayRemoteSyncResult; +import cn.daxpay.single.service.core.payment.sync.result.RefundRemoteSyncResult; import cn.hutool.core.date.DatePattern; import cn.hutool.core.util.StrUtil; import cn.hutool.json.JSONUtil; @@ -41,8 +41,8 @@ public class WeChatPaySyncService { /** * 支付信息查询 */ - public PaySyncResult syncPayStatus(PayOrder order, WeChatPayConfig weChatPayConfig) { - PaySyncResult syncResult = new PaySyncResult().setSyncStatus(PaySyncStatusEnum.FAIL); + public PayRemoteSyncResult syncPayStatus(PayOrder order, WeChatPayConfig weChatPayConfig) { + PayRemoteSyncResult syncResult = new PayRemoteSyncResult().setSyncStatus(PaySyncStatusEnum.FAIL); Map params = OrderQueryModel.builder() .appid(weChatPayConfig.getWxAppId()) .mch_id(weChatPayConfig.getWxMchId()) @@ -103,8 +103,8 @@ public PaySyncResult syncPayStatus(PayOrder order, WeChatPayConfig weChatPayConf /** * 退款信息查询 */ - public RefundSyncResult syncRefundStatus(RefundOrder refundOrder, WeChatPayConfig weChatPayConfig){ - RefundSyncResult syncResult = new RefundSyncResult(); + public RefundRemoteSyncResult syncRefundStatus(RefundOrder refundOrder, WeChatPayConfig weChatPayConfig){ + RefundRemoteSyncResult syncResult = new RefundRemoteSyncResult(); Map params = RefundQueryModel.builder() .appid(weChatPayConfig.getWxAppId()) .mch_id(weChatPayConfig.getWxMchId()) diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/wechat/service/WechatPayReconcileService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/wechat/service/WechatPayReconcileService.java index 03dde25df..074ce4ddd 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/wechat/service/WechatPayReconcileService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/channel/wechat/service/WechatPayReconcileService.java @@ -14,9 +14,10 @@ import cn.daxpay.single.service.core.channel.wechat.entity.WxReconcileBillTotal; import cn.daxpay.single.service.core.channel.wechat.entity.WxReconcileFundFlowDetail; import cn.daxpay.single.service.core.order.reconcile.dao.ReconcileFileManager; -import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileTradeDetail; +import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileOutTrade; import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileFile; import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileOrder; +import cn.daxpay.single.util.PayUtil; import cn.hutool.core.codec.Base64; import cn.hutool.core.date.DatePattern; import cn.hutool.core.io.IoUtil; @@ -41,6 +42,7 @@ import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.InputStreamReader; +import java.math.BigDecimal; import java.time.LocalDate; import java.time.LocalDateTime; import java.util.List; @@ -168,7 +170,7 @@ public void uploadBill(byte[] bytes, WeChatPayConfig config){ * 转换为通用对账记录对象 */ public void convertAndSave(List billDetails){ - List collect = billDetails.stream() + List collect = billDetails.stream() .map(this::convert) .collect(Collectors.toList()); // 写入到上下文中 @@ -178,9 +180,9 @@ public void convertAndSave(List billDetails){ /** * 转换为通用对账记录对象 */ - public ReconcileTradeDetail convert(WxReconcileBillDetail billDetail){ + public ReconcileOutTrade convert(WxReconcileBillDetail billDetail){ // 默认为支付对账记录 - ReconcileTradeDetail reconcileTradeDetail = new ReconcileTradeDetail() + ReconcileOutTrade reconcileTradeDetail = new ReconcileOutTrade() .setReconcileId(billDetail.getRecordOrderId()) .setTradeNo(billDetail.getMchOrderNo()) .setTitle(billDetail.getSubject()) @@ -195,9 +197,7 @@ public ReconcileTradeDetail convert(WxReconcileBillDetail billDetail){ // 支付 if (Objects.equals(billDetail.getStatus(), "SUCCESS")){ // 金额 - String orderAmount = billDetail.getOrderAmount(); - double v = Double.parseDouble(orderAmount) * 100; - int amount = Math.abs(((int) v)); + int amount = PayUtil.convertCentAmount(new BigDecimal( billDetail.getOrderAmount())); reconcileTradeDetail.setType(ReconcileTradeEnum.PAY.getCode()) .setAmount(amount); } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/convert/ClientNoticeConvert.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/convert/ClientNoticeConvert.java similarity index 70% rename from daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/convert/ClientNoticeConvert.java rename to daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/convert/ClientNoticeConvert.java index 2705b56fd..4e69e7462 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/convert/ClientNoticeConvert.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/convert/ClientNoticeConvert.java @@ -1,7 +1,7 @@ -package cn.daxpay.single.service.core.task.notice.convert; +package cn.daxpay.single.service.core.notice.convert; -import cn.daxpay.single.service.core.task.notice.entity.ClientNoticeRecord; -import cn.daxpay.single.service.core.task.notice.entity.ClientNoticeTask; +import cn.daxpay.single.service.core.notice.entity.ClientNoticeRecord; +import cn.daxpay.single.service.core.notice.entity.ClientNoticeTask; import cn.daxpay.single.service.dto.record.notice.ClientNoticeRecordDto; import cn.daxpay.single.service.dto.record.notice.ClientNoticeTaskDto; import org.mapstruct.Mapper; diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/dao/ClientNoticeRecordManager.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/dao/ClientNoticeRecordManager.java similarity index 89% rename from daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/dao/ClientNoticeRecordManager.java rename to daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/dao/ClientNoticeRecordManager.java index c29c3f7ee..3fe4be308 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/dao/ClientNoticeRecordManager.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/dao/ClientNoticeRecordManager.java @@ -1,10 +1,10 @@ -package cn.daxpay.single.service.core.task.notice.dao; +package cn.daxpay.single.service.core.notice.dao; import cn.bootx.platform.common.core.rest.param.PageParam; import cn.bootx.platform.common.mybatisplus.impl.BaseManager; import cn.bootx.platform.common.mybatisplus.util.MpUtil; import cn.bootx.platform.common.query.generator.QueryGenerator; -import cn.daxpay.single.service.core.task.notice.entity.ClientNoticeRecord; +import cn.daxpay.single.service.core.notice.entity.ClientNoticeRecord; import cn.daxpay.single.service.param.record.ClientNoticeRecordQuery; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/dao/ClientNoticeRecordMapper.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/dao/ClientNoticeRecordMapper.java similarity index 64% rename from daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/dao/ClientNoticeRecordMapper.java rename to daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/dao/ClientNoticeRecordMapper.java index 73d7829d2..f20556e3a 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/dao/ClientNoticeRecordMapper.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/dao/ClientNoticeRecordMapper.java @@ -1,6 +1,6 @@ -package cn.daxpay.single.service.core.task.notice.dao; +package cn.daxpay.single.service.core.notice.dao; -import cn.daxpay.single.service.core.task.notice.entity.ClientNoticeRecord; +import cn.daxpay.single.service.core.notice.entity.ClientNoticeRecord; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/dao/ClientNoticeTaskManager.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/dao/ClientNoticeTaskManager.java similarity index 89% rename from daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/dao/ClientNoticeTaskManager.java rename to daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/dao/ClientNoticeTaskManager.java index ee41c357e..c0046e2ae 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/dao/ClientNoticeTaskManager.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/dao/ClientNoticeTaskManager.java @@ -1,10 +1,10 @@ -package cn.daxpay.single.service.core.task.notice.dao; +package cn.daxpay.single.service.core.notice.dao; import cn.bootx.platform.common.core.rest.param.PageParam; import cn.bootx.platform.common.mybatisplus.impl.BaseManager; import cn.bootx.platform.common.mybatisplus.util.MpUtil; import cn.bootx.platform.common.query.generator.QueryGenerator; -import cn.daxpay.single.service.core.task.notice.entity.ClientNoticeTask; +import cn.daxpay.single.service.core.notice.entity.ClientNoticeTask; import cn.daxpay.single.service.param.record.ClientNoticeTaskQuery; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/dao/ClientNoticeTaskMapper.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/dao/ClientNoticeTaskMapper.java similarity index 64% rename from daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/dao/ClientNoticeTaskMapper.java rename to daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/dao/ClientNoticeTaskMapper.java index 0c671eee9..f9fd34c3f 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/dao/ClientNoticeTaskMapper.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/dao/ClientNoticeTaskMapper.java @@ -1,6 +1,6 @@ -package cn.daxpay.single.service.core.task.notice.dao; +package cn.daxpay.single.service.core.notice.dao; -import cn.daxpay.single.service.core.task.notice.entity.ClientNoticeTask; +import cn.daxpay.single.service.core.notice.entity.ClientNoticeTask; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/entity/ClientNoticeRecord.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/entity/ClientNoticeRecord.java similarity index 92% rename from daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/entity/ClientNoticeRecord.java rename to daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/entity/ClientNoticeRecord.java index 45db29ac5..a1774fe10 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/entity/ClientNoticeRecord.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/entity/ClientNoticeRecord.java @@ -1,9 +1,9 @@ -package cn.daxpay.single.service.core.task.notice.entity; +package cn.daxpay.single.service.core.notice.entity; import cn.bootx.platform.common.core.function.EntityBaseFunction; import cn.bootx.platform.common.mybatisplus.base.MpCreateEntity; import cn.daxpay.single.service.code.ClientNoticeSendTypeEnum; -import cn.daxpay.single.service.core.task.notice.convert.ClientNoticeConvert; +import cn.daxpay.single.service.core.notice.convert.ClientNoticeConvert; import cn.daxpay.single.service.dto.record.notice.ClientNoticeRecordDto; import cn.bootx.table.modify.annotation.DbColumn; import cn.bootx.table.modify.annotation.DbTable; diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/entity/ClientNoticeTask.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/entity/ClientNoticeTask.java similarity index 83% rename from daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/entity/ClientNoticeTask.java rename to daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/entity/ClientNoticeTask.java index 4a260c866..6e2513417 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/entity/ClientNoticeTask.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/entity/ClientNoticeTask.java @@ -1,16 +1,19 @@ -package cn.daxpay.single.service.core.task.notice.entity; +package cn.daxpay.single.service.core.notice.entity; import cn.bootx.platform.common.core.function.EntityBaseFunction; import cn.bootx.platform.common.mybatisplus.base.MpBaseEntity; -import cn.daxpay.single.code.PayStatusEnum; -import cn.daxpay.single.code.RefundStatusEnum; -import cn.daxpay.single.service.code.ClientNoticeTypeEnum; -import cn.daxpay.single.service.core.task.notice.convert.ClientNoticeConvert; -import cn.daxpay.single.service.dto.record.notice.ClientNoticeTaskDto; import cn.bootx.table.modify.annotation.DbColumn; import cn.bootx.table.modify.annotation.DbTable; import cn.bootx.table.modify.mysql.annotation.DbMySqlFieldType; import cn.bootx.table.modify.mysql.constants.MySqlFieldTypeEnum; +import cn.daxpay.single.code.PayStatusEnum; +import cn.daxpay.single.code.RefundStatusEnum; +import cn.daxpay.single.result.order.AllocOrderResult; +import cn.daxpay.single.service.code.ClientNoticeTypeEnum; +import cn.daxpay.single.service.core.payment.notice.result.PayNoticeResult; +import cn.daxpay.single.service.core.payment.notice.result.RefundNoticeResult; +import cn.daxpay.single.service.core.notice.convert.ClientNoticeConvert; +import cn.daxpay.single.service.dto.record.notice.ClientNoticeTaskDto; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; import lombok.EqualsAndHashCode; @@ -53,7 +56,12 @@ public class ClientNoticeTask extends MpBaseEntity implements EntityBaseFunction @DbColumn(comment = "交易状态") private String tradeStatus; - /** 消息内容 */ + /** + * 消息内容 + * @see PayNoticeResult + * @see RefundNoticeResult + * @see AllocOrderResult + */ @DbColumn(comment = "消息内容") @DbMySqlFieldType(MySqlFieldTypeEnum.LONGTEXT) private String content; diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/service/ClientNoticeRecordService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/service/ClientNoticeRecordService.java similarity index 75% rename from daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/service/ClientNoticeRecordService.java rename to daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/service/ClientNoticeRecordService.java index 1d3ac2e07..27299f7ca 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/service/ClientNoticeRecordService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/service/ClientNoticeRecordService.java @@ -1,7 +1,7 @@ -package cn.daxpay.single.service.core.task.notice.service; +package cn.daxpay.single.service.core.notice.service; -import cn.daxpay.single.service.core.task.notice.dao.ClientNoticeRecordManager; -import cn.daxpay.single.service.core.task.notice.entity.ClientNoticeRecord; +import cn.daxpay.single.service.core.notice.dao.ClientNoticeRecordManager; +import cn.daxpay.single.service.core.notice.entity.ClientNoticeRecord; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/service/ClientNoticeTaskService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/service/ClientNoticeTaskService.java similarity index 86% rename from daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/service/ClientNoticeTaskService.java rename to daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/service/ClientNoticeTaskService.java index 21152e3e9..9c3bb4391 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/task/notice/service/ClientNoticeTaskService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/notice/service/ClientNoticeTaskService.java @@ -1,14 +1,14 @@ -package cn.daxpay.single.service.core.task.notice.service; +package cn.daxpay.single.service.core.notice.service; import cn.bootx.platform.common.core.exception.DataNotExistException; import cn.bootx.platform.common.core.rest.PageResult; import cn.bootx.platform.common.core.rest.param.PageParam; import cn.bootx.platform.common.mybatisplus.util.MpUtil; -import cn.daxpay.single.service.core.task.notice.entity.ClientNoticeRecord; -import cn.daxpay.single.service.core.task.notice.entity.ClientNoticeTask; +import cn.daxpay.single.service.core.notice.entity.ClientNoticeRecord; +import cn.daxpay.single.service.core.notice.entity.ClientNoticeTask; import cn.daxpay.single.service.core.payment.notice.service.ClientNoticeService; -import cn.daxpay.single.service.core.task.notice.dao.ClientNoticeRecordManager; -import cn.daxpay.single.service.core.task.notice.dao.ClientNoticeTaskManager; +import cn.daxpay.single.service.core.notice.dao.ClientNoticeRecordManager; +import cn.daxpay.single.service.core.notice.dao.ClientNoticeTaskManager; import cn.daxpay.single.service.dto.record.notice.ClientNoticeRecordDto; import cn.daxpay.single.service.dto.record.notice.ClientNoticeTaskDto; import cn.daxpay.single.service.param.record.ClientNoticeRecordQuery; diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/convert/AllocationConvert.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/convert/AllocationConvert.java index e1398e4bf..014014cbb 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/convert/AllocationConvert.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/convert/AllocationConvert.java @@ -1,9 +1,15 @@ package cn.daxpay.single.service.core.order.allocation.convert; +import cn.daxpay.single.result.order.AllocOrderDetailResult; +import cn.daxpay.single.result.order.AllocOrderResult; import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrder; import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrderDetail; +import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrderExtra; +import cn.daxpay.single.service.core.payment.notice.result.AllocDetailNoticeResult; +import cn.daxpay.single.service.core.payment.notice.result.AllocNoticeResult; import cn.daxpay.single.service.dto.order.allocation.AllocationOrderDetailDto; import cn.daxpay.single.service.dto.order.allocation.AllocationOrderDto; +import cn.daxpay.single.service.dto.order.allocation.AllocationOrderExtraDto; import org.mapstruct.Mapper; import org.mapstruct.factory.Mappers; @@ -16,9 +22,18 @@ public interface AllocationConvert { AllocationConvert CONVERT = Mappers.getMapper(AllocationConvert.class); - AllocationOrderDto convert(AllocationOrder in); + AllocationOrderExtraDto convert(AllocationOrderExtra in); + + AllocOrderResult toResult(AllocationOrder in); + + AllocOrderDetailResult toResult(AllocationOrderDetail in); + AllocationOrderDetailDto convert(AllocationOrderDetail in); + AllocNoticeResult toNotice(AllocationOrder in); + + AllocDetailNoticeResult toNotice(AllocationOrderDetail in); + } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/dao/AllocationOrderExtraManager.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/dao/AllocationOrderExtraManager.java new file mode 100644 index 000000000..d6c80f39d --- /dev/null +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/dao/AllocationOrderExtraManager.java @@ -0,0 +1,18 @@ +package cn.daxpay.single.service.core.order.allocation.dao; + +import cn.bootx.platform.common.mybatisplus.impl.BaseManager; +import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrderExtra; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Repository; + +/** + * 分账订单扩展 + * @author xxm + * @since 2024/5/22 + */ +@Slf4j +@Repository +@RequiredArgsConstructor +public class AllocationOrderExtraManager extends BaseManager { +} diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/dao/AllocationOrderExtraMapper.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/dao/AllocationOrderExtraMapper.java new file mode 100644 index 000000000..df857daa0 --- /dev/null +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/dao/AllocationOrderExtraMapper.java @@ -0,0 +1,14 @@ +package cn.daxpay.single.service.core.order.allocation.dao; + +import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrderExtra; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Mapper; + +/** + * 分账订单扩展 + * @author xxm + * @since 2024/5/22 + */ +@Mapper +public interface AllocationOrderExtraMapper extends BaseMapper { +} diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/entity/AllocationOrder.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/entity/AllocationOrder.java index c98cf3cf4..e5b900b5f 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/entity/AllocationOrder.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/entity/AllocationOrder.java @@ -2,17 +2,16 @@ import cn.bootx.platform.common.core.function.EntityBaseFunction; import cn.bootx.platform.common.mybatisplus.base.MpBaseEntity; +import cn.bootx.table.modify.annotation.DbColumn; +import cn.bootx.table.modify.annotation.DbTable; import cn.daxpay.single.code.AllocOrderResultEnum; import cn.daxpay.single.code.AllocOrderStatusEnum; import cn.daxpay.single.code.PayChannelEnum; import cn.daxpay.single.service.core.order.allocation.convert.AllocationConvert; import cn.daxpay.single.service.dto.order.allocation.AllocationOrderDto; -import cn.bootx.table.modify.annotation.DbColumn; -import cn.bootx.table.modify.annotation.DbTable; import com.baomidou.mybatisplus.annotation.FieldStrategy; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; -import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; @@ -74,7 +73,7 @@ public class AllocationOrder extends MpBaseEntity implements EntityBaseFunction< /** * 支付订单标题 */ - @Schema(description = "支付订单标题") + @DbColumn(comment = "支付订单标题") private String title; /** diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/entity/AllocationOrderDetail.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/entity/AllocationOrderDetail.java index 6ef3689d5..fc335aeea 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/entity/AllocationOrderDetail.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/entity/AllocationOrderDetail.java @@ -2,13 +2,13 @@ import cn.bootx.platform.common.core.function.EntityBaseFunction; import cn.bootx.platform.common.mybatisplus.base.MpBaseEntity; +import cn.bootx.table.modify.annotation.DbColumn; +import cn.bootx.table.modify.annotation.DbTable; import cn.daxpay.single.code.AllocDetailResultEnum; import cn.daxpay.single.code.AllocReceiverTypeEnum; import cn.daxpay.single.service.common.typehandler.DecryptTypeHandler; import cn.daxpay.single.service.core.order.allocation.convert.AllocationConvert; import cn.daxpay.single.service.dto.order.allocation.AllocationOrderDetailDto; -import cn.bootx.table.modify.annotation.DbColumn; -import cn.bootx.table.modify.annotation.DbTable; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; @@ -37,6 +37,10 @@ public class AllocationOrderDetail extends MpBaseEntity implements EntityBaseFun @DbColumn(comment = "接收者ID") private Long receiverId; + /** 分账接收方编号 */ + @DbColumn(comment = "分账接收方编号") + private String receiverNo; + /** 分账比例 */ @DbColumn(comment = "分账比例(万分之多少)") private Integer rate; diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/entity/AllocationOrderExtra.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/entity/AllocationOrderExtra.java new file mode 100644 index 000000000..63ea17fa2 --- /dev/null +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/entity/AllocationOrderExtra.java @@ -0,0 +1,51 @@ +package cn.daxpay.single.service.core.order.allocation.entity; + +import cn.bootx.platform.common.core.function.EntityBaseFunction; +import cn.bootx.platform.common.mybatisplus.base.MpBaseEntity; +import cn.bootx.table.modify.annotation.DbColumn; +import cn.bootx.table.modify.annotation.DbTable; +import cn.daxpay.single.service.core.order.allocation.convert.AllocationConvert; +import cn.daxpay.single.service.dto.order.allocation.AllocationOrderExtraDto; +import com.baomidou.mybatisplus.annotation.FieldStrategy; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.time.LocalDateTime; + +/** + * 分账订单扩展 + * @author xxm + * @since 2024/5/22 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@Accessors(chain = true) +@DbTable(comment = "分账订单扩展") +@TableName("pay_allocation_order_extra") +public class AllocationOrderExtra extends MpBaseEntity implements EntityBaseFunction { + + /** 异步通知地址 */ + @DbColumn(comment = "异步通知地址") + @TableField(updateStrategy = FieldStrategy.ALWAYS) + private String notifyUrl; + + /** 商户扩展参数,回调时会原样返回, 以最后一次为准 */ + @DbColumn(comment = "商户扩展参数") + private String attach; + + /** 请求时间,时间戳转时间 */ + @DbColumn(comment = "请求时间,传输时间戳") + private LocalDateTime reqTime; + + /** 终端ip */ + @DbColumn(comment = "支付终端ip") + private String clientIp; + + @Override + public AllocationOrderExtraDto toDto() { + return AllocationConvert.CONVERT.convert(this); + } +} diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/service/AllocationOrderQueryService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/service/AllocationOrderQueryService.java new file mode 100644 index 000000000..a0fc5b5f3 --- /dev/null +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/service/AllocationOrderQueryService.java @@ -0,0 +1,93 @@ +package cn.daxpay.single.service.core.order.allocation.service; + +import cn.bootx.platform.common.core.exception.DataNotExistException; +import cn.bootx.platform.common.core.rest.PageResult; +import cn.bootx.platform.common.core.rest.dto.LabelValue; +import cn.bootx.platform.common.core.rest.param.PageParam; +import cn.bootx.platform.common.core.util.ResultConvertUtil; +import cn.bootx.platform.common.mybatisplus.util.MpUtil; +import cn.daxpay.single.code.PayChannelEnum; +import cn.daxpay.single.service.core.order.allocation.dao.AllocationOrderDetailManager; +import cn.daxpay.single.service.core.order.allocation.dao.AllocationOrderExtraManager; +import cn.daxpay.single.service.core.order.allocation.dao.AllocationOrderManager; +import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrder; +import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrderDetail; +import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrderExtra; +import cn.daxpay.single.service.dto.order.allocation.AllocationOrderDetailDto; +import cn.daxpay.single.service.dto.order.allocation.AllocationOrderDto; +import cn.daxpay.single.service.dto.order.allocation.AllocationOrderExtraDto; +import cn.daxpay.single.service.param.order.AllocationOrderQuery; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import java.util.Arrays; +import java.util.List; + +/** + * 分账订单查询服务类 + * @author xxm + * @since 2024/5/30 + */ +@Slf4j +@Service +@RequiredArgsConstructor +public class AllocationOrderQueryService { + + private final AllocationOrderDetailManager allocationOrderDetailManager; + private final AllocationOrderManager allocationOrderManager; + private final AllocationOrderExtraManager allocationOrderExtraManager; + + /** + * 获取可以分账的通道 + */ + public List findChannels(){ + return Arrays.asList( + new LabelValue(PayChannelEnum.ALI.getName(),PayChannelEnum.ALI.getCode()), + new LabelValue(PayChannelEnum.WECHAT.getName(),PayChannelEnum.WECHAT.getCode()) + ); + } + + /** + * 分页查询 + */ + public PageResult page(PageParam pageParam, AllocationOrderQuery param){ + return MpUtil.convert2DtoPageResult(allocationOrderManager.page(pageParam, param)); + } + + /** + * 查询详情 + */ + public AllocationOrderDto findById(Long id) { + return allocationOrderManager.findById(id).map(AllocationOrder::toDto).orElseThrow(() -> new DataNotExistException("分账订单不存在")); + } + + /** + * 查询详情 + */ + public AllocationOrderDto findByAllocNo(String allocNo) { + return allocationOrderManager.findByAllocationNo(allocNo).map(AllocationOrder::toDto).orElseThrow(() -> new DataNotExistException("分账订单不存在")); + } + + /** + * 查询订单明细列表 + */ + public List findDetailsByOrderId(Long orderId){ + return ResultConvertUtil.dtoListConvert(allocationOrderDetailManager.findAllByOrderId(orderId)); + } + + /** + * 查询订单明细详情 + */ + public AllocationOrderDetailDto findDetailById(Long id){ + return allocationOrderDetailManager.findById(id).map(AllocationOrderDetail::toDto).orElseThrow(() -> new DataNotExistException("分账订单明细不存在")); + } + + /** + * 查询扩展订单信息 + */ + public AllocationOrderExtraDto findExtraById(Long id) { + return allocationOrderExtraManager.findById(id).map(AllocationOrderExtra::toDto) + .orElseThrow(() -> new DataNotExistException("未找到")); + } +} diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/service/AllocationOrderService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/service/AllocationOrderService.java index dee6b9c19..c6cf4b27c 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/service/AllocationOrderService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/allocation/service/AllocationOrderService.java @@ -1,27 +1,25 @@ package cn.daxpay.single.service.core.order.allocation.service; -import cn.bootx.platform.common.core.exception.DataNotExistException; -import cn.bootx.platform.common.core.rest.PageResult; -import cn.bootx.platform.common.core.rest.dto.LabelValue; -import cn.bootx.platform.common.core.rest.param.PageParam; -import cn.bootx.platform.common.core.util.ResultConvertUtil; -import cn.bootx.platform.common.mybatisplus.util.MpUtil; import cn.daxpay.single.code.AllocDetailResultEnum; import cn.daxpay.single.code.AllocOrderStatusEnum; -import cn.daxpay.single.code.PayChannelEnum; import cn.daxpay.single.code.PayOrderAllocStatusEnum; -import cn.daxpay.single.param.payment.allocation.AllocationStartParam; +import cn.daxpay.single.exception.pay.PayFailureException; +import cn.daxpay.single.param.payment.allocation.AllocReceiverParam; +import cn.daxpay.single.param.payment.allocation.AllocationParam; +import cn.daxpay.single.service.common.context.NoticeLocal; +import cn.daxpay.single.service.common.local.PaymentContextLocal; import cn.daxpay.single.service.core.order.allocation.dao.AllocationOrderDetailManager; +import cn.daxpay.single.service.core.order.allocation.dao.AllocationOrderExtraManager; import cn.daxpay.single.service.core.order.allocation.dao.AllocationOrderManager; import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrder; import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrderDetail; +import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrderExtra; import cn.daxpay.single.service.core.order.allocation.entity.OrderAndDetail; import cn.daxpay.single.service.core.order.pay.dao.PayOrderManager; import cn.daxpay.single.service.core.order.pay.entity.PayOrder; +import cn.daxpay.single.service.core.payment.allocation.dao.AllocationReceiverManager; +import cn.daxpay.single.service.core.payment.allocation.entity.AllocationReceiver; import cn.daxpay.single.service.dto.allocation.AllocationGroupReceiverResult; -import cn.daxpay.single.service.dto.order.allocation.AllocationOrderDetailDto; -import cn.daxpay.single.service.dto.order.allocation.AllocationOrderDto; -import cn.daxpay.single.service.param.order.AllocationOrderQuery; import cn.daxpay.single.util.OrderNoGenerateUtil; import cn.hutool.core.util.IdUtil; import lombok.RequiredArgsConstructor; @@ -29,8 +27,12 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; -import java.util.Arrays; +import java.math.BigDecimal; +import java.math.RoundingMode; +import java.time.LocalDateTime; import java.util.List; +import java.util.Map; +import java.util.Objects; import java.util.stream.Collectors; /** @@ -42,68 +44,96 @@ @Service @RequiredArgsConstructor public class AllocationOrderService { + private final AllocationReceiverManager receiverManager; + private final AllocationOrderManager allocationOrderManager; + private final AllocationOrderDetailManager allocationOrderDetailManager; private final PayOrderManager payOrderManager; + private final AllocationOrderExtraManager allocationOrderExtraManager; - /** - * 获取可以分账的通道 - */ - public List findChannels(){ - return Arrays.asList( - new LabelValue(PayChannelEnum.ALI.getName(),PayChannelEnum.ALI.getCode()), - new LabelValue(PayChannelEnum.WECHAT.getName(),PayChannelEnum.WECHAT.getCode()) - ); - } /** - * 分页查询 + * 生成分账订单, 根据分账组创建 */ - public PageResult page(PageParam pageParam, AllocationOrderQuery param){ - return MpUtil.convert2DtoPageResult(allocationOrderManager.page(pageParam, param)); - } - - - /** - * 查询详情 - */ - public AllocationOrderDto findById(Long id) { - return allocationOrderManager.findById(id).map(AllocationOrder::toDto).orElseThrow(() -> new DataNotExistException("分账订单不存在")); - } + @Transactional(rollbackFor = Exception.class) + public OrderAndDetail createAndUpdate(AllocationParam param, PayOrder payOrder, List receiversByGroups){ + // 订单明细 + List details = receiversByGroups.stream() + .map(o -> { + // 计算分账金额, 小数部分直接舍弃, 防止分账金额超过上限 + Integer rate = o.getRate(); + // 等同于 payOrder.getAmount() * rate / 10000; + int amount = BigDecimal.valueOf(payOrder.getAmount()) + .multiply(BigDecimal.valueOf(rate)) + .divide(BigDecimal.valueOf(10000), 0, RoundingMode.DOWN).intValue(); - /** - * 查询订单明细列表 - */ - public List findDetailsByOrderId(Long orderId){ - return ResultConvertUtil.dtoListConvert(allocationOrderDetailManager.findAllByOrderId(orderId)); + AllocationOrderDetail detail = new AllocationOrderDetail() + .setReceiverNo(o.getReceiverNo()) + .setReceiverId(o.getId()) + .setAmount(amount) + .setResult(AllocDetailResultEnum.PENDING.getCode()) + .setRate(rate) + .setReceiverType(o.getReceiverType()) + .setReceiverName(o.getReceiverName()) + .setReceiverAccount(o.getReceiverAccount()); + // 如果金额为0, 设置为分账失败, 不参与分账 + if (amount == 0){ + detail.setResult(AllocDetailResultEnum.IGNORE.getCode()) + .setErrorMsg("分账比例有误或金额太小, 无法进行分账") + .setFinishTime(LocalDateTime.now()); + } + return detail; + }) + .collect(Collectors.toList()); + return this.saveAllocOrder(param, payOrder, details); } /** - * 查询订单明细详情 + * 生成分账订单, 通过传入的分账方创建 */ - public AllocationOrderDetailDto findDetailById(Long id){ - return allocationOrderDetailManager.findById(id).map(AllocationOrderDetail::toDto).orElseThrow(() -> new DataNotExistException("分账订单明细不存在")); - } + @Transactional(rollbackFor = Exception.class) + public OrderAndDetail createAndUpdate(AllocationParam param, PayOrder payOrder) { + List receiverNos = param.getReceivers() + .stream() + .map(AllocReceiverParam::getReceiverNo) + .distinct() + .collect(Collectors.toList()); + if (receiverNos.size() != param.getReceivers().size()){ + throw new PayFailureException("分账接收方编号重复"); + } + Map receiverNoMap = param.getReceivers() + .stream() + .collect(Collectors.toMap(AllocReceiverParam::getReceiverNo, AllocReceiverParam::getAmount)); + // 查询分账接收方信息 + List receivers = receiverManager.findAllByReceiverNos(receiverNos); + if (receivers.size() != receiverNos.size()){ + throw new PayFailureException("分账接收方列表存在重复或无效的数据"); + } + // 判断分账接收方类型是否都与分账订单类型匹配 + boolean anyMatch = receivers.stream() + .anyMatch(o -> !Objects.equals(o.getChannel(), payOrder.getChannel())); + if (anyMatch){ + throw new PayFailureException("分账接收方列表存在非本通道的数据"); + } - /** - * 生成分账订单 - */ - @Transactional(rollbackFor = Exception.class) - public OrderAndDetail createAndUpdate(AllocationStartParam param, PayOrder payOrder, int orderAmount, List receiversByGroups){ - long orderId = IdUtil.getSnowflakeNextId(); + long allocId = IdUtil.getSnowflakeNextId(); // 订单明细 - List details = receiversByGroups.stream() + List details = receivers.stream() .map(o -> { - // 计算分账金额, 小数不分直接舍弃, 防止分账金额超过上限 - Integer rate = o.getRate(); - Integer amount = orderAmount * rate / 10000; + // 计算分账比例, 不是很精确 + Integer amount = receiverNoMap.get(o.getReceiverNo()); + Integer rate = BigDecimal.valueOf(amount) + .divide(BigDecimal.valueOf(payOrder.getAmount()), 4, RoundingMode.DOWN) + .multiply(BigDecimal.valueOf(10000)).intValue(); AllocationOrderDetail detail = new AllocationOrderDetail(); - detail.setAllocationId(orderId) + detail.setAllocationId(allocId) .setReceiverId(o.getId()) + .setReceiverNo(o.getReceiverNo()) .setAmount(amount) .setResult(AllocDetailResultEnum.PENDING.getCode()) .setRate(rate) @@ -113,6 +143,16 @@ public OrderAndDetail createAndUpdate(AllocationStartParam param, PayOrder payOr return detail; }) .collect(Collectors.toList()); + return this.saveAllocOrder(param, payOrder, details); + } + + /** + * 保存分账相关订单信息 + */ + private OrderAndDetail saveAllocOrder(AllocationParam param, PayOrder payOrder, List details ) { + long allocId = IdUtil.getSnowflakeNextId(); + // 分账明细设置ID + details.forEach(o -> o.setAllocationId(allocId)); // 求分账的总额 Integer sumAmount = details.stream() .map(AllocationOrderDetail::getAmount) @@ -130,14 +170,29 @@ public OrderAndDetail createAndUpdate(AllocationStartParam param, PayOrder payOr .setDescription(param.getDescription()) .setStatus(AllocOrderStatusEnum.ALLOCATION_PROCESSING.getCode()) .setAmount(sumAmount); - allocationOrder.setId(orderId); + // 如果分账订单金额为0, 设置为忽略状态 + if (sumAmount == 0){ + allocationOrder.setStatus(AllocOrderStatusEnum.IGNORE.getCode()) + .setFinishTime(LocalDateTime.now()) + .setResult(AllocOrderStatusEnum.ALLOCATION_FAILED.getCode()) + .setErrorMsg("分账比例有误或金额太小, 无法进行分账"); + } + + allocationOrder.setId(allocId); + // 分账订单扩展 + NoticeLocal noticeInfo = PaymentContextLocal.get().getNoticeInfo(); + AllocationOrderExtra extend = new AllocationOrderExtra() + .setNotifyUrl(noticeInfo.getNotifyUrl()) + .setAttach(param.getAttach()); + extend.setId(allocId); + // 更新支付订单分账状态 payOrder.setAllocationStatus(PayOrderAllocStatusEnum.ALLOCATION.getCode()); payOrderManager.updateById(payOrder); - // 因为加密后字段值会发生变更, 所以在保存前备份一下 allocationOrderDetailManager.saveAll(details); + allocationOrderExtraManager.save(extend); allocationOrderManager.save(allocationOrder); return new OrderAndDetail().setOrder(allocationOrder).setDetails(details); } - } + diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/pay/convert/PayOrderConvert.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/pay/convert/PayOrderConvert.java index f59e6d090..b7fb14ebf 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/pay/convert/PayOrderConvert.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/pay/convert/PayOrderConvert.java @@ -1,7 +1,9 @@ package cn.daxpay.single.service.core.order.pay.convert; +import cn.daxpay.single.result.order.PayOrderResult; import cn.daxpay.single.service.core.order.pay.entity.PayOrder; import cn.daxpay.single.service.core.order.pay.entity.PayOrderExtra; +import cn.daxpay.single.service.core.payment.notice.result.PayNoticeResult; import cn.daxpay.single.service.dto.order.pay.PayOrderDto; import cn.daxpay.single.service.dto.order.pay.PayOrderExtraDto; import org.mapstruct.Mapper; @@ -20,4 +22,7 @@ public interface PayOrderConvert { PayOrderDto convert(PayOrder in); + PayOrderResult convertResult(PayOrder in); + + PayNoticeResult convertNotice(PayOrder order); } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/pay/dao/PayOrderManager.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/pay/dao/PayOrderManager.java index 75fd19a23..2c36ca5e0 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/pay/dao/PayOrderManager.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/pay/dao/PayOrderManager.java @@ -70,15 +70,16 @@ public List findReconcile(String channel, LocalDateTime startTime, Loc } /** - * 查询自动分账用订单记录(指定时间和状态的订单) + * 查询自动分账的订单记录(指定时间和状态的订单) */ - public List findAllocation() { + public List findAutoAllocation() { List status = Arrays.asList(PayStatusEnum.SUCCESS.getCode(), PayStatusEnum.PARTIAL_REFUND.getCode(), PayStatusEnum.REFUNDING.getCode(), PayStatusEnum.REFUNDED.getCode()); return this.lambdaQuery() .eq(PayOrder::getAllocation, true) + .eq(PayOrder::getAutoAllocation, true) .eq(PayOrder::getAllocationStatus, PayOrderAllocStatusEnum.WAITING.getCode()) .in(PayOrder::getStatus, status) .list(); @@ -99,4 +100,13 @@ public Integer getTalAmount(PayOrderQuery query){ return baseMapper.getTalAmount(generator); } + /** + * 查询当前超时的未支付订单 + */ + public List queryExpiredOrder() { + return lambdaQuery() + .eq(PayOrder::getStatus, PayStatusEnum.REFUNDING.getCode()) + .lt(PayOrder::getExpiredTime, LocalDateTime.now()) + .list(); + } } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/pay/service/PayOrderQueryService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/pay/service/PayOrderQueryService.java index 7ee39c4b6..a1ebeccd9 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/pay/service/PayOrderQueryService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/pay/service/PayOrderQueryService.java @@ -1,19 +1,17 @@ package cn.daxpay.single.service.core.order.pay.service; -import cn.bootx.platform.common.core.exception.DataNotExistException; -import cn.bootx.platform.common.core.exception.ValidationFailedException; import cn.bootx.platform.common.core.rest.PageResult; import cn.bootx.platform.common.core.rest.param.PageParam; import cn.bootx.platform.common.mybatisplus.util.MpUtil; import cn.daxpay.single.exception.pay.PayFailureException; import cn.daxpay.single.param.payment.pay.QueryPayParam; import cn.daxpay.single.result.order.PayOrderResult; +import cn.daxpay.single.service.core.order.pay.convert.PayOrderConvert; import cn.daxpay.single.service.core.order.pay.dao.PayOrderExtraManager; import cn.daxpay.single.service.core.order.pay.dao.PayOrderManager; import cn.daxpay.single.service.core.order.pay.entity.PayOrder; import cn.daxpay.single.service.dto.order.pay.PayOrderDto; import cn.daxpay.single.service.param.order.PayOrderQuery; -import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.util.StrUtil; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import lombok.RequiredArgsConstructor; @@ -83,19 +81,18 @@ public Optional findByBizOrOrderNo(String orderNo, String bizOrderNo) public PayOrderResult queryPayOrder(QueryPayParam param) { // 校验参数 if (StrUtil.isBlank(param.getBizOrderNoeNo()) && Objects.isNull(param.getOrderNo())){ - throw new ValidationFailedException("业务号或支付单ID不能都为空"); + throw new PayFailureException("业务号或支付单ID不能都为空"); } // 查询支付单 PayOrder payOrder = this.findByBizOrOrderNo(param.getOrderNo(), param.getBizOrderNoeNo()) - .orElseThrow(() -> new DataNotExistException("未查询到支付订单")); + .orElseThrow(() -> new PayFailureException("支付订单不存在")); // 查询扩展数据 payOrderExtraManager.findById(payOrder.getId()) .orElseThrow(() -> new PayFailureException("支付订单不完整")); - PayOrderResult payOrderResult = new PayOrderResult(); - BeanUtil.copyProperties(payOrder, payOrderResult); - return payOrderResult; + return PayOrderConvert.CONVERT.convertResult(payOrder); } + /** * 查询支付总金额 */ diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/pay/service/PayOrderService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/pay/service/PayOrderService.java index 9240d62fd..a0918b933 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/pay/service/PayOrderService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/pay/service/PayOrderService.java @@ -54,12 +54,8 @@ public void save(PayOrder payOrder){ public void updateById(PayOrder payOrder){ // 如果是异步支付且支付订单完成, 需要删除订单超时任务记录 if (ORDER_FINISH.contains(payOrder.getStatus())){ - expiredTimeService.cancelExpiredTime(payOrder.getId()); + expiredTimeService.cancelExpiredTime(payOrder.getOrderNo()); } payOrderManager.updateById(payOrder); } - - /** - * 关闭 - */ } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/conver/ReconcileConvert.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/conver/ReconcileConvert.java index 04d80eba7..a21f93cee 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/conver/ReconcileConvert.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/conver/ReconcileConvert.java @@ -1,9 +1,9 @@ package cn.daxpay.single.service.core.order.reconcile.conver; -import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileTradeDetail; +import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileOutTrade; import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileDiff; import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileOrder; -import cn.daxpay.single.service.dto.order.reconcile.ReconcileTradeDetailDto; +import cn.daxpay.single.service.dto.order.reconcile.ReconcileOutTradeDto; import cn.daxpay.single.service.dto.order.reconcile.ReconcileDiffDto; import cn.daxpay.single.service.dto.order.reconcile.ReconcileOrderDto; import org.mapstruct.Mapper; @@ -18,7 +18,7 @@ public interface ReconcileConvert { ReconcileConvert CONVERT = Mappers.getMapper(ReconcileConvert.class); - ReconcileTradeDetailDto convert(ReconcileTradeDetail in); + ReconcileOutTradeDto convert(ReconcileOutTrade in); ReconcileDiffDto convert(ReconcileDiff in); diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/dao/ReconcileTradeDetailManager.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/dao/ReconcileOutTradeManager.java similarity index 61% rename from daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/dao/ReconcileTradeDetailManager.java rename to daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/dao/ReconcileOutTradeManager.java index 09fd8d3c8..216d424b0 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/dao/ReconcileTradeDetailManager.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/dao/ReconcileOutTradeManager.java @@ -4,7 +4,7 @@ import cn.bootx.platform.common.mybatisplus.impl.BaseManager; import cn.bootx.platform.common.mybatisplus.util.MpUtil; import cn.bootx.platform.common.query.generator.QueryGenerator; -import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileTradeDetail; +import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileOutTrade; import cn.daxpay.single.service.param.reconcile.ReconcileTradeDetailQuery; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; @@ -22,22 +22,22 @@ @Slf4j @Repository @RequiredArgsConstructor -public class ReconcileTradeDetailManager extends BaseManager { +public class ReconcileOutTradeManager extends BaseManager { /** * 根据订单id查询 */ - public List findAllByReconcileId(Long reconcileId){ - return this.findAllByField(ReconcileTradeDetail::getReconcileId, reconcileId); + public List findAllByReconcileId(Long reconcileId){ + return this.findAllByField(ReconcileOutTrade::getReconcileId, reconcileId); } /** * 分页 */ - public Page page(PageParam pageParam, ReconcileTradeDetailQuery query){ - Page mpPage = MpUtil.getMpPage(pageParam, ReconcileTradeDetail.class); - QueryWrapper generator = QueryGenerator.generator(query); + public Page page(PageParam pageParam, ReconcileTradeDetailQuery query){ + Page mpPage = MpUtil.getMpPage(pageParam, ReconcileOutTrade.class); + QueryWrapper generator = QueryGenerator.generator(query); return this.page(mpPage,generator); } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/dao/ReconcileTradeDetailMapper.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/dao/ReconcileOutTradeMapper.java similarity index 72% rename from daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/dao/ReconcileTradeDetailMapper.java rename to daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/dao/ReconcileOutTradeMapper.java index 58f6e0d6c..451226e24 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/dao/ReconcileTradeDetailMapper.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/dao/ReconcileOutTradeMapper.java @@ -1,6 +1,6 @@ package cn.daxpay.single.service.core.order.reconcile.dao; -import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileTradeDetail; +import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileOutTrade; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; @@ -10,5 +10,5 @@ * @since 2024/1/20 */ @Mapper -public interface ReconcileTradeDetailMapper extends BaseMapper { +public interface ReconcileOutTradeMapper extends BaseMapper { } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/entity/ReconcileTradeDetail.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/entity/ReconcileOutTrade.java similarity index 79% rename from daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/entity/ReconcileTradeDetail.java rename to daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/entity/ReconcileOutTrade.java index a098ebf15..4a0f195d9 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/entity/ReconcileTradeDetail.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/entity/ReconcileOutTrade.java @@ -4,7 +4,7 @@ import cn.bootx.platform.common.mybatisplus.base.MpCreateEntity; import cn.daxpay.single.service.code.PaymentTypeEnum; import cn.daxpay.single.service.core.order.reconcile.conver.ReconcileConvert; -import cn.daxpay.single.service.dto.order.reconcile.ReconcileTradeDetailDto; +import cn.daxpay.single.service.dto.order.reconcile.ReconcileOutTradeDto; import cn.bootx.table.modify.annotation.DbColumn; import cn.bootx.table.modify.annotation.DbTable; import com.baomidou.mybatisplus.annotation.TableName; @@ -15,16 +15,16 @@ import java.time.LocalDateTime; /** - * 对账-第三方交易明细, 从三方系统下载的交易记录 + * 对账通道交易明细, 从三方系统下载的交易记录 * @author xxm * @since 2024/1/18 */ @EqualsAndHashCode(callSuper = true) @Data @Accessors(chain = true) -@DbTable(comment = "对账-第三方交易明细") -@TableName("pay_reconcile_trade_detail") -public class ReconcileTradeDetail extends MpCreateEntity implements EntityBaseFunction { +@DbTable(comment = "对账-通道交易明细") +@TableName("pay_reconcile_out_trade") +public class ReconcileOutTrade extends MpCreateEntity implements EntityBaseFunction { /** 关联对账订单ID */ @DbColumn(comment = "关联对账订单ID") @@ -59,7 +59,7 @@ public class ReconcileTradeDetail extends MpCreateEntity implements EntityBaseFu @Override - public ReconcileTradeDetailDto toDto() { + public ReconcileOutTradeDto toDto() { return ReconcileConvert.CONVERT.convert(this); } } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/service/ReconcileQueryService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/service/ReconcileQueryService.java index 3eb8703f7..1cbe3d622 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/service/ReconcileQueryService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/reconcile/service/ReconcileQueryService.java @@ -5,11 +5,11 @@ import cn.bootx.platform.common.core.rest.param.PageParam; import cn.bootx.platform.common.mybatisplus.util.MpUtil; import cn.daxpay.single.service.core.order.reconcile.dao.ReconcileOrderManager; -import cn.daxpay.single.service.core.order.reconcile.dao.ReconcileTradeDetailManager; +import cn.daxpay.single.service.core.order.reconcile.dao.ReconcileOutTradeManager; +import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileOutTrade; import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileOrder; -import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileTradeDetail; import cn.daxpay.single.service.dto.order.reconcile.ReconcileOrderDto; -import cn.daxpay.single.service.dto.order.reconcile.ReconcileTradeDetailDto; +import cn.daxpay.single.service.dto.order.reconcile.ReconcileOutTradeDto; import cn.daxpay.single.service.param.reconcile.ReconcileTradeDetailQuery; import cn.daxpay.single.service.param.reconcile.ReconcileOrderQuery; import lombok.RequiredArgsConstructor; @@ -26,7 +26,7 @@ @RequiredArgsConstructor public class ReconcileQueryService { private final ReconcileOrderManager orderManager; - private final ReconcileTradeDetailManager detailManager; + private final ReconcileOutTradeManager detailManager; /** * 分页 @@ -44,17 +44,17 @@ public ReconcileOrderDto findById(Long id){ } /** - * 明细分页 + * 通道交易明细分页 */ - public PageResult pageDetail(PageParam pageParam, ReconcileTradeDetailQuery query){ + public PageResult pageDetail(PageParam pageParam, ReconcileTradeDetailQuery query){ return MpUtil.convert2DtoPageResult(detailManager.page(pageParam, query)); } /** - * 明细详情 + * 通道交易详情 */ - public ReconcileTradeDetailDto findDetailById(Long id){ - return detailManager.findById(id).map(ReconcileTradeDetail::toDto) + public ReconcileOutTradeDto findDetailById(Long id){ + return detailManager.findById(id).map(ReconcileOutTrade::toDto) .orElseThrow(()->new DataNotExistException("对账详情不存在")); } } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/refund/convert/RefundOrderConvert.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/refund/convert/RefundOrderConvert.java index 22c056726..bbedd7b46 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/refund/convert/RefundOrderConvert.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/refund/convert/RefundOrderConvert.java @@ -3,6 +3,7 @@ import cn.daxpay.single.result.order.RefundOrderResult; import cn.daxpay.single.service.core.order.refund.entity.RefundOrder; import cn.daxpay.single.service.core.order.refund.entity.RefundOrderExtra; +import cn.daxpay.single.service.core.payment.notice.result.RefundNoticeResult; import cn.daxpay.single.service.dto.order.refund.RefundOrderDto; import cn.daxpay.single.service.dto.order.refund.RefundOrderExtraDto; import org.mapstruct.Mapper; @@ -23,5 +24,5 @@ public interface RefundOrderConvert { RefundOrderResult convertResult(RefundOrder in); - + RefundNoticeResult convertNotice(RefundOrder order); } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/refund/entity/RefundOrder.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/refund/entity/RefundOrder.java index c0501bd6e..cf2279f0d 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/refund/entity/RefundOrder.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/refund/entity/RefundOrder.java @@ -40,7 +40,7 @@ public class RefundOrder extends MpBaseEntity implements EntityBaseFunction findByBizOrRefundNo(String refundNo, String bizRefu public RefundOrderResult queryRefundOrder(QueryRefundParam param) { // 校验参数 if (StrUtil.isBlank(param.getRefundNo()) && Objects.isNull(param.getBizRefundNo())){ - throw new ValidationFailedException("退款号或退款ID不能都为空"); + throw new PayFailureException("退款号或=商户退款号不能都为空"); } // 查询退款单 - RefundOrder refundOrder = null; - if (Objects.nonNull(param.getRefundNo())){ - refundOrder = refundOrderManager.findById(param.getRefundNo()) - .orElseThrow(() -> new DataNotExistException("未查询到支付订单")); - } - if (Objects.isNull(refundOrder)){ - refundOrder = refundOrderManager.findByRefundNo(param.getRefundNo()) - .orElseThrow(() -> new DataNotExistException("未查询到支付订单")); - } + RefundOrder refundOrder = this.findByBizOrRefundNo(param.getRefundNo(), param.getBizRefundNo()) + .orElseThrow(() -> new PayFailureException("退款订单不存在")); return RefundOrderConvert.CONVERT.convertResult(refundOrder); } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/refund/service/RefundOrderService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/refund/service/RefundOrderService.java index 15cbffb53..ad20a1306 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/refund/service/RefundOrderService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/order/refund/service/RefundOrderService.java @@ -2,7 +2,6 @@ import cn.bootx.platform.common.core.exception.DataNotExistException; import cn.bootx.platform.common.spring.util.WebServletUtil; -import cn.daxpay.single.code.PaymentApiCode; import cn.daxpay.single.param.payment.refund.RefundParam; import cn.daxpay.single.service.core.order.refund.dao.RefundOrderExtraManager; import cn.daxpay.single.service.core.order.refund.dao.RefundOrderManager; @@ -10,9 +9,6 @@ import cn.daxpay.single.service.core.order.refund.entity.RefundOrderExtra; import cn.daxpay.single.service.core.payment.common.service.PaymentAssistService; import cn.daxpay.single.service.core.payment.refund.service.RefundService; -import cn.daxpay.single.service.core.system.config.dao.PayApiConfigManager; -import cn.daxpay.single.service.core.system.config.entity.PayApiConfig; -import cn.daxpay.single.service.core.system.config.service.PayApiConfigService; import cn.daxpay.single.service.param.order.PayOrderRefundParam; import cn.daxpay.single.util.OrderNoGenerateUtil; import cn.hutool.extra.servlet.ServletUtil; @@ -36,16 +32,12 @@ public class RefundOrderService { private final RefundService refundService; - private final PayApiConfigService apiConfigService; - private final PaymentAssistService paymentAssistService; private final RefundOrderExtraManager refundOrderExtraManager; private final RefundOrderManager refundOrderManager; - private final PayApiConfigManager apiConfigManager; - /** * 手动发起退款 * 退款涉及到回调通知, 索所以需要手动初始化一下上下文 @@ -64,11 +56,7 @@ public void refund(PayOrderRefundParam param) { refundParam.setReqTime(LocalDateTime.now()); refundParam.setClientIp(ip); // 手动初始化上下文 - paymentAssistService.initContext(refundParam); - // 初始化接口信息为统一退款 - PayApiConfig api = apiConfigManager.findByCode(PaymentApiCode.REFUND).orElseThrow(() -> new DataNotExistException("未找到统一退款接口信息")); - // 设置接口信息 - apiConfigService.initApiInfo(api); + paymentAssistService.initRequest(refundParam); // 调用统一退款接口 refundService.refund(refundParam); } @@ -98,13 +86,7 @@ public void resetRefund(Long id){ refundParam.setReqTime(LocalDateTime.now()); refundParam.setClientIp(ip); - // 手动初始化上下文 - paymentAssistService.initContext(refundParam); - // 初始化接口信息为统一退款 - PayApiConfig api = apiConfigManager.findByCode(PaymentApiCode.REFUND).orElseThrow(() -> new DataNotExistException("未找到统一退款接口信息")); - // 设置接口信息 - apiConfigService.initApiInfo(api); - // 调用统一退款接口 - refundService.refund(refundParam); + // 手动初始化请求上下文 + paymentAssistService.initRequest(refundParam); } } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/convert/AllocationReceiverConvert.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/convert/AllocationReceiverConvert.java index ef7606401..1193c1759 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/convert/AllocationReceiverConvert.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/convert/AllocationReceiverConvert.java @@ -1,8 +1,9 @@ package cn.daxpay.single.service.core.payment.allocation.convert; +import cn.daxpay.single.param.payment.allocation.AllocReceiverAddParam; +import cn.daxpay.single.result.allocation.AllocReceiverResult; import cn.daxpay.single.service.core.payment.allocation.entity.AllocationReceiver; import cn.daxpay.single.service.dto.allocation.AllocationReceiverDto; -import cn.daxpay.single.service.param.allocation.group.AllocationReceiverParam; import org.mapstruct.Mapper; import org.mapstruct.factory.Mappers; @@ -17,5 +18,7 @@ public interface AllocationReceiverConvert { AllocationReceiverDto convert(AllocationReceiver in); - AllocationReceiver convert(AllocationReceiverParam in); + AllocReceiverResult toResult(AllocationReceiver in); + + AllocationReceiver convert(AllocReceiverAddParam in); } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/dao/AllocationGroupManager.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/dao/AllocationGroupManager.java index 0b11d7f50..1a02b381c 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/dao/AllocationGroupManager.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/dao/AllocationGroupManager.java @@ -33,6 +33,15 @@ public Page page(PageParam pageParam, AllocationGroupParam quer return page(mpPage,generator); } + /** + * 根据分账组编号查询 + */ + public Optional findByGroupNo(String groupNo) { + return this.lambdaQuery() + .eq(AllocationGroup::getGroupNo,groupNo) + .oneOpt(); + } + /** * 清除默认分账组 */ @@ -52,4 +61,11 @@ public Optional findDefaultGroup(String channel) { .eq(AllocationGroup::isDefaultGroup,true) .oneOpt(); } + + /** + * 分账组编号是否存在 + */ + public boolean existedByGroupNo(String groupNo) { + return existedByField(AllocationGroup::getGroupNo,groupNo); + } } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/dao/AllocationGroupReceiverManager.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/dao/AllocationGroupReceiverManager.java index 56488d844..2d2d03056 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/dao/AllocationGroupReceiverManager.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/dao/AllocationGroupReceiverManager.java @@ -38,4 +38,9 @@ public List findByGroupId(Long groupId){ public void deleteByGroupId(Long groupId){ deleteByField(AllocationGroupReceiver::getGroupId, groupId); } + + /** + * 判断是否存在分账接收者 + */ + } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/dao/AllocationReceiverManager.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/dao/AllocationReceiverManager.java index 6ababaebb..33d978ce1 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/dao/AllocationReceiverManager.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/dao/AllocationReceiverManager.java @@ -5,13 +5,16 @@ import cn.bootx.platform.common.mybatisplus.util.MpUtil; import cn.bootx.platform.common.query.generator.QueryGenerator; import cn.daxpay.single.service.core.payment.allocation.entity.AllocationReceiver; -import cn.daxpay.single.service.param.allocation.group.AllocationReceiverQuery; +import cn.daxpay.single.service.param.allocation.receiver.AllocationReceiverQuery; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Repository; +import java.util.List; +import java.util.Optional; + /** * 分账接收方 * @author xxm @@ -31,4 +34,30 @@ public Page page(PageParam pageParam, AllocationReceiverQuer return this.page(mpPage, generator); } + /** + * 根据接收方编号查询 + */ + public Optional findByReceiverNo(String receiverNo) { + return findByField(AllocationReceiver::getReceiverNo, receiverNo); + } + + /** + * 根据分账方编号查询列表 + */ + public List findAllByReceiverNos(List receiverNos) { + return findAllByFields(AllocationReceiver::getReceiverNo, receiverNos); + } + + /** + * 根据所属通道查询 + */ + public List findAllByChannel(String channel) { + return findAllByField(AllocationReceiver::getChannel, channel); + } + + + + public boolean existedByReceiverNo(String receiverNo) { + return existedByField(AllocationReceiver::getReceiverNo, receiverNo); + } } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/entity/AllocationGroup.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/entity/AllocationGroup.java index 9a3158b58..04ec99bd5 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/entity/AllocationGroup.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/entity/AllocationGroup.java @@ -26,19 +26,28 @@ @TableName("pay_allocation_group") public class AllocationGroup extends MpBaseEntity implements EntityBaseFunction { + /** 分账组编码 */ + @DbColumn(comment = "分账组编码") + private String groupNo; + + /** 名称 */ @DbComment("名称") private String name; + /** 通道 */ @DbColumn(comment = "通道") @TableField(updateStrategy = FieldStrategy.NEVER) private String channel; + /** 是否为默认分账组 */ @DbColumn(comment = "默认分账组") private boolean defaultGroup; + /** 总分账比例(万分之多少) */ @DbColumn(comment = "总分账比例(万分之多少)") private Integer totalRate; + /** 备注 */ @DbColumn(comment = "备注") private String remark; diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/entity/AllocationReceiver.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/entity/AllocationReceiver.java index a4e3491d3..7f3020bb0 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/entity/AllocationReceiver.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/entity/AllocationReceiver.java @@ -29,10 +29,12 @@ @TableName(value = "pay_allocation_receiver",autoResultMap = true) public class AllocationReceiver extends MpBaseEntity implements EntityBaseFunction { - @DbColumn(comment = "账号别名") - private String name; + /** 分账接收方编号, 需要保证唯一 */ + @DbColumn(comment = "分账接收方编号") + private String receiverNo; /** + * 所属通道 * @see PayChannelEnum */ @DbColumn(comment = "所属通道") @@ -46,7 +48,7 @@ public class AllocationReceiver extends MpBaseEntity implements EntityBaseFuncti @DbColumn(comment = "分账接收方类型") private String receiverType; - + /** 接收方账号 */ @DbColumn(comment = "接收方账号") @TableField(typeHandler = DecryptTypeHandler.class) private String receiverAccount; @@ -63,15 +65,10 @@ public class AllocationReceiver extends MpBaseEntity implements EntityBaseFuncti @DbColumn(comment = "分账关系类型") private String relationType; + /** 关系名称 */ @DbColumn(comment = "关系名称") private String relationName; - @DbColumn(comment = "是否已经同步到网关") - private Boolean sync; - - @DbColumn(comment = "备注") - private String remark; - /** * 转换 */ diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/result/AllocationGatewaySyncResult.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/result/AllocationGatewaySyncResult.java deleted file mode 100644 index bd04a50d7..000000000 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/result/AllocationGatewaySyncResult.java +++ /dev/null @@ -1,17 +0,0 @@ -package cn.daxpay.single.service.core.payment.allocation.result; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; -import lombok.experimental.Accessors; - -/** - * 分账网关同步结果 - * @author xxm - * @since 2024/4/15 - */ -@Data -@Accessors(chain = true) -@Schema(title = "分账网关同步结果") -public class AllocationGatewaySyncResult { - -} diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/service/AllocationAssistService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/service/AllocationAssistService.java new file mode 100644 index 000000000..4257c8465 --- /dev/null +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/service/AllocationAssistService.java @@ -0,0 +1,71 @@ +package cn.daxpay.single.service.core.payment.allocation.service; + +import cn.daxpay.single.param.payment.allocation.AllocationParam; +import cn.daxpay.single.service.common.context.ApiInfoLocal; +import cn.daxpay.single.service.common.context.NoticeLocal; +import cn.daxpay.single.service.common.context.PlatformLocal; +import cn.daxpay.single.service.common.local.PaymentContextLocal; +import cn.daxpay.single.service.core.order.allocation.dao.AllocationOrderExtraManager; +import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrderExtra; +import cn.hutool.core.util.StrUtil; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Objects; + +/** + * 分账支撑方法 + * @author xxm + * @since 2024/5/22 + */ +@Slf4j +@Service +@RequiredArgsConstructor +public class AllocationAssistService { + + + private final AllocationOrderExtraManager allocationOrderExtraManager; + + /** + * 初始化通知相关上下文 + * 1. 异步通知参数: 读取参数配置 -> 读取接口配置 -> 读取平台参数 + * 2. 同步跳转参数: 读取参数配置 -> 读取平台参数 + * 3. 中途退出地址: 读取参数配置 + */ + public void initNotice(AllocationParam allocationParam) { + NoticeLocal noticeInfo = PaymentContextLocal.get().getNoticeInfo(); + ApiInfoLocal apiInfo = PaymentContextLocal.get().getApiInfo(); + PlatformLocal platform = PaymentContextLocal.get() + .getPlatformInfo(); + // 异步回调为开启状态 + if (!Objects.equals(allocationParam.getNotNotify(), false) && apiInfo.isNotice()){ + // 首先读取请求参数 + noticeInfo.setNotifyUrl(allocationParam.getNotifyUrl()); + // 读取接口配置 + if (StrUtil.isBlank(noticeInfo.getNotifyUrl())) { + noticeInfo.setNotifyUrl(apiInfo.getNoticeUrl()); + } + // 读取平台配置 + if (StrUtil.isBlank(noticeInfo.getNotifyUrl())) { + noticeInfo.setNotifyUrl(platform.getNotifyUrl()); + } + } + } + /** + * 根据新传入的分账订单更新订单和扩展信息 + */ + @Transactional(rollbackFor = Exception.class) + public void updateOrder(AllocationParam allocationParam, AllocationOrderExtra orderExtra) { + // 扩展信息 + NoticeLocal noticeInfo = PaymentContextLocal.get().getNoticeInfo(); + orderExtra.setClientIp(allocationParam.getClientIp()) + .setNotifyUrl(noticeInfo.getNotifyUrl()) + .setAttach(allocationParam.getAttach()) + .setClientIp(allocationParam.getClientIp()) + .setReqTime(allocationParam.getReqTime()); + + allocationOrderExtraManager.updateById(orderExtra); + } +} diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/service/AllocationCallbackService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/service/AllocationCallbackService.java new file mode 100644 index 000000000..85efcfe36 --- /dev/null +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/service/AllocationCallbackService.java @@ -0,0 +1,24 @@ +package cn.daxpay.single.service.core.payment.allocation.service; + +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +/** + * 分账回调处理 + * @author xxm + * @since 2024/5/31 + */ +@Slf4j +@Service +@RequiredArgsConstructor +public class AllocationCallbackService { + + + /** + * + */ + public void callback(String allocationNo){ + + } +} diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/service/AllocationGroupService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/service/AllocationGroupService.java index 4859b1b1c..c84bc5883 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/service/AllocationGroupService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/service/AllocationGroupService.java @@ -75,17 +75,17 @@ public List findReceiversByGroups(Long groupId){ // 组装信息 return groupReceivers.stream() .map(o -> { - AllocationReceiver allocationReceiver = receiverMap.get(o.getReceiverId()); + AllocationReceiver receiver = receiverMap.get(o.getReceiverId()); return new AllocationGroupReceiverResult() .setId(o.getId()) - .setName(allocationReceiver.getName()) - .setReceiverId(allocationReceiver.getId()) - .setReceiverAccount(allocationReceiver.getReceiverAccount()) - .setReceiverName(allocationReceiver.getReceiverName()) + .setReceiverId(receiver.getId()) + .setReceiverNo(receiver.getReceiverNo()) + .setReceiverAccount(receiver.getReceiverAccount()) + .setReceiverName(receiver.getReceiverName()) .setRate(o.getRate()) - .setReceiverType(allocationReceiver.getReceiverType()) - .setRelationName(allocationReceiver.getRelationName()) - .setRelationType(allocationReceiver.getRelationType()); + .setReceiverType(receiver.getReceiverType()) + .setRelationName(receiver.getRelationName()) + .setRelationType(receiver.getRelationType()); }) .collect(Collectors.toList()); } @@ -161,13 +161,6 @@ public void bindReceivers(AllocationGroupBindParam param) { if (receivers.size() != receiverIds.size()){ throw new DataNotExistException("传入的分账接收房数量与查询到的不一致"); } - // 接收方需要已经同步到三方系统中 - receivers.stream() - .filter(receiver -> Objects.equals(receiver.getSync(), Boolean.FALSE)) - .findAny() - .ifPresent(receiver -> { - throw new BizException("接收方未同步到三方值系统中"); - }); // 接收方只能为一个支付通道 long count = receivers.stream() .map(AllocationReceiver::getChannel) @@ -252,4 +245,10 @@ public void updateRate(Long receiverId, Integer rate){ groupManager.updateById(group); } + /** + * 判断分账组编号是否存在 + */ + public boolean existsByGroupNo(String groupNo) { + return groupManager.existedByGroupNo(groupNo); + } } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/service/AllocationReceiverService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/service/AllocationReceiverService.java index 4039e19d6..0ebf81850 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/service/AllocationReceiverService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/service/AllocationReceiverService.java @@ -9,6 +9,13 @@ import cn.daxpay.single.code.AllocReceiverTypeEnum; import cn.daxpay.single.code.PayChannelEnum; import cn.daxpay.single.exception.pay.PayFailureException; +import cn.daxpay.single.param.payment.allocation.AllocReceiverAddParam; +import cn.daxpay.single.param.payment.allocation.AllocReceiverRemoveParam; +import cn.daxpay.single.param.payment.allocation.QueryAllocReceiverParam; +import cn.daxpay.single.result.allocation.AllocReceiverAddResult; +import cn.daxpay.single.result.allocation.AllocReceiverRemoveResult; +import cn.daxpay.single.result.allocation.AllocReceiverResult; +import cn.daxpay.single.result.allocation.AllocReceiversResult; import cn.daxpay.single.service.core.payment.allocation.convert.AllocationReceiverConvert; import cn.daxpay.single.service.core.payment.allocation.dao.AllocationGroupReceiverManager; import cn.daxpay.single.service.core.payment.allocation.dao.AllocationReceiverManager; @@ -16,9 +23,10 @@ import cn.daxpay.single.service.core.payment.allocation.factory.AllocationReceiverFactory; import cn.daxpay.single.service.dto.allocation.AllocationReceiverDto; import cn.daxpay.single.service.func.AbsAllocationReceiverStrategy; -import cn.daxpay.single.service.param.allocation.group.AllocationReceiverParam; -import cn.daxpay.single.service.param.allocation.group.AllocationReceiverQuery; -import cn.hutool.core.bean.BeanUtil; +import cn.daxpay.single.service.param.allocation.receiver.AllocationReceiverQuery; +import cn.hutool.core.util.StrUtil; +import com.baomidou.lock.LockInfo; +import com.baomidou.lock.LockTemplate; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; @@ -26,6 +34,7 @@ import java.util.Arrays; import java.util.List; import java.util.Objects; +import java.util.Optional; import java.util.stream.Collectors; /** @@ -42,6 +51,10 @@ public class AllocationReceiverService { private final AllocationGroupReceiverManager groupReceiverManager; + private final AllocationReceiverManager allocationReceiverManager; + + private final LockTemplate lockTemplate; + /** * 分页 */ @@ -56,6 +69,13 @@ public AllocationReceiverDto findById(Long id){ return manager.findById(id).map(AllocationReceiver::toDto).orElseThrow(() -> new DataNotExistException("分账接收方不存在")); } + /** + * 编码是否存在 + */ + public boolean existsByReceiverNo(String receiverNo){ + return manager.existedByReceiverNo(receiverNo); + } + /** * 获取可以分账的通道 */ @@ -85,92 +105,80 @@ public List findReceiverTypeByChannel(String channel){ } /** - * 添加分账接收方 + * 添加分账接收方并同步到三方支付系统中 */ - public void add(AllocationReceiverParam param){ - // 首先添加网关的分账接收方 - AllocationReceiver receiver = AllocationReceiverConvert.CONVERT.convert(param); - - // 获取策略 - PayChannelEnum channelEnum = PayChannelEnum.findByCode(param.getChannel()); - AbsAllocationReceiverStrategy receiverStrategy = AllocationReceiverFactory.create(channelEnum); - // 校验 - receiverStrategy.setAllocationReceiver(receiver); - if (!receiverStrategy.validation()){ - throw new BizException("接收方信息校验失败"); + public AllocReceiverAddResult addAndSync(AllocReceiverAddParam param){ + // 判断是否已经添加 + LockInfo lock = lockTemplate.lock("payment:receiver:" + param.getReceiverNo(),10000,200); + if (Objects.isNull(lock)){ + throw new PayFailureException("分账方处理中,请勿重复操作"); } - - receiver.setSync(false); - manager.save(receiver); - } - - /** - * 修改信息 - */ - public void update(AllocationReceiverParam param){ - AllocationReceiver receiver = manager.findById(param.getId()).orElseThrow(() -> new PayFailureException("未找到分账接收方")); - if (Objects.equals(receiver.getSync(),true)){ - throw new BizException("该接收方已同步到三方支付系统中,无法修改"); + try { + Optional receiverOptional = allocationReceiverManager.findByReceiverNo(param.getReceiverNo()); + if (receiverOptional.isPresent()){ + throw new PayFailureException("该接收方已存在"); + } + AllocationReceiver receiver = AllocationReceiverConvert.CONVERT.convert(param); + // 获取策略 + PayChannelEnum channelEnum = PayChannelEnum.findByCode(param.getChannel()); + AbsAllocationReceiverStrategy receiverStrategy = AllocationReceiverFactory.create(channelEnum); + // 校验 + receiverStrategy.setAllocationReceiver(receiver); + if (!receiverStrategy.validation()){ + throw new PayFailureException("接收方信息校验失败"); + } + // 先添加到三方支付系统中, 然后保存到本地 + receiverStrategy.doBeforeHandler(); + receiverStrategy.bind(); + manager.save(receiver); + } finally { + lockTemplate.releaseLock(lock); } - receiver.setSync(null); - BeanUtil.copyProperties(param,receiver); - manager.updateById(receiver); + return new AllocReceiverAddResult(); } /** - * 删除分账接收方 + * 接口删除 */ - public void remove(Long id){ - // 未同步可以删除 - AllocationReceiver receiver = manager.findById(id).orElseThrow(() -> new PayFailureException("未找到分账接收方")); - if (Objects.equals(receiver.getSync(),true)){ - throw new BizException("该接收方已同步到三方支付系统中,无法删除"); - } - // 判断是否绑定了分账组 - if (groupReceiverManager.isUsed(id)){ - throw new PayFailureException("该接收方已被分账组使用,无法删除"); + public AllocReceiverRemoveResult remove(AllocReceiverRemoveParam param){ + // 判断是否存在 + AllocationReceiver receiver = allocationReceiverManager.findByReceiverNo(param.getReceiverNo()) + .orElseThrow(() -> new PayFailureException("该接收方不存在")); + if (groupReceiverManager.isUsed(receiver.getId())){ + throw new PayFailureException("该接收方已被使用,无法被删除"); } - manager.deleteById(id); - } - - /** - * 同步到三方支付系统中 - */ - public void registerByGateway(Long id){ - AllocationReceiver receiver = manager.findById(id).orElseThrow(() -> new PayFailureException("未找到分账接收方")); - // 获取策略 PayChannelEnum channelEnum = PayChannelEnum.findByCode(receiver.getChannel()); AbsAllocationReceiverStrategy receiverStrategy = AllocationReceiverFactory.create(channelEnum); - // 校验 - receiverStrategy.setAllocationReceiver(receiver); - receiverStrategy.validation(); - receiverStrategy.doBeforeHandler(); - receiverStrategy.bind(); - receiver.setSync(true); - manager.updateById(receiver); - + LockInfo lock = lockTemplate.lock("payment:receiver:" + param.getReceiverNo(),10000,200); + if (Objects.isNull(lock)){ + throw new PayFailureException("分账方处理中,请勿重复操作"); + } + try { + // 校验 + receiverStrategy.setAllocationReceiver(receiver); + receiverStrategy.validation(); + receiverStrategy.doBeforeHandler(); + receiverStrategy.unbind(); + manager.deleteById(receiver.getId()); + } finally { + lockTemplate.releaseLock(lock); + } + return new AllocReceiverRemoveResult(); } /** - * 从三方支付系统中删除 + * 接口查询 */ - public void removeByGateway(Long id){ - if (groupReceiverManager.isUsed(id)){ - throw new PayFailureException("该接收方已被使用,无法从第三方支付平台中删除"); - } - - AllocationReceiver receiver = manager.findById(id).orElseThrow(() -> new PayFailureException("未找到分账接收方")); - // 获取策略 - PayChannelEnum channelEnum = PayChannelEnum.findByCode(receiver.getChannel()); - AbsAllocationReceiverStrategy receiverStrategy = AllocationReceiverFactory.create(channelEnum); - // 校验 - receiverStrategy.setAllocationReceiver(receiver); - receiverStrategy.validation(); - receiverStrategy.doBeforeHandler(); - receiverStrategy.unbind(); - receiver.setSync(false); - manager.updateById(receiver); + public AllocReceiversResult queryAllocReceive(QueryAllocReceiverParam param){ + // 查询对应通道分账接收方的信息 + List list = manager.lambdaQuery() + .eq(StrUtil.isNotBlank(param.getChannel()), AllocationReceiver::getChannel, param.getChannel()) + .eq(StrUtil.isNotBlank(param.getReceiverNo()), AllocationReceiver::getReceiverNo, param.getReceiverNo()) + .list(); + List receivers = list.stream() + .map(AllocationReceiverConvert.CONVERT::toResult) + .collect(Collectors.toList()); + return new AllocReceiversResult().setReceivers(receivers); } - } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/service/AllocationService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/service/AllocationService.java index 81ad3dd63..e0d037851 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/service/AllocationService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/service/AllocationService.java @@ -2,21 +2,26 @@ import cn.bootx.platform.common.core.exception.DataNotExistException; import cn.bootx.platform.common.core.exception.RepetitiveOperationException; +import cn.bootx.platform.common.core.util.CollUtil; import cn.daxpay.single.code.AllocDetailResultEnum; import cn.daxpay.single.code.AllocOrderResultEnum; import cn.daxpay.single.code.AllocOrderStatusEnum; import cn.daxpay.single.code.PayOrderAllocStatusEnum; import cn.daxpay.single.exception.pay.PayFailureException; -import cn.daxpay.single.param.payment.allocation.AllocationFinishParam; -import cn.daxpay.single.param.payment.allocation.AllocationResetParam; -import cn.daxpay.single.param.payment.allocation.AllocationStartParam; -import cn.daxpay.single.param.payment.allocation.AllocationSyncParam; +import cn.daxpay.single.param.payment.allocation.AllocFinishParam; +import cn.daxpay.single.param.payment.allocation.AllocationParam; +import cn.daxpay.single.param.payment.allocation.QueryAllocOrderParam; +import cn.daxpay.single.result.order.AllocOrderDetailResult; +import cn.daxpay.single.result.order.AllocOrderResult; import cn.daxpay.single.result.allocation.AllocationResult; import cn.daxpay.single.service.common.local.PaymentContextLocal; +import cn.daxpay.single.service.core.order.allocation.convert.AllocationConvert; import cn.daxpay.single.service.core.order.allocation.dao.AllocationOrderDetailManager; +import cn.daxpay.single.service.core.order.allocation.dao.AllocationOrderExtraManager; import cn.daxpay.single.service.core.order.allocation.dao.AllocationOrderManager; import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrder; import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrderDetail; +import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrderExtra; import cn.daxpay.single.service.core.order.allocation.entity.OrderAndDetail; import cn.daxpay.single.service.core.order.allocation.service.AllocationOrderService; import cn.daxpay.single.service.core.order.pay.entity.PayOrder; @@ -31,12 +36,15 @@ import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Propagation; -import org.springframework.transaction.annotation.Transactional; +import java.time.LocalDateTime; import java.util.Arrays; import java.util.List; import java.util.Objects; +import java.util.stream.Collectors; + +import static cn.daxpay.single.code.AllocOrderStatusEnum.ALLOCATION_END; +import static cn.daxpay.single.code.AllocOrderStatusEnum.FINISH_FAILED; /** * 分账服务 @@ -57,67 +65,85 @@ public class AllocationService { private final AllocationOrderService allocationOrderService; private final AllocationOrderDetailManager allocationOrderDetailManager; + + private final AllocationAssistService allocationAssistService; + private final PayOrderQueryService payOrderQueryService; + + private final AllocationOrderExtraManager allocationOrderExtraManager; + private final LockTemplate lockTemplate; /** - * 开启分账, 使用分账组进行分账 + * 开启分账 多次请求只会分账一次 + * 优先级 分账接收方列表 > 分账组编号 > 默认分账组 */ - public AllocationResult allocation(AllocationStartParam param) { - PayOrder payOrder = this.getAndCheckPayOrder(param); - return this.allocation(payOrder, param); + public AllocationResult allocation(AllocationParam param) { + // 判断是否已经有分账订单 + AllocationOrder allocationOrder = allocationOrderManager.findByBizAllocationNo(param.getBizAllocationNo()) + .orElse(null); + allocationAssistService.initNotice(param); + if (Objects.nonNull(allocationOrder)){ + // 重复分账 + return this.retryAllocation(param, allocationOrder); + } else { + // 首次分账 + PayOrder payOrder = this.getAndCheckPayOrder(param); + return this.allocation(param, payOrder); + } } /** - * 开启分账, 未传输默认分账组, 则使用默认该通道默认分账组 + * 开启分账 优先级 分账接收方列表 > 分账组编号 > 默认分账组 */ - public AllocationResult allocation(PayOrder payOrder, AllocationStartParam param) { + public AllocationResult allocation(AllocationParam param, PayOrder payOrder) { LockInfo lock = lockTemplate.lock("payment:allocation:" + payOrder.getId(),10000,200); if (Objects.isNull(lock)){ throw new RepetitiveOperationException("分账发起处理中,请勿重复操作"); } try { - // 查询默认分账组 - AllocationGroup allocationGroup; - if (Objects.nonNull(param.getAllocationGroupId())) { - allocationGroup = groupManager.findById(param.getAllocationGroupId()).orElseThrow(() -> new DataNotExistException("未查询到分账组")); - } else { - allocationGroup = groupManager.findDefaultGroup(payOrder.getChannel()).orElseThrow(() -> new DataNotExistException("未查询到默认分账组")); + // 构建分账订单相关信息 + OrderAndDetail orderAndDetail = this.checkAndCreateAlloc(param, payOrder); + // 检查是否需要进行分账 + AllocationOrder order = orderAndDetail.getOrder(); + List details = orderAndDetail.getDetails(); + // 无需进行分账, + if (Objects.equals(order.getStatus(),AllocOrderStatusEnum.IGNORE.getCode())){ + return new AllocationResult() + .setAllocationNo(order.getAllocationNo()) + .setBizAllocationNo(order.getBizAllocationNo()) + .setStatus(order.getStatus()); } - List receiversByGroups = allocationGroupService.findReceiversByGroups(allocationGroup.getId()); - // 创建分账单和明细并保存, 同时更新支付订单状态 使用事务 - OrderAndDetail orderAndDetail = allocationOrderService.createAndUpdate(param ,payOrder, payOrder.getAmount(), receiversByGroups); // 创建分账策略并初始化 AbsAllocationStrategy allocationStrategy = AllocationFactory.create(payOrder.getChannel()); - AllocationOrder order = orderAndDetail.getOrder(); - List details = orderAndDetail.getDetails(); allocationStrategy.initParam(order, details); - - // 分账预处理 - allocationStrategy.doBeforeHandler(); try { + // 分账预处理 + allocationStrategy.doBeforeHandler(); // 分账处理 allocationStrategy.allocation(); // 执行中 order.setStatus(AllocOrderStatusEnum.ALLOCATION_PROCESSING.getCode()) + .setResult(AllocOrderResultEnum.ALL_PENDING.getCode()) .setErrorMsg(null); } catch (Exception e) { log.error("分账出现错误:", e); // 失败 order.setStatus(AllocOrderStatusEnum.ALLOCATION_FAILED.getCode()) .setErrorMsg(e.getMessage()); + // TODO 返回异常处理 } // 网关分账号 - String gatewayNo = PaymentContextLocal.get() + String outAllocationNo = PaymentContextLocal.get() .getAllocationInfo() .getOutAllocationNo(); - order.setOutAllocationNo(gatewayNo); + order.setOutAllocationNo(outAllocationNo); allocationOrderManager.updateById(order); - - return new AllocationResult().setOrderId(order.getId()) + return new AllocationResult() .setAllocationNo(order.getAllocationNo()) + .setBizAllocationNo(order.getBizAllocationNo()) .setStatus(order.getStatus()); } finally { lockTemplate.releaseLock(lock); @@ -127,50 +153,47 @@ public AllocationResult allocation(PayOrder payOrder, AllocationStartParam param /** * 重新分账 */ - public void retryAllocation(AllocationResetParam param){ - AllocationOrder allocationOrder; - if (Objects.nonNull(param.getOrderId())){ - allocationOrder = allocationOrderManager.findById(param.getOrderId()) - .orElseThrow(() -> new DataNotExistException("未查询到分账单信息")); - } else { - allocationOrder = allocationOrderManager.findByAllocationNo(param.getAllocationNo()) - .orElseThrow(() -> new DataNotExistException("未查询到分账单信息")); - } - - LockInfo lock = lockTemplate.lock("payment:allocation:" + allocationOrder.getOrderId(),10000,200); + private AllocationResult retryAllocation(AllocationParam param, AllocationOrder order){ + LockInfo lock = lockTemplate.lock("payment:allocation:" + order.getOrderId(),10000,200); if (Objects.isNull(lock)){ throw new RepetitiveOperationException("分账发起处理中,请勿重复操作"); } try { // 需要是分账中分账中或者完成状态才能重新分账 - List list = Arrays.asList(AllocOrderStatusEnum.ALLOCATION_END.getCode(), + List list = Arrays.asList(ALLOCATION_END.getCode(), AllocOrderStatusEnum.ALLOCATION_FAILED.getCode(), AllocOrderStatusEnum.ALLOCATION_PROCESSING.getCode()); - if (!list.contains(allocationOrder.getStatus())){ - throw new PayFailureException("分账单状态错误"); + if (!list.contains(order.getStatus())){ + throw new PayFailureException("分账单状态错误,无法重试"); } - - List details = allocationOrderDetailManager.findAllByOrderId(allocationOrder.getId()); - + List details = this.getDetails(order.getId()); // 创建分账策略并初始化 - AbsAllocationStrategy allocationStrategy = AllocationFactory.create(allocationOrder.getChannel()); - allocationStrategy.initParam(allocationOrder, details); - + AbsAllocationStrategy allocationStrategy = AllocationFactory.create(order.getChannel()); + allocationStrategy.initParam(order, details); // 分账预处理 allocationStrategy.doBeforeHandler(); + // 查询扩展信息 + AllocationOrderExtra orderExtra = allocationOrderExtraManager.findById(order.getId()) + .orElseThrow(() -> new PayFailureException("未查询到分账单扩展信息")); + // 更新分账单扩展信息 + allocationAssistService.updateOrder(param, orderExtra); try { // 重复分账处理 allocationStrategy.allocation(); - allocationOrder.setStatus(AllocOrderStatusEnum.ALLOCATION_PROCESSING.getCode()) + order.setStatus(AllocOrderStatusEnum.ALLOCATION_PROCESSING.getCode()) .setErrorMsg(null); } catch (Exception e) { log.error("重新分账出现错误:", e); - // 失败 - allocationOrder.setStatus(AllocOrderStatusEnum.ALLOCATION_FAILED.getCode()) + // TODO 失败 + order.setStatus(AllocOrderStatusEnum.ALLOCATION_FAILED.getCode()) .setErrorMsg(e.getMessage()); } - allocationOrderManager.updateById(allocationOrder); + allocationOrderManager.updateById(order); + return new AllocationResult() + .setAllocationNo(order.getAllocationNo()) + .setBizAllocationNo(order.getBizAllocationNo()) + .setStatus(order.getStatus()); } finally { lockTemplate.releaseLock(lock); } @@ -179,28 +202,28 @@ public void retryAllocation(AllocationResetParam param){ /** * 分账完结 */ - public void finish(AllocationFinishParam param) { + public AllocationResult finish(AllocFinishParam param) { AllocationOrder allocationOrder; - if (Objects.nonNull(param.getOrderId())){ - allocationOrder = allocationOrderManager.findById(param.getOrderId()) + if (Objects.nonNull(param.getAllocationNo())){ + allocationOrder = allocationOrderManager.findByAllocationNo(param.getAllocationNo()) .orElseThrow(() -> new DataNotExistException("未查询到分账单信息")); } else { - allocationOrder = allocationOrderManager.findByAllocationNo(param.getAllocationNo()) + allocationOrder = allocationOrderManager.findByBizAllocationNo(param.getBizAllocationNo()) .orElseThrow(() -> new DataNotExistException("未查询到分账单信息")); } - this.finish(allocationOrder); + return this.finish(allocationOrder); } /** * 分账完结 */ - public void finish(AllocationOrder allocationOrder) { + public AllocationResult finish(AllocationOrder allocationOrder) { // 只有分账结束后才可以完结 - if (!AllocOrderStatusEnum.ALLOCATION_END.getCode().equals(allocationOrder.getStatus())){ + if (!Arrays.asList(ALLOCATION_END.getCode(),FINISH_FAILED.getCode()).contains(allocationOrder.getStatus())) { throw new PayFailureException("分账单状态错误"); } + List details = this.getDetails(allocationOrder.getId()); - List details = allocationOrderDetailManager.findAllByOrderId(allocationOrder.getId()); // 创建分账策略并初始化 AbsAllocationStrategy allocationStrategy = AllocationFactory.create(allocationOrder.getChannel()); allocationStrategy.initParam(allocationOrder, details); @@ -212,117 +235,92 @@ public void finish(AllocationOrder allocationOrder) { allocationStrategy.finish(); // 完结状态 allocationOrder.setStatus(AllocOrderStatusEnum.FINISH.getCode()) + .setFinishTime(LocalDateTime.now()) .setErrorMsg(null); } catch (Exception e) { log.error("分账完结错误:", e); // 失败 - allocationOrder.setStatus(AllocOrderStatusEnum.FINISH_FAILED.getCode()) + allocationOrder.setStatus(FINISH_FAILED.getCode()) .setErrorMsg(e.getMessage()); } allocationOrderManager.updateById(allocationOrder); + return new AllocationResult() + .setAllocationNo(allocationOrder.getAllocationNo()) + .setBizAllocationNo(allocationOrder.getBizAllocationNo()) + .setStatus(allocationOrder.getStatus()); } /** - * 分账同步, 开启一个新的事务, 不受外部抛出异常的影响 + * 获取并检查支付订单 */ - @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Exception.class) - public void sync(AllocationSyncParam param) { - // 获取分账订单 - AllocationOrder allocationOrder = null; - if (Objects.nonNull(param.getAllocationNo())){ - allocationOrder = allocationOrderManager.findByAllocationNo(param.getAllocationNo()) - .orElseThrow(() -> new DataNotExistException("分账单不存在")); + private PayOrder getAndCheckPayOrder(AllocationParam param) { + // 查询支付单 + PayOrder payOrder = payOrderQueryService.findByBizOrOrderNo(param.getOrderNo(), param.getBizOrderNo()) + .orElseThrow(() -> new PayFailureException("支付单不存在")); + // 判断订单是否可以分账 + if (!payOrder.getAllocation()){ + throw new PayFailureException("该订单不允许分账"); } - if (Objects.isNull(allocationOrder)){ - allocationOrder = allocationOrderManager.findByAllocationNo(param.getBizAllocationNo()) - .orElseThrow(() -> new DataNotExistException("分账单不存在")); + // 判断分账状态 + if (Objects.equals(PayOrderAllocStatusEnum.ALLOCATION.getCode(), payOrder.getAllocationStatus())){ + throw new PayFailureException("该订单已分账完成"); } - this.sync(allocationOrder); + return payOrder; } /** - * 分账同步 + * 查询分账结果 */ - public void sync(AllocationOrder allocationOrder){ - LockInfo lock = lockTemplate.lock("payment:allocation:" + allocationOrder.getOrderId(),10000,200); - if (Objects.isNull(lock)){ - throw new RepetitiveOperationException("分账同步中,请勿重复操作"); - } - try { - List detailList = allocationOrderDetailManager.findAllByOrderId(allocationOrder.getId()); - // 获取分账策略 - AbsAllocationStrategy allocationStrategy = AllocationFactory.create(allocationOrder.getChannel()); - allocationStrategy.initParam(allocationOrder, detailList); - // 分账完结预处理 - allocationStrategy.doBeforeHandler(); - allocationStrategy.doSync(); - - // 根据订单明细更新订单的状态和处理结果 - this.updateOrderStatus(allocationOrder, detailList); - - allocationOrderDetailManager.updateAllById(detailList); - allocationOrderManager.updateById(allocationOrder); - } finally { - lockTemplate.releaseLock(lock); - } + public AllocOrderResult queryAllocationOrder(QueryAllocOrderParam param) { + // 查询分账单 + AllocationOrder allocationOrder = allocationOrderManager.findByAllocationNo(param.getAllocationNo()) + .orElseThrow(() -> new PayFailureException("分账单不存在")); + AllocOrderResult result = AllocationConvert.CONVERT.toResult(allocationOrder); + // 查询分账单明细 + List details = allocationOrderDetailManager.findAllByOrderId(allocationOrder.getId()).stream() + .map(AllocationConvert.CONVERT::toResult) + .collect(Collectors.toList()); + result.setDetails(details); + return result; } /** - * 根据订单明细更新订单的状态和处理结果, 如果订单是分账结束或失败, 不更新状态 + * 构建分账订单相关信息 */ - private void updateOrderStatus(AllocationOrder allocationOrder, List details){ - // 如果是分账结束或失败, 不更新状态 - String status = allocationOrder.getStatus(); - // 判断明细状态. 获取成功和失败的 - long successCount = details.stream() - .map(AllocationOrderDetail::getResult) - .filter(AllocDetailResultEnum.SUCCESS.getCode()::equals) - .count(); - long failCount = details.stream() - .map(AllocationOrderDetail::getResult) - .filter(AllocDetailResultEnum.FAIL.getCode()::equals) - .count(); - - // 成功和失败都为0 进行中 - if (successCount == 0 && failCount == 0){ - allocationOrder.setStatus(AllocOrderStatusEnum.ALLOCATION_PROCESSING.getCode()) - .setResult(AllocOrderResultEnum.ALL_PENDING.getCode()); - } else if (failCount == details.size()){ - // 全部失败 - allocationOrder.setStatus(AllocOrderStatusEnum.ALLOCATION_END.getCode()) - .setResult(AllocOrderResultEnum.ALL_FAILED.getCode()); - } else if (successCount == details.size()){ - // 全部成功 - allocationOrder.setStatus(AllocOrderStatusEnum.ALLOCATION_END.getCode()) - .setResult(AllocOrderResultEnum.ALL_SUCCESS.getCode()); + private OrderAndDetail checkAndCreateAlloc(AllocationParam param, PayOrder payOrder){ + // 创建分账单和明细并保存, 同时更新支付订单状态 使用事务 + OrderAndDetail orderAndDetail; + // 判断是否传输了分账接收方列表 + if (CollUtil.isNotEmpty(param.getReceivers())) { + orderAndDetail = allocationOrderService.createAndUpdate(param, payOrder); } else { - // 部分成功 - allocationOrder.setStatus(AllocOrderStatusEnum.ALLOCATION_END.getCode()) - .setResult(AllocOrderResultEnum.PART_SUCCESS.getCode()); - } - // 如果是分账结束或失败, 状态复原 - List list = Arrays.asList(AllocOrderStatusEnum.FINISH.getCode(), AllocOrderStatusEnum.FINISH_FAILED.getCode()); - if (list.contains(status)){ - allocationOrder.setStatus(AllocOrderStatusEnum.FINISH.getCode()) - .setResult(AllocOrderResultEnum.ALL_SUCCESS.getCode()); + AllocationGroup allocationGroup; + if (Objects.nonNull(param.getGroupNo())){ + // 指定分账组 + allocationGroup = groupManager.findByGroupNo(param.getGroupNo()).orElseThrow(() -> new DataNotExistException("未查询到分账组")); + } else { + // 默认分账组 + allocationGroup = groupManager.findDefaultGroup(payOrder.getChannel()).orElseThrow(() -> new PayFailureException("未查询到默认分账组")); + } + // 判断通道类型是否一致 + if (!Objects.equals(allocationGroup.getChannel(), payOrder.getChannel())){ + throw new PayFailureException("分账接收方列表存在非本通道的数据"); + } + + List receiversByGroups = allocationGroupService.findReceiversByGroups(allocationGroup.getId()); + orderAndDetail = allocationOrderService.createAndUpdate(param ,payOrder, receiversByGroups); } + return orderAndDetail; } /** - * 获取并检查支付订单 + * 获取发起分账或完结的明细 */ - private PayOrder getAndCheckPayOrder(AllocationStartParam param) { - // 查询支付单 - PayOrder payOrder = payOrderQueryService.findByBizOrOrderNo(param.getOrderNo(), param.getBizOrderNo()) - .orElseThrow(() -> new DataNotExistException("支付单不存在")); - // 判断订单是否可以分账 - if (!payOrder.getAllocation()){ - throw new PayFailureException("该订单不允许分账"); - } - // 判断分账状态 - if (Objects.equals(PayOrderAllocStatusEnum.ALLOCATION.getCode(), payOrder.getAllocationStatus())){ - throw new PayFailureException("该订单已分账完成"); - } - return payOrder; + private List getDetails(Long allocOrderId){ + List details = allocationOrderDetailManager.findAllByOrderId(allocOrderId); + // 过滤掉忽略的条目 + return details.stream() + .filter(detail -> !Objects.equals(detail.getResult(), AllocDetailResultEnum.IGNORE.getCode())) + .collect(Collectors.toList()); } } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/service/AllocationSyncService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/service/AllocationSyncService.java new file mode 100644 index 000000000..c4dd93084 --- /dev/null +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/service/AllocationSyncService.java @@ -0,0 +1,173 @@ +package cn.daxpay.single.service.core.payment.allocation.service; + +import cn.bootx.platform.common.core.exception.DataNotExistException; +import cn.bootx.platform.common.core.exception.RepetitiveOperationException; +import cn.daxpay.single.code.AllocDetailResultEnum; +import cn.daxpay.single.code.AllocOrderResultEnum; +import cn.daxpay.single.code.AllocOrderStatusEnum; +import cn.daxpay.single.param.payment.allocation.AllocSyncParam; +import cn.daxpay.single.result.sync.AllocSyncResult; +import cn.daxpay.single.service.code.PaymentTypeEnum; +import cn.daxpay.single.service.common.local.PaymentContextLocal; +import cn.daxpay.single.service.core.order.allocation.dao.AllocationOrderDetailManager; +import cn.daxpay.single.service.core.order.allocation.dao.AllocationOrderManager; +import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrder; +import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrderDetail; +import cn.daxpay.single.service.core.payment.allocation.factory.AllocationFactory; +import cn.daxpay.single.service.core.payment.notice.service.ClientNoticeService; +import cn.daxpay.single.service.core.payment.sync.result.AllocRemoteSyncResult; +import cn.daxpay.single.service.core.record.sync.entity.PaySyncRecord; +import cn.daxpay.single.service.core.record.sync.service.PaySyncRecordService; +import cn.daxpay.single.service.func.AbsAllocationStrategy; +import com.baomidou.lock.LockInfo; +import com.baomidou.lock.LockTemplate; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Propagation; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Arrays; +import java.util.List; +import java.util.Objects; + +/** + * 对账同步 + * @author xxm + * @since 2024/5/23 + */ +@Slf4j +@Service +@RequiredArgsConstructor +public class AllocationSyncService { + + private final ClientNoticeService clientNoticeService; + + private final AllocationOrderManager allocationOrderManager; + + private final AllocationOrderDetailManager allocationOrderDetailManager; + + private final PaySyncRecordService paySyncRecordService; + + private final LockTemplate lockTemplate; + + /** + * 分账同步, 开启一个新的事务, 不受外部抛出异常的影响 + */ + @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Exception.class) + public AllocSyncResult sync(AllocSyncParam param) { + // 获取分账订单 + AllocationOrder allocationOrder = null; + if (Objects.nonNull(param.getAllocationNo())){ + allocationOrder = allocationOrderManager.findByAllocationNo(param.getAllocationNo()) + .orElseThrow(() -> new DataNotExistException("分账单不存在")); + } + if (Objects.isNull(allocationOrder)){ + allocationOrder = allocationOrderManager.findByAllocationNo(param.getBizAllocationNo()) + .orElseThrow(() -> new DataNotExistException("分账单不存在")); + } + // 如果类型为忽略, 不进行同步处理 + if (Objects.equals(allocationOrder.getStatus(), AllocOrderStatusEnum.IGNORE.getCode())){ + return new AllocSyncResult(); + } + + // 调用同步逻辑 + this.sync(allocationOrder); + return new AllocSyncResult(); + } + + /** + * 分账同步 + */ + public void sync(AllocationOrder allocationOrder){ + LockInfo lock = lockTemplate.lock("payment:allocation:" + allocationOrder.getOrderId(),10000,200); + if (Objects.isNull(lock)){ + throw new RepetitiveOperationException("分账同步中,请勿重复操作"); + } + try { + List detailList = allocationOrderDetailManager.findAllByOrderId(allocationOrder.getId()); + // 获取分账策略 + AbsAllocationStrategy allocationStrategy = AllocationFactory.create(allocationOrder.getChannel()); + allocationStrategy.initParam(allocationOrder, detailList); + // 分账完结预处理 + allocationStrategy.doBeforeHandler(); + // 执行同步操作, 分账明细的状态变更会在这个里面 + AllocRemoteSyncResult allocRemoteSyncResult = allocationStrategy.doSync(); + // 保存分账同步记录 + this.saveRecord(allocationOrder, allocRemoteSyncResult,null,null); + // 根据订单明细更新订单的状态和处理结果 + this.updateOrderStatus(allocationOrder, detailList); + } finally { + lockTemplate.releaseLock(lock); + } + } + + /** + * 根据订单明细更新订单的状态和处理结果, 如果订单是分账结束或失败, 不更新状态 + * TODO 是否多次同步会产生多次变动, 注意处理多次推送通知的问题, 目前是 + */ + private void updateOrderStatus(AllocationOrder allocationOrder, List details){ + // 如果是分账结束或失败, 不更新状态 + String status = allocationOrder.getStatus(); + + // 如果是分账结束或失败, 不进行对订单进行处理 + List list = Arrays.asList(AllocOrderStatusEnum.FINISH.getCode(), AllocOrderStatusEnum.FINISH_FAILED.getCode()); + if (!list.contains(status)){ + // 判断明细状态. 获取成功和失败的 + long successCount = details.stream() + .map(AllocationOrderDetail::getResult) + .filter(AllocDetailResultEnum.SUCCESS.getCode()::equals) + .count(); + long failCount = details.stream() + .map(AllocationOrderDetail::getResult) + .filter(AllocDetailResultEnum.FAIL.getCode()::equals) + .count(); + + // 成功和失败都为0 表示进行中 + if (successCount == 0 && failCount == 0){ + allocationOrder.setStatus(AllocOrderStatusEnum.ALLOCATION_PROCESSING.getCode()) + .setResult(AllocOrderResultEnum.ALL_PENDING.getCode()); + } else { + if (failCount == details.size()){ + // 全部失败 + allocationOrder.setStatus(AllocOrderStatusEnum.ALLOCATION_END.getCode()) + .setResult(AllocOrderResultEnum.ALL_FAILED.getCode()); + } else if (successCount == details.size()){ + // 全部成功 + allocationOrder.setStatus(AllocOrderStatusEnum.ALLOCATION_END.getCode()) + .setResult(AllocOrderResultEnum.ALL_SUCCESS.getCode()); + } else { + // 部分成功 + allocationOrder.setStatus(AllocOrderStatusEnum.ALLOCATION_END.getCode()) + .setResult(AllocOrderResultEnum.PART_SUCCESS.getCode()); + } + } + } + allocationOrderDetailManager.updateAllById(details); + allocationOrderManager.updateById(allocationOrder); + + // 如果状态为完成, 发送通知 + if (Objects.equals(AllocOrderStatusEnum.ALLOCATION_END.getCode(), allocationOrder.getStatus())){ + // 发送通知 + clientNoticeService.registerAllocNotice(allocationOrder, null, details); + } + } + + + /** + * 保存同步记录 + */ + private void saveRecord(AllocationOrder order, AllocRemoteSyncResult syncResult, String errorCode, String errorMsg){ + PaySyncRecord paySyncRecord = new PaySyncRecord() + .setBizTradeNo(order.getBizAllocationNo()) + .setTradeNo(order.getAllocationNo()) + .setOutTradeNo(order.getOutAllocationNo()) + .setSyncType(PaymentTypeEnum.ALLOCATION.getCode()) + .setChannel(order.getChannel()) + .setSyncInfo(syncResult.getSyncInfo()) + .setErrorCode(errorCode) + .setErrorMsg(errorMsg) + .setClientIp(PaymentContextLocal.get().getRequestInfo().getClientIp()); + paySyncRecordService.saveRecord(paySyncRecord); + } +} diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/strategy/allocation/AliPayAllocationStrategy.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/strategy/allocation/AliPayAllocationStrategy.java index b22d5c883..1aa55744a 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/strategy/allocation/AliPayAllocationStrategy.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/strategy/allocation/AliPayAllocationStrategy.java @@ -5,6 +5,7 @@ import cn.daxpay.single.service.core.channel.alipay.entity.AliPayConfig; import cn.daxpay.single.service.core.channel.alipay.service.AliPayAllocationService; import cn.daxpay.single.service.core.channel.alipay.service.AliPayConfigService; +import cn.daxpay.single.service.core.payment.sync.result.AllocRemoteSyncResult; import cn.daxpay.single.service.func.AbsAllocationStrategy; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; @@ -49,7 +50,7 @@ public void doBeforeHandler() { this.aliPayConfig = aliPayConfigService.getConfig(); // 判断是否支持分账 if (Objects.equals(aliPayConfig.getAllocation(),false)){ - throw new PayFailureException("微信支付配置不支持分账"); + throw new PayFailureException("支付宝支付配置不支持分账"); } aliPayConfigService.initConfig(this.aliPayConfig); } @@ -74,8 +75,8 @@ public void finish() { * 同步状态 */ @Override - public void doSync() { - aliPayAllocationService.sync(this.getAllocationOrder(), this.getAllocationOrderDetails()); + public AllocRemoteSyncResult doSync() { + return aliPayAllocationService.sync(this.getAllocationOrder(), this.getAllocationOrderDetails()); } } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/strategy/allocation/WeChatPayAllocationStrategy.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/strategy/allocation/WeChatPayAllocationStrategy.java index 37baed79c..039c05939 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/strategy/allocation/WeChatPayAllocationStrategy.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/allocation/strategy/allocation/WeChatPayAllocationStrategy.java @@ -5,6 +5,7 @@ import cn.daxpay.single.service.core.channel.wechat.entity.WeChatPayConfig; import cn.daxpay.single.service.core.channel.wechat.service.WeChatPayAllocationService; import cn.daxpay.single.service.core.channel.wechat.service.WeChatPayConfigService; +import cn.daxpay.single.service.core.payment.sync.result.AllocRemoteSyncResult; import cn.daxpay.single.service.func.AbsAllocationStrategy; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; @@ -50,6 +51,10 @@ public void doBeforeHandler() { if (Objects.equals(weChatPayConfig.getAllocation(),false)){ throw new PayFailureException("微信支付配置不支持分账"); } + // 如果分账金额为0, 不发起分账 + if (getAllocationOrder().getAmount() == 0){ + throw new PayFailureException("微信订单的分账比例不正确或订单金额太小, 无法进行分账"); + } } /** @@ -72,8 +77,8 @@ public void finish() { * 同步状态 */ @Override - public void doSync() { - weChatPayAllocationService.sync(this.getAllocationOrder(),this.getAllocationOrderDetails(),weChatPayConfig); + public AllocRemoteSyncResult doSync() { + return weChatPayAllocationService.sync(this.getAllocationOrder(),this.getAllocationOrderDetails(),weChatPayConfig); } } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/close/service/PayCloseService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/close/service/PayCloseService.java index 3dfd33c34..3ebce3a2b 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/close/service/PayCloseService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/close/service/PayCloseService.java @@ -44,7 +44,7 @@ public class PayCloseService { */ public PayCloseResult close(PayCloseParam param){ PayOrder payOrder = payOrderQueryService.findByBizOrOrderNo(param.getOrderNo(), param.getBizTradeNo()) - .orElseThrow(() -> new PayFailureException("未查询到支付订单")); + .orElseThrow(() -> new PayFailureException("支付订单不存在")); LockInfo lock = lockTemplate.lock("payment:close:" + payOrder.getId(),10000, 50); if (Objects.isNull(lock)){ throw new RepetitiveOperationException("支付订单已在关闭中,请勿重复发起"); diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/common/aop/InitPlatformInfoAop.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/common/aop/InitPlatformInfoAop.java new file mode 100644 index 000000000..57fd9fc38 --- /dev/null +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/common/aop/InitPlatformInfoAop.java @@ -0,0 +1,53 @@ +package cn.daxpay.single.service.core.payment.common.aop; + +import cn.bootx.platform.common.core.exception.DataNotExistException; +import cn.daxpay.single.exception.pay.PayFailureException; +import cn.daxpay.single.service.annotation.InitPaymentContext; +import cn.daxpay.single.service.core.system.config.dao.PayApiConfigManager; +import cn.daxpay.single.service.core.system.config.entity.PayApiConfig; +import cn.daxpay.single.service.core.system.config.service.PayApiConfigService; +import cn.daxpay.single.service.core.system.config.service.PlatformConfigService; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.aspectj.lang.ProceedingJoinPoint; +import org.aspectj.lang.annotation.Around; +import org.aspectj.lang.annotation.Aspect; +import org.springframework.stereotype.Component; + +/** + * + * 执行顺序: 过滤器 -> 拦截器 -> 切面 -> 方法 + * @author xxm + * @since 2023/12/24 + */ +@Aspect +@Slf4j +@Component +@RequiredArgsConstructor +public class InitPlatformInfoAop { + + private final PayApiConfigService payApiConfigService; + + private final PayApiConfigManager payApiConfigManager; + + private final PlatformConfigService platformConfigService; + + /** + * 拦截注解 + */ + @Around("@annotation(platformContext)") + public Object beforeMethod(ProceedingJoinPoint pjp, InitPaymentContext platformContext) throws Throwable { + String code = platformContext.value(); + // 接口信息 + PayApiConfig api = payApiConfigManager.findByCode(code) + .orElseThrow(() -> new DataNotExistException("未找到接口信息")); + if (!api.isEnable()){ + throw new PayFailureException("该接口权限未开放"); + } + // 设置接口信息 + payApiConfigService.initApiInfo(api); + // 初始化平台信息 + platformConfigService.initPlatform(); + return pjp.proceed(); + } +} diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/common/aop/PaymentVerifySignAop.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/common/aop/PaymentVerifySignAop.java index fc58c4d13..0d4806e11 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/common/aop/PaymentVerifySignAop.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/common/aop/PaymentVerifySignAop.java @@ -5,7 +5,7 @@ import cn.daxpay.single.exception.pay.PayFailureException; import cn.daxpay.single.param.PaymentCommonParam; import cn.daxpay.single.result.PaymentCommonResult; -import cn.daxpay.single.service.annotation.PaymentApi; +import cn.daxpay.single.service.annotation.PaymentSign; import cn.daxpay.single.service.core.payment.common.service.PaymentSignService; import cn.daxpay.single.util.DaxRes; import lombok.RequiredArgsConstructor; @@ -13,6 +13,7 @@ import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; +import org.springframework.core.annotation.Order; import org.springframework.stereotype.Component; /** @@ -24,12 +25,13 @@ @Aspect @Slf4j @Component +@Order() @RequiredArgsConstructor public class PaymentVerifySignAop { private final PaymentSignService paymentSignService; - @Around("@annotation(paymentApi)") - public Object beforeMethod(ProceedingJoinPoint pjp, PaymentApi paymentApi) throws Throwable { + @Around("@annotation(paymentSign)") + public Object beforeMethod(ProceedingJoinPoint pjp, @SuppressWarnings("unused") PaymentSign paymentSign) throws Throwable { Object[] args = pjp.getArgs(); if (args.length == 0){ throw new PayFailureException("支付方法至少有一个参数,并且需要签名支付参数需要放在第一位"); @@ -49,7 +51,7 @@ public Object beforeMethod(ProceedingJoinPoint pjp, PaymentApi paymentApi) throw } catch (PayFailureException ex) { // 如果抛出支付异常, 包裹异常信息, 进行返回 PaymentCommonResult commonResult = new PaymentCommonResult(); - // todo 后期错误码统一管理后, 进行更改 + // todo 后期错误码统一管理后进行更改 commonResult.setCode(1); commonResult.setMsg(ex.getMessage()); paymentSignService.sign(commonResult); diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/common/service/PaymentAssistService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/common/service/PaymentAssistService.java index 58f971b94..93054f93b 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/common/service/PaymentAssistService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/common/service/PaymentAssistService.java @@ -1,10 +1,8 @@ package cn.daxpay.single.service.core.payment.common.service; import cn.daxpay.single.param.PaymentCommonParam; -import cn.daxpay.single.service.common.context.PlatformLocal; import cn.daxpay.single.service.common.context.RequestLocal; import cn.daxpay.single.service.common.local.PaymentContextLocal; -import cn.daxpay.single.service.core.system.config.entity.PlatformConfig; import cn.daxpay.single.service.core.system.config.service.PlatformConfigService; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; @@ -25,29 +23,13 @@ public class PaymentAssistService { * 初始化上下文 */ public void initContext(PaymentCommonParam paymentCommonParam){ - this.initPlatform(); + platformConfigService.initPlatform(); this.initRequest(paymentCommonParam); } - - /** - * 初始化平台配置上下文 - */ - public void initPlatform(){ - PlatformConfig config = platformConfigService.getConfig(); - PlatformLocal platform = PaymentContextLocal.get().getPlatformInfo(); - platform.setSignType(config.getSignType()); - platform.setSignSecret(config.getSignSecret()); - platform.setNotifyUrl(config.getNotifyUrl()); - platform.setOrderTimeout(config.getOrderTimeout()); - platform.setLimitAmount(config.getLimitAmount()); - platform.setWebsiteUrl(config.getWebsiteUrl()); - } - - /** * 初始化请求相关信息上下文 */ - private void initRequest(PaymentCommonParam paymentCommonParam){ + public void initRequest(PaymentCommonParam paymentCommonParam){ RequestLocal request = PaymentContextLocal.get().getRequestInfo(); request.setClientIp(paymentCommonParam.getClientIp()) .setSign(paymentCommonParam.getSign()) diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/common/service/PaymentSignService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/common/service/PaymentSignService.java index e9275b64d..96ae3ecf2 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/common/service/PaymentSignService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/common/service/PaymentSignService.java @@ -7,7 +7,9 @@ import cn.daxpay.single.service.common.context.ApiInfoLocal; import cn.daxpay.single.service.common.context.PlatformLocal; import cn.daxpay.single.service.common.local.PaymentContextLocal; +import cn.daxpay.single.service.core.system.config.service.PlatformConfigService; import cn.daxpay.single.util.PaySignUtil; +import cn.hutool.core.bean.BeanUtil; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; @@ -24,7 +26,9 @@ @RequiredArgsConstructor public class PaymentSignService { - private final PaymentAssistService paymentAssistService;; + private final PaymentAssistService paymentAssistService; + + private final PlatformConfigService platformConfigService; /** * 入参签名校验 @@ -61,6 +65,10 @@ public void verifySign(PaymentCommonParam param) { */ public void sign(PaymentCommonResult result) { PlatformLocal platformInfo = PaymentContextLocal.get().getPlatformInfo(); + // 如果平台配置所有属性为空, 进行初始化 + if (BeanUtil.isEmpty(platformInfo)){ + platformConfigService.initPlatform(); + } String signType = platformInfo.getSignType(); if (Objects.equals(PaySignTypeEnum.HMAC_SHA256.getCode(), signType)){ result.setSign(PaySignUtil.hmacSha256Sign(result, platformInfo.getSignSecret())); diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/result/AllocDetailNoticeResult.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/result/AllocDetailNoticeResult.java new file mode 100644 index 000000000..21df141b3 --- /dev/null +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/result/AllocDetailNoticeResult.java @@ -0,0 +1,64 @@ +package cn.daxpay.single.service.core.payment.notice.result; + +import cn.daxpay.single.code.AllocDetailResultEnum; +import cn.daxpay.single.code.AllocReceiverTypeEnum; +import cn.daxpay.single.serializer.LocalDateTimeToTimestampSerializer; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.experimental.Accessors; + +import java.time.LocalDateTime; + +/** + * 分账响应结果 + * @author xxm + * @since 2024/5/30 + */ +@Data +@Accessors(chain = true) +@Schema(title = "分账响应结果") +public class AllocDetailNoticeResult { + + @Schema(description = "分账接收方编号") + private String receiverNo; + + /** 分账金额 */ + @Schema(description = "分账金额") + private Integer amount; + + /** + * 分账接收方类型 + * @see AllocReceiverTypeEnum + */ + @Schema(description = "分账接收方类型") + private String receiverType; + + /** 接收方账号 */ + @Schema(description = "接收方账号") + private String receiverAccount; + + /** 接收方姓名 */ + @Schema(description = "接收方姓名") + private String receiverName; + + /** + * 分账结果 + * @see AllocDetailResultEnum + */ + @Schema(description = "分账结果") + private String result; + + /** 错误代码 */ + @Schema(description = "错误代码") + private String errorCode; + + /** 错误原因 */ + @Schema(description = "错误原因") + private String errorMsg; + + /** 分账完成时间 */ + @Schema(description = "分账完成时间") + @JsonSerialize(using = LocalDateTimeToTimestampSerializer.class) + private LocalDateTime finishTime; +} diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/result/AllocNoticeResult.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/result/AllocNoticeResult.java new file mode 100644 index 000000000..896779b1d --- /dev/null +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/result/AllocNoticeResult.java @@ -0,0 +1,121 @@ +package cn.daxpay.single.service.core.payment.notice.result; + +import cn.daxpay.single.code.AllocOrderResultEnum; +import cn.daxpay.single.code.AllocOrderStatusEnum; +import cn.daxpay.single.code.PayChannelEnum; +import cn.daxpay.single.result.PaymentCommonResult; +import cn.daxpay.single.serializer.LocalDateTimeToTimestampSerializer; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.time.LocalDateTime; +import java.util.List; + +/** + * 分账通知方法 + * @author xxm + * @since 2024/5/21 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@Accessors(chain = true) +@Schema(title = "分账通知方法") +public class AllocNoticeResult extends PaymentCommonResult { + /** + * 分账单号 + */ + @Schema(description = "分账单号") + private String allocationNo; + + /** + * 商户分账单号 + */ + @Schema(description = "商户分账单号") + private String bizAllocationNo; + + /** + * 通道分账号 + */ + @Schema(description = "通道分账号") + private String outAllocationNo; + + /** + * 支付订单号 + */ + @Schema(description = "支付订单号") + private String orderNo; + + /** + * 商户支付订单号 + */ + @Schema(description = "商户支付订单号") + private String bizOrderNo; + + + /** + * 支付订单标题 + */ + @Schema(description = "支付订单标题") + private String title; + + /** + * 所属通道 + * @see PayChannelEnum + */ + @Schema(description = "所属通道") + private String channel; + + /** + * 总分账金额 + */ + @Schema(description = "总分账金额") + private Integer amount; + + /** + * 分账描述 + */ + @Schema(description = "分账描述") + private String description; + + /** + * 状态 + * @see AllocOrderStatusEnum + */ + @Schema(description = "状态") + private String status; + + /** + * 处理结果 + * @see AllocOrderResultEnum + */ + @Schema(description = "处理结果") + private String result; + + /** 分账订单完成时间 */ + @Schema(description = "分账订单完成时间") + @JsonSerialize(using = LocalDateTimeToTimestampSerializer.class) + private LocalDateTime finishTime; + + /** 商户扩展参数,回调时会原样返回 */ + @Schema(description = "商户扩展参数,回调时会原样返回") + private String attach; + + /** 分账明细 */ + @Schema(description = "分账明细") + private List details; + + /** + * 错误码 + */ + @Schema(description = "错误码") + private String errorCode; + + /** + * 错误信息 + */ + @Schema(description = "错误原因") + private String errorMsg; +} diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/result/PayNoticeResult.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/result/PayNoticeResult.java index 13b78e933..e92a5f30b 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/result/PayNoticeResult.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/result/PayNoticeResult.java @@ -1,6 +1,7 @@ package cn.daxpay.single.service.core.payment.notice.result; import cn.daxpay.single.code.PayChannelEnum; +import cn.daxpay.single.code.PayOrderAllocStatusEnum; import cn.daxpay.single.code.PayStatusEnum; import cn.daxpay.single.result.PaymentCommonResult; import cn.daxpay.single.serializer.LocalDateTimeToTimestampSerializer; @@ -23,31 +24,48 @@ @Schema(title = "支付异步通知类") public class PayNoticeResult extends PaymentCommonResult { - /** 订单号 */ - @Schema(description = "订单号") + @Schema(description = "支付订单号") private String orderNo; /** 商户订单号 */ @Schema(description = "商户订单号") private String bizOrderNo; + /** 通道系统交易号 */ + @Schema(description = "通道支付订单号") + private String outOrderNo; + /** 标题 */ @Schema(description = "标题") private String title; + /** 描述 */ + @Schema(description = "描述") + private String description; + + /** 是否支持分账 */ + @Schema(description = "是否需要分账") + private Boolean allocation; + + /** 是否开启自动分账 */ + @Schema(description = "是否开启自动分账") + private Boolean autoAllocation; + /** * 支付通道 * @see PayChannelEnum */ - @Schema(description = "支付通道") + @Schema(description = "异步支付通道") private String channel; - /** 支付方式 */ + /** + * 支付方式 + */ @Schema(description = "支付方式") private String method; - /** 支付金额 */ - @Schema(description = "支付金额") + /** 金额 */ + @Schema(description = "金额") private Integer amount; /** @@ -57,23 +75,38 @@ public class PayNoticeResult extends PaymentCommonResult { @Schema(description = "支付状态") private String status; - /** 支付成功时间 */ - @Schema(description = "支付成功时间") + /** + * 分账状态 + * @see PayOrderAllocStatusEnum + */ + @Schema(description = "分账状态") + private String allocationStatus; + + /** 支付时间 */ + @Schema(description = "支付时间") @JsonSerialize(using = LocalDateTimeToTimestampSerializer.class) private LocalDateTime payTime; - /** 支付关闭时间 */ - @Schema(description = "支付关闭时间") + /** 过期时间 */ + @Schema(description = "过期时间") @JsonSerialize(using = LocalDateTimeToTimestampSerializer.class) - private LocalDateTime closeTime; + private LocalDateTime expiredTime; - /** 支付创建时间 */ - @Schema(description = "支付创建时间") + /** 关闭时间 */ + @Schema(description = "关闭时间") @JsonSerialize(using = LocalDateTimeToTimestampSerializer.class) - private LocalDateTime createTime; + private LocalDateTime closeTime; /** 商户扩展参数,回调时会原样返回 */ @Schema(description = "商户扩展参数,回调时会原样返回") private String attach; + /** 错误码 */ + @Schema(description = "错误码") + private String errorCode; + + /** 错误原因 */ + @Schema(description = "错误原因") + private String errorMsg; + } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/result/RefundNoticeResult.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/result/RefundNoticeResult.java index 5e40bd22a..ffbb911d8 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/result/RefundNoticeResult.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/result/RefundNoticeResult.java @@ -23,6 +23,22 @@ @Schema(title = "退款通知消息") public class RefundNoticeResult extends PaymentCommonResult { + /** 支付订单号 */ + @Schema(description = "支付订单号") + private String orderNo; + + /** 商户支付订单号 */ + @Schema(description = "商户支付订单号") + private String bizOrderNo; + + /** 通道支付订单号 */ + @Schema(description = "通道支付订单号") + private String outOrderNo; + + /** 支付标题 */ + @Schema(description = "支付标题") + private String title; + /** 退款号 */ @Schema(description = "退款号") private String refundNo; @@ -31,17 +47,39 @@ public class RefundNoticeResult extends PaymentCommonResult { @Schema(description = "商户退款号") private String bizRefundNo; + /** 通道退款交易号 */ + @Schema(description = "通道退款交易号") + private String outRefundNo; + /** - * 支付通道 + * 退款通道 * @see PayChannelEnum */ @Schema(description = "支付通道") private String channel; + /** 订单金额 */ + @Schema(description = "订单金额") + private Integer orderAmount; + /** 退款金额 */ @Schema(description = "退款金额") private Integer amount; + /** 退款原因 */ + @Schema(description = "退款原因") + private String reason; + + /** 退款发起时间 */ + @Schema(description = "退款发起时间") + @JsonSerialize(using = LocalDateTimeToTimestampSerializer.class) + private LocalDateTime refundTime; + + /** 退款完成时间 */ + @Schema(description = "退款完成时间") + @JsonSerialize(using = LocalDateTimeToTimestampSerializer.class) + private LocalDateTime finishTime; + /** * 退款状态 * @see RefundStatusEnum @@ -49,17 +87,15 @@ public class RefundNoticeResult extends PaymentCommonResult { @Schema(description = "退款状态") private String status; - /** 退款成功时间 */ - @Schema(description = "退款成功时间") - @JsonSerialize(using = LocalDateTimeToTimestampSerializer.class) - private LocalDateTime finishTime; - - /** 退款创建时间 */ - @Schema(description = "退款创建时间") - @JsonSerialize(using = LocalDateTimeToTimestampSerializer.class) - private LocalDateTime createTime; - /** 商户扩展参数,回调时会原样返回 */ @Schema(description = "商户扩展参数,回调时会原样返回") private String attach; + + /** 错误码 */ + @Schema(description = "错误码") + private String errorCode; + + /** 错误信息 */ + @Schema(description = "错误信息") + private String errorMsg; } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/service/ClientNoticeAssistService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/service/ClientNoticeAssistService.java index ebecff372..6f7297784 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/service/ClientNoticeAssistService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/service/ClientNoticeAssistService.java @@ -2,19 +2,29 @@ import cn.bootx.platform.common.jackson.util.JacksonUtil; import cn.daxpay.single.service.code.ClientNoticeTypeEnum; +import cn.daxpay.single.service.core.notice.entity.ClientNoticeTask; +import cn.daxpay.single.service.core.order.allocation.convert.AllocationConvert; +import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrder; +import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrderDetail; +import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrderExtra; +import cn.daxpay.single.service.core.order.pay.convert.PayOrderConvert; import cn.daxpay.single.service.core.order.pay.entity.PayOrder; import cn.daxpay.single.service.core.order.pay.entity.PayOrderExtra; +import cn.daxpay.single.service.core.order.refund.convert.RefundOrderConvert; import cn.daxpay.single.service.core.order.refund.entity.RefundOrder; import cn.daxpay.single.service.core.order.refund.entity.RefundOrderExtra; -import cn.daxpay.single.service.core.payment.common.service.PaymentAssistService; import cn.daxpay.single.service.core.payment.common.service.PaymentSignService; +import cn.daxpay.single.service.core.payment.notice.result.AllocDetailNoticeResult; +import cn.daxpay.single.service.core.payment.notice.result.AllocNoticeResult; import cn.daxpay.single.service.core.payment.notice.result.PayNoticeResult; import cn.daxpay.single.service.core.payment.notice.result.RefundNoticeResult; -import cn.daxpay.single.service.core.task.notice.entity.ClientNoticeTask; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; +import java.util.List; +import java.util.stream.Collectors; + /** * 客户系统消息通知任务支撑服务 * @author xxm @@ -27,27 +37,12 @@ public class ClientNoticeAssistService { private final PaymentSignService paymentSignService; - private final PaymentAssistService paymentAssistService; - /** * 构建出支付通知任务对象 */ public ClientNoticeTask buildPayTask(PayOrder order, PayOrderExtra orderExtra){ - // 获取系统签名 - paymentAssistService.initPlatform(); - PayNoticeResult payNoticeResult = new PayNoticeResult() - .setOrderNo(order.getOrderNo()) - .setBizOrderNo(order.getBizOrderNo()) - .setTitle(order.getTitle()) - .setChannel(order.getChannel()) - .setMethod(order.getMethod()) - .setAmount(order.getAmount()) - .setPayTime(order.getPayTime()) - .setCloseTime(order.getCloseTime()) - .setCreateTime(order.getCreateTime()) - .setStatus(order.getStatus()) - .setAttach(orderExtra.getAttach()); - + PayNoticeResult payNoticeResult = PayOrderConvert.CONVERT.convertNotice(order); + payNoticeResult.setAttach(orderExtra.getAttach()); paymentSignService.sign(payNoticeResult); return new ClientNoticeTask() .setUrl(orderExtra.getNotifyUrl()) @@ -64,25 +59,15 @@ public ClientNoticeTask buildPayTask(PayOrder order, PayOrderExtra orderExtra){ * 构建出退款通知任务对象 */ public ClientNoticeTask buildRefundTask(RefundOrder order, RefundOrderExtra orderExtra){ - // 获取系统签名 - paymentAssistService.initPlatform(); // 创建退款通知内容 - RefundNoticeResult payNoticeResult = new RefundNoticeResult() - .setRefundNo(order.getRefundNo()) - .setBizRefundNo(order.getBizRefundNo()) - .setChannel(order.getChannel()) - .setAmount(order.getAmount()) - .setFinishTime(order.getFinishTime()) - .setCreateTime(order.getCreateTime()) - .setStatus(order.getStatus()) - .setAttach(orderExtra.getAttach()); - + RefundNoticeResult refundNoticeResult = RefundOrderConvert.CONVERT.convertNotice(order); + refundNoticeResult.setAttach(orderExtra.getAttach()); // 签名 - paymentSignService.sign(payNoticeResult); + paymentSignService.sign(refundNoticeResult); return new ClientNoticeTask() .setUrl(orderExtra.getNotifyUrl()) // 时间序列化进行了重写 - .setContent(JacksonUtil.toJson(payNoticeResult)) + .setContent(JacksonUtil.toJson(refundNoticeResult)) .setNoticeType(ClientNoticeTypeEnum.REFUND.getType()) .setSendCount(0) .setTradeId(order.getId()) @@ -90,4 +75,30 @@ public ClientNoticeTask buildRefundTask(RefundOrder order, RefundOrderExtra orde .setTradeStatus(order.getStatus()); } + /** + * 构建分账通知 + */ + public ClientNoticeTask buildAllocTask(AllocationOrder order, AllocationOrderExtra orderExtra, List list){ + // 分账 + AllocNoticeResult allocOrderResult = AllocationConvert.CONVERT.toNotice(order); + // 分账详情 + List details = list.stream() + .map(AllocationConvert.CONVERT::toNotice) + .collect(Collectors.toList()); + // 分账扩展和明细 + allocOrderResult.setAttach(orderExtra.getAttach()) + .setDetails(details); + // 签名 + paymentSignService.sign(allocOrderResult); + return new ClientNoticeTask() + .setUrl(orderExtra.getNotifyUrl()) + // 时间序列化进行了重写 + .setContent(JacksonUtil.toJson(allocOrderResult)) + .setNoticeType(ClientNoticeTypeEnum.ALLOCATION.getType()) + .setSendCount(0) + .setTradeId(order.getId()) + .setTradeNo(order.getAllocationNo()) + .setTradeStatus(order.getStatus()); + } + } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/service/ClientNoticeService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/service/ClientNoticeService.java index de897473d..8712b8b52 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/service/ClientNoticeService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/service/ClientNoticeService.java @@ -4,16 +4,20 @@ import cn.bootx.platform.common.core.util.LocalDateTimeUtil; import cn.bootx.platform.common.redis.RedisClient; import cn.daxpay.single.service.code.ClientNoticeSendTypeEnum; +import cn.daxpay.single.service.core.notice.dao.ClientNoticeTaskManager; +import cn.daxpay.single.service.core.notice.entity.ClientNoticeRecord; +import cn.daxpay.single.service.core.notice.entity.ClientNoticeTask; +import cn.daxpay.single.service.core.notice.service.ClientNoticeRecordService; +import cn.daxpay.single.service.core.order.allocation.dao.AllocationOrderExtraManager; +import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrder; +import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrderDetail; +import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrderExtra; import cn.daxpay.single.service.core.order.pay.dao.PayOrderExtraManager; import cn.daxpay.single.service.core.order.pay.entity.PayOrder; import cn.daxpay.single.service.core.order.pay.entity.PayOrderExtra; import cn.daxpay.single.service.core.order.refund.dao.RefundOrderExtraManager; import cn.daxpay.single.service.core.order.refund.entity.RefundOrder; import cn.daxpay.single.service.core.order.refund.entity.RefundOrderExtra; -import cn.daxpay.single.service.core.task.notice.dao.ClientNoticeTaskManager; -import cn.daxpay.single.service.core.task.notice.entity.ClientNoticeRecord; -import cn.daxpay.single.service.core.task.notice.entity.ClientNoticeTask; -import cn.daxpay.single.service.core.task.notice.service.ClientNoticeRecordService; import cn.hutool.core.util.StrUtil; import cn.hutool.http.ContentType; import cn.hutool.http.HttpResponse; @@ -49,6 +53,8 @@ public class ClientNoticeService { private final ClientNoticeRecordService recordService; + private final AllocationOrderExtraManager allocationOrderExtraManager; + private final RedisClient redisClient; private final LockTemplate lockTemplate; @@ -126,7 +132,7 @@ public void registerRefundNotice(RefundOrder order, RefundOrderExtra orderExtra) if (Objects.isNull(orderExtra)){ Optional extraOpt = refundOrderExtraManager.findById(order.getId()); if (!extraOpt.isPresent()){ - log.error("未找到支付扩展信息,数据错误,订单ID:{}",order.getId()); + log.error("未找到退款扩展信息,数据错误,订单ID:{}",order.getId()); return; } orderExtra = extraOpt.get(); @@ -150,6 +156,38 @@ public void registerRefundNotice(RefundOrder order, RefundOrderExtra orderExtra) this.sendData(task, LocalDateTime.now()); } + /** + * 注册分账消息通知任务 + */ + @Async("bigExecutor") + public void registerAllocNotice(AllocationOrder order, AllocationOrderExtra orderExtra, List list) { + // 创建通知任务并保存 + if (Objects.isNull(orderExtra)){ + Optional extraOpt = allocationOrderExtraManager.findById(order.getId()); + if (!extraOpt.isPresent()){ + log.error("未找到分账扩展信息,数据错误,订单ID:{}",order.getId()); + return; + } + orderExtra = extraOpt.get(); + } + // 判断是否需要进行通知 + if (StrUtil.isBlank(orderExtra.getNotifyUrl())){ + log.info("分账订单无需通知,订单ID:{}",order.getId()); + return; + } + // 创建通知任务并保存 + ClientNoticeTask task = clientNoticeAssistService.buildAllocTask(order, orderExtra, list); + try { + taskManager.save(task); + } catch (Exception e) { + log.error("注册分账消息通知任务失败,数据错误,订单ID:{}",order.getId()); + log.error("错误内容",e); + throw new RuntimeException(e); + } + // 同时触发一次通知, 如果成功发送, 任务结束 + this.sendData(task, LocalDateTime.now()); + } + /** * 从redis中执行任务, 通过定时任务触发 */ diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/service/PayReturnService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/service/PayReturnService.java index cd3ad7ba4..d49b12739 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/service/PayReturnService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/notice/service/PayReturnService.java @@ -35,12 +35,14 @@ public class PayReturnService { * 支付宝同步回调 */ public String alipay(AliPayReturnParam param){ - PayOrderExtra payOrderExtra = payOrderExtraManager.findById(param.getOut_trade_no()).orElse(null); - PayOrder payOrder = payOrderQueryService.findById(param.getOut_trade_no()).orElse(null); - if (Objects.isNull(payOrderExtra) || Objects.isNull(payOrder)){ + PayOrder payOrder = payOrderQueryService.findByOrderNo(param.getOutTradeNo()).orElse(null); + if ( Objects.isNull(payOrder)){ + return StrUtil.format("{}/result/error?msg={}", properties.getFrontH5Url(), URLEncodeUtil.encode("支付订单有问题,请排查")); + } + PayOrderExtra payOrderExtra = payOrderExtraManager.findById(payOrder.getId()).orElse(null); + if ( Objects.isNull(payOrderExtra)){ return StrUtil.format("{}/result/error?msg={}", properties.getFrontH5Url(), URLEncodeUtil.encode("支付订单有问题,请排查")); } - // 如果同步跳转参数为空, 获取系统配置地址, 系统配置如果也为空, 则返回默认地址 String returnUrl = payOrderExtra.getReturnUrl(); if (StrUtil.isBlank(returnUrl)){ diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/pay/dao/PayExpiredTimeRepository.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/pay/dao/PayExpiredTimeRepository.java index 601eb313c..8e2aedbd3 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/pay/dao/PayExpiredTimeRepository.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/pay/dao/PayExpiredTimeRepository.java @@ -20,16 +20,16 @@ @RequiredArgsConstructor public class PayExpiredTimeRepository { - private static final String KEY = "payment:pay:expiredtime"; + private static final String KEY = "payment:pay:overtime"; private final RedisClient redisClient; /** * 根据 token 存储对应的 ExpiredTokenKey */ - public void store(Long payOderId, LocalDateTime expiredTime) { + public void store(String orderNo, LocalDateTime expiredTime) { long time = LocalDateTimeUtil.timestamp(expiredTime); - redisClient.zadd(KEY, String.valueOf(payOderId), time); + redisClient.zadd(KEY, orderNo, time); } /** @@ -40,16 +40,6 @@ public Set getExpiredKeys(LocalDateTime expiredTime) { return redisClient.zrangeByScore(KEY, 0L, time); } - /** - * 获取所有未过期的订单ID. (7天内的订单) - */ - public Set getNormalKeysBy30Day(){ - LocalDateTime now = LocalDateTime.now(); - long start = LocalDateTimeUtil.timestamp(now); - long end = LocalDateTimeUtil.timestamp(now.plusDays(30)); - return redisClient.zrangeByScore(KEY, start, end); - } - /** * 支付完成或者取消支付后, 需要调用这个方法来清除列表里的订单ID */ diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/pay/service/PayAssistService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/pay/service/PayAssistService.java index 2b61c4d91..443af4892 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/pay/service/PayAssistService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/pay/service/PayAssistService.java @@ -151,8 +151,6 @@ public PayOrder createPayOrder(PayParam payParam) { */ @Transactional(rollbackFor = Exception.class) public void updatePayOrder(PayParam payParam,PayOrder order, PayOrderExtra payOrderExtra) { - PayLocal payInfo = PaymentContextLocal.get() - .getPayInfo(); // 订单信息 order.setAllocation(payParam.getAllocation()) .setChannel(payParam.getChannel()) diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/pay/service/PayExpiredTimeService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/pay/service/PayExpiredTimeService.java index 85c568c2c..405fbdd02 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/pay/service/PayExpiredTimeService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/pay/service/PayExpiredTimeService.java @@ -38,7 +38,7 @@ public void registerExpiredTime(PayOrder payOrder) { try { // 将过期时间添加到redis中, 往后延时一分钟 expiredTime = LocalDateTimeUtil.offset(expiredTime, 1, ChronoUnit.MINUTES); - repository.store(payOrder.getId(), expiredTime); + repository.store(payOrder.getOrderNo(), expiredTime); } catch (Exception e) { log.error("注册支付单超时关闭失败",e); @@ -50,8 +50,8 @@ public void registerExpiredTime(PayOrder payOrder) { /** * 取消支付单超时关闭事件 */ - public void cancelExpiredTime(Long paymentId) { - repository.removeKeys(String.valueOf(paymentId)); + public void cancelExpiredTime(String orderNo) { + repository.removeKeys(orderNo); } } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/pay/service/PayService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/pay/service/PayService.java index 4084a63c6..da28450a3 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/pay/service/PayService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/pay/service/PayService.java @@ -11,6 +11,7 @@ import cn.daxpay.single.service.core.order.pay.service.PayOrderService; import cn.daxpay.single.service.core.payment.notice.service.ClientNoticeService; import cn.daxpay.single.service.core.payment.pay.factory.PayStrategyFactory; +import cn.daxpay.single.service.core.record.flow.service.TradeFlowRecordService; import cn.daxpay.single.service.func.AbsPayStrategy; import cn.daxpay.single.util.PayUtil; import cn.hutool.extra.spring.SpringUtil; @@ -45,6 +46,8 @@ public class PayService { private final PayOrderExtraManager payOrderExtraManager; + private final TradeFlowRecordService tradeFlowRecordService; + private final LockTemplate lockTemplate; /** @@ -129,8 +132,9 @@ public PayResult firstPaySuccess(PayOrder payOrder){ payOrder.setErrorCode(null); payOrder.setErrorMsg(null); payOrderService.updateById(payOrder); - // 如果支付完成 发送通知 + // 如果支付完成 发送通知, 记录流水 if (Objects.equals(payOrder.getStatus(), SUCCESS.getCode())){ + tradeFlowRecordService.savePay(payOrder); clientNoticeService.registerPayNotice(payOrder, payInfo.getPayOrderExtra()); } return payAssistService.buildResult(payOrder); @@ -181,8 +185,9 @@ public PayResult repeatPaySuccess(PayOrder payOrder, PayOrderExtra payOrderExtra payOrder.setErrorMsg(null); payOrder.setErrorCode(null); payOrderService.updateById(payOrder); - // 如果支付完成 发送通知 + // 如果支付完成 发送通知, 记录流水 if (Objects.equals(payOrder.getStatus(), SUCCESS.getCode())){ + tradeFlowRecordService.savePay(payOrder); clientNoticeService.registerPayNotice(payOrder, payOrderExtra); } return payAssistService.buildResult(payOrder); diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/reconcile/service/ReconcileAssistService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/reconcile/service/ReconcileAssistService.java index 66fb1966a..79851a256 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/reconcile/service/ReconcileAssistService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/reconcile/service/ReconcileAssistService.java @@ -8,9 +8,9 @@ import cn.daxpay.single.service.code.ReconcileDiffTypeEnum; import cn.daxpay.single.service.core.order.pay.dao.PayOrderManager; import cn.daxpay.single.service.core.order.pay.entity.PayOrder; +import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileOutTrade; import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileDiff; import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileOrder; -import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileTradeDetail; import cn.daxpay.single.service.core.order.refund.dao.RefundOrderManager; import cn.daxpay.single.service.core.order.refund.entity.RefundOrder; import cn.daxpay.single.service.core.payment.reconcile.domain.GeneralTradeInfo; @@ -68,8 +68,8 @@ public List getGeneralTradeInfoList(ReconcileOrder reconcileOr for (RefundOrder refundOrder : refundOrders) { generalTradeInfoList.add(new GeneralTradeInfo() .setTitle(refundOrder.getTitle()) - .setTradeNo(refundOrder.getOrderNo()) - .setOutTradeNo(refundOrder.getOutOrderNo()) + .setTradeNo(refundOrder.getRefundNo()) + .setOutTradeNo(refundOrder.getOutRefundNo()) .setFinishTime(refundOrder.getFinishTime()) .setType(PaymentTypeEnum.REFUND.getCode()) .setAmount(refundOrder.getAmount())); @@ -78,7 +78,7 @@ public List getGeneralTradeInfoList(ReconcileOrder reconcileOr } /** - * 比对生成对账差异单 + * 比对生成对账差异单, 通道对账单 * 1. 远程有, 本地无 * 2. 远程无, 本地有 * 3. 远程有, 本地有, 但状态不一致 @@ -89,18 +89,18 @@ public List getGeneralTradeInfoList(ReconcileOrder reconcileOr */ public List generateDiffRecord(ReconcileOrder reconcileOrder, List localTrades, - List outDetails){ + List outDetails){ // 差异内容 List diffRecords = new ArrayList<>(); // 三方对账订单 - Map outDetailMap = outDetails.stream() - .collect(Collectors.toMap(ReconcileTradeDetail::getTradeNo, Function.identity(), CollectorsFunction::retainLatest)); + Map outDetailMap = outDetails.stream() + .collect(Collectors.toMap(ReconcileOutTrade::getTradeNo, Function.identity(), CollectorsFunction::retainLatest)); // 本地订单记录 Map localTradeMap = localTrades.stream() .collect(Collectors.toMap(GeneralTradeInfo::getTradeNo, Function.identity(), CollectorsFunction::retainLatest)); // 对账与比对 - for (ReconcileTradeDetail outDetail : outDetails) { + for (ReconcileOutTrade outDetail : outDetails) { // 判断本地有没有记录, 流水没有记录查询本地订单 GeneralTradeInfo localTrade = localTradeMap.get(outDetail.getTradeNo()); if (Objects.isNull(localTrade)){ @@ -144,7 +144,7 @@ public List generateDiffRecord(ReconcileOrder reconcileOrder, } // 本地与对账单比对, 找出本地有, 远程没有的记录 for (GeneralTradeInfo localTrade : localTrades) { - ReconcileTradeDetail outDetail = outDetailMap.get(localTrade.getTradeNo()); + ReconcileOutTrade outDetail = outDetailMap.get(localTrade.getTradeNo()); if (Objects.isNull(outDetail)){ ReconcileDiff diffRecord = new ReconcileDiff() .setDiffType(ReconcileDiffTypeEnum.LOCAL_NOT_EXISTS.getCode()) @@ -171,7 +171,7 @@ public List generateDiffRecord(ReconcileOrder reconcileOrder, * @param outDetail 下载的对账订单 * @param localTrade 本地交易订单 */ - private List reconcileDiff(ReconcileTradeDetail outDetail, GeneralTradeInfo localTrade){ + private List reconcileDiff(ReconcileOutTrade outDetail, GeneralTradeInfo localTrade){ List diffs = new ArrayList<>(); // 判断类型是否相同 diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/reconcile/service/ReconcileService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/reconcile/service/ReconcileService.java index 618597674..a115b1e83 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/reconcile/service/ReconcileService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/reconcile/service/ReconcileService.java @@ -11,11 +11,11 @@ import cn.daxpay.single.service.core.order.reconcile.dao.ReconcileDiffManager; import cn.daxpay.single.service.core.order.reconcile.dao.ReconcileFileManager; import cn.daxpay.single.service.core.order.reconcile.dao.ReconcileOrderManager; -import cn.daxpay.single.service.core.order.reconcile.dao.ReconcileTradeDetailManager; +import cn.daxpay.single.service.core.order.reconcile.dao.ReconcileOutTradeManager; +import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileOutTrade; import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileDiff; import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileFile; import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileOrder; -import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileTradeDetail; import cn.daxpay.single.service.core.order.reconcile.service.ReconcileOrderService; import cn.daxpay.single.service.core.payment.reconcile.domain.GeneralTradeInfo; import cn.daxpay.single.service.core.payment.reconcile.factory.ReconcileStrategyFactory; @@ -65,7 +65,7 @@ public class ReconcileService { private final ReconcileOrderManager reconcileOrderManager; - private final ReconcileTradeDetailManager reconcileTradeDetailManager; + private final ReconcileOutTradeManager reconcileOutTradeManager; private final ReconcileAssistService reconcileAssistService; @@ -122,10 +122,10 @@ public void downAndSave(ReconcileOrder reconcileOrder) { throw new RuntimeException(e); } // 保存转换后的通用结构对账单 - List reconcileTradeDetails = PaymentContextLocal.get() + List reconcileTradeDetails = PaymentContextLocal.get() .getReconcileInfo() .getReconcileTradeDetails(); - reconcileTradeDetailManager.saveAll(reconcileTradeDetails); + reconcileOutTradeManager.saveAll(reconcileTradeDetails); } /** @@ -153,10 +153,10 @@ public void upload(ReconcileUploadParam param, MultipartFile file) { throw new RuntimeException(e); } // 保存转换后的通用结构对账单 - List reconcileTradeDetails = PaymentContextLocal.get() + List reconcileTradeDetails = PaymentContextLocal.get() .getReconcileInfo() .getReconcileTradeDetails(); - reconcileTradeDetailManager.saveAll(reconcileTradeDetails); + reconcileOutTradeManager.saveAll(reconcileTradeDetails); } /** * 对账单明细比对 @@ -181,7 +181,7 @@ public void compare(ReconcileOrder reconcileOrder){ throw new PayFailureException("对账单比对已经完成"); } // 查询对账单 - List reconcileTradeDetails = reconcileTradeDetailManager.findAllByReconcileId(reconcileOrder.getId()); + List reconcileTradeDetails = reconcileOutTradeManager.findAllByReconcileId(reconcileOrder.getId()); // 构建对账策略 AbsReconcileStrategy reconcileStrategy = ReconcileStrategyFactory.create(reconcileOrder.getChannel()); // 初始化参数 @@ -239,7 +239,7 @@ public ResponseEntity downOriginal2Csv(Long id){ ReconcileOrder reconcileOrder = reconcileOrderService.findById(id) .orElseThrow(() -> new DataNotExistException("未找到对账订单")); // 查询对账-第三方交易明细 - List reconcileTradeDetails = reconcileTradeDetailManager.findAllByReconcileId(reconcileOrder.getId()) + List reconcileTradeDetails = reconcileOutTradeManager.findAllByReconcileId(reconcileOrder.getId()) .stream() .map(o->{ ReconcileTradeDetailExcel excel = new ReconcileTradeDetailExcel(); diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/refund/service/RefundService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/refund/service/RefundService.java index 059da5de1..3f15365b4 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/refund/service/RefundService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/refund/service/RefundService.java @@ -19,6 +19,7 @@ import cn.daxpay.single.service.core.order.refund.entity.RefundOrderExtra; import cn.daxpay.single.service.core.payment.notice.service.ClientNoticeService; import cn.daxpay.single.service.core.payment.refund.factory.RefundStrategyFactory; +import cn.daxpay.single.service.core.record.flow.service.TradeFlowRecordService; import cn.daxpay.single.service.func.AbsRefundStrategy; import cn.hutool.extra.spring.SpringUtil; import cn.hutool.json.JSONUtil; @@ -54,6 +55,8 @@ public class RefundService { private final PayOrderQueryService payOrderQueryService; + private final TradeFlowRecordService tradeFlowRecordService; + private final RefundOrderExtraManager refundOrderExtraManager; private final LockTemplate lockTemplate; @@ -199,16 +202,23 @@ private void updateExtra(RefundOrderExtra refundOrderExtra, RefundParam param){ */ @Transactional(rollbackFor = Exception.class) public void successHandler(RefundOrder refundOrder, PayOrder payOrder) { - RefundLocal refundInfo = PaymentContextLocal.get().getRefundInfo(); + RefundLocal refundInfo = PaymentContextLocal.get() + .getRefundInfo(); // 剩余可退款余额 int refundableBalance = payOrder.getRefundableBalance(); - // 设置支付订单状态 + // 退款状态为退款中 if (refundInfo.getStatus() == RefundStatusEnum.PROGRESS) { payOrder.setStatus(PayStatusEnum.REFUNDING.getCode()); - } else if (refundableBalance == 0) { - payOrder.setStatus(PayStatusEnum.REFUNDED.getCode()); - } else { - payOrder.setStatus(PayStatusEnum.PARTIAL_REFUND.getCode()); + } + // 退款状态为成功 + else { + if (refundableBalance == 0) { + payOrder.setStatus(PayStatusEnum.REFUNDED.getCode()); + } else { + payOrder.setStatus(PayStatusEnum.PARTIAL_REFUND.getCode()); + } + // 记录流水 + tradeFlowRecordService.saveRefund(refundOrder); } payOrderService.updateById(payOrder); diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/repair/service/PayRepairService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/repair/service/PayRepairService.java index d9caab510..c9f1a866e 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/repair/service/PayRepairService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/repair/service/PayRepairService.java @@ -10,6 +10,7 @@ import cn.daxpay.single.service.core.payment.notice.service.ClientNoticeService; import cn.daxpay.single.service.core.payment.repair.factory.PayRepairStrategyFactory; import cn.daxpay.single.service.core.payment.repair.result.PayRepairResult; +import cn.daxpay.single.service.core.record.flow.service.TradeFlowRecordService; import cn.daxpay.single.service.core.record.repair.entity.PayRepairRecord; import cn.daxpay.single.service.core.record.repair.service.PayRepairRecordService; import cn.daxpay.single.service.func.AbsPayRepairStrategy; @@ -41,6 +42,7 @@ public class PayRepairService { private final PayRepairRecordService recordService; private final LockTemplate lockTemplate; + private final TradeFlowRecordService tradeFlowRecordService; /** * 修复支付单 @@ -117,6 +119,7 @@ private void success(PayOrder order) { order.setStatus(PayStatusEnum.SUCCESS.getCode()) .setPayTime(payTime) .setCloseTime(null); + tradeFlowRecordService.savePay(order); payOrderService.updateById(order); } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/repair/service/RefundRepairService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/repair/service/RefundRepairService.java index 537a586be..a6563fe4a 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/repair/service/RefundRepairService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/repair/service/RefundRepairService.java @@ -13,6 +13,7 @@ import cn.daxpay.single.service.core.order.refund.entity.RefundOrder; import cn.daxpay.single.service.core.payment.notice.service.ClientNoticeService; import cn.daxpay.single.service.core.payment.repair.result.RefundRepairResult; +import cn.daxpay.single.service.core.record.flow.service.TradeFlowRecordService; import cn.daxpay.single.service.core.record.repair.entity.PayRepairRecord; import cn.daxpay.single.service.core.record.repair.service.PayRepairRecordService; import cn.daxpay.single.util.OrderNoGenerateUtil; @@ -49,6 +50,7 @@ public class RefundRepairService { private final PayRepairRecordService recordService; private final LockTemplate lockTemplate; + private final TradeFlowRecordService tradeFlowRecordService; /** * 修复退款单 @@ -113,11 +115,13 @@ private RefundRepairResult success(RefundOrder refundOrder, PayOrder payOrder) { .setFinishTime(repairInfo.getFinishTime()); payOrder.setStatus(afterPayRefundStatus.getCode()); - // 更新订单和退款相关订单 payOrderService.updateById(payOrder); refundOrderManager.updateById(refundOrder); + // 记录流水 + tradeFlowRecordService.saveRefund(refundOrder); + // 发送通知 List list = Arrays.asList(RefundStatusEnum.SUCCESS.getCode(), RefundStatusEnum.CLOSE.getCode(), RefundStatusEnum.FAIL.getCode()); if (list.contains(refundOrder.getStatus())){ diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/result/AllocRemoteSyncResult.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/result/AllocRemoteSyncResult.java new file mode 100644 index 000000000..fa6ead286 --- /dev/null +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/result/AllocRemoteSyncResult.java @@ -0,0 +1,16 @@ +package cn.daxpay.single.service.core.payment.sync.result; + +import lombok.Data; +import lombok.experimental.Accessors; + +/** + * 分账同步结果 + * @author xxm + * @since 2024/5/23 + */ +@Data +@Accessors(chain = true) +public class AllocRemoteSyncResult { + /** 同步时网关返回的对象, 序列化为json字符串 */ + private String syncInfo; +} diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/result/PaySyncResult.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/result/PayRemoteSyncResult.java similarity index 96% rename from daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/result/PaySyncResult.java rename to daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/result/PayRemoteSyncResult.java index 414b49a68..f05792f05 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/result/PaySyncResult.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/result/PayRemoteSyncResult.java @@ -16,7 +16,7 @@ */ @Data @Accessors(chain = true) -public class PaySyncResult { +public class PayRemoteSyncResult { /** * 支付网关订单状态 diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/result/RefundSyncResult.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/result/RefundRemoteSyncResult.java similarity index 96% rename from daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/result/RefundSyncResult.java rename to daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/result/RefundRemoteSyncResult.java index e97ff647d..eeaeef823 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/result/RefundSyncResult.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/result/RefundRemoteSyncResult.java @@ -15,7 +15,7 @@ */ @Data @Accessors(chain = true) -public class RefundSyncResult { +public class RefundRemoteSyncResult { /** * 支付网关订单状态, 默认为退款中 diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/service/PaySyncService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/service/PaySyncService.java index d482db5de..a26d371e7 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/service/PaySyncService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/service/PaySyncService.java @@ -7,7 +7,7 @@ import cn.daxpay.single.code.PaySyncStatusEnum; import cn.daxpay.single.exception.pay.PayFailureException; import cn.daxpay.single.param.payment.pay.PaySyncParam; -import cn.daxpay.single.result.pay.SyncResult; +import cn.daxpay.single.result.sync.PaySyncResult; import cn.daxpay.single.service.code.PayRepairSourceEnum; import cn.daxpay.single.service.code.PayRepairWayEnum; import cn.daxpay.single.service.code.PaymentTypeEnum; @@ -19,7 +19,7 @@ import cn.daxpay.single.service.core.payment.repair.result.PayRepairResult; import cn.daxpay.single.service.core.payment.repair.service.PayRepairService; import cn.daxpay.single.service.core.payment.sync.factory.PaySyncStrategyFactory; -import cn.daxpay.single.service.core.payment.sync.result.PaySyncResult; +import cn.daxpay.single.service.core.payment.sync.result.PayRemoteSyncResult; import cn.daxpay.single.service.core.record.sync.entity.PaySyncRecord; import cn.daxpay.single.service.core.record.sync.service.PaySyncRecordService; import cn.daxpay.single.service.func.AbsPaySyncStrategy; @@ -62,7 +62,7 @@ public class PaySyncService { * 支付同步, 开启一个新的事务, 不受外部抛出异常的影响 */ @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Exception.class) - public SyncResult sync(PaySyncParam param) { + public PaySyncResult sync(PaySyncParam param) { PayOrder payOrder = payOrderQueryService.findByBizOrOrderNo(param.getOrderNo(), param.getBizOrderNo()) .orElseThrow(() -> new PayFailureException("支付订单不存在")); // 钱包支付钱包不需要 @@ -79,7 +79,7 @@ public SyncResult sync(PaySyncParam param) { * 3. 会更新关联网关订单号 */ @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Exception.class) - public SyncResult syncPayOrder(PayOrder payOrder) { + public PaySyncResult syncPayOrder(PayOrder payOrder) { // 加锁 LockInfo lock = lockTemplate.lock("sync:pay" + payOrder.getId(),10000,200); if (Objects.isNull(lock)){ @@ -91,20 +91,20 @@ public SyncResult syncPayOrder(PayOrder payOrder) { AbsPaySyncStrategy syncPayStrategy = PaySyncStrategyFactory.create(payOrder.getChannel()); syncPayStrategy.initPayParam(payOrder); // 执行操作, 获取支付网关同步的结果 - PaySyncResult paySyncResult = syncPayStrategy.doSyncStatus(); + PayRemoteSyncResult payRemoteSyncResult = syncPayStrategy.doSyncStatus(); // 判断是否同步成功 - if (Objects.equals(paySyncResult.getSyncStatus(), PaySyncStatusEnum.FAIL)){ + if (Objects.equals(payRemoteSyncResult.getSyncStatus(), PaySyncStatusEnum.FAIL)){ // 同步失败, 返回失败响应, 同时记录失败的日志 - this.saveRecord(payOrder, paySyncResult, false, null, paySyncResult.getErrorMsg()); - throw new PayFailureException(paySyncResult.getErrorMsg()); + this.saveRecord(payOrder, payRemoteSyncResult, false, null, payRemoteSyncResult.getErrorMsg()); + throw new PayFailureException(payRemoteSyncResult.getErrorMsg()); } // 支付订单的网关订单号是否一致, 不一致进行更新 - if (!Objects.equals(paySyncResult.getOutOrderNo(), payOrder.getOutOrderNo())){ - payOrder.setOutOrderNo(paySyncResult.getOutOrderNo()); + if (!Objects.equals(payRemoteSyncResult.getOutOrderNo(), payOrder.getOutOrderNo())){ + payOrder.setOutOrderNo(payRemoteSyncResult.getOutOrderNo()); payOrderService.updateById(payOrder); } // 判断网关状态是否和支付单一致, 同时特定情况下更新网关同步状态 - boolean statusSync = this.checkAndAdjustSyncStatus(paySyncResult,payOrder); + boolean statusSync = this.checkAndAdjustSyncStatus(payRemoteSyncResult,payOrder); PayRepairResult repairResult = new PayRepairResult(); try { // 状态不一致,执行支付单修复逻辑 @@ -115,19 +115,19 @@ public SyncResult syncPayOrder(PayOrder payOrder) { repairInfo.setSource(PayRepairSourceEnum.SYNC); } // 设置支付单完成时间 - repairInfo.setFinishTime(paySyncResult.getPayTime()); - repairResult = this.repairHandler(paySyncResult, payOrder); + repairInfo.setFinishTime(payRemoteSyncResult.getPayTime()); + repairResult = this.repairHandler(payRemoteSyncResult, payOrder); } } catch (PayFailureException e) { // 同步失败, 返回失败响应, 同时记录失败的日志 - paySyncResult.setSyncStatus(PaySyncStatusEnum.FAIL); - this.saveRecord(payOrder, paySyncResult, false, null, e.getMessage()); + payRemoteSyncResult.setSyncStatus(PaySyncStatusEnum.FAIL); + this.saveRecord(payOrder, payRemoteSyncResult, false, null, e.getMessage()); throw e; } // 同步成功记录日志 - this.saveRecord( payOrder, paySyncResult, !statusSync, repairResult.getRepairNo(), null); - return new SyncResult().setStatus(paySyncResult.getSyncStatus().getCode()); + this.saveRecord( payOrder, payRemoteSyncResult, !statusSync, repairResult.getRepairNo(), null); + return new PaySyncResult().setStatus(payRemoteSyncResult.getSyncStatus().getCode()); } finally { lockTemplate.releaseLock(lock); } @@ -136,8 +136,8 @@ public SyncResult syncPayOrder(PayOrder payOrder) { /** * 判断支付单和网关状态是否一致, 同时待支付状态下, 支付单支付超时进行状态的更改 */ - private boolean checkAndAdjustSyncStatus(PaySyncResult syncResult, PayOrder order){ - PaySyncStatusEnum syncStatus = syncResult.getSyncStatus(); + private boolean checkAndAdjustSyncStatus(PayRemoteSyncResult payRemoteSyncResult, PayOrder order){ + PaySyncStatusEnum syncStatus = payRemoteSyncResult.getSyncStatus(); String orderStatus = order.getStatus(); // 本地支付成功/网关支付成功 if (orderStatus.equals(PayStatusEnum.SUCCESS.getCode()) && syncStatus.equals(SUCCESS)){ @@ -153,7 +153,7 @@ private boolean checkAndAdjustSyncStatus(PaySyncResult syncResult, PayOrder orde // 判断支付单是否支付超时, 如果待支付状态下触发超时 if (LocalDateTimeUtil.le(order.getExpiredTime(), LocalDateTime.now())){ // 将支付单同步状态状态调整为支付超时, 进行订单的关闭 - syncResult.setSyncStatus(PaySyncStatusEnum.TIMEOUT); + payRemoteSyncResult.setSyncStatus(PaySyncStatusEnum.TIMEOUT); return false; } return true; @@ -183,8 +183,8 @@ private boolean checkAndAdjustSyncStatus(PaySyncResult syncResult, PayOrder orde /** * 根据同步的结果对支付单进行修复处理 */ - private PayRepairResult repairHandler(PaySyncResult syncResult, PayOrder payOrder){ - PaySyncStatusEnum syncStatusEnum = syncResult.getSyncStatus(); + private PayRepairResult repairHandler(PayRemoteSyncResult payRemoteSyncResult, PayOrder payOrder){ + PaySyncStatusEnum syncStatusEnum = payRemoteSyncResult.getSyncStatus(); PayRepairResult repair = new PayRepairResult(); // 对支付网关同步的结果进行处理 switch (syncStatusEnum) { @@ -229,20 +229,20 @@ private PayRepairResult repairHandler(PaySyncResult syncResult, PayOrder payOrde /** * 保存同步记录 * @param payOrder 支付单 - * @param syncResult 同步结果 + * @param payRemoteSyncResult 同步结果 * @param repair 是否修复 * @param repairOrderNo 修复号 * @param errorMsg 错误信息 */ - private void saveRecord(PayOrder payOrder, PaySyncResult syncResult, boolean repair, String repairOrderNo, String errorMsg){ + private void saveRecord(PayOrder payOrder, PayRemoteSyncResult payRemoteSyncResult, boolean repair, String repairOrderNo, String errorMsg){ PaySyncRecord paySyncRecord = new PaySyncRecord() .setBizTradeNo(payOrder.getBizOrderNo()) .setTradeNo(payOrder.getOrderNo()) .setOutTradeNo(payOrder.getOutOrderNo()) - .setOutTradeStatus(syncResult.getSyncStatus().getCode()) + .setOutTradeStatus(payRemoteSyncResult.getSyncStatus().getCode()) .setSyncType(PaymentTypeEnum.PAY.getCode()) .setChannel(payOrder.getChannel()) - .setSyncInfo(syncResult.getSyncInfo()) + .setSyncInfo(payRemoteSyncResult.getSyncInfo()) .setRepair(repair) .setRepairNo(repairOrderNo) .setErrorMsg(errorMsg) diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/service/RefundSyncService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/service/RefundSyncService.java index 31acad6c0..eff3f96b3 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/service/RefundSyncService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/service/RefundSyncService.java @@ -6,7 +6,7 @@ import cn.daxpay.single.code.RefundSyncStatusEnum; import cn.daxpay.single.exception.pay.PayFailureException; import cn.daxpay.single.param.payment.refund.RefundSyncParam; -import cn.daxpay.single.result.pay.SyncResult; +import cn.daxpay.single.result.sync.RefundSyncResult; import cn.daxpay.single.service.code.PayRepairSourceEnum; import cn.daxpay.single.service.code.PaymentTypeEnum; import cn.daxpay.single.service.code.RefundRepairWayEnum; @@ -18,7 +18,7 @@ import cn.daxpay.single.service.core.payment.repair.result.RefundRepairResult; import cn.daxpay.single.service.core.payment.repair.service.RefundRepairService; import cn.daxpay.single.service.core.payment.sync.factory.RefundSyncStrategyFactory; -import cn.daxpay.single.service.core.payment.sync.result.RefundSyncResult; +import cn.daxpay.single.service.core.payment.sync.result.RefundRemoteSyncResult; import cn.daxpay.single.service.core.record.sync.entity.PaySyncRecord; import cn.daxpay.single.service.core.record.sync.service.PaySyncRecordService; import cn.daxpay.single.service.func.AbsRefundSyncStrategy; @@ -55,13 +55,13 @@ public class RefundSyncService { * 退款同步, 开启一个新的事务, 不受外部抛出异常的影响 */ @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Exception.class) - public SyncResult sync(RefundSyncParam param){ + public RefundSyncResult sync(RefundSyncParam param){ // 先获取退款单 RefundOrder refundOrder = refundOrderQueryService.findByBizOrRefundNo(param.getRefundNo(), param.getBizRefundNo()) .orElseThrow(() -> new PayFailureException("未查询到退款订单")); // 如果订单已经关闭, 直接返回退款关闭 if (Objects.equals(refundOrder.getStatus(), RefundStatusEnum.CLOSE.getCode())){ - return new SyncResult().setStatus(RefundStatusEnum.CLOSE.getCode()); + return new RefundSyncResult().setStatus(RefundStatusEnum.CLOSE.getCode()); } return this.syncRefundOrder(refundOrder); } @@ -70,7 +70,7 @@ public SyncResult sync(RefundSyncParam param){ * 退款订单信息同步 */ @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Exception.class) - public SyncResult syncRefundOrder(RefundOrder refundOrder) { + public RefundSyncResult syncRefundOrder(RefundOrder refundOrder) { // 加锁 LockInfo lock = lockTemplate.lock("sync:refund:" + refundOrder.getId(),10000,200); if (Objects.isNull(lock)) { @@ -83,21 +83,21 @@ public SyncResult syncRefundOrder(RefundOrder refundOrder) { // 同步前处理, 主要预防请求过于迅速 syncPayStrategy.doBeforeHandler(); // 执行操作, 获取支付网关同步的结果 - RefundSyncResult refundSyncResult = syncPayStrategy.doSyncStatus(); + RefundRemoteSyncResult refundRemoteSyncResult = syncPayStrategy.doSyncStatus(); // 判断是否同步成功 - if (Objects.equals(refundSyncResult.getSyncStatus(), RefundSyncStatusEnum.FAIL)) { + if (Objects.equals(refundRemoteSyncResult.getSyncStatus(), RefundSyncStatusEnum.FAIL)) { // 同步失败, 返回失败响应, 同时记录失败的日志 - this.saveRecord(refundOrder, refundSyncResult, false, null, refundSyncResult.getErrorMsg()); - throw new PayFailureException(refundSyncResult.getErrorMsg()); + this.saveRecord(refundOrder, refundRemoteSyncResult, false, null, refundRemoteSyncResult.getErrorMsg()); + throw new PayFailureException(refundRemoteSyncResult.getErrorMsg()); } // 订单的通道交易号是否一致, 不一致进行更新 - if (Objects.nonNull(refundSyncResult.getOutRefundNo()) && !Objects.equals(refundSyncResult.getOutRefundNo(), refundOrder.getOutRefundNo())){ - refundOrder.setOutRefundNo(refundSyncResult.getOutRefundNo()); + if (Objects.nonNull(refundRemoteSyncResult.getOutRefundNo()) && !Objects.equals(refundRemoteSyncResult.getOutRefundNo(), refundOrder.getOutRefundNo())){ + refundOrder.setOutRefundNo(refundRemoteSyncResult.getOutRefundNo()); refundOrderManager.updateById(refundOrder); } // 判断网关状态是否和支付单一致 - boolean statusSync = this.checkSyncStatus(refundSyncResult, refundOrder); + boolean statusSync = this.checkSyncStatus(refundRemoteSyncResult, refundOrder); RefundRepairResult repairResult = new RefundRepairResult(); try { // 状态不一致,执行退款单修复逻辑 @@ -107,18 +107,18 @@ public SyncResult syncRefundOrder(RefundOrder refundOrder) { if (Objects.isNull(repairInfo.getSource())){ repairInfo.setSource(PayRepairSourceEnum.SYNC); } - repairInfo.setFinishTime(refundSyncResult.getFinishTime()); - repairResult = this.repairHandler(refundSyncResult, refundOrder); + repairInfo.setFinishTime(refundRemoteSyncResult.getFinishTime()); + repairResult = this.repairHandler(refundRemoteSyncResult, refundOrder); } } catch (PayFailureException e) { // 同步失败, 返回失败响应, 同时记录失败的日志 - refundSyncResult.setSyncStatus(RefundSyncStatusEnum.FAIL); - this.saveRecord(refundOrder, refundSyncResult, false, null, e.getMessage()); + refundRemoteSyncResult.setSyncStatus(RefundSyncStatusEnum.FAIL); + this.saveRecord(refundOrder, refundRemoteSyncResult, false, null, e.getMessage()); throw e; } // 同步成功记录日志 - this.saveRecord(refundOrder, refundSyncResult, !statusSync, repairResult.getRepairNo(), null); - return new SyncResult().setStatus(refundSyncResult.getSyncStatus().getCode()); + this.saveRecord(refundOrder, refundRemoteSyncResult, !statusSync, repairResult.getRepairNo(), null); + return new RefundSyncResult().setStatus(refundRemoteSyncResult.getSyncStatus().getCode()); } finally { lockTemplate.releaseLock(lock); } @@ -130,7 +130,7 @@ public SyncResult syncRefundOrder(RefundOrder refundOrder) { * @see RefundSyncStatusEnum 同步返回类型 * @see RefundStatusEnum 退款单状态 */ - private boolean checkSyncStatus(RefundSyncResult syncResult, RefundOrder order){ + private boolean checkSyncStatus(RefundRemoteSyncResult syncResult, RefundOrder order){ RefundSyncStatusEnum syncStatus = syncResult.getSyncStatus(); String orderStatus = order.getStatus(); // 退款完成 @@ -155,7 +155,7 @@ private boolean checkSyncStatus(RefundSyncResult syncResult, RefundOrder order){ /** * 进行退款订单和支付订单的补偿 */ - private RefundRepairResult repairHandler(RefundSyncResult syncResult, RefundOrder order){ + private RefundRepairResult repairHandler(RefundRemoteSyncResult syncResult, RefundOrder order){ RefundSyncStatusEnum syncStatusEnum = syncResult.getSyncStatus(); RefundRepairResult repair = new RefundRepairResult(); // 对支付网关同步的结果进行处理 @@ -188,7 +188,7 @@ private RefundRepairResult repairHandler(RefundSyncResult syncResult, RefundOrde * @param repairOrderNo 修复号 * @param errorMsg 错误信息 */ - private void saveRecord(RefundOrder refundOrder, RefundSyncResult syncResult, boolean repair, String repairOrderNo, String errorMsg){ + private void saveRecord(RefundOrder refundOrder, RefundRemoteSyncResult syncResult, boolean repair, String repairOrderNo, String errorMsg){ PaySyncRecord paySyncRecord = new PaySyncRecord() .setTradeNo(refundOrder.getRefundNo()) .setBizTradeNo(refundOrder.getBizRefundNo()) diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/Refund/AliRefundSyncStrategy.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/Refund/AliRefundSyncStrategy.java index 553b9553d..4b55e3a34 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/Refund/AliRefundSyncStrategy.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/Refund/AliRefundSyncStrategy.java @@ -5,7 +5,7 @@ import cn.daxpay.single.service.core.channel.alipay.entity.AliPayConfig; import cn.daxpay.single.service.core.channel.alipay.service.AliPayConfigService; import cn.daxpay.single.service.core.channel.alipay.service.AliPaySyncService; -import cn.daxpay.single.service.core.payment.sync.result.RefundSyncResult; +import cn.daxpay.single.service.core.payment.sync.result.RefundRemoteSyncResult; import cn.daxpay.single.service.func.AbsRefundSyncStrategy; import lombok.RequiredArgsConstructor; import org.springframework.context.annotation.Scope; @@ -41,7 +41,7 @@ public PayChannelEnum getChannel() { * @see PaySyncStatusEnum */ @Override - public RefundSyncResult doSyncStatus() { + public RefundRemoteSyncResult doSyncStatus() { AliPayConfig config = alipayConfigService.getConfig(); alipayConfigService.initConfig(config); return aliPaySyncService.syncRefundStatus(this.getRefundOrder()); diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/Refund/UnionRefundSyncStrategy.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/Refund/UnionRefundSyncStrategy.java index a7da9eae2..a2ab97061 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/Refund/UnionRefundSyncStrategy.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/Refund/UnionRefundSyncStrategy.java @@ -5,7 +5,7 @@ import cn.daxpay.single.service.core.channel.union.entity.UnionPayConfig; import cn.daxpay.single.service.core.channel.union.service.UnionPayConfigService; import cn.daxpay.single.service.core.channel.union.service.UnionPaySyncService; -import cn.daxpay.single.service.core.payment.sync.result.RefundSyncResult; +import cn.daxpay.single.service.core.payment.sync.result.RefundRemoteSyncResult; import cn.daxpay.single.service.func.AbsRefundSyncStrategy; import cn.daxpay.single.service.sdk.union.api.UnionPayKit; import lombok.RequiredArgsConstructor; @@ -33,7 +33,7 @@ public class UnionRefundSyncStrategy extends AbsRefundSyncStrategy { * @see PaySyncStatusEnum */ @Override - public RefundSyncResult doSyncStatus() { + public RefundRemoteSyncResult doSyncStatus() { UnionPayConfig config = unionPayConfigService.getConfig(); UnionPayKit unionPayKit = unionPayConfigService.initPayService(config); return unionPaySyncService.syncRefundStatus(this.getRefundOrder(),unionPayKit); diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/Refund/WeChatRefundSyncStrategy.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/Refund/WeChatRefundSyncStrategy.java index 429c039fc..328aa49e3 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/Refund/WeChatRefundSyncStrategy.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/Refund/WeChatRefundSyncStrategy.java @@ -4,7 +4,7 @@ import cn.daxpay.single.service.core.channel.wechat.entity.WeChatPayConfig; import cn.daxpay.single.service.core.channel.wechat.service.WeChatPayConfigService; import cn.daxpay.single.service.core.channel.wechat.service.WeChatPaySyncService; -import cn.daxpay.single.service.core.payment.sync.result.RefundSyncResult; +import cn.daxpay.single.service.core.payment.sync.result.RefundRemoteSyncResult; import cn.daxpay.single.service.func.AbsRefundSyncStrategy; import lombok.RequiredArgsConstructor; import org.springframework.context.annotation.Scope; @@ -36,7 +36,7 @@ public PayChannelEnum getChannel() { * 异步支付单与支付网关进行状态比对后的结果 */ @Override - public RefundSyncResult doSyncStatus() { + public RefundRemoteSyncResult doSyncStatus() { WeChatPayConfig config = weChatPayConfigService.getConfig(); return weChatPaySyncService.syncRefundStatus(this.getRefundOrder(), config); } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/pay/AliPaySyncStrategy.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/pay/AliPaySyncStrategy.java index cb8e4dc48..eec17a41d 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/pay/AliPaySyncStrategy.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/pay/AliPaySyncStrategy.java @@ -6,7 +6,7 @@ import cn.daxpay.single.service.core.channel.alipay.service.AliPayConfigService; import cn.daxpay.single.service.core.channel.alipay.service.AliPaySyncService; import cn.daxpay.single.service.func.AbsPaySyncStrategy; -import cn.daxpay.single.service.core.payment.sync.result.PaySyncResult; +import cn.daxpay.single.service.core.payment.sync.result.PayRemoteSyncResult; import lombok.RequiredArgsConstructor; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; @@ -39,7 +39,7 @@ public PayChannelEnum getChannel() { * 异步支付单与支付网关进行状态比对 */ @Override - public PaySyncResult doSyncStatus() { + public PayRemoteSyncResult doSyncStatus() { this.initAlipayConfig(); return alipaySyncService.syncPayStatus(this.getOrder()); } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/pay/UnionPaySyncStrategy.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/pay/UnionPaySyncStrategy.java index 092580bd3..b9cb54505 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/pay/UnionPaySyncStrategy.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/pay/UnionPaySyncStrategy.java @@ -5,7 +5,7 @@ import cn.daxpay.single.service.core.channel.union.entity.UnionPayConfig; import cn.daxpay.single.service.core.channel.union.service.UnionPayConfigService; import cn.daxpay.single.service.core.channel.union.service.UnionPaySyncService; -import cn.daxpay.single.service.core.payment.sync.result.PaySyncResult; +import cn.daxpay.single.service.core.payment.sync.result.PayRemoteSyncResult; import cn.daxpay.single.service.func.AbsPaySyncStrategy; import cn.daxpay.single.service.sdk.union.api.UnionPayKit; import lombok.RequiredArgsConstructor; @@ -34,7 +34,7 @@ public class UnionPaySyncStrategy extends AbsPaySyncStrategy { * @see PaySyncStatusEnum */ @Override - public PaySyncResult doSyncStatus() { + public PayRemoteSyncResult doSyncStatus() { UnionPayConfig config = unionPayConfigService.getConfig(); UnionPayKit unionPayKit = unionPayConfigService.initPayService(config); return unionPaySyncService.syncPayStatus(this.getOrder(),unionPayKit); diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/pay/WeChatPaySyncStrategy.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/pay/WeChatPaySyncStrategy.java index e740f79ce..b1413c213 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/pay/WeChatPaySyncStrategy.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/payment/sync/strategy/pay/WeChatPaySyncStrategy.java @@ -4,7 +4,7 @@ import cn.daxpay.single.service.core.channel.wechat.entity.WeChatPayConfig; import cn.daxpay.single.service.core.channel.wechat.service.WeChatPayConfigService; import cn.daxpay.single.service.core.channel.wechat.service.WeChatPaySyncService; -import cn.daxpay.single.service.core.payment.sync.result.PaySyncResult; +import cn.daxpay.single.service.core.payment.sync.result.PayRemoteSyncResult; import cn.daxpay.single.service.func.AbsPaySyncStrategy; import lombok.RequiredArgsConstructor; import org.springframework.context.annotation.Scope; @@ -40,7 +40,7 @@ public PayChannelEnum getChannel() { * 异步支付单与支付网关进行状态比对 */ @Override - public PaySyncResult doSyncStatus() { + public PayRemoteSyncResult doSyncStatus() { // 检查并获取微信支付配置 this.initWeChatPayConfig(); return weChatPaySyncService.syncPayStatus(this.getOrder(), this.weChatPayConfig); diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/flow/convert/TradeFlowRecordConvert.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/flow/convert/TradeFlowRecordConvert.java index 6440e4777..93e4af38e 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/flow/convert/TradeFlowRecordConvert.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/flow/convert/TradeFlowRecordConvert.java @@ -1,6 +1,9 @@ package cn.daxpay.single.service.core.record.flow.convert; +import cn.daxpay.single.service.core.record.flow.entity.TradeFlowRecord; +import cn.daxpay.single.service.dto.record.flow.TradeFlowRecordDto; import org.mapstruct.Mapper; +import org.mapstruct.factory.Mappers; /** * @@ -9,4 +12,7 @@ */ @Mapper public interface TradeFlowRecordConvert { + TradeFlowRecordConvert CONVERT = Mappers.getMapper(TradeFlowRecordConvert.class); + + TradeFlowRecordDto convert(TradeFlowRecord entity); } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/flow/dao/TradeFlowRecordManager.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/flow/dao/TradeFlowRecordManager.java index c6ee7e11e..679799171 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/flow/dao/TradeFlowRecordManager.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/flow/dao/TradeFlowRecordManager.java @@ -1,7 +1,13 @@ package cn.daxpay.single.service.core.record.flow.dao; +import cn.bootx.platform.common.core.rest.param.PageParam; import cn.bootx.platform.common.mybatisplus.impl.BaseManager; +import cn.bootx.platform.common.mybatisplus.util.MpUtil; +import cn.bootx.platform.common.query.generator.QueryGenerator; import cn.daxpay.single.service.core.record.flow.entity.TradeFlowRecord; +import cn.daxpay.single.service.param.record.TradeFlowRecordQuery; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Repository; @@ -15,4 +21,13 @@ @Repository @RequiredArgsConstructor public class TradeFlowRecordManager extends BaseManager { + + /** + * 分页 + */ + public Page page(PageParam pageParam, TradeFlowRecordQuery param){ + Page mpPage = MpUtil.getMpPage(pageParam, TradeFlowRecord.class); + QueryWrapper generator = QueryGenerator.generator(param); + return page(mpPage, generator); + } } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/flow/entity/TradeFlowRecord.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/flow/entity/TradeFlowRecord.java index 843d0afc8..5e1a949c2 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/flow/entity/TradeFlowRecord.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/flow/entity/TradeFlowRecord.java @@ -1,16 +1,18 @@ package cn.daxpay.single.service.core.record.flow.entity; +import cn.bootx.platform.common.core.function.EntityBaseFunction; import cn.bootx.platform.common.mybatisplus.base.MpCreateEntity; +import cn.bootx.table.modify.annotation.DbColumn; +import cn.bootx.table.modify.annotation.DbTable; import cn.daxpay.single.code.PayChannelEnum; import cn.daxpay.single.service.code.TradeFlowRecordTypeEnum; -import cn.bootx.table.modify.annotation.DbColumn; -import io.swagger.v3.oas.annotations.media.Schema; +import cn.daxpay.single.service.core.record.flow.convert.TradeFlowRecordConvert; +import cn.daxpay.single.service.dto.record.flow.TradeFlowRecordDto; +import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; -import java.time.LocalDateTime; - /** * 资金流水记录 * @author xxm @@ -19,9 +21,11 @@ @EqualsAndHashCode(callSuper = true) @Data @Accessors(chain = true) -@Schema(title = "资金流水记录") -public class TradeFlowRecord extends MpCreateEntity { - /** 支付订单标题 */ +@TableName("pay_trade_flow_record") +@DbTable(comment = "资金流水记录") +public class TradeFlowRecord extends MpCreateEntity implements EntityBaseFunction { + + /** 订单标题 */ @DbColumn(comment = "标题") private String title; @@ -44,18 +48,19 @@ public class TradeFlowRecord extends MpCreateEntity { private String channel; /** 本地交易号 */ - @DbColumn(comment = "本地订单号") + @DbColumn(comment = "本地交易号") private String tradeNo; /** 商户交易号 */ @DbColumn(comment = "商户交易号") private String bizTradeNo; - /** 三方系统交易号 */ - @DbColumn(comment = "三方系统交易号") + /** 通道交易号 */ + @DbColumn(comment = "通道交易号") private String outTradeNo; - /** 网关完成时间 */ - @DbColumn(comment = "网关完成时间") - private LocalDateTime finishTime; + @Override + public TradeFlowRecordDto toDto() { + return TradeFlowRecordConvert.CONVERT.convert(this); + } } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/flow/service/TradeFlowRecordService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/flow/service/TradeFlowRecordService.java index fc3885397..8658e0f92 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/flow/service/TradeFlowRecordService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/flow/service/TradeFlowRecordService.java @@ -1,5 +1,16 @@ package cn.daxpay.single.service.core.record.flow.service; +import cn.bootx.platform.common.core.exception.DataNotExistException; +import cn.bootx.platform.common.core.rest.PageResult; +import cn.bootx.platform.common.core.rest.param.PageParam; +import cn.bootx.platform.common.mybatisplus.util.MpUtil; +import cn.daxpay.single.service.code.TradeFlowRecordTypeEnum; +import cn.daxpay.single.service.core.order.pay.entity.PayOrder; +import cn.daxpay.single.service.core.order.refund.entity.RefundOrder; +import cn.daxpay.single.service.core.record.flow.dao.TradeFlowRecordManager; +import cn.daxpay.single.service.core.record.flow.entity.TradeFlowRecord; +import cn.daxpay.single.service.dto.record.flow.TradeFlowRecordDto; +import cn.daxpay.single.service.param.record.TradeFlowRecordQuery; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; @@ -13,4 +24,52 @@ @Service @RequiredArgsConstructor public class TradeFlowRecordService { + private final TradeFlowRecordManager tradeFlowRecordManager; + + /** + * 分页 + */ + public PageResult page(PageParam pageParam, TradeFlowRecordQuery query){ + return MpUtil.convert2DtoPageResult(tradeFlowRecordManager.page(pageParam, query)); + } + + /** + * 查询详情 + */ + public TradeFlowRecordDto findById(Long id){ + return tradeFlowRecordManager.findById(id).map(TradeFlowRecord::toDto) + .orElseThrow(()->new DataNotExistException("交易流水记录不存在")); + } + + /** + * 支付记账 + */ + public void savePay(PayOrder payOrder){ + TradeFlowRecord tradeFlowRecord = new TradeFlowRecord() + .setTradeNo(payOrder.getOrderNo()) + .setBizTradeNo(payOrder.getBizOrderNo()) + .setOutTradeNo(payOrder.getOutOrderNo()) + .setChannel(payOrder.getChannel()) + .setTitle(payOrder.getTitle()) + .setType(TradeFlowRecordTypeEnum.PAY.getCode()) + .setAmount(payOrder.getAmount()); + tradeFlowRecordManager.save(tradeFlowRecord); + } + + /** + * 退款记账 + */ + public void saveRefund(RefundOrder refundOrder){ + TradeFlowRecord tradeFlowRecord = new TradeFlowRecord() + .setTradeNo(refundOrder.getRefundNo()) + .setBizTradeNo(refundOrder.getBizRefundNo()) + .setOutTradeNo(refundOrder.getOutRefundNo()) + .setChannel(refundOrder.getChannel()) + .setTitle(refundOrder.getTitle()) + .setType(TradeFlowRecordTypeEnum.REFUND.getCode()) + .setAmount(refundOrder.getAmount()); + tradeFlowRecordManager.save(tradeFlowRecord); + } + } + diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/sync/entity/PaySyncRecord.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/sync/entity/PaySyncRecord.java index 1bde88970..67acaf266 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/sync/entity/PaySyncRecord.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/sync/entity/PaySyncRecord.java @@ -2,6 +2,7 @@ import cn.bootx.platform.common.core.function.EntityBaseFunction; import cn.bootx.platform.common.mybatisplus.base.MpCreateEntity; +import cn.daxpay.single.code.AllocOrderStatusEnum; import cn.daxpay.single.code.PayChannelEnum; import cn.daxpay.single.code.RefundSyncStatusEnum; import cn.daxpay.single.code.PaySyncStatusEnum; diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/sync/service/PaySyncRecordService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/sync/service/PaySyncRecordService.java index 5333d7c2b..907119bb3 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/sync/service/PaySyncRecordService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/record/sync/service/PaySyncRecordService.java @@ -16,7 +16,7 @@ import org.springframework.transaction.annotation.Transactional; /** - * 支付同步记录 + * 支付同步记录, 包括支付/退款/分账 * @author xxm * @since 2023/7/14 */ diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/system/config/service/PayApiConfigService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/system/config/service/PayApiConfigService.java index abdda6119..3fe2c4294 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/system/config/service/PayApiConfigService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/system/config/service/PayApiConfigService.java @@ -54,7 +54,7 @@ public PayApiConfigDto findById(Long id){ * 初始化接口上下文信息 */ public void initApiInfo(PayApiConfig api){ - // 记录支付接口信息 + // 接口信息 ApiInfoLocal apiInfoLocal = PaymentContextLocal.get().getApiInfo(); apiInfoLocal.setApiCode(api.getCode()) .setReqSign(api.isReqSign()) diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/system/config/service/PlatformConfigService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/system/config/service/PlatformConfigService.java index 471349efe..0752fe79e 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/system/config/service/PlatformConfigService.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/core/system/config/service/PlatformConfigService.java @@ -1,8 +1,10 @@ package cn.daxpay.single.service.core.system.config.service; import cn.bootx.platform.common.core.exception.DataNotExistException; -import cn.daxpay.single.service.core.system.config.entity.PlatformConfig; +import cn.daxpay.single.service.common.context.PlatformLocal; +import cn.daxpay.single.service.common.local.PaymentContextLocal; import cn.daxpay.single.service.core.system.config.dao.PlatformConfigManager; +import cn.daxpay.single.service.core.system.config.entity.PlatformConfig; import cn.daxpay.single.service.param.system.config.PlatformConfigParam; import cn.hutool.core.bean.BeanUtil; import lombok.RequiredArgsConstructor; @@ -38,4 +40,18 @@ public void update(PlatformConfigParam param){ BeanUtil.copyProperties(param,config); platformConfigManager.updateById(config); } + + /** + * 初始化平台配置上下文 + */ + public void initPlatform(){ + PlatformConfig config = this.getConfig(); + PlatformLocal platform = PaymentContextLocal.get().getPlatformInfo(); + platform.setSignType(config.getSignType()); + platform.setSignSecret(config.getSignSecret()); + platform.setNotifyUrl(config.getNotifyUrl()); + platform.setOrderTimeout(config.getOrderTimeout()); + platform.setLimitAmount(config.getLimitAmount()); + platform.setWebsiteUrl(config.getWebsiteUrl()); + } } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/allocation/AllocationGroupDto.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/allocation/AllocationGroupDto.java index 4f7ad8058..83c06e196 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/allocation/AllocationGroupDto.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/allocation/AllocationGroupDto.java @@ -18,6 +18,9 @@ @Schema(title = "分账组") public class AllocationGroupDto extends BaseDto { + @Schema(description = "分账组编号") + private String groupNo; + @Schema(description = "名称") private String name; diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/allocation/AllocationGroupReceiverResult.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/allocation/AllocationGroupReceiverResult.java index 01c440b5b..66187540b 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/allocation/AllocationGroupReceiverResult.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/allocation/AllocationGroupReceiverResult.java @@ -23,8 +23,8 @@ public class AllocationGroupReceiverResult { @Schema(description = "接收方ID") private Long receiverId; - @Schema(description = "接收方账号别名") - private String name; + @Schema(description = "接收方编号") + private String receiverNo; @Schema(description = "分账比例(万分之多少)") private Integer rate; diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/allocation/AllocationReceiverDto.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/allocation/AllocationReceiverDto.java index 067450e2f..e096a1cc1 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/allocation/AllocationReceiverDto.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/allocation/AllocationReceiverDto.java @@ -27,6 +27,9 @@ public class AllocationReceiverDto extends BaseDto { @Schema(description = "账号别名") private String name; + @Schema(description = "接收方编号") + private String receiverNo; + /** * @see PayChannelEnum */ @@ -59,10 +62,4 @@ public class AllocationReceiverDto extends BaseDto { @Schema(description = "关系名称") private String relationName; - - @Schema(description = "是否已经同步到网关") - private Boolean sync; - - @Schema(description = "备注") - private String remark; } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/allocation/AllocationOrderAndExtraDto.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/allocation/AllocationOrderAndExtraDto.java new file mode 100644 index 000000000..bb53763f0 --- /dev/null +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/allocation/AllocationOrderAndExtraDto.java @@ -0,0 +1,20 @@ +package cn.daxpay.single.service.dto.order.allocation; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.experimental.Accessors; + +/** + * 分账订单和扩展信息 + * @author xxm + * @since 2024/5/29 + */ +@Data +@Accessors(chain = true) +@Schema(title = "分账订单和扩展信息") +public class AllocationOrderAndExtraDto { + @Schema(description = "分账订单") + private AllocationOrderDto order; + @Schema(description = "分账订单扩展信息") + private AllocationOrderExtraDto extra; +} diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/allocation/AllocationOrderDetailDto.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/allocation/AllocationOrderDetailDto.java index 4f520eab5..03f2c3c34 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/allocation/AllocationOrderDetailDto.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/allocation/AllocationOrderDetailDto.java @@ -22,11 +22,14 @@ @Schema(title = "分账订单详情") public class AllocationOrderDetailDto extends BaseDto { - /** 分账订单ID */ @Schema(description = "分账订单ID") private Long allocationId; + /** 分账接收方编号 */ + @Schema(description = "分账接收方编号") + private String receiverNo; + /** 接收者ID */ @Schema(description = "接收者ID") private Long receiverId; diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/allocation/AllocationOrderDto.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/allocation/AllocationOrderDto.java index 32b7a7b94..f30c28172 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/allocation/AllocationOrderDto.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/allocation/AllocationOrderDto.java @@ -25,6 +25,17 @@ public class AllocationOrderDto extends BaseDto { @Schema(description = "分账订单号") private String allocationNo; + /** + * 商户分账单号 + */ + @Schema(description = "商户分账单号") + private String bizAllocationNo; + /** + * 通道分账单号 + */ + @Schema(description = "通道分账单号") + private String outAllocationNo; + /** * 支付订单ID */ @@ -55,12 +66,6 @@ public class AllocationOrderDto extends BaseDto { @Schema(description = "支付订单标题") private String title; - /** - * 通道分账单号 - */ - @Schema(description = "通道分账单号") - private String outAllocationNo; - /** * 所属通道 */ diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/allocation/AllocationOrderExtraDto.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/allocation/AllocationOrderExtraDto.java new file mode 100644 index 000000000..36471ce8b --- /dev/null +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/allocation/AllocationOrderExtraDto.java @@ -0,0 +1,35 @@ +package cn.daxpay.single.service.dto.order.allocation; + +import cn.bootx.platform.common.core.rest.dto.BaseDto; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.time.LocalDateTime; + +/** +* 分账订单扩展 +*/ +@EqualsAndHashCode(callSuper = true) +@Data +@Accessors(chain = true) +@Schema(title = "分账订单扩展") +public class AllocationOrderExtraDto extends BaseDto { + + /** 异步通知地址 */ + @Schema(description = "异步通知地址") + private String notifyUrl; + + /** 商户扩展参数,回调时会原样返回, 以最后一次为准 */ + @Schema(description = "商户扩展参数") + private String attach; + + /** 请求时间,时间戳转时间 */ + @Schema(description = "请求时间,传输时间戳") + private LocalDateTime reqTime; + + /** 终端ip */ + @Schema(description = "支付终端ip") + private String clientIp; +} diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/pay/PayOrderDetailDto.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/pay/PayOrderAndExtraDto.java similarity index 92% rename from daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/pay/PayOrderDetailDto.java rename to daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/pay/PayOrderAndExtraDto.java index 1cdb8b793..0983fceb1 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/pay/PayOrderDetailDto.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/pay/PayOrderAndExtraDto.java @@ -10,7 +10,7 @@ */ @Data @Schema(title = "支付订单和扩展信息") -public class PayOrderDetailDto { +public class PayOrderAndExtraDto { @Schema(description = "支付订单") private PayOrderDto payOrder; @Schema(description = "支付订单扩展信息") diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/pay/PayOrderDto.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/pay/PayOrderDto.java index 6ceb0988a..7b37b0eff 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/pay/PayOrderDto.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/pay/PayOrderDto.java @@ -18,7 +18,7 @@ @EqualsAndHashCode(callSuper = true) @Data @Accessors(chain = true) -@Schema(title = "具体支付日志基类") +@Schema(title = "支付订单") public class PayOrderDto extends BaseDto { /** 商户订单号 */ diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/reconcile/ReconcileTradeDetailDto.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/reconcile/ReconcileOutTradeDto.java similarity index 94% rename from daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/reconcile/ReconcileTradeDetailDto.java rename to daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/reconcile/ReconcileOutTradeDto.java index 85aedad18..b7824bd2f 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/reconcile/ReconcileTradeDetailDto.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/reconcile/ReconcileOutTradeDto.java @@ -15,16 +15,16 @@ import java.time.LocalDateTime; /** - * 对账订单详情 + * 账通道交易明细 * @author xxm * @since 2024/1/22 */ @EqualsAndHashCode(callSuper = true) @Data @Accessors(chain = true) -@Schema(title = "对账订单详情") +@Schema(title = "账通道交易明细") @ExcelIgnoreUnannotated -public class ReconcileTradeDetailDto extends BaseDto { +public class ReconcileOutTradeDto extends BaseDto { /** 关联对账订单ID */ @Schema(description = "关联对账订单ID") diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/reconcile/ReconcileTradeDetailExcel.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/reconcile/ReconcileTradeDetailExcel.java index 5d6e3c1ef..7c0f8bb57 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/reconcile/ReconcileTradeDetailExcel.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/reconcile/ReconcileTradeDetailExcel.java @@ -11,7 +11,7 @@ import java.time.LocalDateTime; /** - * 对账订单详情 + * 对账订单详情调导出 * @author xxm * @since 2024/1/22 */ diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/refund/RefundOrderDetailDto.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/refund/RefundOrderAndExtraDto.java similarity index 92% rename from daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/refund/RefundOrderDetailDto.java rename to daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/refund/RefundOrderAndExtraDto.java index d1f6fbace..2a87cfff2 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/refund/RefundOrderDetailDto.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/refund/RefundOrderAndExtraDto.java @@ -12,7 +12,7 @@ @Data @Accessors(chain = true) @Schema(title = "退款订单信息") -public class RefundOrderDetailDto { +public class RefundOrderAndExtraDto { @Schema(description = "退款订单") RefundOrderDto refundOrder; @Schema(description = "退款订单扩展信息") diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/refund/RefundOrderDto.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/refund/RefundOrderDto.java index f0070360c..e859f66e5 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/refund/RefundOrderDto.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/order/refund/RefundOrderDto.java @@ -30,6 +30,10 @@ public class RefundOrderDto extends BaseDto { @Schema(description = "支付订单号") private String orderNo; + /** 通道支付订单号 */ + @Schema(description = "通道支付订单号") + private String outOrderNo; + /** 商户支付订单号 */ @Schema(description = "商户支付订单号") private String bizOrderNo; @@ -42,11 +46,12 @@ public class RefundOrderDto extends BaseDto { @Schema(description = "退款号") private String refundNo; + /** 商户退款号 */ @Schema(description = "商户退款号") private String bizRefundNo; - /** 三方支付系统退款交易号 */ - @Schema(description = "三方支付系统退款交易号") + /** 通道退款交易号 */ + @Schema(description = "通道退款交易号") private String outRefundNo; /** diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/record/flow/TradeFlowRecordDto.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/record/flow/TradeFlowRecordDto.java new file mode 100644 index 000000000..cd44cc33f --- /dev/null +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/dto/record/flow/TradeFlowRecordDto.java @@ -0,0 +1,56 @@ +package cn.daxpay.single.service.dto.record.flow; + +import cn.bootx.platform.common.core.rest.dto.BaseDto; +import cn.bootx.table.modify.annotation.DbColumn; +import cn.daxpay.single.code.PayChannelEnum; +import cn.daxpay.single.service.code.TradeFlowRecordTypeEnum; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * 资金流水记录 + * @author xxm + * @since 2024/5/17 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@Accessors(chain = true) +@Schema(title = "资金流水记录") +public class TradeFlowRecordDto extends BaseDto { + + /** 订单标题 */ + @DbColumn(comment = "标题") + private String title; + + /** 金额 */ + @DbColumn(comment = "金额") + private Integer amount; + + /** + * 业务类型 + * @see TradeFlowRecordTypeEnum + */ + @DbColumn(comment = "业务类型") + private String type; + + /** + * 支付通道 + * @see PayChannelEnum + */ + @DbColumn(comment = "支付通道") + private String channel; + + /** 本地交易号 */ + @DbColumn(comment = "本地订单号") + private String tradeNo; + + /** 商户交易号 */ + @DbColumn(comment = "商户交易号") + private String bizTradeNo; + + /** 通道交易号 */ + @DbColumn(comment = "通道交易号") + private String outTradeNo; +} diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/func/AbsAllocationStrategy.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/func/AbsAllocationStrategy.java index ccbf34f41..67218b73e 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/func/AbsAllocationStrategy.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/func/AbsAllocationStrategy.java @@ -2,6 +2,7 @@ import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrder; import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrderDetail; +import cn.daxpay.single.service.core.payment.sync.result.AllocRemoteSyncResult; import lombok.Getter; import lombok.Setter; import lombok.extern.slf4j.Slf4j; @@ -48,5 +49,5 @@ public void initParam(AllocationOrder allocationOrder, List new DataNotExistException("未找到接口信息")); - if (!api.isEnable()){ - throw new PayFailureException("该接口权限未开放"); - } - // 设置接口信息 - apiConfigService.initApiInfo(api); - return true; - } - return false; - } -} diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/handler/excel/AmountConverter.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/handler/excel/AmountConverter.java index 4a62525a1..dbe8600be 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/handler/excel/AmountConverter.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/handler/excel/AmountConverter.java @@ -1,12 +1,12 @@ package cn.daxpay.single.service.handler.excel; +import cn.daxpay.single.util.PayUtil; import com.alibaba.excel.converters.Converter; import com.alibaba.excel.metadata.GlobalConfiguration; import com.alibaba.excel.metadata.data.WriteCellData; import com.alibaba.excel.metadata.property.ExcelContentProperty; import java.math.BigDecimal; -import java.math.RoundingMode; /** * 金额分转元 @@ -23,8 +23,7 @@ public WriteCellData convertToExcelData(Integer value, ExcelContentProperty c if (value == null){ return new WriteCellData<>(""); } - BigDecimal divide = BigDecimal.valueOf(value) - .divide(BigDecimal.valueOf(100), 2, RoundingMode.HALF_UP); + BigDecimal divide = PayUtil.conversionAmount(value); return new WriteCellData<>(divide); } } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/allocation/group/AllocationGroupParam.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/allocation/group/AllocationGroupParam.java index 2abf745f8..bc16694c9 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/allocation/group/AllocationGroupParam.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/allocation/group/AllocationGroupParam.java @@ -17,6 +17,9 @@ public class AllocationGroupParam { @Schema(description = "主键") private Long id; + @Schema(description = "分账组编号") + private String groupNo; + @Schema(description = "分组名称") private String name; diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/allocation/group/AllocationReceiverQuery.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/allocation/receiver/AllocationReceiverQuery.java similarity index 84% rename from daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/allocation/group/AllocationReceiverQuery.java rename to daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/allocation/receiver/AllocationReceiverQuery.java index 48814ef95..4a0d81e22 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/allocation/group/AllocationReceiverQuery.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/allocation/receiver/AllocationReceiverQuery.java @@ -1,4 +1,4 @@ -package cn.daxpay.single.service.param.allocation.group; +package cn.daxpay.single.service.param.allocation.receiver; import cn.bootx.platform.common.core.annotation.QueryParam; import cn.daxpay.single.code.AllocRelationTypeEnum; @@ -17,8 +17,8 @@ public class AllocationReceiverQuery { @QueryParam(type = QueryParam.CompareTypeEnum.LIKE) - @Schema(description = "账号别名") - private String name; + @Schema(description = "接收方编号") + private String receiverNo; /** * @see PayChannelEnum @@ -47,7 +47,4 @@ public class AllocationReceiverQuery { */ @Schema(description = "分账关系类型") private String relationType; - - @Schema(description = "是否已经同步到网关") - private Boolean sync; } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/channel/alipay/AliPayReturnParam.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/channel/alipay/AliPayReturnParam.java index bc57eabd0..8f6df678a 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/channel/alipay/AliPayReturnParam.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/channel/alipay/AliPayReturnParam.java @@ -27,7 +27,7 @@ public class AliPayReturnParam { */ @Schema(description = "支付订单号") @JsonAlias("out_trade_no") - private Long out_trade_no; + private String outTradeNo; /** * 该交易在支付宝系统中的交易流水号。最长 64 位。 @@ -35,7 +35,7 @@ public class AliPayReturnParam { */ @Schema(description = "网关订单号") @JsonAlias("trade_no") - private String trade_no; + private String tradeNo; @Schema(description = "接口名称") @JsonAlias("method") @@ -51,7 +51,7 @@ public class AliPayReturnParam { @Schema(description = "不确定是什么") @JsonAlias("auth_app_id") - private String auth_app_id; + private String authAppId; /** * 支付宝分配给开发者的应用ID。 @@ -59,14 +59,14 @@ public class AliPayReturnParam { */ @Schema(description = "应用ID") @JsonAlias("app_id") - private String app_id; + private String appId; /** * 签名算法类型,目前支持 RSA2 和 RSA,推荐使用RSA2 */ @Schema(description = "签名算法类型") @JsonAlias("sign_type") - private String sign_type; + private String signType; /** * 收款支付宝账号对应的支付宝唯一用户号。以 2088 开头的纯 16 位数字。 @@ -74,7 +74,7 @@ public class AliPayReturnParam { */ @Schema(description = "收款支付宝账号对应的支付宝唯一用户号") @JsonAlias("seller_id") - private String seller_id; + private String sellerId; /** * 前台回跳的时间,格式:yyyy-MM-dd HH:mm:ss。 diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/order/RefundOrderQuery.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/order/RefundOrderQuery.java index 9cd8ed0ff..536b99deb 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/order/RefundOrderQuery.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/order/RefundOrderQuery.java @@ -27,8 +27,8 @@ public class RefundOrderQuery extends QueryOrder { @Schema(description = "商户退款号") private String bizRefundNo; - /** 三方支付系统退款交易号 */ - @Schema(description = "三方支付系统退款交易号") + /** 通道退款交易号 */ + @Schema(description = "通道退款交易号") private String outRefundNo; /** 支付订单ID */ diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/record/TradeFlowRecordQuery.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/record/TradeFlowRecordQuery.java new file mode 100644 index 000000000..d18eb284d --- /dev/null +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/param/record/TradeFlowRecordQuery.java @@ -0,0 +1,56 @@ +package cn.daxpay.single.service.param.record; + +import cn.bootx.platform.common.core.annotation.QueryParam; +import cn.daxpay.single.code.PayChannelEnum; +import cn.daxpay.single.service.code.TradeFlowRecordTypeEnum; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.experimental.Accessors; + +/** + * 流水记录查询类 + * @author xxm + * @since 2024/5/17 + */ +@Data +@QueryParam(type = QueryParam.CompareTypeEnum.LIKE) +@Accessors(chain = true) +@Schema(title = "流水记录查询类") +public class TradeFlowRecordQuery { + + /** 订单标题 */ + @Schema(description = "订单标题") + private String title; + + /** 金额 */ + @Schema(description = "金额") + private Integer amount; + + /** + * 业务类型 + * @see TradeFlowRecordTypeEnum + */ + @QueryParam(type = QueryParam.CompareTypeEnum.EQ) + @Schema(description = "业务类型") + private String type; + + /** + * 支付通道 + * @see PayChannelEnum + */ + @Schema(description = "支付通道") + private String channel; + + /** 本地交易号 */ + @Schema(description = "本地交易号") + private String tradeNo; + + /** 商户交易号 */ + @Schema(description = "商户交易号") + private String bizTradeNo; + + /** 通道交易号 */ + @Schema(description = "通道交易号") + private String outTradeNo; + +} diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/AllocationAutoStartTask.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/AllocationAutoStartTask.java index 8df73bb30..11cb2b519 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/AllocationAutoStartTask.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/AllocationAutoStartTask.java @@ -1,6 +1,6 @@ package cn.daxpay.single.service.task; -import cn.daxpay.single.param.payment.allocation.AllocationStartParam; +import cn.daxpay.single.param.payment.allocation.AllocationParam; import cn.daxpay.single.service.core.order.pay.dao.PayOrderManager; import cn.daxpay.single.service.core.order.pay.entity.PayOrder; import cn.daxpay.single.service.core.payment.allocation.service.AllocationService; @@ -25,18 +25,16 @@ public class AllocationAutoStartTask implements Job { private final AllocationService allocationService; @Override - public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { - for (PayOrder payOrder : payOrderManager.findAllocation()) { - AllocationStartParam param = new AllocationStartParam(); + public void execute(JobExecutionContext jobExecutionContext) { + for (PayOrder payOrder : payOrderManager.findAutoAllocation()) { + AllocationParam param = new AllocationParam(); param.setBizAllocationNo(OrderNoGenerateUtil.allocation()); try { - allocationService.allocation(payOrder, param); + allocationService.allocation(param, payOrder); } catch (Exception e) { log.warn("自动分账失败, 支付订单号: {}", payOrder.getOrderNo()); log.warn("自动分账失败:{}", e.getMessage()); } - } - } } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/AllocationSyncTask.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/AllocationSyncTask.java index 555f09d52..9ba89cd2f 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/AllocationSyncTask.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/AllocationSyncTask.java @@ -4,6 +4,7 @@ import cn.daxpay.single.service.core.order.allocation.dao.AllocationOrderManager; import cn.daxpay.single.service.core.order.allocation.entity.AllocationOrder; import cn.daxpay.single.service.core.payment.allocation.service.AllocationService; +import cn.daxpay.single.service.core.payment.allocation.service.AllocationSyncService; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.quartz.*; @@ -23,6 +24,7 @@ public class AllocationSyncTask implements Job { private final AllocationOrderManager allocationOrderManager; + private final AllocationSyncService allocationSyncService; private final AllocationService allocationService; /** @@ -34,7 +36,7 @@ public void execute(JobExecutionContext jobExecutionContext) throws JobExecution try { // 分账中走同步逻辑 if (allocationOrder.getStatus().equals(AllocOrderStatusEnum.ALLOCATION_PROCESSING.getCode())) { - allocationService.sync(allocationOrder); + allocationSyncService.sync(allocationOrder); } // 如果分账结束, 调用自动完结逻辑 if (allocationOrder.getStatus().equals(AllocOrderStatusEnum.ALLOCATION_END.getCode())) { diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/PayExpiredByDbTimeTask.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/PayExpiredByDbTimeTask.java new file mode 100644 index 000000000..5b5046a52 --- /dev/null +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/PayExpiredByDbTimeTask.java @@ -0,0 +1,45 @@ +package cn.daxpay.single.service.task; + +import cn.daxpay.single.service.core.order.pay.dao.PayOrderManager; +import cn.daxpay.single.service.core.order.pay.entity.PayOrder; +import cn.daxpay.single.service.core.payment.sync.service.PaySyncService; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.quartz.DisallowConcurrentExecution; +import org.quartz.Job; +import org.quartz.JobExecutionContext; +import org.quartz.PersistJobDataAfterExecution; +import org.springframework.stereotype.Component; + +import java.util.List; + +/** + * 支付单超时检测(数据库) + * @author xxm + * @since 2024/5/17 + */ +@Slf4j +@Component +@DisallowConcurrentExecution +@PersistJobDataAfterExecution +@RequiredArgsConstructor +public class PayExpiredByDbTimeTask implements Job { + + private final PaySyncService paySyncService; + + private final PayOrderManager payOrderManager; + + @Override + public void execute(JobExecutionContext context) { + // 从数据库查询获取超时的任务对象 + List payOrders = payOrderManager.queryExpiredOrder(); + for (PayOrder order : payOrders) { + try { + // 设置补偿来源为定时任务 + paySyncService.syncPayOrder(order); + } catch (Exception e) { + log.error("超时取消任务 异常", e); + } + } + } +} diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/PayExpiredTimeTask.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/PayExpiredTimeTask.java index fed0b5dfd..42de41564 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/PayExpiredTimeTask.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/PayExpiredTimeTask.java @@ -9,21 +9,25 @@ import com.baomidou.lock.LockTemplate; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; +import org.quartz.DisallowConcurrentExecution; import org.quartz.Job; import org.quartz.JobExecutionContext; -import org.springframework.stereotype.Service; +import org.quartz.PersistJobDataAfterExecution; +import org.springframework.stereotype.Component; import java.time.LocalDateTime; import java.util.Objects; import java.util.Set; /** - * 支付超时处理 + * 支付超时处理(手动注册) * @author xxm * @since 2024/1/2 */ @Slf4j -@Service +@Component +@DisallowConcurrentExecution +@PersistJobDataAfterExecution @RequiredArgsConstructor public class PayExpiredTimeTask implements Job { private final PayExpiredTimeRepository repository; @@ -50,8 +54,8 @@ public void execute(JobExecutionContext context) { paySyncParam.setOrderNo(orderNo); paySyncService.sync(paySyncParam); } catch (Exception e) { - // 如果是未查询到取消支付订单, 则删除这个任务 - if (Objects.equals("未查询到支付订单", e.getMessage())){ + // 如果是未查询到取消支付订单, 则删除这个任务 TODO 后续调整为专用的异常类 + if (Objects.equals("支付订单不存在", e.getMessage())){ repository.removeKeys(orderNo); } log.error("超时取消任务 异常", e); diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/ReconcileTask.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/ReconcileTask.java index 95c73d52d..53eaf6b9b 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/ReconcileTask.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/ReconcileTask.java @@ -1,6 +1,7 @@ package cn.daxpay.single.service.task; -import cn.daxpay.single.service.task.service.ReconcileTaskService; +import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileOrder; +import cn.daxpay.single.service.core.payment.reconcile.service.ReconcileService; import cn.hutool.core.util.StrUtil; import cn.hutool.json.JSONUtil; import lombok.Getter; @@ -24,7 +25,7 @@ @PersistJobDataAfterExecution @RequiredArgsConstructor public class ReconcileTask implements Job { - private final ReconcileTaskService reconcileTaskService; + private final ReconcileService reconcileService; /** * 任务参数, 格式 @@ -37,7 +38,7 @@ public class ReconcileTask implements Job { * 任务实现 */ @Override - public void execute(JobExecutionContext context) throws JobExecutionException { + public void execute(JobExecutionContext context) { if (StrUtil.isBlank(parameter)){ log.warn("传输参数为空"); return; @@ -50,9 +51,26 @@ public void execute(JobExecutionContext context) throws JobExecutionException { } else { date = date.minusDays(1); } - reconcileTaskService.reconcileTask(date,bean.channel); + this.reconcileTask(date,bean.channel); } + + /** + * 执行任务 + */ + public void reconcileTask(LocalDate date, String channel){ + + // 1. 查询需要定时对账的通道, 创建出来对账订单 + ReconcileOrder reconcileOrder = reconcileService.create(date, channel); + + // 2. 执行对账任务, 下载对账单并解析, 分别存储为原始数据和通用对账数据 + reconcileService.downAndSave(reconcileOrder); + + // 3. 执行账单明细比对, 生成差异单 + reconcileService.compare(reconcileOrder); + } + + /** * 接收参数 */ diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/RefundSyncTask.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/RefundSyncTask.java index 3c09ab0f7..bb1ec63e5 100644 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/RefundSyncTask.java +++ b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/RefundSyncTask.java @@ -1,11 +1,15 @@ package cn.daxpay.single.service.task; -import cn.daxpay.single.service.task.service.RefundSyncTaskService; +import cn.daxpay.single.service.core.order.refund.dao.RefundOrderManager; +import cn.daxpay.single.service.core.order.refund.entity.RefundOrder; +import cn.daxpay.single.service.core.payment.sync.service.RefundSyncService; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.quartz.*; import org.springframework.stereotype.Component; +import java.util.List; + /** * 退款定时同步任务 一分钟一次, 查询退款中的订单进行同步 * @author xxm @@ -18,10 +22,22 @@ @RequiredArgsConstructor public class RefundSyncTask implements Job { - private final RefundSyncTaskService refundSyncTaskService; + private final RefundSyncService refundSyncService; + + private final RefundOrderManager refundOrderManager; @Override - public void execute(JobExecutionContext context) throws JobExecutionException { - refundSyncTaskService.syncTask(); + public void execute(JobExecutionContext context) { + // 查询退款中的退款订单 + List list = refundOrderManager.findAllByProgress(); + for (RefundOrder refundOrder : list) { + try { + // 调用同步方法 + refundSyncService.syncRefundOrder(refundOrder); + } catch (Exception e) { + log.warn("退款执行同步失败, ID: {}",refundOrder.getId()); + log.warn("退款执行同步失败",e); + } + } } } diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/service/ReconcileTaskService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/service/ReconcileTaskService.java deleted file mode 100644 index 8b641ee47..000000000 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/service/ReconcileTaskService.java +++ /dev/null @@ -1,37 +0,0 @@ -package cn.daxpay.single.service.task.service; - -import cn.daxpay.single.service.core.order.reconcile.entity.ReconcileOrder; -import cn.daxpay.single.service.core.payment.reconcile.service.ReconcileService; -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; -import org.springframework.stereotype.Service; - -import java.time.LocalDate; - -/** - * 支付对账定时任务服务类 - * @author xxm - * @since 2024/1/20 - */ -@Slf4j -@Service -@RequiredArgsConstructor -public class ReconcileTaskService { - private final ReconcileService reconcileService; - - /** - * 执行任务 - */ - public void reconcileTask(LocalDate date, String channel){ - - // 1. 查询需要定时对账的通道, 创建出来对账订单 - ReconcileOrder reconcileOrder = reconcileService.create(date, channel); - - // 2. 执行对账任务, 下载对账单并解析, 分别存储为原始数据和通用对账数据 - reconcileService.downAndSave(reconcileOrder); - - // 3. 执行账单明细比对, 生成差异单 - reconcileService.compare(reconcileOrder); - } - -} diff --git a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/service/RefundSyncTaskService.java b/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/service/RefundSyncTaskService.java deleted file mode 100644 index 5a1553ef6..000000000 --- a/daxpay-single/daxpay-single-service/src/main/java/cn/daxpay/single/service/task/service/RefundSyncTaskService.java +++ /dev/null @@ -1,42 +0,0 @@ -package cn.daxpay.single.service.task.service; - -import cn.daxpay.single.service.core.order.refund.dao.RefundOrderManager; -import cn.daxpay.single.service.core.order.refund.entity.RefundOrder; -import cn.daxpay.single.service.core.payment.sync.service.RefundSyncService; -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - * 定时 - * @author xxm - * @since 2024/3/12 - */ -@Slf4j -@Service -@RequiredArgsConstructor -public class RefundSyncTaskService { - - private final RefundSyncService refundSyncService; - - private final RefundOrderManager refundOrderManager; - - /** - * 同步任务 - */ - public void syncTask(){ - // 查询退款中的退款订单 - List list = refundOrderManager.findAllByProgress(); - for (RefundOrder refundOrder : list) { - try { - // 调用同步方法 - refundSyncService.syncRefundOrder(refundOrder); - } catch (Exception e) { - log.warn("退款执行同步失败, ID: {}",refundOrder.getId()); - log.warn("退款执行同步失败",e); - } - } - } -} diff --git a/daxpay-single/pom.xml b/daxpay-single/pom.xml index 3fb77060a..e9ea950f2 100644 --- a/daxpay-single/pom.xml +++ b/daxpay-single/pom.xml @@ -13,7 +13,7 @@ cn.daxpay.single daxpay-single pom - 2.0.6 + 2.0.7 UTF-8 @@ -22,7 +22,7 @@ 1.3.6.2 - 2.0.6 + 2.0.7 1.7.30 3.16.8 @@ -34,7 +34,7 @@ 4.4.0 1.5.3.Final 0.2.0 - 1.5.4 + 1.5.5 4.6.0 2.2.3 2.2.5 diff --git a/pom.xml b/pom.xml index 7e625743b..d975eea4d 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ cn.daxpay.single dax-pay pom - 2.0.6 + 2.0.7 daxpay-single