初始化仓库
This commit is contained in:
105
sql/1.6.0.20230306/menu.sql
Normal file
105
sql/1.6.0.20230306/menu.sql
Normal file
@ -0,0 +1,105 @@
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (140, 82, 'C', '微信开发平台', 'local-icon-notice_buyer', 0, 'channel.open_setting/getConfig', 'open_setting', 'channel/open_setting', '', '', 0, 1, 0, 1666085713, 1666085713);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (141, 140, 'A', '保存', '', 0, 'channel.open_setting/setConfig', '', '', '', '', 0, 1, 0, 1666085751, 1666085776);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (142, 96, 'C', 'PC端', 'el-icon-Monitor', 0, '', 'pc', 'decoration/pc', '', '', 0, 1, 0, 1668423284, 1668423284);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (143, 35, 'C', '定时任务', '', 0, 'crontab.crontab/lists', 'scheduled_task', 'setting/system/scheduled_task/index', '', '', 0, 1, 0, 1669357509, 1669357711);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (144, 35, 'C', '定时任务添加/编辑', '', 0, 'crontab.crontab/add:edit', 'scheduled_task/edit', 'setting/system/scheduled_task/edit', '/setting/system/scheduled_task', '', 0, 0, 0, 1669357670, 1669357765);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (145, 143, 'A', '添加', '', 0, 'crontab.crontab/add', '', '', '', '', 0, 1, 0, 1669358282, 1669358282);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (146, 143, 'A', '编辑', '', 0, 'crontab.crontab/edit', '', '', '', '', 0, 1, 0, 1669358303, 1669358303);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (147, 143, 'A', '删除', '', 0, 'crontab.crontab/delete', '', '', '', '', 0, 1, 0, 1669358334, 1669358334);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (148, 0, 'M', '模板示例', 'el-icon-SetUp', 0, '', 'template', '', '', '', 0, 1, 0, 1670206819, 1677842041);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (149, 148, 'M', '组件示例', 'el-icon-Coin', 0, '', 'component', '', '', '', 0, 1, 0, 1670207182, 1670207244);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (150, 149, 'C', '富文本', '', 0, '', 'rich_text', 'template/component/rich_text', '', '', 0, 1, 0, 1670207751, 1670207751);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (151, 149, 'C', '上传文件', '', 0, '', 'upload', 'template/component/upload', '', '', 0, 1, 0, 1670208925, 1670208925);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (152, 149, 'C', '图标', '', 0, '', 'icon', 'template/component/icon', '', '', 0, 1, 0, 1670230069, 1670230069);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (153, 149, 'C', '文件选择器', '', 0, '', 'file', 'template/component/file', '', '', 0, 1, 0, 1670232129, 1670232129);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (154, 149, 'C', '链接选择器', '', 0, '', 'link', 'template/component/link', '', '', 0, 1, 0, 1670292636, 1670292636);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (155, 149, 'C', '超出自动打点', '', 0, '', 'overflow', 'template/component/overflow', '', '', 0, 1, 0, 1670292883, 1670292883);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (156, 149, 'C', '悬浮input', '', 0, '', 'popover_input', 'template/component/popover_input', '', '', 0, 1, 0, 1670293336, 1670293336);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (157, 119, 'A', '余额调整', '', 0, 'user.user/adjustMoney', '', '', '', '', 0, 1, 0, 1677143088, 1677143088);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (158, 0, 'M', '应用管理', 'el-icon-Postcard', 750, '', 'app', '', '', '', 0, 1, 0, 1677143430, 1677842080);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (159, 158, 'C', '用户充值', 'local-icon-fukuan', 0, 'recharge.recharge/getConfig', 'recharge', 'app/recharge/index', '', '', 0, 1, 0, 1677144284, 1677144316);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (160, 159, 'A', '保存', '', 0, 'recharge.recharge/setConfig', '', '', '', '', 0, 1, 0, 1677145012, 1677145012);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (161, 28, 'M', '支付设置', 'local-icon-set_pay', 0, '', 'pay', '', '', '', 0, 1, 0, 1677148075, 1677148075);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (162, 161, 'C', '支付方式', '', 0, 'setting.pay.pay_way/getPayWay', 'method', 'setting/pay/method/index', '', '', 0, 1, 0, 1677148207, 1677148207);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (163, 161, 'C', '支付配置', '', 0, 'setting.pay.pay_config/lists', 'config', 'setting/pay/config/index', '', '', 0, 1, 0, 1677148260, 1677148374);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (164, 162, 'A', '设置支付方式', '', 0, 'setting.pay.pay_way/setPayWay', '', '', '', '', 0, 1, 0, 1677219624, 1677219624);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (165, 163, 'A', '配置', '', 0, 'setting.pay.pay_config/setConfig', '', '', '', '', 0, 1, 0, 1677219655, 1677219655);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (166, 0, 'M', '财务管理', 'local-icon-user_gaikuang', 650, '', 'finance', '', '', '', 0, 1, 0, 1677552269, 1677842158);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (167, 166, 'C', '充值记录', 'el-icon-Wallet', 0, 'recharge.recharge/lists', 'recharge_record', 'finance/recharge_record', '', '', 0, 1, 0, 1677552757, 1677552777);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (168, 166, 'C', '余额明细', 'local-icon-qianbao', 0, 'finance.account_log/lists', 'balance_details', 'finance/balance_details', '', '', 0, 1, 0, 1677552976, 1677553003);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (169, 167, 'A', '退款', '', 0, 'recharge.recharge/refund', '', '', '', '', 0, 1, 0, 1677809715, 1677809715);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (170, 166, 'C', '退款记录', 'local-icon-heshoujilu', 0, 'finance.refund/record', 'refund_record', 'finance/refund_record', '', '', 0, 1, 0, 1677811271, 1677811271);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (171, 170, 'A', '重新退款', '', 0, 'recharge.recharge/refundAgain', '', '', '', '', 0, 1, 0, 1677811295, 1677811295);
|
||||
|
||||
INSERT INTO `la_system_menu`(`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES (172, 170, 'A', '退款日志', '', 0, 'finance.refund/log', '', '', '', '', 0, 1, 0, 1677811361, 1677811361);
|
||||
|
||||
UPDATE `la_system_menu` SET `pid` = 158, `type` = 'M', `name` = '消息管理', `icon` = 'el-icon-ChatDotRound', `sort` = 0, `perms` = '', `paths` = 'message', `component` = '', `selected` = '', `params` = '', `is_cache` = 0, `is_show` = 1, `is_disable` = 0, `create_time` = 1663838602, `update_time` = 1677143459 WHERE `id` = 101;
|
||||
|
||||
DELETE FROM `la_system_menu` WHERE `id` = 121;
|
||||
|
||||
DELETE FROM `la_system_menu` WHERE `id` = 122;
|
||||
|
||||
DELETE FROM `la_system_menu` WHERE `id` = 123;
|
||||
|
||||
DELETE FROM `la_system_menu` WHERE `id` = 124;
|
||||
|
||||
DELETE FROM `la_system_menu` WHERE `id` = 125;
|
||||
|
||||
DELETE FROM `la_system_menu` WHERE `id` = 126;
|
||||
|
||||
DELETE FROM `la_system_menu` WHERE `id` = 127;
|
||||
|
||||
DELETE FROM `la_system_menu` WHERE `id` = 128;
|
||||
|
||||
DELETE FROM `la_system_menu` WHERE `id` = 129;
|
||||
|
||||
DELETE FROM `la_system_menu` WHERE `id` = 130;
|
||||
|
||||
DELETE FROM `la_system_menu` WHERE `id` = 131;
|
||||
|
||||
DELETE FROM `la_system_menu` WHERE `id` = 132;
|
||||
|
||||
DELETE FROM `la_system_menu` WHERE `id` = 133;
|
||||
|
||||
DELETE FROM `la_system_menu` WHERE `id` = 134;
|
||||
|
||||
DELETE FROM `la_system_menu` WHERE `id` = 135;
|
||||
|
||||
DELETE FROM `la_system_menu` WHERE `id` = 136;
|
||||
|
||||
DELETE FROM `la_system_menu` WHERE `id` = 137;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
30
sql/1.6.0.20230306/sql更新内容.txt
Normal file
30
sql/1.6.0.20230306/sql更新内容.txt
Normal file
@ -0,0 +1,30 @@
|
||||
1.6.0
|
||||
|
||||
表结构调整
|
||||
|
||||
表调整
|
||||
la_user表
|
||||
增加 【is_new_user, user_money,total_recharge_amount】字段
|
||||
|
||||
表增加
|
||||
la_dev_pay_config 支付配置表
|
||||
la_dev_pay_way 支付方式表
|
||||
la_recharge_order 充值订单表
|
||||
la_refund_record 退款记录表
|
||||
la_refund_log 退款日志表
|
||||
la_user_account_log 用户账户流水表
|
||||
|
||||
|
||||
表数据调整
|
||||
|
||||
菜单数据更新sql独立在menu.sql。
|
||||
若已对菜单做过编辑的请谨慎直接更新menu.sql。可以新建数据库导入
|
||||
server/public/install/db/like.sql 完整安装数据对比菜单调整。
|
||||
|
||||
la_decorate_page 装修页配置表 调整个人中心页数据
|
||||
la_system_menu 系统菜单表 新增菜单
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
107
sql/1.6.0.20230306/update.sql
Normal file
107
sql/1.6.0.20230306/update.sql
Normal file
@ -0,0 +1,107 @@
|
||||
SET FOREIGN_KEY_CHECKS=0;
|
||||
|
||||
ALTER TABLE `la_user` ADD COLUMN `is_new_user` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否是新注册用户: [1-是, 0-否]' AFTER `login_time`;
|
||||
|
||||
ALTER TABLE `la_user` ADD COLUMN `user_money` decimal(10, 2) UNSIGNED NULL DEFAULT 0.00 COMMENT '用户余额' AFTER `is_new_user`;
|
||||
|
||||
ALTER TABLE `la_user` ADD COLUMN `total_recharge_amount` decimal(10, 2) UNSIGNED NULL DEFAULT 0.00 COMMENT '累计充值' AFTER `user_money`;
|
||||
|
||||
|
||||
CREATE TABLE `la_dev_pay_config` (
|
||||
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(32) NOT NULL DEFAULT '' COMMENT '模版名称',
|
||||
`pay_way` tinyint(1) NOT NULL COMMENT '支付方式:1-余额支付;2-微信支付;3-支付宝支付;',
|
||||
`config` text NULL COMMENT '对应支付配置(json字符串)',
|
||||
`icon` varchar(255) NULL DEFAULT NULL COMMENT '图标',
|
||||
`sort` int(5) NULL DEFAULT NULL COMMENT '排序',
|
||||
`remark` varchar(255) NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
);
|
||||
|
||||
CREATE TABLE `la_dev_pay_way` (
|
||||
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`pay_config_id` int(11) NOT NULL COMMENT '支付配置ID',
|
||||
`scene` tinyint(1) NOT NULL COMMENT '场景:1-微信小程序;2-微信公众号;3-H5;4-PC;5-APP;',
|
||||
`is_default` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否默认支付:0-否;1-是;',
|
||||
`status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '状态:0-关闭;1-开启;',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
);
|
||||
|
||||
CREATE TABLE `la_recharge_order` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`sn` varchar(64) NOT NULL COMMENT '订单编号',
|
||||
`user_id` int(11) NOT NULL COMMENT '用户id',
|
||||
`pay_sn` varchar(255) NULL DEFAULT '' COMMENT '支付编号-冗余字段,针对微信同一主体不同客户端支付需用不同订单号预留。',
|
||||
`pay_way` tinyint(2) NOT NULL DEFAULT 2 COMMENT '支付方式 2-微信支付 3-支付宝支付',
|
||||
`pay_status` tinyint(1) NOT NULL DEFAULT 0 COMMENT '支付状态:0-待支付;1-已支付',
|
||||
`pay_time` int(10) NULL DEFAULT NULL COMMENT '支付时间',
|
||||
`order_amount` decimal(10, 2) NOT NULL COMMENT '充值金额',
|
||||
`order_terminal` tinyint(1) NULL DEFAULT 1 COMMENT '终端',
|
||||
`transaction_id` varchar(128) NULL DEFAULT NULL COMMENT '第三方平台交易流水号',
|
||||
`refund_status` tinyint(1) NULL DEFAULT 0 COMMENT '退款状态 0-未退款 1-已退款',
|
||||
`create_time` int(10) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`delete_time` int(10) NULL DEFAULT NULL COMMENT '删除时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
);
|
||||
|
||||
CREATE TABLE `la_refund_log` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`sn` varchar(32) NULL DEFAULT NULL COMMENT '编号',
|
||||
`record_id` int(11) NOT NULL COMMENT '退款记录id',
|
||||
`user_id` int(11) NOT NULL DEFAULT 0 COMMENT '关联用户',
|
||||
`handle_id` int(11) NOT NULL DEFAULT 0 COMMENT '处理人id(管理员id)',
|
||||
`order_amount` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '订单总的应付款金额,冗余字段',
|
||||
`refund_amount` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '本次退款金额',
|
||||
`refund_status` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '退款状态,0退款中,1退款成功,2退款失败',
|
||||
`refund_msg` text NULL COMMENT '退款信息',
|
||||
`create_time` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '创建时间',
|
||||
`update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
);
|
||||
|
||||
CREATE TABLE `la_refund_record` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`sn` varchar(32) NOT NULL DEFAULT '' COMMENT '退款编号',
|
||||
`user_id` int(11) NOT NULL DEFAULT 0 COMMENT '关联用户',
|
||||
`order_id` int(11) NOT NULL DEFAULT 0 COMMENT '来源订单id',
|
||||
`order_sn` varchar(32) NOT NULL COMMENT '来源单号',
|
||||
`order_type` varchar(255) NULL DEFAULT 'order' COMMENT '订单来源 order-商品订单 recharge-充值订单',
|
||||
`order_amount` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '订单总的应付款金额,冗余字段',
|
||||
`refund_amount` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '本次退款金额',
|
||||
`transaction_id` varchar(255) NULL DEFAULT NULL COMMENT '第三方平台交易流水号',
|
||||
`refund_way` tinyint(1) NOT NULL DEFAULT 1 COMMENT '退款方式 1-线上退款 2-线下退款',
|
||||
`refund_type` tinyint(1) NOT NULL DEFAULT 1 COMMENT '退款类型 1-后台退款',
|
||||
`refund_status` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '退款状态,0退款中,1退款成功,2退款失败',
|
||||
`create_time` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '创建时间',
|
||||
`update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
);
|
||||
|
||||
CREATE TABLE `la_user_account_log` (
|
||||
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`sn` varchar(32) NOT NULL DEFAULT '' COMMENT '流水号',
|
||||
`user_id` int(11) NOT NULL COMMENT '用户id',
|
||||
`change_object` tinyint(1) NOT NULL DEFAULT 0 COMMENT '变动对象',
|
||||
`change_type` smallint(5) NOT NULL COMMENT '变动类型',
|
||||
`action` tinyint(1) NOT NULL DEFAULT 0 COMMENT '动作 1-增加 2-减少',
|
||||
`change_amount` decimal(10, 2) NOT NULL COMMENT '变动数量',
|
||||
`left_amount` decimal(10, 2) NOT NULL DEFAULT 100.00 COMMENT '变动后数量',
|
||||
`source_sn` varchar(255) NULL DEFAULT NULL COMMENT '关联单号',
|
||||
`remark` varchar(255) NULL DEFAULT '' COMMENT '备注',
|
||||
`extra` text NULL COMMENT '预留扩展字段',
|
||||
`create_time` int(10) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`delete_time` int(10) NULL DEFAULT NULL COMMENT '删除时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
);
|
||||
|
||||
|
||||
INSERT INTO `la_dev_pay_config` VALUES (1, '余额支付', 1, '', '/resource/image/adminapi/default/balance_pay.png', 128, '余额支付备注'), (2, '微信支付', 2, '{\"interface_version\":\"v3\",\"merchant_type\":\"ordinary_merchant\",\"mch_id\":\"\",\"pay_sign_key\":\"\",\"apiclient_cert\":\"\",\"apiclient_key\":\"\"}', '/resource/image/adminapi/default/wechat_pay.png', 123, '微信支付备注');
|
||||
|
||||
INSERT INTO `la_dev_pay_way` VALUES (1, 1, 1, 0, 1), (2, 2, 1, 1, 1), (3, 1, 2, 0, 1), (4, 2, 2, 1, 1), (5, 1, 3, 0, 1), (6, 2, 3, 1, 1);
|
||||
|
||||
UPDATE `la_decorate_page` SET `type` = 2, `name` = '个人中心', `data` = '[{\"title\":\"用户信息\",\"name\":\"user-info\",\"disabled\":1,\"content\":{},\"styles\":{}},{\"title\":\"我的服务\",\"name\":\"my-service\",\"content\":{\"style\":2,\"title\":\"服务中心\",\"data\":[{\"image\":\"/resource/image/adminapi/default/user_collect.png\",\"name\":\"我的收藏\",\"link\":{\"path\":\"/pages/collection/collection\",\"name\":\"我的收藏\",\"type\":\"shop\"}},{\"image\":\"/resource/image/adminapi/default/user_setting.png\",\"name\":\"个人设置\",\"link\":{\"path\":\"/pages/user_set/user_set\",\"name\":\"个人设置\",\"type\":\"shop\"}},{\"image\":\"/resource/image/adminapi/default/user_kefu.png\",\"name\":\"联系客服\",\"link\":{\"path\":\"/pages/customer_service/customer_service\",\"name\":\"联系客服\",\"type\":\"shop\"}},{\"image\":\"/resource/image/adminapi/default/wallet.png\",\"name\":\"我的钱包\",\"link\":{\"path\":\"/packages/pages/user_wallet/user_wallet\",\"name\":\"我的钱包\",\"type\":\"shop\"}}]},\"styles\":{}},{\"title\":\"个人中心广告图\",\"name\":\"user-banner\",\"content\":{\"enabled\":1,\"data\":[{\"image\":\"/resource/image/adminapi/default/ad01.jpg\",\"name\":\"\",\"link\":{}}]},\"styles\":{}}]', `create_time` = 1661757188, `update_time` = 1663320728 WHERE `id` = 2;
|
||||
|
||||
|
||||
SET FOREIGN_KEY_CHECKS=1;
|
||||
Reference in New Issue
Block a user