初始提交修改
This commit is contained in:
parent
ff85508daf
commit
8d3570ef98
@ -1,3 +1,3 @@
|
||||
USE mall4cloud_job;
|
||||
USE tmerclub_job;
|
||||
insert into `xxl_job_info` (`job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`)
|
||||
values(11,'解锁sku库存','2023-08-18 14:30:19','2023-08-23 11:03:25','admin','','CRON','0 5 0 * * ?','DO_NOTHING','FIRST','unLockOrderSkuStock','','SERIAL_EXECUTION','0','0','BEAN','','GLUE代码初始化','2023-08-18 14:30:19','','1','0','1692806700000');
|
||||
|
@ -1,5 +1,5 @@
|
||||
#电子面单新建表
|
||||
USE `mall4cloud_order`;
|
||||
USE `tmerclub_order`;
|
||||
|
||||
/*Table structure for table `outlet_config` */
|
||||
|
||||
@ -41,12 +41,12 @@ CREATE TABLE `printer` (
|
||||
PRIMARY KEY (`printer_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='打印机';
|
||||
|
||||
USE mall4cloud_admin;
|
||||
USE tmerclub_admin;
|
||||
# 快递100增加secret, isPrint, printReqUrl配置
|
||||
UPDATE sys_config SET param_value = REPLACE(param_value,'","key":','","secret":"","isPrint":false,"mock":false,"printReqUrl":"https://api.kuaidi100.com/label/order","key":')
|
||||
WHERE param_key = 'QUICK100_CONFIG';
|
||||
|
||||
USE mall4cloud_auth;
|
||||
USE tmerclub_auth;
|
||||
-- 菜单SQL
|
||||
# 371为商家端系统菜单id
|
||||
insert into `menu`(`menu_id`,`create_time`,`update_time`,`parent_id`,`biz_type`,`permission`,`path`,`component`,`redirect`,`always_show`,`hidden`,`name`,`title`,`icon`,`no_cache`,`breadcrumb`,`affix`,`active_menu`,`seq`) values
|
||||
|
@ -1,4 +1,4 @@
|
||||
USE mall4cloud_job;
|
||||
USE tmerclub_job;
|
||||
INSERT INTO `xxl_job_info`(`job_group`,`job_desc`,`add_time`,`update_time`,`author`,`alarm_email`,`schedule_type`,`schedule_conf`,`misfire_strategy`,`executor_route_strategy`,`executor_handler`,`executor_param`,`executor_block_strategy`,`executor_timeout`,`executor_fail_retry_count`,`glue_type`,`glue_source`,`glue_remark`,`glue_updatetime`,`child_jobid`,`trigger_status`,`trigger_last_time`,`trigger_next_time`) VALUES
|
||||
(2,'发放退款','2023-09-07 09:16:24','2023-09-07 11:35:33','admin','','CRON','0 0/1 * * * ?','DO_NOTHING','FIRST','refundRequest','','SERIAL_EXECUTION',0,0,'BEAN','','GLUE代码初始化','2023-09-07 09:16:24','',1,1694068500000,1694068560000),
|
||||
(2,'支付宝退款订单查单','2023-09-07 09:16:50','2023-09-07 11:15:16','admin','','CRON','0 0/1 * * * ?','DO_NOTHING','FIRST','updateAliPayRefundStatus','','SERIAL_EXECUTION',0,0,'BEAN','','GLUE代码初始化','2023-09-07 09:16:50','',1,1694068500000,1694068560000);
|
||||
@ -7,7 +7,7 @@ INSERT INTO `xxl_job_info`(`job_group`,`job_desc`,`add_time`,`update_time`,`aut
|
||||
|
||||
# 订单支付记录添加支付的系统类型字段
|
||||
|
||||
USE mall4cloud_payment_0;
|
||||
USE tmerclub_payment_0;
|
||||
|
||||
DELIMITER //
|
||||
DROP PROCEDURE
|
||||
@ -35,7 +35,7 @@ END // CALL createTable ()//
|
||||
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_payment_1;
|
||||
USE tmerclub_payment_1;
|
||||
|
||||
DELIMITER //
|
||||
DROP PROCEDURE
|
||||
@ -63,7 +63,7 @@ END // CALL createTable ()//
|
||||
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_payment_2;
|
||||
USE tmerclub_payment_2;
|
||||
|
||||
DELIMITER //
|
||||
DROP PROCEDURE
|
||||
@ -91,7 +91,7 @@ END // CALL createTable ()//
|
||||
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_payment_3;
|
||||
USE tmerclub_payment_3;
|
||||
|
||||
DELIMITER //
|
||||
DROP PROCEDURE
|
||||
@ -119,7 +119,7 @@ END // CALL createTable ()//
|
||||
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_payment_4;
|
||||
USE tmerclub_payment_4;
|
||||
|
||||
DELIMITER //
|
||||
DROP PROCEDURE
|
||||
@ -147,7 +147,7 @@ END // CALL createTable ()//
|
||||
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_payment_5;
|
||||
USE tmerclub_payment_5;
|
||||
|
||||
DELIMITER //
|
||||
DROP PROCEDURE
|
||||
@ -175,7 +175,7 @@ END // CALL createTable ()//
|
||||
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_payment_6;
|
||||
USE tmerclub_payment_6;
|
||||
|
||||
DELIMITER //
|
||||
DROP PROCEDURE
|
||||
@ -203,7 +203,7 @@ END // CALL createTable ()//
|
||||
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_payment_7;
|
||||
USE tmerclub_payment_7;
|
||||
|
||||
DELIMITER //
|
||||
DROP PROCEDURE
|
||||
@ -232,17 +232,17 @@ END // CALL createTable ()//
|
||||
DELIMITER;
|
||||
|
||||
# 添加微信发货配置
|
||||
USE mall4cloud_admin;
|
||||
USE tmerclub_admin;
|
||||
|
||||
INSERT INTO `sys_config`(`create_time`, `update_time`, `param_key`, `param_value`, `remark`) VALUES ('2023-01-31 09:16:47', '2023-09-08 15:51:23', 'WECHAT_SHIPPING_CONFIG', '{\"wechatShippingAudit\":false}', '微信发货配置');
|
||||
|
||||
|
||||
USE `mall4cloud_leaf`;
|
||||
USE `tmerclub_leaf`;
|
||||
INSERT INTO leaf_alloc ( biz_tag, max_id, step, update_time, description, random_step )
|
||||
VALUE ( 'mall4cloud-purchase-amount-log', 1, 1000, NOW(), '采购金额日志id', 10 );
|
||||
VALUE ( 'tmerclub-purchase-amount-log', 1, 1000, NOW(), '采购金额日志id', 10 );
|
||||
|
||||
# 采购金额日志菜单补充
|
||||
USE `mall4cloud_auth`;
|
||||
USE `tmerclub_auth`;
|
||||
# menu_id=322, 464分别为商家和供应的'店铺结算'
|
||||
DELETE FROM `menu` WHERE `menu_id` IN (322, 464);
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
# 退款单新增商家备注字段
|
||||
USE mall4cloud_order_0;
|
||||
USE tmerclub_order_0;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updateRefundColumn //
|
||||
CREATE PROCEDURE updateRefundColumn()
|
||||
@ -17,7 +17,7 @@ CALL updateRefundColumn() //
|
||||
DROP PROCEDURE updateRefundColumn //
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_order_1;
|
||||
USE tmerclub_order_1;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updateRefundColumn //
|
||||
CREATE PROCEDURE updateRefundColumn()
|
||||
@ -35,7 +35,7 @@ CALL updateRefundColumn() //
|
||||
DROP PROCEDURE updateRefundColumn //
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_order_2;
|
||||
USE tmerclub_order_2;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updateRefundColumn //
|
||||
CREATE PROCEDURE updateRefundColumn()
|
||||
@ -53,7 +53,7 @@ CALL updateRefundColumn() //
|
||||
DROP PROCEDURE updateRefundColumn //
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_order_3;
|
||||
USE tmerclub_order_3;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updateRefundColumn //
|
||||
CREATE PROCEDURE updateRefundColumn()
|
||||
@ -71,7 +71,7 @@ CALL updateRefundColumn() //
|
||||
DROP PROCEDURE updateRefundColumn //
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_order_4;
|
||||
USE tmerclub_order_4;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updateRefundColumn //
|
||||
CREATE PROCEDURE updateRefundColumn()
|
||||
@ -89,7 +89,7 @@ CALL updateRefundColumn() //
|
||||
DROP PROCEDURE updateRefundColumn //
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_order_5;
|
||||
USE tmerclub_order_5;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updateRefundColumn //
|
||||
CREATE PROCEDURE updateRefundColumn()
|
||||
@ -107,7 +107,7 @@ CALL updateRefundColumn() //
|
||||
DROP PROCEDURE updateRefundColumn //
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_order_6;
|
||||
USE tmerclub_order_6;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updateRefundColumn //
|
||||
CREATE PROCEDURE updateRefundColumn()
|
||||
@ -125,7 +125,7 @@ CALL updateRefundColumn() //
|
||||
DROP PROCEDURE updateRefundColumn //
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_order_7;
|
||||
USE tmerclub_order_7;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updateRefundColumn //
|
||||
CREATE PROCEDURE updateRefundColumn()
|
||||
@ -145,7 +145,7 @@ DELIMITER;
|
||||
|
||||
|
||||
# 添加小程序发货定时任务
|
||||
USE `mall4cloud_job`;
|
||||
USE `tmerclub_job`;
|
||||
INSERT INTO `xxl_job_info`(`job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`,
|
||||
`schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`,
|
||||
`executor_handler`, `executor_param`, `executor_block_strategy`,
|
||||
|
@ -1,11 +1,11 @@
|
||||
USE `mall4cloud_nacos`;
|
||||
USE `tmerclub_nacos`;
|
||||
UPDATE config_info
|
||||
SET content= REPLACE(content,
|
||||
'parameters:\n namespace: ${spring.cloud.nacos.discovery.namespace}\n',
|
||||
'parameters:\n namespace: ${spring.cloud.nacos.discovery.namespace}-dubbo\n')
|
||||
WHERE data_id = 'application.yml';
|
||||
|
||||
USE `mall4cloud_nacos`;
|
||||
USE `tmerclub_nacos`;
|
||||
UPDATE config_info
|
||||
SET content= REPLACE(content,
|
||||
'provider-namespace: ${spring.cloud.nacos.discovery.namespace}\n',
|
||||
|
@ -1,4 +1,4 @@
|
||||
USE mall4cloud_admin;
|
||||
USE tmerclub_admin;
|
||||
ALTER TABLE shop_wallet DROP COLUMN zone_num;
|
||||
ALTER TABLE supplier_wallet DROP COLUMN zone_num;
|
||||
# 把钱包分片的内容整合到总钱包中
|
||||
@ -22,12 +22,12 @@ DROP TABLE IF EXISTS `shop_wallet_zone`;
|
||||
DROP TABLE IF EXISTS `supplier_wallet_zone`;
|
||||
DROP TABLE IF EXISTS `supplier_wallet_log`;
|
||||
|
||||
USE mall4cloud_job;
|
||||
USE tmerclub_job;
|
||||
DELETE FROM xxl_job_info
|
||||
WHERE executor_handler IN ('zoneShopWalletToTenIfNecessary', 'zoneSupplierWalletToTenIfNecessary');
|
||||
|
||||
# 变更商家端公告位置
|
||||
USE mall4cloud_auth;
|
||||
USE tmerclub_auth;
|
||||
# menu_id = 253, 375都是'公告'
|
||||
DELETE FROM `menu` WHERE `menu_id` IN (253, 375);
|
||||
# parent_id = 145 为'店铺管理'
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,10 +1,10 @@
|
||||
USE mall4cloud_auth;
|
||||
USE tmerclub_auth;
|
||||
|
||||
# 修改平台发货地址菜单 651为发货管理菜单
|
||||
update menu set parent_id = 651, component = 'system/delivery-manager/addr/index', seq = 2 where menu_id = 650 and name = '发货地址';
|
||||
|
||||
# 订单发票新增供应商id字段
|
||||
USE mall4cloud_order_0;
|
||||
USE tmerclub_order_0;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updateInvoiceColumn //
|
||||
CREATE PROCEDURE updateInvoiceColumn()
|
||||
@ -22,7 +22,7 @@ CALL updateInvoiceColumn() //
|
||||
DROP PROCEDURE updateInvoiceColumn //
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_order_1;
|
||||
USE tmerclub_order_1;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updateInvoiceColumn //
|
||||
CREATE PROCEDURE updateInvoiceColumn()
|
||||
@ -40,7 +40,7 @@ CALL updateInvoiceColumn() //
|
||||
DROP PROCEDURE updateInvoiceColumn //
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_order_2;
|
||||
USE tmerclub_order_2;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updateInvoiceColumn //
|
||||
CREATE PROCEDURE updateInvoiceColumn()
|
||||
@ -58,7 +58,7 @@ CALL updateInvoiceColumn() //
|
||||
DROP PROCEDURE updateInvoiceColumn //
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_order_3;
|
||||
USE tmerclub_order_3;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updateInvoiceColumn //
|
||||
CREATE PROCEDURE updateInvoiceColumn()
|
||||
@ -76,7 +76,7 @@ CALL updateInvoiceColumn() //
|
||||
DROP PROCEDURE updateInvoiceColumn //
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_order_4;
|
||||
USE tmerclub_order_4;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updateInvoiceColumn //
|
||||
CREATE PROCEDURE updateInvoiceColumn()
|
||||
@ -94,7 +94,7 @@ CALL updateInvoiceColumn() //
|
||||
DROP PROCEDURE updateInvoiceColumn //
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_order_5;
|
||||
USE tmerclub_order_5;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updateInvoiceColumn //
|
||||
CREATE PROCEDURE updateInvoiceColumn()
|
||||
@ -112,7 +112,7 @@ CALL updateInvoiceColumn() //
|
||||
DROP PROCEDURE updateInvoiceColumn //
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_order_6;
|
||||
USE tmerclub_order_6;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updateInvoiceColumn //
|
||||
CREATE PROCEDURE updateInvoiceColumn()
|
||||
@ -130,7 +130,7 @@ CALL updateInvoiceColumn() //
|
||||
DROP PROCEDURE updateInvoiceColumn //
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_order_7;
|
||||
USE tmerclub_order_7;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updateInvoiceColumn //
|
||||
CREATE PROCEDURE updateInvoiceColumn()
|
||||
|
@ -1,8 +1,8 @@
|
||||
USE `mall4cloud_leaf`;
|
||||
USE `tmerclub_leaf`;
|
||||
INSERT INTO leaf_alloc ( biz_tag, max_id, step, update_time, description, random_step )
|
||||
VALUE ( 'mall4cloud-order-virtual-info-log', 1, 1000, NOW(), 'mall4cloud虚拟订单核销记录', 10 );
|
||||
VALUE ( 'tmerclub-order-virtual-info-log', 1, 1000, NOW(), 'tmerclub虚拟订单核销记录', 10 );
|
||||
|
||||
USE `mall4cloud_product`;
|
||||
USE `tmerclub_product`;
|
||||
# 商品添加固定运费字段
|
||||
ALTER TABLE `spu`
|
||||
ADD COLUMN `delivery_amount` bigint(0) NULL COMMENT '运费固定金额' AFTER `delivery_template_id`;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -3,18 +3,18 @@
|
||||
# 1.执行 2023-11-13 整合leaf模块.sql ,新增的分布式id数据要导入
|
||||
|
||||
# 2.给用户服务添加mongodb连接
|
||||
# 积分、余额的数据放入mongodb。在mall4cloud-user.yml加入以下配置(连接数据注意检查更换),
|
||||
# 积分、余额的数据放入mongodb。在tmerclub-user.yml加入以下配置(连接数据注意检查更换),
|
||||
# data:
|
||||
# mongodb:
|
||||
# host: 192.168.193.128
|
||||
# port: 27017
|
||||
# database: mall4cloud
|
||||
# username: mall4cloud
|
||||
# password: mall4cloud
|
||||
# authentication-database: mall4cloud
|
||||
# database: tmerclub
|
||||
# username: tmerclub
|
||||
# password: tmerclub
|
||||
# authentication-database: tmerclub
|
||||
|
||||
# 3.给支付模块增加一个数据库配置
|
||||
# 在mall4cloud-payment.yml替换以下配置
|
||||
# 在tmerclub-payment.yml替换以下配置
|
||||
# 将:
|
||||
#
|
||||
# datasource:
|
||||
@ -26,7 +26,7 @@
|
||||
# ds:
|
||||
# type: com.zaxxer.hikari.HikariDataSource
|
||||
# driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
# jdbc-url: jdbc:mysql://${MYSQL_HOST:192.168.193.128}:${MYSQL_PORT:3306}/${MYSQL_DATABASE:mall4cloud_payment}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&allowPublicKeyRetrieval=true&useAffectedRows=true
|
||||
# jdbc-url: jdbc:mysql://${MYSQL_HOST:192.168.193.128}:${MYSQL_PORT:3306}/${MYSQL_DATABASE:tmerclub_payment}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&allowPublicKeyRetrieval=true&useAffectedRows=true
|
||||
# username: ${MYSQL_USERNAME:root}
|
||||
# password: ${MYSQL_PASSWORD:hn02le.34lkdLKD}
|
||||
# minimum-idle: 0
|
||||
@ -44,14 +44,14 @@
|
||||
#
|
||||
#
|
||||
# 或者执行以下两条sql后,重启nacos(二选一)
|
||||
use mall4cloud_nacos;
|
||||
update config_info set content = REPLACE(content, 'names: ds0,ds1,ds2,ds3,ds4,ds5,ds6,ds7\n', 'names: ds,ds0,ds1,ds2,ds3,ds4,ds5,ds6,ds7\n ds:\n type: com.zaxxer.hikari.HikariDataSource\n driver-class-name: com.mysql.cj.jdbc.Driver\n jdbc-url: jdbc:mysql://${MYSQL_HOST:192.168.193.128}:${MYSQL_PORT:3306}/${MYSQL_DATABASE:mall4cloud_payment}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&allowPublicKeyRetrieval=true&useAffectedRows=true\n username: ${MYSQL_USERNAME:root}\n password: ${MYSQL_PASSWORD:hn02le.34lkdLKD}\n minimum-idle: 0\n maximum-pool-size: 20\n idle-timeout: 25000\n auto-commit: true\n connection-test-query: SELECT 1\n') where data_id = 'mall4cloud-payment.yml';
|
||||
update config_info set content = REPLACE(content, 'sharding:\n', 'sharding:\n default-data-source-name: ds\n') where data_id = 'mall4cloud-payment.yml';
|
||||
use tmerclub_nacos;
|
||||
update config_info set content = REPLACE(content, 'names: ds0,ds1,ds2,ds3,ds4,ds5,ds6,ds7\n', 'names: ds,ds0,ds1,ds2,ds3,ds4,ds5,ds6,ds7\n ds:\n type: com.zaxxer.hikari.HikariDataSource\n driver-class-name: com.mysql.cj.jdbc.Driver\n jdbc-url: jdbc:mysql://${MYSQL_HOST:192.168.193.128}:${MYSQL_PORT:3306}/${MYSQL_DATABASE:tmerclub_payment}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&allowPublicKeyRetrieval=true&useAffectedRows=true\n username: ${MYSQL_USERNAME:root}\n password: ${MYSQL_PASSWORD:hn02le.34lkdLKD}\n minimum-idle: 0\n maximum-pool-size: 20\n idle-timeout: 25000\n auto-commit: true\n connection-test-query: SELECT 1\n') where data_id = 'tmerclub-payment.yml';
|
||||
update config_info set content = REPLACE(content, 'sharding:\n', 'sharding:\n default-data-source-name: ds\n') where data_id = 'tmerclub-payment.yml';
|
||||
|
||||
|
||||
|
||||
# 4.search模块增加一个mongodb配置
|
||||
# 在mall4cloud-search.yml替换以下配置
|
||||
# 在tmerclub-search.yml替换以下配置
|
||||
# 将:
|
||||
#
|
||||
# spring:
|
||||
@ -62,14 +62,14 @@ update config_info set content = REPLACE(content, 'sharding:\n', 'sharding:\n
|
||||
# mongodb:
|
||||
# host: 192.168.193.128
|
||||
# port: 27017
|
||||
# database: mall4cloud
|
||||
# username: mall4cloud
|
||||
# password: 'mall4cloud'
|
||||
# authentication-database: mall4cloud
|
||||
# database: tmerclub
|
||||
# username: tmerclub
|
||||
# password: 'tmerclub'
|
||||
# authentication-database: tmerclub
|
||||
#
|
||||
# 或者执行以下两条sql后,重启nacos(二选一)
|
||||
use mall4cloud_nacos;
|
||||
update config_info set content = REPLACE(content, 'spring:\n', 'spring:\n data:\n mongodb:\n host: 192.168.193.128\n port: 27017\n database: mall4cloud\n username: mall4cloud\n password: mall4cloud\n authentication-database: mall4cloud\n') where data_id = 'mall4cloud-search.yml';
|
||||
use tmerclub_nacos;
|
||||
update config_info set content = REPLACE(content, 'spring:\n', 'spring:\n data:\n mongodb:\n host: 192.168.193.128\n port: 27017\n database: tmerclub\n username: tmerclub\n password: tmerclub\n authentication-database: tmerclub\n') where data_id = 'tmerclub-search.yml';
|
||||
|
||||
|
||||
|
||||
@ -77,7 +77,7 @@ update config_info set content = REPLACE(content, 'spring:\n', 'spring:\n data:
|
||||
# 5.initScoreAndBalanceLogToMongodb这个定时任务只对2023-11-13更新前将积分日志(user_score_log)和余额日志(user_balance_log)存入mysql之后,将数据搬迁到mongodb
|
||||
# 需要重启用户服务,使该定时任务正常执行*成功*一次后(数据已经完全搬迁到mongodb)就可以置为停止或删除,随后可以将mysql中user_score_log和user_balance_log删除
|
||||
# 并且可以将UserScoreLogMapper、UserBalanceLogMapper以及相关定时任务代码从代码中删去
|
||||
USE `mall4cloud_job`;
|
||||
USE `tmerclub_job`;
|
||||
insert into `xxl_job_info`(`job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`,
|
||||
`schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`,
|
||||
`executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`,
|
||||
@ -88,11 +88,11 @@ values (12, '初始化原有数据库记录至mongodb', '2023-11-02 10:07:30', '
|
||||
'', 'GLUE代码初始化', '2023-11-02 10:07:30', '', 0, 0, 0);
|
||||
|
||||
# 6.优化通联会员注册
|
||||
USE `mall4cloud_user`;
|
||||
USE `tmerclub_user`;
|
||||
ALTER TABLE `user_extension`
|
||||
ADD COLUMN `allinpay_create` tinyint(1) DEFAULT 0 COMMENT '是否创建通联会员(0:否,1:是)' AFTER `allinpay_actual_balance`;
|
||||
|
||||
USE mall4cloud_job;
|
||||
USE tmerclub_job;
|
||||
INSERT INTO `xxl_job`.`xxl_job_info`(`job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`)
|
||||
VALUES
|
||||
(12, '用户创建通联会员', '2023-11-10 14:30:03', '2023-11-10 14:51:03', 'admin', '', 'CRON', '0 0/10 * * * ? *', 'DO_NOTHING', 'FIRST', 'createAllinpayMember', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2023-11-10 14:30:03', '', 1, 0, 1699599600000);
|
||||
@ -104,6 +104,6 @@ VALUES
|
||||
|
||||
# 8. 重启服务后,导入初始化的定时任务并执行
|
||||
# 只需要执行一次就可以删除掉,不要重复执行
|
||||
USE `mall4cloud_job`;
|
||||
USE `tmerclub_job`;
|
||||
insert into `xxl_job_info` (`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) values
|
||||
('612','11','初始化库存','2023-07-10 09:51:23','2023-11-10 16:38:00','admin','','CRON','0 0 0 1 10 ?','DO_NOTHING','FIRST','intiStock','','SERIAL_EXECUTION','0','0','BEAN','','GLUE代码初始化','2023-07-10 09:51:23','','0','0','0');
|
||||
|
@ -1,7 +1,7 @@
|
||||
# 看注释!!!!!!
|
||||
|
||||
# 1.在总库建group_order、group_team两个总表,方便后面mongodb迁移数据
|
||||
USE mall4cloud_group;
|
||||
USE tmerclub_group;
|
||||
DROP TABLE IF EXISTS `group_order`;
|
||||
CREATE TABLE `group_order` (
|
||||
`group_order_id` bigint NOT NULL AUTO_INCREMENT COMMENT '拼团订单id',
|
||||
@ -37,8 +37,8 @@ CREATE TABLE `group_team` (
|
||||
PRIMARY KEY (`group_team_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='拼团团队表';
|
||||
|
||||
# 2.将分库里面订单相关内容迁移到总表中,根据自身配置可以将总库库名mall4cloud_group更改为自己配置的
|
||||
USE mall4cloud_group_0;
|
||||
# 2.将分库里面订单相关内容迁移到总表中,根据自身配置可以将总库库名tmerclub_group更改为自己配置的
|
||||
USE tmerclub_group_0;
|
||||
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS createTable//
|
||||
@ -48,14 +48,14 @@ BEGIN
|
||||
SET i = 0;
|
||||
WHILE i<64 DO
|
||||
SET @create_group_order_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_group.`group_order`
|
||||
'INSERT INTO tmerclub_group.`group_order`
|
||||
(SELECT * FROM group_order_', i, ")"
|
||||
);
|
||||
PREPARE create_group_order_table FROM @create_group_order_table;
|
||||
EXECUTE create_group_order_table;
|
||||
|
||||
SET @create_group_team_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_group.`group_team`
|
||||
'INSERT INTO tmerclub_group.`group_team`
|
||||
(SELECT * FROM group_team_', i, ")"
|
||||
);
|
||||
PREPARE create_group_team_table FROM @create_group_team_table;
|
||||
@ -67,7 +67,7 @@ END//
|
||||
CALL createTable()//
|
||||
DELIMITER ;
|
||||
|
||||
USE mall4cloud_group_1;
|
||||
USE tmerclub_group_1;
|
||||
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS createTable//
|
||||
@ -77,14 +77,14 @@ BEGIN
|
||||
SET i = 0;
|
||||
WHILE i<64 DO
|
||||
SET @create_group_order_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_group.`group_order`
|
||||
'INSERT INTO tmerclub_group.`group_order`
|
||||
(SELECT * FROM group_order_', i, ")"
|
||||
);
|
||||
PREPARE create_group_order_table FROM @create_group_order_table;
|
||||
EXECUTE create_group_order_table;
|
||||
|
||||
SET @create_group_team_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_group.`group_team`
|
||||
'INSERT INTO tmerclub_group.`group_team`
|
||||
(SELECT * FROM group_team_', i, ")"
|
||||
);
|
||||
PREPARE create_group_team_table FROM @create_group_team_table;
|
||||
@ -96,7 +96,7 @@ END//
|
||||
CALL createTable()//
|
||||
DELIMITER ;
|
||||
|
||||
USE mall4cloud_group_2;
|
||||
USE tmerclub_group_2;
|
||||
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS createTable//
|
||||
@ -106,14 +106,14 @@ BEGIN
|
||||
SET i = 0;
|
||||
WHILE i<64 DO
|
||||
SET @create_group_order_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_group.`group_order`
|
||||
'INSERT INTO tmerclub_group.`group_order`
|
||||
(SELECT * FROM group_order_', i, ")"
|
||||
);
|
||||
PREPARE create_group_order_table FROM @create_group_order_table;
|
||||
EXECUTE create_group_order_table;
|
||||
|
||||
SET @create_group_team_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_group.`group_team`
|
||||
'INSERT INTO tmerclub_group.`group_team`
|
||||
(SELECT * FROM group_team_', i, ")"
|
||||
);
|
||||
PREPARE create_group_team_table FROM @create_group_team_table;
|
||||
@ -125,7 +125,7 @@ END//
|
||||
CALL createTable()//
|
||||
DELIMITER ;
|
||||
|
||||
USE mall4cloud_group_3;
|
||||
USE tmerclub_group_3;
|
||||
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS createTable//
|
||||
@ -135,14 +135,14 @@ BEGIN
|
||||
SET i = 0;
|
||||
WHILE i<64 DO
|
||||
SET @create_group_order_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_group.`group_order`
|
||||
'INSERT INTO tmerclub_group.`group_order`
|
||||
(SELECT * FROM group_order_', i, ")"
|
||||
);
|
||||
PREPARE create_group_order_table FROM @create_group_order_table;
|
||||
EXECUTE create_group_order_table;
|
||||
|
||||
SET @create_group_team_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_group.`group_team`
|
||||
'INSERT INTO tmerclub_group.`group_team`
|
||||
(SELECT * FROM group_team_', i, ")"
|
||||
);
|
||||
PREPARE create_group_team_table FROM @create_group_team_table;
|
||||
@ -154,29 +154,29 @@ END//
|
||||
CALL createTable()//
|
||||
DELIMITER ;
|
||||
|
||||
# 3.将nacos中mall4cloud-group.yml的配置清空(sharding相关的配置, 将shardingsphere下的参数全部删除),然后重新配置数据库连接参数,注意检查连接配置,重新发布保存
|
||||
# 3.将nacos中tmerclub-group.yml的配置清空(sharding相关的配置, 将shardingsphere下的参数全部删除),然后重新配置数据库连接参数,注意检查连接配置,重新发布保存
|
||||
# spring:
|
||||
# datasource:
|
||||
# url: jdbc:mysql://${MYSQL_HOST:192.168.193.128}:${MYSQL_PORT:3306}/${MYSQL_DATABASE:mall4cloud_group}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&allowPublicKeyRetrieval=true&useAffectedRows=true
|
||||
# url: jdbc:mysql://${MYSQL_HOST:192.168.193.128}:${MYSQL_PORT:3306}/${MYSQL_DATABASE:tmerclub_group}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&allowPublicKeyRetrieval=true&useAffectedRows=true
|
||||
# username: ${MYSQL_USERNAME:root}
|
||||
# password: ${MYSQL_PASSWORD:hn02le.34lkdLKD}
|
||||
# data:
|
||||
# mongodb:
|
||||
# host: 192.168.193.128
|
||||
# port: 27017
|
||||
# database: mall4cloud
|
||||
# username: mall4cloud
|
||||
# password: mall4cloud
|
||||
# authentication-database: mall4cloud
|
||||
# database: tmerclub
|
||||
# username: tmerclub
|
||||
# password: tmerclub
|
||||
# authentication-database: tmerclub
|
||||
|
||||
|
||||
# 4.重启group的java服务,因为将分表分库的配置删除了,需要重启更新配置
|
||||
|
||||
# 5.启用定时任务initGroupToMongo,这个定时任务只对2023-11-20更新前将group_order和group_team存入mysql之后,将数据搬迁到mongodb
|
||||
# 该定时任务正常执行*成功*一次后(数据已经完全搬迁到mongodb)就可以置为停止或删除
|
||||
# 随后可以将mysql中分库(即mall4cloud_group_0 -> 3)的内容以及总库的group_order和group_team删除
|
||||
# 随后可以将mysql中分库(即tmerclub_group_0 -> 3)的内容以及总库的group_order和group_team删除
|
||||
# 并且可以将GroupOrderMapper、GroupTeamMapper以及相关定时任务代码从代码中删去
|
||||
USE `mall4cloud_job`;
|
||||
USE `tmerclub_job`;
|
||||
insert into `xxl_job_info`(`job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`,
|
||||
`schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`,
|
||||
`executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`,
|
||||
@ -188,7 +188,7 @@ values (3, '初始化原有拼团数据库记录至mongodb', '2023-11-06 10:07:3
|
||||
|
||||
|
||||
# 移除授权标识唯一索引
|
||||
USE `mall4cloud_auth`;
|
||||
USE `tmerclub_auth`;
|
||||
ALTER TABLE `menu_permission`
|
||||
DROP INDEX `uk_permission`;
|
||||
|
||||
@ -439,12 +439,12 @@ insert into `menu_permission`(`menu_permission_id`,`create_time`,`update_time`,
|
||||
(322, '2021-08-25 10:22:54', '2023-03-24 16:29:06', 363, 2, 'distribution:distributionUserWallet:update', '修改分销钱包', '/p/distribution_user_wallet', 3),
|
||||
(323, '2021-08-25 10:25:14', '2023-03-24 16:29:07', 363, 2, 'distribution:distributionWithdrawCash:updateToSuccess', '设为已提现', '/p/distribution_withdraw_cash/to_success', 3),
|
||||
(324, '2021-08-25 10:35:39', '2023-03-24 16:32:38', 359, 2, 'distribution:auditing:update', '审核', '/p/distribution_auditing', 3),
|
||||
(325, '2021-08-25 11:01:52', '2022-01-24 17:14:17', 364, 1, 'marketing:distributionSpu:save', '新建分销商品', '/mall4cloud_distribution/m/distribution_spu', 2),
|
||||
(326, '2021-08-25 11:03:40', '2022-01-24 17:14:04', 364, 1, 'marketing:distributionSpu:edit', '更新分销商品', '/mall4cloud_distribution/m/distribution_spu', 3),
|
||||
(327, '2021-08-25 11:04:38', '2022-01-24 17:13:43', 364, 1, 'marketing:distributionSpu:putShelf', '上架分销商品', '/mall4cloud_distribution/m/distribution_spu/update_state', 3),
|
||||
(328, '2021-08-25 11:05:11', '2022-01-24 17:13:34', 364, 1, 'marketing:distributionSpu:offShelf', '下架分销商品', '/mall4cloud_distribution/m/distribution_spu/update_state', 3),
|
||||
(329, '2021-08-25 11:06:02', '2022-01-24 17:13:25', 364, 1, 'marketing:distributionSpu:applyOnline', '申请上线分销商品', '/mall4cloud_distribution/m/distribution_spu/audit_apply', 3),
|
||||
(330, '2021-08-25 11:08:25', '2022-01-24 17:13:16', 364, 1, 'marketing:distributionSpu:delete', '删除分销商品', '/mall4cloud_distribution/m/distribution_spu', 4),
|
||||
(325, '2021-08-25 11:01:52', '2022-01-24 17:14:17', 364, 1, 'marketing:distributionSpu:save', '新建分销商品', '/tmerclub_distribution/m/distribution_spu', 2),
|
||||
(326, '2021-08-25 11:03:40', '2022-01-24 17:14:04', 364, 1, 'marketing:distributionSpu:edit', '更新分销商品', '/tmerclub_distribution/m/distribution_spu', 3),
|
||||
(327, '2021-08-25 11:04:38', '2022-01-24 17:13:43', 364, 1, 'marketing:distributionSpu:putShelf', '上架分销商品', '/tmerclub_distribution/m/distribution_spu/update_state', 3),
|
||||
(328, '2021-08-25 11:05:11', '2022-01-24 17:13:34', 364, 1, 'marketing:distributionSpu:offShelf', '下架分销商品', '/tmerclub_distribution/m/distribution_spu/update_state', 3),
|
||||
(329, '2021-08-25 11:06:02', '2022-01-24 17:13:25', 364, 1, 'marketing:distributionSpu:applyOnline', '申请上线分销商品', '/tmerclub_distribution/m/distribution_spu/audit_apply', 3),
|
||||
(330, '2021-08-25 11:08:25', '2022-01-24 17:13:16', 364, 1, 'marketing:distributionSpu:delete', '删除分销商品', '/tmerclub_distribution/m/distribution_spu', 4),
|
||||
(334, '2021-08-19 13:29:27', '2023-08-08 14:02:09', 641, 2, 'score:order:info', '查看详情', '/mp/order/order_info/*', 1),
|
||||
(335, '2021-08-19 13:31:02', '2023-08-08 14:02:24', 641, 2, 'score:order:delivery', '发货', '/mp/order/delivery', 2),
|
||||
(336, '2021-08-19 13:31:38', '2023-08-08 14:02:40', 641, 2, 'score:order:logistics', '修改物流', '/mp/order_delivery/update', 3),
|
||||
@ -599,9 +599,9 @@ insert into `menu_permission`(`menu_permission_id`,`create_time`,`update_time`,
|
||||
(505, '2023-02-09 16:45:57', '2023-04-03 17:41:02', 600, 2, 'delivery:station:offline', '门店下线', '/p/station/offline', 2),
|
||||
(506, '2023-03-07 14:08:54', '2023-03-07 14:08:54', 148, 1, 'order:virtual:update', '核销', '/m/order_virtual_info/order_write_off_by_order_id', 3),
|
||||
(507, '2023-03-07 14:07:47', '2023-03-07 14:07:47', 148, 1, 'admin:station:orderItemsDelivery', '提货', '/m/order_self_station/change_status_and_order_station', 3),
|
||||
(508, '2023-04-03 15:03:43', '2023-04-03 15:03:43', 503, 3, 'shop:shopCategory:save', '新增签约类目', '/mall4cloud_product/s/apply_supplier/category/add_signing_category', 2),
|
||||
(509, '2023-04-03 15:07:50', '2023-07-18 09:32:57', 503, 3, 'shop:shopBrand:save', '新增签约品牌', '/mall4cloud_product/s/apply_supplier/brand/add_signing_brand', 2),
|
||||
(511, '2023-04-03 15:59:20', '2023-04-03 16:00:48', 175, 2, 'product:spu:view', '详情', '/mall4cloud_product/mp/spu', 1),
|
||||
(508, '2023-04-03 15:03:43', '2023-04-03 15:03:43', 503, 3, 'shop:shopCategory:save', '新增签约类目', '/tmerclub_product/s/apply_supplier/category/add_signing_category', 2),
|
||||
(509, '2023-04-03 15:07:50', '2023-07-18 09:32:57', 503, 3, 'shop:shopBrand:save', '新增签约品牌', '/tmerclub_product/s/apply_supplier/brand/add_signing_brand', 2),
|
||||
(511, '2023-04-03 15:59:20', '2023-04-03 16:00:48', 175, 2, 'product:spu:view', '详情', '/tmerclub_product/mp/spu', 1),
|
||||
(512, '2023-04-03 16:10:16', '2023-11-14 15:31:33', 530, 2, 'platform:shopRenovation:viewPC', '查看', '/mp/shop_renovation', 1),
|
||||
(513, '2023-04-03 15:41:19', '2023-04-03 15:41:27', 430, 1, 'inventory:purchaseOrder:putStorage', '入库', '/m/purchase/order/inbound', 3),
|
||||
(514, '2023-04-03 15:50:03', '2023-04-03 15:50:40', 430, 1, 'inventory:purchaseOrder:delete', '作废', '/m/purchase/order/nullify', 4),
|
||||
@ -1102,7 +1102,7 @@ insert into `menu_permission`(`menu_permission_id`,`create_time`,`update_time`,
|
||||
(1037, '2023-11-15 15:22:06', '2023-11-15 15:22:06', 271, 1, 'shop:allinpayCompany:bindCompanyAccount', '企业会员绑定对公户(通联支付)', '/m/apply_shop/allinpay/company/bind_company_account', 2),
|
||||
(1038, '2023-11-15 15:20:08', '2023-11-15 15:20:08', 271, 1, 'shop:allinpayCompany:unbindBankCard', '解绑银行卡(通联支付)', '/m/apply_shop/allinpay/company/unbind_bank_card', 3),
|
||||
(1039, '2023-11-15 15:19:00', '2023-11-15 15:19:00', 271, 1, 'shop:allinpayCompany:applyBindBankCard', '请求绑定银行卡-法人(通联支付)', '/m/apply_shop/allinpay/company/apply_bind_bank_card', 2),
|
||||
(1040, '2023-11-15 15:16:39', '2023-11-15 15:16:39', 271, 1, 'shop:allinpayCompany:unbindPhone', '解绑手机号(通联支付)', '/mall4cloud_payment/m/apply_shop/allinpay/company/unbind_phone', 3),
|
||||
(1040, '2023-11-15 15:16:39', '2023-11-15 15:16:39', 271, 1, 'shop:allinpayCompany:unbindPhone', '解绑手机号(通联支付)', '/tmerclub_payment/m/apply_shop/allinpay/company/unbind_phone', 3),
|
||||
(1041, '2023-11-15 15:15:39', '2023-11-15 15:15:39', 271, 1, 'shop:allinpayCompany:bindPhone', '绑定手机号(通联支付)', '/m/apply_shop/allinpay/company/bind_phone', 2),
|
||||
(1042, '2023-11-15 15:09:21', '2023-11-15 15:17:12', 271, 1, 'shop:allinpayCompany:sendVerificationCode', '发送短信验证码(通联支付)', '/m/apply_shop/allinpay/company/send_verification_code', 2),
|
||||
(1043, '2023-11-15 15:00:31', '2023-11-15 15:00:31', 148, 1, 'shop:allinpayCompany:getCompanyInfo', '获取企业信息', '/m/apply_shop/allinpay/company/get_company_info', 1),
|
||||
|
@ -1,11 +1,11 @@
|
||||
USE `mall4cloud_admin`;
|
||||
USE `tmerclub_admin`;
|
||||
|
||||
# 新增文件上传配置,需要在后台重新配置文件上传
|
||||
INSERT INTO `sys_config`(`param_key`, `param_value`, `remark`)
|
||||
VALUES
|
||||
('UPLOAD_FILE_CONFIG', '{\"storageType\":\"1\", \"endPoint\":\"\", \"accessKey\":\"\", \"secretKey\":\"\", \"bucketName\":\"\"}', '文件上传配置');
|
||||
|
||||
USE `mall4cloud_auth`;
|
||||
USE `tmerclub_auth`;
|
||||
# 移除首页接口菜单资源授权,执行完sql需要手动移除redis缓存 查找key 'permission:uri_permissions:'
|
||||
DELETE FROM menu_permission WHERE uri IN (
|
||||
'/p/order_statistics/list_shop_ranking_by_refund_count',
|
||||
@ -15,7 +15,7 @@ DELETE FROM menu_permission WHERE uri IN (
|
||||
'/p/order_statistics/get_detail_by_hour');
|
||||
|
||||
# 删除旧的微信小程序发货配置
|
||||
USE `mall4cloud_admin`;
|
||||
USE `tmerclub_admin`;
|
||||
DELETE FROM sys_config where param_key = 'WECHAT_SHIPPING_CONFIG';
|
||||
# 将发货配置添加到微信小程序参数配置里面
|
||||
UPDATE sys_config set param_value =
|
||||
|
@ -1,21 +1,21 @@
|
||||
# 看注释!!!!!!
|
||||
|
||||
# 将redis中优惠券缓存(mall4cloud_coupon目录下的缓存)删除后执行下列操作
|
||||
# 将redis中优惠券缓存(tmerclub_coupon目录下的缓存)删除后执行下列操作
|
||||
|
||||
# 将nacos中mall4cloud-marketing.yml的配置清空,然后重新配置数据库连接参数,注意检查连接配置,重新发布保存
|
||||
# 将nacos中tmerclub-marketing.yml的配置清空,然后重新配置数据库连接参数,注意检查连接配置,重新发布保存
|
||||
# spring:
|
||||
# datasource:
|
||||
# url: jdbc:mysql://${MYSQL_HOST:192.168.193.128}:${MYSQL_PORT:3306}/${MYSQL_DATABASE:mall4cloud_marketing}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&allowPublicKeyRetrieval=true&useAffectedRows=true
|
||||
# url: jdbc:mysql://${MYSQL_HOST:192.168.193.128}:${MYSQL_PORT:3306}/${MYSQL_DATABASE:tmerclub_marketing}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&allowPublicKeyRetrieval=true&useAffectedRows=true
|
||||
# username: ${MYSQL_USERNAME:root}
|
||||
# password: ${MYSQL_PASSWORD:hn02le.34lkdLKD}
|
||||
# data:
|
||||
# mongodb:
|
||||
# host: 192.168.193.128
|
||||
# port: 27017
|
||||
# database: mall4cloud
|
||||
# username: mall4cloud
|
||||
# password: mall4cloud
|
||||
# authentication-database: mall4cloud
|
||||
# database: tmerclub
|
||||
# username: tmerclub
|
||||
# password: tmerclub
|
||||
# authentication-database: tmerclub
|
||||
# redis:
|
||||
# multi:
|
||||
# enable: true
|
||||
@ -29,7 +29,7 @@
|
||||
# 该定时任务正常执行*成功*一次后(数据已经完全搬迁到mongodb)就可以置为停止或删除
|
||||
# 随后可以将mysql中的coupon_user删除
|
||||
# 并且可以将CouponUserMapper以及相关定时任务(initCouponUserToMongodb)代码从代码中删去
|
||||
USE `mall4cloud_job`;
|
||||
USE `tmerclub_job`;
|
||||
insert into `xxl_job_info`(`job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`,
|
||||
`schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`,
|
||||
`executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`,
|
||||
@ -45,13 +45,13 @@ values (5, '初始化原有领券数据库记录至mongodb', '2023-11-27 10:07:3
|
||||
delete from `xxl_job_info` where `executor_handler` = 'hotCouponStockPlacement';
|
||||
|
||||
# 添加领券id,这里max_id调高是防止与之前的id重复,可以参考现有最高的coupon_user_id来限定该值
|
||||
USE `mall4cloud_marketing`;
|
||||
USE `tmerclub_marketing`;
|
||||
insert into `leaf_alloc`(`biz_tag`,`max_id`,`step`,`description`) values
|
||||
('mall4cloud-coupon-user',1000000,1000,'领券记录id');
|
||||
('tmerclub-coupon-user',1000000,1000,'领券记录id');
|
||||
|
||||
|
||||
# 订单支付记录添加字段
|
||||
USE mall4cloud_payment_0;
|
||||
USE tmerclub_payment_0;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updatePayInfoColumn //
|
||||
CREATE PROCEDURE updatePayInfoColumn()
|
||||
@ -69,7 +69,7 @@ CALL updatePayInfoColumn() //
|
||||
DROP PROCEDURE updatePayInfoColumn //
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_payment_1;
|
||||
USE tmerclub_payment_1;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updatePayInfoColumn //
|
||||
CREATE PROCEDURE updatePayInfoColumn()
|
||||
@ -87,7 +87,7 @@ CALL updatePayInfoColumn() //
|
||||
DROP PROCEDURE updatePayInfoColumn //
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_payment_2;
|
||||
USE tmerclub_payment_2;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updatePayInfoColumn //
|
||||
CREATE PROCEDURE updatePayInfoColumn()
|
||||
@ -105,7 +105,7 @@ CALL updatePayInfoColumn() //
|
||||
DROP PROCEDURE updatePayInfoColumn //
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_payment_3;
|
||||
USE tmerclub_payment_3;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updatePayInfoColumn //
|
||||
CREATE PROCEDURE updatePayInfoColumn()
|
||||
@ -124,7 +124,7 @@ DROP PROCEDURE updatePayInfoColumn //
|
||||
DELIMITER;
|
||||
|
||||
|
||||
USE mall4cloud_payment_4;
|
||||
USE tmerclub_payment_4;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updatePayInfoColumn //
|
||||
CREATE PROCEDURE updatePayInfoColumn()
|
||||
@ -142,7 +142,7 @@ CALL updatePayInfoColumn() //
|
||||
DROP PROCEDURE updatePayInfoColumn //
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_payment_5;
|
||||
USE tmerclub_payment_5;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updatePayInfoColumn //
|
||||
CREATE PROCEDURE updatePayInfoColumn()
|
||||
@ -160,7 +160,7 @@ CALL updatePayInfoColumn() //
|
||||
DROP PROCEDURE updatePayInfoColumn //
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_payment_6;
|
||||
USE tmerclub_payment_6;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updatePayInfoColumn //
|
||||
CREATE PROCEDURE updatePayInfoColumn()
|
||||
@ -178,7 +178,7 @@ CALL updatePayInfoColumn() //
|
||||
DROP PROCEDURE updatePayInfoColumn //
|
||||
DELIMITER;
|
||||
|
||||
USE mall4cloud_payment_7;
|
||||
USE tmerclub_payment_7;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updatePayInfoColumn //
|
||||
CREATE PROCEDURE updatePayInfoColumn()
|
||||
|
@ -7,19 +7,19 @@
|
||||
# filter: -exception
|
||||
|
||||
# 方案二. 执行以下sql,然后重新保存nacos中application.yml
|
||||
use mall4cloud_nacos;
|
||||
use tmerclub_nacos;
|
||||
update config_info set content = REPLACE(content, 'provider:\n token: true\n', 'provider:\n token: true\n filter: -exception\n') where data_id = 'application.yml';
|
||||
|
||||
|
||||
# 满减满折菜单名称更新为限时折扣
|
||||
USE mall4cloud_auth;
|
||||
USE tmerclub_auth;
|
||||
UPDATE menu SET name = '限时折扣' , title = '限时折扣' WHERE menu_id = 154;
|
||||
UPDATE menu SET name = '限时折扣' , title = '限时折扣' WHERE menu_id = 177;
|
||||
UPDATE menu SET title = '查看限时折扣' WHERE menu_id = 270;
|
||||
UPDATE menu SET title = '限时折扣编辑' WHERE menu_id = 268;
|
||||
|
||||
# 修改平台菜单
|
||||
USE `mall4cloud_auth`;
|
||||
USE `tmerclub_auth`;
|
||||
|
||||
# 删除原来的 轮播图 和 分组管理 菜单
|
||||
delete from `menu` where menu_id in (257, 264, 265);
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -76,10 +76,10 @@ db.flow_user_retain.ensureIndex({"retainType": 1}, {"name": "retain_type_idx"});
|
||||
|
||||
|
||||
# 1 修改canal配置
|
||||
# 修改canal/example/instance.properties文件,在参数"canal.instance.filter.regex"中补充上"mall4cloud_order_[0-9]+.allot_order_[0-9]+:*",然后重启
|
||||
# 修改canal/example/instance.properties文件,在参数"canal.instance.filter.regex"中补充上"tmerclub_order_[0-9]+.allot_order_[0-9]+:*",然后重启
|
||||
|
||||
|
||||
USE `mall4cloud_product`;
|
||||
USE `tmerclub_product`;
|
||||
# 商品组合商品相关字段
|
||||
ALTER TABLE `spu`
|
||||
MODIFY `spu_mold` tinyint NOT NULL COMMENT '商品类别 0.实物商品 1.虚拟商品 2.组合商品',
|
||||
@ -162,10 +162,10 @@ CREATE TABLE `warehouse_area` (
|
||||
|
||||
|
||||
INSERT INTO `leaf_alloc`(`biz_tag`, `max_id`, `step`, `update_time`, `description`) VALUES
|
||||
('mall4cloud-stock-point', 1000, 1000, '2023-12-15 17:28:15', '库存点id');
|
||||
('tmerclub-stock-point', 1000, 1000, '2023-12-15 17:28:15', '库存点id');
|
||||
|
||||
# 给旧门店数据创建一个门店仓库
|
||||
INSERT INTO `mall4cloud_product`.`warehouse` ( `warehouse_id`, `shop_id`, `sys_type`, `type`, `warehouse_name`, `phone`, `province_id`, `province`, `city_id`, `city`, `area_id`, `area`, `address` ) (
|
||||
INSERT INTO `tmerclub_product`.`warehouse` ( `warehouse_id`, `shop_id`, `sys_type`, `type`, `warehouse_name`, `phone`, `province_id`, `province`, `city_id`, `city`, `area_id`, `area`, `address` ) (
|
||||
SELECT
|
||||
station_id warehouse_id,
|
||||
station_id shop_id,
|
||||
@ -181,16 +181,16 @@ INSERT INTO `mall4cloud_product`.`warehouse` ( `warehouse_id`, `shop_id`, `sys_t
|
||||
area,
|
||||
addr address
|
||||
FROM
|
||||
`mall4cloud_order`.`station`);
|
||||
`tmerclub_order`.`station`);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
USE mall4cloud_order;
|
||||
USE tmerclub_order;
|
||||
|
||||
INSERT INTO `leaf_alloc`(`biz_tag`, `max_id`, `step`, `update_time`, `description`) VALUES
|
||||
('mall4cloud-stock-point', 1000, 1000, '2023-12-15 17:28:15', '库存点id');
|
||||
('tmerclub-stock-point', 1000, 1000, '2023-12-15 17:28:15', '库存点id');
|
||||
|
||||
# 所有门店添加库存模式,并统一为共享总部库存
|
||||
ALTER TABLE `station`
|
||||
@ -210,8 +210,8 @@ ALTER TABLE `same_city`
|
||||
ADD COLUMN `shop_lng` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '店铺所在经度' AFTER `detail_address`,
|
||||
ADD COLUMN `shop_lat` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '店铺所在维度' AFTER `shop_lng`;
|
||||
|
||||
UPDATE `mall4cloud_order`.`same_city` sc
|
||||
INNER JOIN ( SELECT shop_lng, shop_lat, province_id, province, city_id, city, area_id, area, detail_address, shop_id FROM `mall4cloud_admin`.`shop_detail` ) AS sd ON sc.shop_id = sd.shop_id
|
||||
UPDATE `tmerclub_order`.`same_city` sc
|
||||
INNER JOIN ( SELECT shop_lng, shop_lat, province_id, province, city_id, city, area_id, area, detail_address, shop_id FROM `tmerclub_admin`.`shop_detail` ) AS sd ON sc.shop_id = sd.shop_id
|
||||
SET sc.shop_lng = sd.shop_lng,
|
||||
sc.shop_lat = sd.shop_lat,
|
||||
sc.province_id = sd.province_id,
|
||||
@ -225,8 +225,8 @@ UPDATE `mall4cloud_order`.`same_city` sc
|
||||
|
||||
|
||||
|
||||
# 新增组合商品订单相关字段,此处为了方便查看不重复写代码了,实际需要更改mall4cloud_order_0-7的8个库的分库分表!!!!!
|
||||
USE mall4cloud_order_0;
|
||||
# 新增组合商品订单相关字段,此处为了方便查看不重复写代码了,实际需要更改tmerclub_order_0-7的8个库的分库分表!!!!!
|
||||
USE tmerclub_order_0;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS updateOrderInfo //
|
||||
CREATE PROCEDURE updateOrderInfo()
|
||||
@ -307,7 +307,7 @@ DROP PROCEDURE updateOrderInfo //
|
||||
|
||||
|
||||
# 添加仓库菜单
|
||||
USE `mall4cloud_auth`;
|
||||
USE `tmerclub_auth`;
|
||||
|
||||
UPDATE `menu` SET `parent_id` = 424, `biz_type` = 1, `permission` = NULL, `path` = '/manage', `component` = 'inventory', `redirect` = NULL, `always_show` = NULL, `hidden` = 0, `name` = '库存管理', `title` = '库存管理', `icon` = '', `seq` = 1 WHERE `menu_id` = 426;
|
||||
UPDATE `menu` SET `parent_id` = 424, `biz_type` = 1, `permission` = NULL, `path` = '/stock', `component` = 'stock', `redirect` = NULL, `always_show` = NULL, `hidden` = 0, `name` = '库存盘点', `title` = '库存盘点', `icon` = '', `seq` = 4 WHERE `menu_id` = 575;
|
||||
@ -338,7 +338,7 @@ INSERT INTO `menu`(`menu_id`, `create_time`, `update_time`, `parent_id`, `biz_ty
|
||||
(697, '2023-12-04 16:46:12', '2023-12-04 16:50:39', 683, 3, NULL, 'transfer-order-create', 'stock/warehouse/transfer-order-create/index', NULL, NULL, 1, '新建调拨订单', '新建调拨订单', '', NULL, NULL, NULL, NULL, 0);
|
||||
|
||||
|
||||
USE `mall4cloud_seckill`;
|
||||
USE `tmerclub_seckill`;
|
||||
|
||||
ALTER TABLE `seckill`
|
||||
ADD COLUMN `replenish` int DEFAULT NULL COMMENT '补充库存 0不补充 1补充';
|
||||
@ -361,7 +361,7 @@ CREATE TABLE `seckill_stock_point_sku` (
|
||||
|
||||
|
||||
|
||||
USE `mall4cloud_admin`;
|
||||
USE `tmerclub_admin`;
|
||||
ALTER TABLE `shop_detail`
|
||||
DROP COLUMN `email`,
|
||||
DROP COLUMN `detail_address`,
|
||||
@ -386,7 +386,7 @@ DROP COLUMN `area`;
|
||||
|
||||
|
||||
# 将原sku库存初始化为区域库存
|
||||
USE mall4cloud_job;
|
||||
USE tmerclub_job;
|
||||
# 执行sql后,到xxl-job的控制台页面执行这两个定时任务,分别在商品和秒杀模块下,执行后即可删除,尽量不要重复执行
|
||||
insert into `xxl_job_info` (`job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) values
|
||||
(4,'初始化秒杀区域库存','2023-07-10 09:51:23','2023-07-10 09:52:03','admin','','CRON','0 * * * * ?','DO_NOTHING','FIRST','initPointSeckillStock','','SERIAL_EXECUTION','0','0','BEAN','','GLUE代码初始化','2023-07-10 09:51:23','','0','0','0'),
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
||||
USE mall4cloud_user;
|
||||
USE tmerclub_user;
|
||||
DROP TABLE IF EXISTS `cost_per_popup`;
|
||||
CREATE TABLE `cost_per_popup` (
|
||||
`popup_id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '弹窗广告id',
|
||||
|
@ -1,8 +1,8 @@
|
||||
# 本sql文件无法直接执行,文件内容较多,建议在IntelliJ IDEA开发工具打开,右键选择 Folding-->Collapse All 方便查看并且复制
|
||||
|
||||
# 更换采购订单语言表,订单项语言表主键
|
||||
# 为方便查看,这里只采用mall4cloud_order_0库作为演示,实际需要更改mall4cloud_order_0-7的8个库的分库分表!!!!!
|
||||
USE mall4cloud_order_0;
|
||||
# 为方便查看,这里只采用tmerclub_order_0库作为演示,实际需要更改tmerclub_order_0-7的8个库的分库分表!!!!!
|
||||
USE tmerclub_order_0;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS createTable//
|
||||
CREATE PROCEDURE createTable()
|
||||
@ -49,7 +49,7 @@ DELIMITER ;
|
||||
# 这里的表结构最好将自己数据库中的0库0表中的数据结构复制过来,这里使用安装doc文档中的字段创建表结构
|
||||
# 如果修改过表结构或者sql执行时字段出现位置不一致,会产生不可预计的sql相关bug,所以建议用自己的表结构
|
||||
# 特别注意order_invoice和order_refund这两个表结构
|
||||
USE mall4cloud_order;
|
||||
USE tmerclub_order;
|
||||
DROP TABLE IF EXISTS `allot_order`;
|
||||
CREATE TABLE `allot_order` (
|
||||
`allot_order_id` bigint NOT NULL COMMENT '调拨订单id',
|
||||
@ -594,7 +594,7 @@ CREATE TABLE `purchase_order_lang` (
|
||||
PRIMARY KEY (`purchase_order_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='采购订单-国际化';
|
||||
|
||||
USE mall4cloud_payment;
|
||||
USE tmerclub_payment;
|
||||
DROP TABLE IF EXISTS `pay_info`;
|
||||
CREATE TABLE `pay_info` (
|
||||
`pay_id` bigint unsigned NOT NULL COMMENT '支付单号',
|
||||
@ -644,9 +644,9 @@ CREATE TABLE `refund_info` (
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='退款信息';
|
||||
|
||||
# ============================== 2.统计表数据到总表==============================
|
||||
# 为方便查看,2中都只采用mall4cloud_order_0库作为演示,实际需要更改mall4cloud_order_0-7的8个库的分库分表!!!!!
|
||||
# mall4cloud_payment_0库作为演示,实际需要更改mall4cloud_payment_0-7的8个库的分库分表!!!!!
|
||||
USE mall4cloud_order_0;
|
||||
# 为方便查看,2中都只采用tmerclub_order_0库作为演示,实际需要更改tmerclub_order_0-7的8个库的分库分表!!!!!
|
||||
# tmerclub_payment_0库作为演示,实际需要更改tmerclub_payment_0-7的8个库的分库分表!!!!!
|
||||
USE tmerclub_order_0;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS createTable//
|
||||
CREATE PROCEDURE createTable()
|
||||
@ -656,154 +656,154 @@ BEGIN
|
||||
WHILE i<64 DO
|
||||
# 汇总到总表
|
||||
SET @create_allot_order_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`allot_order`
|
||||
'INSERT INTO tmerclub_order.`allot_order`
|
||||
(SELECT * FROM allot_order_', i, ')'
|
||||
);
|
||||
PREPARE create_allot_order_table FROM @create_allot_order_table;
|
||||
EXECUTE create_allot_order_table;
|
||||
|
||||
SET @create_allot_order_item_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`allot_order_item`
|
||||
'INSERT INTO tmerclub_order.`allot_order_item`
|
||||
(SELECT * FROM allot_order_item_', i, ')'
|
||||
);
|
||||
PREPARE create_allot_order_item_table FROM @create_allot_order_item_table;
|
||||
EXECUTE create_allot_order_item_table;
|
||||
|
||||
SET @create_delivery_order_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`delivery_order` (`create_time`,`update_time`,`order_id`,`user_id`,`delivery_company_id`,`delivery_no`,`consignee_name`,`consignee_mobile`,`status`,`all_count`,`delete_time`,`delivery_type`)
|
||||
'INSERT INTO tmerclub_order.`delivery_order` (`create_time`,`update_time`,`order_id`,`user_id`,`delivery_company_id`,`delivery_no`,`consignee_name`,`consignee_mobile`,`status`,`all_count`,`delete_time`,`delivery_type`)
|
||||
(SELECT `create_time`,`update_time`,`order_id`,`user_id`,`delivery_company_id`,`delivery_no`,`consignee_name`,`consignee_mobile`,`status`,`all_count`,`delete_time`,`delivery_type` FROM delivery_order_', i, ')'
|
||||
);
|
||||
PREPARE create_delivery_order_table FROM @create_delivery_order_table;
|
||||
EXECUTE create_delivery_order_table;
|
||||
|
||||
SET @create_delivery_order_item_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`delivery_order_item` (`create_time`,`update_time`,`delivery_order_id`,`img_url`,`spu_name`,`count`,`supplier_img_url`,`supplier_spu_name`)
|
||||
'INSERT INTO tmerclub_order.`delivery_order_item` (`create_time`,`update_time`,`delivery_order_id`,`img_url`,`spu_name`,`count`,`supplier_img_url`,`supplier_spu_name`)
|
||||
(SELECT `create_time`,`update_time`,`delivery_order_id`,`img_url`,`spu_name`,`count`,`supplier_img_url`,`supplier_spu_name` FROM delivery_order_item_', i, ')'
|
||||
);
|
||||
PREPARE create_delivery_order_item_table FROM @create_delivery_order_item_table;
|
||||
EXECUTE create_delivery_order_item_table;
|
||||
|
||||
SET @create_order_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`order`
|
||||
'INSERT INTO tmerclub_order.`order`
|
||||
(SELECT * FROM order_', i, ')'
|
||||
);
|
||||
PREPARE create_order_table FROM @create_order_table;
|
||||
EXECUTE create_order_table;
|
||||
|
||||
SET @create_order_addr_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`order_addr`
|
||||
'INSERT INTO tmerclub_order.`order_addr`
|
||||
(SELECT * FROM order_addr_', i, ')'
|
||||
);
|
||||
PREPARE create_order_addr_table FROM @create_order_addr_table;
|
||||
EXECUTE create_order_addr_table;
|
||||
|
||||
SET @create_order_invoice_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`order_invoice`
|
||||
'INSERT INTO tmerclub_order.`order_invoice`
|
||||
(SELECT * FROM order_invoice_', i, ')'
|
||||
);
|
||||
PREPARE create_order_invoice_table FROM @create_order_invoice_table;
|
||||
EXECUTE create_order_invoice_table;
|
||||
|
||||
SET @create_order_item_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`order_item`
|
||||
'INSERT INTO tmerclub_order.`order_item`
|
||||
(SELECT * FROM order_item_', i, ')'
|
||||
);
|
||||
PREPARE create_order_item_table FROM @create_order_item_table;
|
||||
EXECUTE create_order_item_table;
|
||||
|
||||
SET @create_order_item_lang_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`order_item_lang`
|
||||
'INSERT INTO tmerclub_order.`order_item_lang`
|
||||
(SELECT * FROM order_item_lang_', i, ')'
|
||||
);
|
||||
PREPARE create_order_item_lang_table FROM @create_order_item_lang_table;
|
||||
EXECUTE create_order_item_lang_table;
|
||||
|
||||
SET @create_order_pre_sale_info_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`order_pre_sale_info`
|
||||
'INSERT INTO tmerclub_order.`order_pre_sale_info`
|
||||
(SELECT * FROM order_pre_sale_info_', i, ')'
|
||||
);
|
||||
PREPARE create_order_pre_sale_info_table FROM @create_order_pre_sale_info_table;
|
||||
EXECUTE create_order_pre_sale_info_table;
|
||||
|
||||
SET @create_order_refund_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`order_refund`
|
||||
'INSERT INTO tmerclub_order.`order_refund`
|
||||
(SELECT * FROM order_refund_', i, ')'
|
||||
);
|
||||
PREPARE create_order_refund_table FROM @create_order_refund_table;
|
||||
EXECUTE create_order_refund_table;
|
||||
|
||||
SET @create_order_refund_addr_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`order_refund_addr` (`create_time`,`update_time`,`shop_id`,`refund_id`,`user_id`,`delivery_company_id`,`delivery_name`,`delivery_no`,`consignee_name`,`consignee_mobile`,`consignee_telephone`,`consignee_post_code`,`consignee_addr`,`sender_mobile`,`sender_remarks`,`imgs`)
|
||||
'INSERT INTO tmerclub_order.`order_refund_addr` (`create_time`,`update_time`,`shop_id`,`refund_id`,`user_id`,`delivery_company_id`,`delivery_name`,`delivery_no`,`consignee_name`,`consignee_mobile`,`consignee_telephone`,`consignee_post_code`,`consignee_addr`,`sender_mobile`,`sender_remarks`,`imgs`)
|
||||
(SELECT `create_time`,`update_time`,`shop_id`,`refund_id`,`user_id`,`delivery_company_id`,`delivery_name`,`delivery_no`,`consignee_name`,`consignee_mobile`,`consignee_telephone`,`consignee_post_code`,`consignee_addr`,`sender_mobile`,`sender_remarks`,`imgs` FROM order_refund_addr_', i, ')'
|
||||
);
|
||||
PREPARE create_order_refund_addr_table FROM @create_order_refund_addr_table;
|
||||
EXECUTE create_order_refund_addr_table;
|
||||
|
||||
SET @create_order_refund_intervention_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`order_refund_intervention` (`refund_id`,`create_time`,`update_time`,`biz_id`,`sys_type`,`voucher_desc`,`img_urls`)
|
||||
'INSERT INTO tmerclub_order.`order_refund_intervention` (`refund_id`,`create_time`,`update_time`,`biz_id`,`sys_type`,`voucher_desc`,`img_urls`)
|
||||
(SELECT `refund_id`,`create_time`,`update_time`,`biz_id`,`sys_type`,`voucher_desc`,`img_urls` FROM order_refund_intervention_', i, ')'
|
||||
);
|
||||
PREPARE create_order_refund_intervention_table FROM @create_order_refund_intervention_table;
|
||||
EXECUTE create_order_refund_intervention_table;
|
||||
|
||||
SET @create_order_refund_settlement_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`order_refund_settlement` (`create_time`,`update_time`,`pay_id`,`order_id`,`refund_id`,`user_id`,`biz_refund_no`,`pay_type`,`refund_status`,`refund_amount`,`order_total_amount`,`version`)
|
||||
'INSERT INTO tmerclub_order.`order_refund_settlement` (`create_time`,`update_time`,`pay_id`,`order_id`,`refund_id`,`user_id`,`biz_refund_no`,`pay_type`,`refund_status`,`refund_amount`,`order_total_amount`,`version`)
|
||||
(SELECT `create_time`,`update_time`,`pay_id`,`order_id`,`refund_id`,`user_id`,`biz_refund_no`,`pay_type`,`refund_status`,`refund_amount`,`order_total_amount`,`version` FROM order_refund_settlement_', i, ')'
|
||||
);
|
||||
PREPARE create_order_refund_settlement_table FROM @create_order_refund_settlement_table;
|
||||
EXECUTE create_order_refund_settlement_table;
|
||||
|
||||
SET @create_order_self_station_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`order_self_station`
|
||||
'INSERT INTO tmerclub_order.`order_self_station`
|
||||
(SELECT * FROM order_self_station_', i, ')'
|
||||
);
|
||||
PREPARE create_order_self_station_table FROM @create_order_self_station_table;
|
||||
EXECUTE create_order_self_station_table;
|
||||
|
||||
SET @create_order_settlement_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`order_settlement`
|
||||
'INSERT INTO tmerclub_order.`order_settlement`
|
||||
(SELECT * FROM order_settlement_', i, ')'
|
||||
);
|
||||
PREPARE create_order_settlement_table FROM @create_order_settlement_table;
|
||||
EXECUTE create_order_settlement_table;
|
||||
|
||||
SET @create_order_virtual_info_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`order_virtual_info`
|
||||
'INSERT INTO tmerclub_order.`order_virtual_info`
|
||||
(SELECT * FROM order_virtual_info_', i, ')'
|
||||
);
|
||||
PREPARE create_order_virtual_info_table FROM @create_order_virtual_info_table;
|
||||
EXECUTE create_order_virtual_info_table;
|
||||
|
||||
SET @create_purchase_order_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`purchase_order`
|
||||
'INSERT INTO tmerclub_order.`purchase_order`
|
||||
(SELECT * FROM purchase_order_', i, ')'
|
||||
);
|
||||
PREPARE create_purchase_order_table FROM @create_purchase_order_table;
|
||||
EXECUTE create_purchase_order_table;
|
||||
|
||||
SET @create_purchase_order_lang_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`purchase_order_lang`
|
||||
'INSERT INTO tmerclub_order.`purchase_order_lang`
|
||||
(SELECT * FROM purchase_order_lang_', i, ')'
|
||||
);
|
||||
PREPARE create_purchase_order_lang_table FROM @create_purchase_order_lang_table;
|
||||
EXECUTE create_purchase_order_lang_table;
|
||||
|
||||
SET @create_purchase_order_item_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`purchase_order_item`
|
||||
'INSERT INTO tmerclub_order.`purchase_order_item`
|
||||
(SELECT * FROM purchase_order_item_', i, ')'
|
||||
);
|
||||
PREPARE create_purchase_order_item_table FROM @create_purchase_order_item_table;
|
||||
EXECUTE create_purchase_order_item_table;
|
||||
|
||||
SET @create_purchase_order_item_lang_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`purchase_order_item_lang`
|
||||
'INSERT INTO tmerclub_order.`purchase_order_item_lang`
|
||||
(SELECT * FROM purchase_order_item_lang_', i, ')'
|
||||
);
|
||||
PREPARE create_purchase_order_item_lang_table FROM @create_purchase_order_item_lang_table;
|
||||
EXECUTE create_purchase_order_item_lang_table;
|
||||
|
||||
SET @create_purchase_order_addr_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_order.`purchase_order_addr`
|
||||
'INSERT INTO tmerclub_order.`purchase_order_addr`
|
||||
(SELECT * FROM purchase_order_addr_', i, ')'
|
||||
);
|
||||
PREPARE create_purchase_order_addr_table FROM @create_purchase_order_addr_table;
|
||||
@ -815,7 +815,7 @@ END//
|
||||
CALL createTable()//
|
||||
DELIMITER ;
|
||||
|
||||
USE mall4cloud_payment_0;
|
||||
USE tmerclub_payment_0;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS createTable//
|
||||
CREATE PROCEDURE createTable()
|
||||
@ -825,14 +825,14 @@ BEGIN
|
||||
WHILE i<64 DO
|
||||
# 汇总到总表
|
||||
SET @create_pay_info_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_payment.`pay_info`
|
||||
'INSERT INTO tmerclub_payment.`pay_info`
|
||||
(SELECT * FROM pay_info_', i, ')'
|
||||
);
|
||||
PREPARE create_pay_info_table FROM @create_pay_info_table;
|
||||
EXECUTE create_pay_info_table;
|
||||
|
||||
SET @create_refund_info_table = CONCAT(
|
||||
'INSERT INTO mall4cloud_payment.`refund_info`
|
||||
'INSERT INTO tmerclub_payment.`refund_info`
|
||||
(SELECT * FROM refund_info_', i, ')'
|
||||
);
|
||||
PREPARE create_refund_info_table FROM @create_refund_info_table;
|
||||
@ -846,26 +846,26 @@ DELIMITER ;
|
||||
|
||||
# ============================== 3.删除多余分库分表 ==============================
|
||||
# 请确保1-2成功执行,并且所有分表数据成功到总表中再执行
|
||||
DROP DATABASE `mall4cloud_order_0`;
|
||||
DROP DATABASE `mall4cloud_order_1`;
|
||||
DROP DATABASE `mall4cloud_order_2`;
|
||||
DROP DATABASE `mall4cloud_order_3`;
|
||||
DROP DATABASE `mall4cloud_order_4`;
|
||||
DROP DATABASE `mall4cloud_order_5`;
|
||||
DROP DATABASE `mall4cloud_order_6`;
|
||||
DROP DATABASE `mall4cloud_order_7`;
|
||||
DROP DATABASE `tmerclub_order_0`;
|
||||
DROP DATABASE `tmerclub_order_1`;
|
||||
DROP DATABASE `tmerclub_order_2`;
|
||||
DROP DATABASE `tmerclub_order_3`;
|
||||
DROP DATABASE `tmerclub_order_4`;
|
||||
DROP DATABASE `tmerclub_order_5`;
|
||||
DROP DATABASE `tmerclub_order_6`;
|
||||
DROP DATABASE `tmerclub_order_7`;
|
||||
|
||||
DROP DATABASE `mall4cloud_payment_0`;
|
||||
DROP DATABASE `mall4cloud_payment_1`;
|
||||
DROP DATABASE `mall4cloud_payment_2`;
|
||||
DROP DATABASE `mall4cloud_payment_3`;
|
||||
DROP DATABASE `mall4cloud_payment_4`;
|
||||
DROP DATABASE `mall4cloud_payment_5`;
|
||||
DROP DATABASE `mall4cloud_payment_6`;
|
||||
DROP DATABASE `mall4cloud_payment_7`;
|
||||
DROP DATABASE `tmerclub_payment_0`;
|
||||
DROP DATABASE `tmerclub_payment_1`;
|
||||
DROP DATABASE `tmerclub_payment_2`;
|
||||
DROP DATABASE `tmerclub_payment_3`;
|
||||
DROP DATABASE `tmerclub_payment_4`;
|
||||
DROP DATABASE `tmerclub_payment_5`;
|
||||
DROP DATABASE `tmerclub_payment_6`;
|
||||
DROP DATABASE `tmerclub_payment_7`;
|
||||
|
||||
# ============================== 4.创建分表 ==============================
|
||||
USE mall4cloud_order;
|
||||
USE tmerclub_order;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS createTable//
|
||||
CREATE PROCEDURE createTable()
|
||||
@ -1560,7 +1560,7 @@ END//
|
||||
CALL createTable()//
|
||||
DELIMITER ;
|
||||
|
||||
USE mall4cloud_payment;
|
||||
USE tmerclub_payment;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS createTable//
|
||||
CREATE PROCEDURE createTable()
|
||||
@ -1641,7 +1641,7 @@ DELIMITER ;
|
||||
|
||||
|
||||
# ============================== 5.统计数据到各个分表 ==============================
|
||||
USE mall4cloud_order;
|
||||
USE tmerclub_order;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS createTable//
|
||||
CREATE PROCEDURE createTable()
|
||||
@ -1651,154 +1651,154 @@ BEGIN
|
||||
WHILE i<50 DO
|
||||
SET @create_allot_order_table = CONCAT(
|
||||
'INSERT INTO allot_order_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`allot_order` WHERE (SUBSTRING(allot_order_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`allot_order` WHERE (SUBSTRING(allot_order_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_allot_order_table FROM @create_allot_order_table;
|
||||
EXECUTE create_allot_order_table;
|
||||
|
||||
SET @create_allot_order_item_table = CONCAT(
|
||||
'INSERT INTO allot_order_item_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`allot_order_item` WHERE (SUBSTRING(allot_order_item_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`allot_order_item` WHERE (SUBSTRING(allot_order_item_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_allot_order_item_table FROM @create_allot_order_item_table;
|
||||
EXECUTE create_allot_order_item_table;
|
||||
|
||||
SET @create_delivery_order_table = CONCAT(
|
||||
'INSERT INTO delivery_order_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`delivery_order` WHERE (SUBSTRING(delivery_order_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`delivery_order` WHERE (SUBSTRING(delivery_order_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_delivery_order_table FROM @create_delivery_order_table;
|
||||
EXECUTE create_delivery_order_table;
|
||||
|
||||
SET @create_delivery_order_item_table = CONCAT(
|
||||
'INSERT INTO delivery_order_item_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`delivery_order_item` WHERE (SUBSTRING(delivery_order_item_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`delivery_order_item` WHERE (SUBSTRING(delivery_order_item_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_delivery_order_item_table FROM @create_delivery_order_item_table;
|
||||
EXECUTE create_delivery_order_item_table;
|
||||
|
||||
SET @create_order_table = CONCAT(
|
||||
'INSERT INTO order_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`order` WHERE (SUBSTRING(order_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`order` WHERE (SUBSTRING(order_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_order_table FROM @create_order_table;
|
||||
EXECUTE create_order_table;
|
||||
|
||||
SET @create_order_addr_table = CONCAT(
|
||||
'INSERT INTO order_addr_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`order_addr` WHERE (SUBSTRING(order_addr_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`order_addr` WHERE (SUBSTRING(order_addr_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_order_addr_table FROM @create_order_addr_table;
|
||||
EXECUTE create_order_addr_table;
|
||||
|
||||
SET @create_order_invoice_table = CONCAT(
|
||||
'INSERT INTO order_invoice_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`order_invoice` WHERE (SUBSTRING(order_invoice_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`order_invoice` WHERE (SUBSTRING(order_invoice_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_order_invoice_table FROM @create_order_invoice_table;
|
||||
EXECUTE create_order_invoice_table;
|
||||
|
||||
SET @create_order_item_table = CONCAT(
|
||||
'INSERT INTO order_item_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`order_item` WHERE (SUBSTRING(order_item_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`order_item` WHERE (SUBSTRING(order_item_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_order_item_table FROM @create_order_item_table;
|
||||
EXECUTE create_order_item_table;
|
||||
|
||||
SET @create_order_item_lang_table = CONCAT(
|
||||
'INSERT INTO order_item_lang_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`order_item_lang` WHERE (SUBSTRING(order_item_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`order_item_lang` WHERE (SUBSTRING(order_item_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_order_item_lang_table FROM @create_order_item_lang_table;
|
||||
EXECUTE create_order_item_lang_table;
|
||||
|
||||
SET @create_order_pre_sale_info_table = CONCAT(
|
||||
'INSERT INTO order_pre_sale_info_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`order_pre_sale_info` WHERE (SUBSTRING(order_pre_sale_info_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`order_pre_sale_info` WHERE (SUBSTRING(order_pre_sale_info_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_order_pre_sale_info_table FROM @create_order_pre_sale_info_table;
|
||||
EXECUTE create_order_pre_sale_info_table;
|
||||
|
||||
SET @create_refund_info_table = CONCAT(
|
||||
'INSERT INTO order_refund_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`order_refund` WHERE (SUBSTRING(user_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`order_refund` WHERE (SUBSTRING(user_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_refund_info_table FROM @create_refund_info_table;
|
||||
EXECUTE create_refund_info_table;
|
||||
|
||||
SET @create_order_refund_addr_table = CONCAT(
|
||||
'INSERT INTO order_refund_addr_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`order_refund_addr` WHERE (SUBSTRING(user_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`order_refund_addr` WHERE (SUBSTRING(user_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_order_refund_addr_table FROM @create_order_refund_addr_table;
|
||||
EXECUTE create_order_refund_addr_table;
|
||||
|
||||
SET @create_order_refund_intervention_table = CONCAT(
|
||||
'INSERT INTO order_refund_intervention_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`order_refund_intervention` WHERE (SUBSTRING(refund_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`order_refund_intervention` WHERE (SUBSTRING(refund_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_order_refund_intervention_table FROM @create_order_refund_intervention_table;
|
||||
EXECUTE create_order_refund_intervention_table;
|
||||
|
||||
SET @create_order_refund_settlement_table = CONCAT(
|
||||
'INSERT INTO order_refund_settlement_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`order_refund_settlement` WHERE (SUBSTRING(user_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`order_refund_settlement` WHERE (SUBSTRING(user_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_order_refund_settlement_table FROM @create_order_refund_settlement_table;
|
||||
EXECUTE create_order_refund_settlement_table;
|
||||
|
||||
SET @create_order_self_station_table = CONCAT(
|
||||
'INSERT INTO order_self_station_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`order_self_station` WHERE (SUBSTRING(order_self_station_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`order_self_station` WHERE (SUBSTRING(order_self_station_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_order_self_station_table FROM @create_order_self_station_table;
|
||||
EXECUTE create_order_self_station_table;
|
||||
|
||||
SET @create_order_settlement_table = CONCAT(
|
||||
'INSERT INTO order_settlement_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`order_settlement` WHERE (SUBSTRING(settlement_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`order_settlement` WHERE (SUBSTRING(settlement_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_order_settlement_table FROM @create_order_settlement_table;
|
||||
EXECUTE create_order_settlement_table;
|
||||
|
||||
SET @create_order_virtual_info_table = CONCAT(
|
||||
'INSERT INTO order_virtual_info_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`order_virtual_info` WHERE (SUBSTRING(order_virtual_info_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`order_virtual_info` WHERE (SUBSTRING(order_virtual_info_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_order_virtual_info_table FROM @create_order_virtual_info_table;
|
||||
EXECUTE create_order_virtual_info_table;
|
||||
|
||||
SET @create_purchase_order_table = CONCAT(
|
||||
'INSERT INTO purchase_order_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`purchase_order` WHERE (SUBSTRING(purchase_order_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`purchase_order` WHERE (SUBSTRING(purchase_order_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_purchase_order_table FROM @create_purchase_order_table;
|
||||
EXECUTE create_purchase_order_table;
|
||||
|
||||
SET @create_purchase_order_addr_table = CONCAT(
|
||||
'INSERT INTO purchase_order_addr_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`purchase_order_addr` WHERE (SUBSTRING(purchase_order_addr_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`purchase_order_addr` WHERE (SUBSTRING(purchase_order_addr_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_purchase_order_addr_table FROM @create_purchase_order_addr_table;
|
||||
EXECUTE create_purchase_order_addr_table;
|
||||
|
||||
SET @create_purchase_order_item_table = CONCAT(
|
||||
'INSERT INTO purchase_order_item_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`purchase_order_item` WHERE (SUBSTRING(purchase_order_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`purchase_order_item` WHERE (SUBSTRING(purchase_order_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_purchase_order_item_table FROM @create_purchase_order_item_table;
|
||||
EXECUTE create_purchase_order_item_table;
|
||||
|
||||
SET @create_purchase_order_item_lang_table = CONCAT(
|
||||
'INSERT INTO purchase_order_item_lang_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`purchase_order_item_lang` WHERE (SUBSTRING(purchase_item_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`purchase_order_item_lang` WHERE (SUBSTRING(purchase_item_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_purchase_order_item_lang_table FROM @create_purchase_order_item_lang_table;
|
||||
EXECUTE create_purchase_order_item_lang_table;
|
||||
|
||||
SET @create_purchase_order_lang_table = CONCAT(
|
||||
'INSERT INTO purchase_order_lang_', i, '
|
||||
(SELECT * FROM mall4cloud_order.`purchase_order_lang` WHERE (SUBSTRING(purchase_order_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_order.`purchase_order_lang` WHERE (SUBSTRING(purchase_order_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_purchase_order_lang_table FROM @create_purchase_order_lang_table;
|
||||
EXECUTE create_purchase_order_lang_table;
|
||||
@ -1809,7 +1809,7 @@ END//
|
||||
CALL createTable()//
|
||||
DELIMITER ;
|
||||
|
||||
USE mall4cloud_payment;
|
||||
USE tmerclub_payment;
|
||||
DELIMITER //
|
||||
DROP PROCEDURE IF EXISTS createTable//
|
||||
CREATE PROCEDURE createTable()
|
||||
@ -1819,14 +1819,14 @@ BEGIN
|
||||
WHILE i<25 DO
|
||||
SET @create_pay_info_table = CONCAT(
|
||||
'INSERT INTO pay_info_', i, '
|
||||
(SELECT * FROM mall4cloud_payment.`pay_info` WHERE (SUBSTRING(pay_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_payment.`pay_info` WHERE (SUBSTRING(pay_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_pay_info_table FROM @create_pay_info_table;
|
||||
EXECUTE create_pay_info_table;
|
||||
|
||||
SET @create_refund_info_table = CONCAT(
|
||||
'INSERT INTO refund_info_', i, '
|
||||
(SELECT * FROM mall4cloud_payment.`refund_info` WHERE (SUBSTRING(refund_id, -3) + 0) % 50 = ', i, ' )'
|
||||
(SELECT * FROM tmerclub_payment.`refund_info` WHERE (SUBSTRING(refund_id, -3) + 0) % 50 = ', i, ' )'
|
||||
);
|
||||
PREPARE create_refund_info_table FROM @create_refund_info_table;
|
||||
EXECUTE create_refund_info_table;
|
||||
@ -1838,16 +1838,16 @@ CALL createTable()//
|
||||
DELIMITER ;
|
||||
|
||||
# ============================== 6.修改shardingsphere、canal配置 ==============================
|
||||
# 1.修改shardingsphere配置,具体参考mall4cloud-doc文档/开发环境搭建/中间件docker-compse一键安装/shardingsphere/conf
|
||||
# 1.修改shardingsphere配置,具体参考tmerclub-doc文档/开发环境搭建/中间件docker-compse一键安装/shardingsphere/conf
|
||||
|
||||
# 2.修改canal配置
|
||||
# 修改canal下/conf/example/instance.properties文件中的canal.instance.filter.regex,替换成下述内容
|
||||
# canal.instance.filter.regex=mall4cloud_product.spu:*,mall4cloud_product.category:*,mall4cloud_product.brand:*,mall4cloud_product.spu_tag_reference:*,mall4cloud_admin.shop_detail:*,mall4cloud_product.spu_extension:*,mall4cloud_product.sku:*,mall4cloud_product.sku_stock:*,mall4cloud_marketing.distribution_spu:*,mall4cloud_order+.order_[0-9]+:*,mall4cloud_order+.order_refund_[0-9]+:*,mall4cloud_order+.purchase_order_[0-9]+:*,mall4cloud_order+.order_invoice_[0-9]+:*,mall4cloud_order+.allot_order_[0-9]+:*,\
|
||||
# canal.instance.filter.regex=tmerclub_product.spu:*,tmerclub_product.category:*,tmerclub_product.brand:*,tmerclub_product.spu_tag_reference:*,tmerclub_admin.shop_detail:*,tmerclub_product.spu_extension:*,tmerclub_product.sku:*,tmerclub_product.sku_stock:*,tmerclub_marketing.distribution_spu:*,tmerclub_order+.order_[0-9]+:*,tmerclub_order+.order_refund_[0-9]+:*,tmerclub_order+.purchase_order_[0-9]+:*,tmerclub_order+.order_invoice_[0-9]+:*,tmerclub_order+.allot_order_[0-9]+:*,\
|
||||
# 修改后重启canal
|
||||
|
||||
# ============================== 7.删除总表中数据 ==============================
|
||||
# 确保6.7.执行 成功 执行一次后,检查是否数据已经同步到各个分表中去,再执行下面的sql
|
||||
USE mall4cloud_order;
|
||||
USE tmerclub_order;
|
||||
DROP TABLE IF EXISTS `allot_order`;
|
||||
DROP TABLE IF EXISTS `allot_order_item`;
|
||||
DROP TABLE IF EXISTS `delivery_order`;
|
||||
@ -1871,6 +1871,6 @@ DROP TABLE IF EXISTS `purchase_order_item`;
|
||||
DROP TABLE IF EXISTS `purchase_order_item_lang`;
|
||||
DROP TABLE IF EXISTS `purchase_order_lang`;
|
||||
|
||||
USE mall4cloud_payment;
|
||||
USE tmerclub_payment;
|
||||
DROP TABLE IF EXISTS `pay_info`;
|
||||
DROP TABLE IF EXISTS `refund_info`;
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
# 增加分布式id的wordId
|
||||
# 如果测试环境、开发环境、生产环境用的都是同一套支付系统,那么会面临一个问题:
|
||||
# 测试环境中的支付单号1,会与生产环境中的支付单号1重复。所以需要在不同的环境增加一个需要,比如加多个序号测试环境的1会变成11,开发环境的1会变成21
|
||||
# 需要在`mall4cloud-leaf.yml` 修改这个配置,请配置10-99。请手动在不同的环境加上不同的id
|
||||
# 需要在`tmerclub-leaf.yml` 修改这个配置,请配置10-99。请手动在不同的环境加上不同的id
|
||||
application:
|
||||
workerId: 10
|
||||
|
@ -32,7 +32,7 @@
|
||||
# provider-namespace: ${spring.cloud.nacos.discovery.namespace}
|
||||
#
|
||||
# 4. 删除所有数据库关于库存的记录,统一存在redis,增加一台redis机器,专门用来存商品库存的。一定要有个额外的redis,不然清理缓存之后库存数据再也找不回来了。
|
||||
# 4.1 在nacos的mall4cloud-seckill.yml 加入如下配置(可以为秒杀增加多台redis)
|
||||
# 4.1 在nacos的tmerclub-seckill.yml 加入如下配置(可以为秒杀增加多台redis)
|
||||
# redis:
|
||||
# multi:
|
||||
# enable: true
|
||||
@ -40,7 +40,7 @@
|
||||
# database: 0
|
||||
# redisAddrs:
|
||||
# - 192.168.193.128:31377
|
||||
# 4.2 在nacos的mall4cloud-product.yml 加入如下配置 (只能增加一台用于aof的redis)
|
||||
# 4.2 在nacos的tmerclub-product.yml 加入如下配置 (只能增加一台用于aof的redis)
|
||||
# redis:
|
||||
# aof:
|
||||
# enable: true
|
||||
@ -65,7 +65,7 @@
|
||||
#
|
||||
# 8.修改knife4j版本到4.3.0,移除nacos当中gateway.yml 的openapi配置
|
||||
# - id: openapi
|
||||
# uri: lb://mall4cloud-gateway
|
||||
# uri: lb://tmerclub-gateway
|
||||
# predicates:
|
||||
# - Path=/v3/api-docs/**
|
||||
# filters:
|
||||
@ -83,56 +83,56 @@
|
||||
#springdoc:
|
||||
# api-docs:
|
||||
# path: /v3/api-docs/default
|
||||
# 9.数据分析的数据放入mongodb。在mall4cloud-flow.yml加入以下配置
|
||||
# 9.数据分析的数据放入mongodb。在tmerclub-flow.yml加入以下配置
|
||||
# data:
|
||||
# mongodb:
|
||||
# host: 192.168.193.128
|
||||
# port: 27017
|
||||
# database: mall4cloud
|
||||
# username: mall4cloud
|
||||
# password: mall4cloud
|
||||
# authentication-database: mall4cloud
|
||||
# database: tmerclub
|
||||
# username: tmerclub
|
||||
# password: tmerclub
|
||||
# authentication-database: tmerclub
|
||||
# 10. 直播使用阿里云直播。未开通小程序直播插件可以在app和h5进行直播。开通小程序直播插件后可以在app、h5以及小程序进行直播。
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
USE mall4cloud_product;
|
||||
USE tmerclub_product;
|
||||
|
||||
ALTER TABLE `sku` ADD COLUMN `stock_warning_status` tinyint NOT NULL DEFAULT '0' COMMENT '库存预警状态 0:库存充足 1:库存预警';
|
||||
ALTER TABLE `sku` MODIFY `stock_warning` BIGINT DEFAULT NULL COMMENT '设置库存预警的数量';
|
||||
|
||||
|
||||
|
||||
USE mall4cloud_nacos;
|
||||
USE tmerclub_nacos;
|
||||
UPDATE config_info
|
||||
set content = '# 数据源\nspring:\n profiles:\n active: dev\n #避免nacos取网卡出错\n cloud:\n inetutils:\n preferred-networks: 10.1.\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n type: com.zaxxer.hikari.HikariDataSource\n hikari:\n minimum-idle: 0\n maximum-pool-size: 20\n idle-timeout: 25000\n auto-commit: true\n connection-test-query: SELECT 1\n data:\n redis:\n host: 192.168.193.128\n password: hn02le.34lkdLKD\n jackson:\n date-format: yyyy-MM-dd HH:mm:ss\n time-zone: GMT+8\n\nspringdoc:\n # 默认是false,需要设置为true\n default-flat-param-object: true\n \n#mybatis的相关配置\nmybatis:\n #mapper配置文件\n mapper-locations: classpath:mapper/*Mapper.xml\n type-aliases-package: com.moyuer.cloud.**.model\n #开启驼峰命名\n configuration:\n map-underscore-to-camel-case: true\n\nseata:\n config:\n type: nacos\n nacos:\n namespace: 05b1150e-9306-474c-90e1-ed4852c21475\n dataId: \"seataServer.properties\"\n server-addr: ${spring.cloud.nacos.discovery.server-addr}\n password: ${spring.cloud.nacos.discovery.password}\n username: ${spring.cloud.nacos.discovery.username}\n registry:\n type: nacos\n nacos:\n server-addr: ${spring.cloud.nacos.discovery.server-addr}\n password: ${spring.cloud.nacos.discovery.password}\n username: ${spring.cloud.nacos.discovery.username}\n namespace: ${seata.config.nacos.namespace}\n\nlogging:\n level:\n root: info\n com:\n mall4j:\n cloud: debug\n\n# 分页合理化,当查询到页码大于最后一页的时候,返回最后一页的数据,防止vue在最后一页删除时,数据不对的问题\npagehelper:\n reasonable: true\n\nbiz:\n oss:\n # 文件上传类型 0.阿里云 1.minio\n type: 1\n # 资源url,图片域名(阿里云的resources-url是带有bucket的那个url)\n # resources-url: http://mall4cloud.oss-cn-shenzhen.aliyuncs.com\n # endpoint: https://oss-cn-shenzhen.aliyuncs.com\n # bucket: mall4cloud\n # access-key-id: key\n # access-key-secret: secret\n # resources-url是带有bucket的\n resources-url: http://192.168.193.128:9000/mall4cloud\n endpoint: http://192.168.193.128:9000\n bucket: mall4cloud\n access-key-id: admin\n access-key-secret: admin123456\n\n\ndubbo:\n application:\n name: ${spring.cloud.nacos.discovery.namespace}-${spring.application.name}-dubbo-server\n register-mode: instance\n service-discovery:\n migration: FORCE_APPLICATION\n protocol:\n name: dubbo\n serialization: fastjson2\n registry:\n # 配置dubbo的注册中心为nacos\n address: nacos://${spring.cloud.nacos.discovery.server-addr}\n username: ${spring.cloud.nacos.discovery.username}\n password: ${spring.cloud.nacos.discovery.password}\n consumer:\n check: false\n loadbalance: dev\n\nmall4cloud:\n job:\n accessToken: default_token\n logPath: /data/applogs/xxl-job/jobhandler\n admin:\n addresses: http://192.168.193.128:8080/xxl-job-admin\n expose:\n permission: true\n\nrocketmq:\n name-server: 192.168.193.128:9876\n\nsa-token:\n # token名称 (同时也是cookie名称)\n token-name: authorization\n # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)\n is-concurrent: true\n # 在多人登录同一账号时,是否共用一个token(不共用,避免登出时导致其他用户也登出)\n is-share: false\n # token风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik)\n token-style: uuid\n # 是否输出操作日志\n is-log: false'
|
||||
set content = '# 数据源\nspring:\n profiles:\n active: dev\n #避免nacos取网卡出错\n cloud:\n inetutils:\n preferred-networks: 10.1.\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n type: com.zaxxer.hikari.HikariDataSource\n hikari:\n minimum-idle: 0\n maximum-pool-size: 20\n idle-timeout: 25000\n auto-commit: true\n connection-test-query: SELECT 1\n data:\n redis:\n host: 192.168.193.128\n password: hn02le.34lkdLKD\n jackson:\n date-format: yyyy-MM-dd HH:mm:ss\n time-zone: GMT+8\n\nspringdoc:\n # 默认是false,需要设置为true\n default-flat-param-object: true\n \n#mybatis的相关配置\nmybatis:\n #mapper配置文件\n mapper-locations: classpath:mapper/*Mapper.xml\n type-aliases-package: com.moyuer.cloud.**.model\n #开启驼峰命名\n configuration:\n map-underscore-to-camel-case: true\n\nseata:\n config:\n type: nacos\n nacos:\n namespace: 05b1150e-9306-474c-90e1-ed4852c21475\n dataId: \"seataServer.properties\"\n server-addr: ${spring.cloud.nacos.discovery.server-addr}\n password: ${spring.cloud.nacos.discovery.password}\n username: ${spring.cloud.nacos.discovery.username}\n registry:\n type: nacos\n nacos:\n server-addr: ${spring.cloud.nacos.discovery.server-addr}\n password: ${spring.cloud.nacos.discovery.password}\n username: ${spring.cloud.nacos.discovery.username}\n namespace: ${seata.config.nacos.namespace}\n\nlogging:\n level:\n root: info\n com:\n mall4j:\n cloud: debug\n\n# 分页合理化,当查询到页码大于最后一页的时候,返回最后一页的数据,防止vue在最后一页删除时,数据不对的问题\npagehelper:\n reasonable: true\n\nbiz:\n oss:\n # 文件上传类型 0.阿里云 1.minio\n type: 1\n # 资源url,图片域名(阿里云的resources-url是带有bucket的那个url)\n # resources-url: http://tmerclub.oss-cn-shenzhen.aliyuncs.com\n # endpoint: https://oss-cn-shenzhen.aliyuncs.com\n # bucket: tmerclub\n # access-key-id: key\n # access-key-secret: secret\n # resources-url是带有bucket的\n resources-url: http://192.168.193.128:9000/tmerclub\n endpoint: http://192.168.193.128:9000\n bucket: tmerclub\n access-key-id: admin\n access-key-secret: admin123456\n\n\ndubbo:\n application:\n name: ${spring.cloud.nacos.discovery.namespace}-${spring.application.name}-dubbo-server\n register-mode: instance\n service-discovery:\n migration: FORCE_APPLICATION\n protocol:\n name: dubbo\n serialization: fastjson2\n registry:\n # 配置dubbo的注册中心为nacos\n address: nacos://${spring.cloud.nacos.discovery.server-addr}\n username: ${spring.cloud.nacos.discovery.username}\n password: ${spring.cloud.nacos.discovery.password}\n consumer:\n check: false\n loadbalance: dev\n\ntmerclub:\n job:\n accessToken: default_token\n logPath: /data/applogs/xxl-job/jobhandler\n admin:\n addresses: http://192.168.193.128:8080/xxl-job-admin\n expose:\n permission: true\n\nrocketmq:\n name-server: 192.168.193.128:9876\n\nsa-token:\n # token名称 (同时也是cookie名称)\n token-name: authorization\n # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)\n is-concurrent: true\n # 在多人登录同一账号时,是否共用一个token(不共用,避免登出时导致其他用户也登出)\n is-share: false\n # token风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik)\n token-style: uuid\n # 是否输出操作日志\n is-log: false'
|
||||
where data_id = "application.yml";
|
||||
|
||||
|
||||
UPDATE config_info
|
||||
set content = PERLACE(content, 'elastic:\n # elastic的地址\n address:', 'spring:\n elasticsearch:\n uris:')
|
||||
where data_id = "mall4cloud-search.yml";
|
||||
where data_id = "tmerclub-search.yml";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
USE mall4cloud_leaf;
|
||||
USE tmerclub_leaf;
|
||||
|
||||
insert into `leaf_alloc` (`biz_tag`, `max_id`, `step`, `update_time`, `description`, `random_step`) values
|
||||
('mall4cloud-flow-user-id','1','100','2023-08-01 10:01:43','mall4cloud-flow的用户操作编号','10');
|
||||
('tmerclub-flow-user-id','1','100','2023-08-01 10:01:43','tmerclub-flow的用户操作编号','10');
|
||||
|
||||
|
||||
|
||||
USE mall4cloud_job;
|
||||
USE tmerclub_job;
|
||||
|
||||
insert into `xxl_job_info` (`job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) values
|
||||
(11,'处理sku库存的变化','2023-08-16 09:56:14','2023-08-16 09:56:20','admin','','CRON','0/5 * * * * ?','DO_NOTHING','FIRST','handleSkuStockChange','','DISCARD_LATER','0','0','BEAN','','GLUE代码初始化','2023-08-16 09:56:14','',1,1692234575000,1692234580000),
|
||||
(11,'初始化库存','2023-07-10 09:51:23','2023-07-10 09:52:03','admin','','CRON','0 * * * * ?','DO_NOTHING','FIRST','intiStock','','SERIAL_EXECUTION','0','0','BEAN','','GLUE代码初始化','2023-07-10 09:51:23','','0','0','0');
|
||||
|
||||
# 如需配置阿里直播,需要看下mall4cloud-doc这个项目下的 基本开发文档-阿里视频直播配置文档,参照文档进行配置
|
||||
# 如需配置阿里直播,需要看下tmerclub-doc这个项目下的 基本开发文档-阿里视频直播配置文档,参照文档进行配置
|
||||
# 清除微信直播的定时任务
|
||||
DELETE
|
||||
FROM xxl_job_info
|
||||
@ -148,7 +148,7 @@ values (5, '定时改变直播间状态', '2023-07-21 17:08:16', '2023-07-24 10:
|
||||
'DO_NOTHING', 'FIRST', 'changeLiveRoomStatus', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化',
|
||||
'2023-07-21 17:08:16', '', 1, 0, 0);
|
||||
|
||||
USE mall4cloud_marketing;
|
||||
USE tmerclub_marketing;
|
||||
# 清除没有用的直播相关表格
|
||||
DROP TABLE IF EXISTS `live_user`;
|
||||
DROP TABLE IF EXISTS `live_log`;
|
||||
@ -191,7 +191,7 @@ CREATE TABLE `live_room_prod`
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
COLLATE = utf8mb4_general_ci COMMENT ='直播商品';
|
||||
|
||||
USE mall4cloud_admin;
|
||||
USE tmerclub_admin;
|
||||
# 添加阿里直播配置
|
||||
INSERT INTO `sys_config` (`param_key`, `param_value`, `remark`)
|
||||
VALUES ('ALI_LIVE_CONFIG',
|
||||
|
@ -5,55 +5,55 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.moyuer.cloud</groupId>
|
||||
<artifactId>mall4cloud</artifactId>
|
||||
<artifactId>tmerclub</artifactId>
|
||||
<version>0.0.1</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>system-test</artifactId>
|
||||
<description>mall4cloud test服务 用于做系统测试的模块</description>
|
||||
<description>tmerclub test服务 用于做系统测试的模块</description>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.moyuer.cloud</groupId>
|
||||
<artifactId>mall4cloud-user</artifactId>
|
||||
<artifactId>tmerclub-user</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.moyuer.cloud</groupId>
|
||||
<artifactId>mall4cloud-search</artifactId>
|
||||
<artifactId>tmerclub-search</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.moyuer.cloud</groupId>
|
||||
<artifactId>mall4cloud-marketing</artifactId>
|
||||
<artifactId>tmerclub-marketing</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.moyuer.cloud</groupId>
|
||||
<artifactId>mall4cloud-admin</artifactId>
|
||||
<artifactId>tmerclub-admin</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.moyuer.cloud</groupId>
|
||||
<artifactId>mall4cloud-biz</artifactId>
|
||||
<artifactId>tmerclub-biz</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.moyuer.cloud</groupId>
|
||||
<artifactId>mall4cloud-order</artifactId>
|
||||
<artifactId>tmerclub-order</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.moyuer.cloud</groupId>
|
||||
<artifactId>mall4cloud-product</artifactId>
|
||||
<artifactId>tmerclub-product</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
@ -78,19 +78,19 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.moyuer.cloud</groupId>
|
||||
<artifactId>mall4cloud-group</artifactId>
|
||||
<artifactId>tmerclub-group</artifactId>
|
||||
<version>0.0.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.moyuer.cloud</groupId>
|
||||
<artifactId>mall4cloud-payment</artifactId>
|
||||
<artifactId>tmerclub-payment</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.moyuer.cloud</groupId>
|
||||
<artifactId>mall4cloud-seckill</artifactId>
|
||||
<artifactId>tmerclub-seckill</artifactId>
|
||||
<version>0.0.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
@ -14,22 +14,22 @@ import java.util.List;
|
||||
*/
|
||||
public class AddrApi {
|
||||
public static void addAddr(UserAddrDTO userAddrDTO){
|
||||
String url = Constant.API_URL + "/mall4cloud_user/user_addr";
|
||||
String url = Constant.API_URL + "/tmerclub_user/user_addr";
|
||||
HttpUtil.post(url, userAddrDTO, UrlEnum.API);
|
||||
}
|
||||
|
||||
public static List<UserAddrVO> dvyList(){
|
||||
String url = Constant.API_URL + "/mall4cloud_user/user_addr/list";
|
||||
String url = Constant.API_URL + "/tmerclub_user/user_addr/list";
|
||||
List list = HttpUtil.get(url, List.class, UrlEnum.API);
|
||||
return JSON.parseArray(JSON.toJSONString(list), UserAddrVO.class);
|
||||
}
|
||||
// public static UserAddrVO addrInfo(Long addrId) {
|
||||
// String url = Constant.API_URL + "/mall4cloud_user/user_addr?addrId=" + addrId;
|
||||
// String url = Constant.API_URL + "/tmerclub_user/user_addr?addrId=" + addrId;
|
||||
// return HttpUtil.get(url, UserAddrVO.class, UrlEnum.API);
|
||||
// }
|
||||
|
||||
public static void updateAddr(UserAddrDTO userAddrDTO){
|
||||
String url = Constant.API_URL + "/mall4cloud_user/user_addr";
|
||||
String url = Constant.API_URL + "/tmerclub_user/user_addr";
|
||||
HttpUtil.put(url, userAddrDTO, UrlEnum.API);
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,7 @@ public class CategoryApi {
|
||||
* 获取店铺签约的可用分类列表(发布商品时使用)
|
||||
*/
|
||||
public static List<CategoryAppVO> listShopCategory(Boolean isMainShop) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/mp/category/enable_categories";
|
||||
String url = Constant.API_URL + "/tmerclub_product/mp/category/enable_categories";
|
||||
if(isMainShop) {
|
||||
return JSON.parseArray(JSON.toJSONString(HttpUtil.get(url, List.class,UrlEnum.SHOP)), CategoryAppVO.class);
|
||||
} else {
|
||||
@ -32,7 +32,7 @@ public class CategoryApi {
|
||||
}
|
||||
|
||||
public static List<CategoryAppVO> listSigningCategory(Boolean isMainShop) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/m/apply_shop/category/list_signing_category?status=1";
|
||||
String url = Constant.API_URL + "/tmerclub_product/m/apply_shop/category/list_signing_category?status=1";
|
||||
if(isMainShop) {
|
||||
return JSON.parseArray(JSON.toJSONString(HttpUtil.get(url, List.class,UrlEnum.SHOP)), CategoryAppVO.class);
|
||||
} else {
|
||||
@ -44,7 +44,7 @@ public class CategoryApi {
|
||||
* 新增平台分类
|
||||
*/
|
||||
public static Long save(CategoryDTO categoryDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/mp/category";
|
||||
String url = Constant.API_URL + "/tmerclub_product/mp/category";
|
||||
return HttpUtil.post(url, categoryDTO, UrlEnum.PLATFORM, Long.class);
|
||||
}
|
||||
|
||||
@ -53,7 +53,7 @@ public class CategoryApi {
|
||||
* 根据分类id查找分类信息
|
||||
*/
|
||||
public static CategoryVO getCategoryInfo(Long categoryId){
|
||||
String url = Constant.API_URL + "/mall4cloud_product/mp/category?categoryId=" + categoryId;
|
||||
String url = Constant.API_URL + "/tmerclub_product/mp/category?categoryId=" + categoryId;
|
||||
return HttpUtil.get(url, CategoryVO.class, UrlEnum.PLATFORM);
|
||||
|
||||
}
|
||||
@ -62,7 +62,7 @@ public class CategoryApi {
|
||||
* 修改分类信息
|
||||
*/
|
||||
public static void update(CategoryDTO categoryDTO){
|
||||
String url = Constant.API_URL + "/mall4cloud_product/mp/category";
|
||||
String url = Constant.API_URL + "/tmerclub_product/mp/category";
|
||||
HttpUtil.put(url, categoryDTO, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -70,7 +70,7 @@ public class CategoryApi {
|
||||
* 删除平台分类
|
||||
*/
|
||||
public static void delete(Long categoryId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/mp/category?categoryId=" + categoryId;
|
||||
String url = Constant.API_URL + "/tmerclub_product/mp/category?categoryId=" + categoryId;
|
||||
HttpUtil.delete(url, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -78,7 +78,7 @@ public class CategoryApi {
|
||||
* 店铺增加签约分类
|
||||
*/
|
||||
public static void addSigningCategory(List<CategoryShopDTO> categoryShopDTOList, Boolean isMainShop){
|
||||
String url = Constant.API_URL + "/mall4cloud_product/m/apply_shop/category/add_signing_category";
|
||||
String url = Constant.API_URL + "/tmerclub_product/m/apply_shop/category/add_signing_category";
|
||||
if(isMainShop) {
|
||||
HttpUtil.post(url, categoryShopDTOList,UrlEnum.SHOP);
|
||||
} else {
|
||||
@ -91,7 +91,7 @@ public class CategoryApi {
|
||||
* 查询供应商签约类目(发布商品时使用)
|
||||
* */
|
||||
public static List<CategoryAppVO> listSupplierCategory(Boolean isMainSupplier) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/s/apply_supplier/category/list_signing_category";
|
||||
String url = Constant.API_URL + "/tmerclub_product/s/apply_supplier/category/list_signing_category";
|
||||
if(isMainSupplier) {
|
||||
return JSON.parseArray(JSON.toJSONString(HttpUtil.get(url, List.class,UrlEnum.SUPPLIER)), CategoryAppVO.class);
|
||||
} else {
|
||||
@ -104,7 +104,7 @@ public class CategoryApi {
|
||||
* 供应商 增加签约分类
|
||||
*/
|
||||
public static void addSupplierCategory(List<CategoryShopDTO> categoryShopDTOList, Boolean isMainSupplier){
|
||||
String url = Constant.API_URL + "/mall4cloud_product/s/apply_supplier/category/add_signing_category";
|
||||
String url = Constant.API_URL + "/tmerclub_product/s/apply_supplier/category/add_signing_category";
|
||||
if(isMainSupplier) {
|
||||
HttpUtil.post(url, categoryShopDTOList,UrlEnum.SUPPLIER);
|
||||
} else {
|
||||
@ -116,7 +116,7 @@ public class CategoryApi {
|
||||
* 查询供应商可签约类目(需要签约类目,查询平台类目时使用)
|
||||
* */
|
||||
public static List<CategoryVO> listSupplierApplyCategory(Boolean isMainSupplier) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/s/apply_supplier/category/list_apply_signing_category";
|
||||
String url = Constant.API_URL + "/tmerclub_product/s/apply_supplier/category/list_apply_signing_category";
|
||||
if(isMainSupplier) {
|
||||
return JSON.parseArray(JSON.toJSONString(HttpUtil.get(url, List.class,UrlEnum.SUPPLIER)), CategoryVO.class);
|
||||
} else {
|
||||
|
@ -14,13 +14,13 @@ import java.util.List;
|
||||
*/
|
||||
public class PayApi {
|
||||
public static Long pay(PayInfoDTO payParam){
|
||||
String uri = Constant.API_URL+"/mall4cloud_payment/pay/order";
|
||||
String uri = Constant.API_URL+"/tmerclub_payment/pay/order";
|
||||
Long payId = HttpUtil.post(uri,payParam, UrlEnum.API,Long.class);
|
||||
return payId;
|
||||
}
|
||||
|
||||
public static void balancePay(Long payId){
|
||||
String uri = Constant.API_URL+"/mall4cloud_user/user_balance/balance_pay";
|
||||
String uri = Constant.API_URL+"/tmerclub_user/user_balance/balance_pay";
|
||||
HttpUtil.post(uri,payId, UrlEnum.API);
|
||||
}
|
||||
|
||||
@ -33,7 +33,7 @@ public class PayApi {
|
||||
}
|
||||
|
||||
public static Long payBalance(PayInfoDTO payParam){
|
||||
String uri = Constant.API_URL+"/mall4cloud_payment/pay/pay_balance";
|
||||
String uri = Constant.API_URL+"/tmerclub_payment/pay/pay_balance";
|
||||
Long payId = HttpUtil.post(uri,payParam, UrlEnum.API,Long.class);
|
||||
return payId;
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ public class ProductApi {
|
||||
|
||||
|
||||
public static Long createProduct(SpuDTO spuDTO, Boolean isMainShop) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/mp/spu";
|
||||
String url = Constant.API_URL + "/tmerclub_product/mp/spu";
|
||||
if(isMainShop) {
|
||||
return HttpUtil.post(url, spuDTO, UrlEnum.SHOP,Long.class);
|
||||
} else {
|
||||
@ -28,7 +28,7 @@ public class ProductApi {
|
||||
}
|
||||
|
||||
public static SpuVO info(Long spuId, Boolean isMainShop) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/mp/spu?spuId=" + spuId;
|
||||
String url = Constant.API_URL + "/tmerclub_product/mp/spu?spuId=" + spuId;
|
||||
if(isMainShop) {
|
||||
return HttpUtil.get(url, SpuVO.class, UrlEnum.SHOP);
|
||||
} else {
|
||||
@ -37,7 +37,7 @@ public class ProductApi {
|
||||
}
|
||||
|
||||
public static void delete(Long spuId, Boolean isMainShop) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/mp/spu?spuId=" + spuId;
|
||||
String url = Constant.API_URL + "/tmerclub_product/mp/spu?spuId=" + spuId;
|
||||
if(isMainShop) {
|
||||
HttpUtil.delete(url,UrlEnum.SHOP);
|
||||
} else {
|
||||
@ -49,12 +49,12 @@ public class ProductApi {
|
||||
*获取商品详情
|
||||
*/
|
||||
public static SpuAppVO getProductInfo(Long spuId){
|
||||
String url = Constant.API_URL + "/mall4cloud_product/ma/spu/prod_info?spuId="+spuId+"&userId=&addrId=";
|
||||
String url = Constant.API_URL + "/tmerclub_product/ma/spu/prod_info?spuId="+spuId+"&userId=&addrId=";
|
||||
return HttpUtil.get(url, SpuAppVO.class,UrlEnum.API);
|
||||
}
|
||||
|
||||
public static List<Long> addSupplierProduct(List<Long> supplierSpuId, Boolean isMainShop) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/mp/spu/importSupplierSpu";
|
||||
String url = Constant.API_URL + "/tmerclub_product/mp/spu/importSupplierSpu";
|
||||
if(isMainShop) {
|
||||
return HttpUtil.post(url, supplierSpuId, UrlEnum.SHOP,List.class);
|
||||
} else {
|
||||
@ -64,7 +64,7 @@ public class ProductApi {
|
||||
|
||||
|
||||
public static void onlineProduct(SpuPageSearchDTO spuDTO, Boolean isMainShop){
|
||||
String url = Constant.API_URL + "/mall4cloud_product/mp/spu/prod_status";
|
||||
String url = Constant.API_URL + "/tmerclub_product/mp/spu/prod_status";
|
||||
if(isMainShop) {
|
||||
HttpUtil.put(url, spuDTO, UrlEnum.SHOP);
|
||||
} else {
|
||||
@ -76,7 +76,7 @@ public class ProductApi {
|
||||
* 修改商品信息
|
||||
*/
|
||||
public static void update(SpuDTO spuDTO, Boolean isMainShop) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/mp/spu";
|
||||
String url = Constant.API_URL + "/tmerclub_product/mp/spu";
|
||||
if(isMainShop) {
|
||||
HttpUtil.put(url, spuDTO, UrlEnum.SHOP);
|
||||
} else {
|
||||
@ -88,7 +88,7 @@ public class ProductApi {
|
||||
* 商品列表修改商品信息
|
||||
*/
|
||||
public static void updateProductData(SpuDTO spuDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/mp/spu/update_spu_data";
|
||||
String url = Constant.API_URL + "/tmerclub_product/mp/spu/update_spu_data";
|
||||
HttpUtil.put(url, spuDTO, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -96,7 +96,7 @@ public class ProductApi {
|
||||
* 修改商品状态-上架 1, 下架 0
|
||||
*/
|
||||
public static void changeProductStatus(SpuPageSearchDTO spuPageSearchDTO){
|
||||
String url = Constant.API_URL + "/mall4cloud_product/mp/spu/prod_status";
|
||||
String url = Constant.API_URL + "/tmerclub_product/mp/spu/prod_status";
|
||||
HttpUtil.put(url,spuPageSearchDTO,UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -104,7 +104,7 @@ public class ProductApi {
|
||||
* 商家获取最新下架信息
|
||||
*/
|
||||
public static OfflineHandleEventVO shopGetOfflineHandleEvent(Long productId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/mp/spu/get_offline_handle_event/" + productId;
|
||||
String url = Constant.API_URL + "/tmerclub_product/mp/spu/get_offline_handle_event/" + productId;
|
||||
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -112,7 +112,7 @@ public class ProductApi {
|
||||
* 商家申请上架,提交审核
|
||||
*/
|
||||
public static void apply(OfflineHandleEventDTO offlineHandleEventDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/mp/spu/audit_apply";
|
||||
String url = Constant.API_URL + "/tmerclub_product/mp/spu/audit_apply";
|
||||
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.SHOP);
|
||||
}
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ public class UserApi {
|
||||
* 获取用户信息
|
||||
*/
|
||||
public static UserApiVO getUserInfo() {
|
||||
String url = Constant.API_URL + "/mall4cloud_user/user/ma/user_detail_info";
|
||||
String url = Constant.API_URL + "/tmerclub_user/user/ma/user_detail_info";
|
||||
return HttpUtil.get(url, UserApiVO.class, UrlEnum.API);
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ public class ComboApi {
|
||||
* 获取套餐列表
|
||||
*/
|
||||
public static List<ComboVO> getComboPage() {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/m/combo/page?pageNum=1&pageSize=10&name=&status=&mainSpuName=&matchSpuName";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/m/combo/page?pageNum=1&pageSize=10&name=&status=&mainSpuName=&matchSpuName";
|
||||
return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, PageVO.class, UrlEnum.SHOP)), PageVO.class).getList()), ComboVO.class);
|
||||
}
|
||||
|
||||
@ -27,7 +27,7 @@ public class ComboApi {
|
||||
* 新增套餐
|
||||
*/
|
||||
public static void save(ComboDTO comboDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/m/combo";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/m/combo";
|
||||
HttpUtil.post(url, comboDTO, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -35,7 +35,7 @@ public class ComboApi {
|
||||
* 获取套餐详情
|
||||
*/
|
||||
public static ComboVO getComboInfo(Long comboId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/m/combo?comboId=" + comboId;
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/m/combo?comboId=" + comboId;
|
||||
return HttpUtil.get(url, ComboVO.class, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -43,7 +43,7 @@ public class ComboApi {
|
||||
* 修改套餐
|
||||
*/
|
||||
public static void update(ComboDTO comboDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/m/combo";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/m/combo";
|
||||
HttpUtil.put(url, comboDTO, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ public class ComboApi {
|
||||
* @param comboDTO status 0-失效 -1-删除
|
||||
*/
|
||||
public static void updateComboStatus(ComboDTO comboDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/m/combo/updateComboStatus";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/m/combo/updateComboStatus";
|
||||
HttpUtil.put(url, comboDTO, UrlEnum.SHOP);
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ public class CouponApi {
|
||||
* 商家获取优惠券列表
|
||||
*/
|
||||
public static List<CouponVO> getShopCouponPage() {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/coupon/page?pageSize=10&pageNum=1&couponName=&couponType=&getWay=";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/coupon/page?pageSize=10&pageNum=1&couponName=&couponType=&getWay=";
|
||||
return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, PageVO.class, UrlEnum.SHOP)), PageVO.class).getList()), CouponVO.class);
|
||||
}
|
||||
|
||||
@ -30,7 +30,7 @@ public class CouponApi {
|
||||
* 商家新建店铺优惠券
|
||||
*/
|
||||
public static void saveShopCoupon(CouponDTO couponDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/coupon";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/coupon";
|
||||
HttpUtil.post(url, couponDTO, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -38,7 +38,7 @@ public class CouponApi {
|
||||
* 商家获取优惠券信息
|
||||
*/
|
||||
public static CouponVO getShopCouponInfo(Long couponId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/coupon?couponId=" + couponId;
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/coupon?couponId=" + couponId;
|
||||
return HttpUtil.get(url, CouponVO.class, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -46,7 +46,7 @@ public class CouponApi {
|
||||
* 商家修改优惠券信息
|
||||
*/
|
||||
public static void updateShopCoupon(CouponDTO couponDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/coupon";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/coupon";
|
||||
HttpUtil.put(url, couponDTO, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -54,7 +54,7 @@ public class CouponApi {
|
||||
* 商家删除优惠券
|
||||
*/
|
||||
public static void deleteShopCoupon(Long couponId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/coupon?couponId=" + couponId;
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/coupon?couponId=" + couponId;
|
||||
HttpUtil.delete(url, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -62,7 +62,7 @@ public class CouponApi {
|
||||
* 平台违规下架活动
|
||||
*/
|
||||
public static void offline(OfflineHandleEventDTO offlineHandleEventDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/coupon/offline";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/coupon/offline";
|
||||
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -70,7 +70,7 @@ public class CouponApi {
|
||||
* 商家获取最新下架信息
|
||||
*/
|
||||
public static OfflineHandleEventVO shopGetOfflineHandleEvent(Long couponId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/coupon/get_offline_handle_event/" + couponId;
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/coupon/get_offline_handle_event/" + couponId;
|
||||
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -78,7 +78,7 @@ public class CouponApi {
|
||||
* 商家申请上架,提交审核
|
||||
*/
|
||||
public static void apply(OfflineHandleEventDTO offlineHandleEventDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/coupon/audit_apply";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/coupon/audit_apply";
|
||||
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -86,7 +86,7 @@ public class CouponApi {
|
||||
* 平台获取最新下架信息
|
||||
*/
|
||||
public static OfflineHandleEventVO platformGetOfflineHandleEvent(Long couponId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/coupon/get_offline_handle_event/" + couponId;
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/coupon/get_offline_handle_event/" + couponId;
|
||||
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -94,7 +94,7 @@ public class CouponApi {
|
||||
* 平台审核平台活动
|
||||
*/
|
||||
public static void audit(OfflineHandleEventDTO offlineHandleEventDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/coupon/audit";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/coupon/audit";
|
||||
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -102,7 +102,7 @@ public class CouponApi {
|
||||
* 平台获取平台优惠券列表
|
||||
*/
|
||||
public static List<CouponVO> getPlatformCouponPage() {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/coupon/page?pageSize=10&pageNum=1&couponName=&couponType=&getWay=";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/coupon/page?pageSize=10&pageNum=1&couponName=&couponType=&getWay=";
|
||||
return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, PageVO.class, UrlEnum.PLATFORM)), PageVO.class).getList()), CouponVO.class);
|
||||
}
|
||||
|
||||
@ -110,7 +110,7 @@ public class CouponApi {
|
||||
* 平台新建平台优惠券
|
||||
*/
|
||||
public static void savePlatformCoupon(CouponDTO couponDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/coupon";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/coupon";
|
||||
HttpUtil.post(url, couponDTO, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -118,7 +118,7 @@ public class CouponApi {
|
||||
* 平台获取平台优惠券信息
|
||||
*/
|
||||
public static CouponVO getPlatformCouponInfo(Long couponId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/coupon?couponId=" + couponId;
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/coupon?couponId=" + couponId;
|
||||
return HttpUtil.get(url, CouponVO.class, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -126,7 +126,7 @@ public class CouponApi {
|
||||
* 平台修改平台优惠券信息
|
||||
*/
|
||||
public static void updatePlatformCoupon(CouponDTO couponDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/coupon";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/coupon";
|
||||
HttpUtil.put(url, couponDTO, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -134,7 +134,7 @@ public class CouponApi {
|
||||
* 平台删除平台优惠券
|
||||
*/
|
||||
public static void deletePlatformCoupon(Long couponId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/coupon?couponId=" + couponId;
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/coupon?couponId=" + couponId;
|
||||
HttpUtil.delete(url, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -142,7 +142,7 @@ public class CouponApi {
|
||||
* 用户领取优惠券
|
||||
*/
|
||||
public static void receive(Long couponId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/my_coupon/receive";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/my_coupon/receive";
|
||||
HttpUtil.post(url, couponId, UrlEnum.API);
|
||||
}
|
||||
|
||||
@ -150,7 +150,7 @@ public class CouponApi {
|
||||
* 用户获取优惠券列表
|
||||
*/
|
||||
public static List<CouponAppVO> getUserCouponPage() {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/my_coupon/get_page?pageSize=10&pageNum=1&status=1&type=0";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/my_coupon/get_page?pageSize=10&pageNum=1&status=1&type=0";
|
||||
return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, PageVO.class, UrlEnum.API)), PageVO.class).getList()), CouponAppVO.class);
|
||||
}
|
||||
|
||||
@ -158,7 +158,7 @@ public class CouponApi {
|
||||
* 用户删除优惠券
|
||||
*/
|
||||
public static void deleteUserCoupon(Long couponUserId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/my_coupon/delete_coupon/" + couponUserId;
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/my_coupon/delete_coupon/" + couponUserId;
|
||||
HttpUtil.delete(url, UrlEnum.API);
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ public class DiscountApi {
|
||||
* 商家获取满减列表
|
||||
*/
|
||||
public static List<DiscountVO> getDiscountPage(Boolean isMainShop) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/discount/page?pageSize=10&pageNum=1&name=";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/discount/page?pageSize=10&pageNum=1&name=";
|
||||
if(isMainShop) {
|
||||
return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, PageVO.class, UrlEnum.SHOP)), PageVO.class).getList()), DiscountVO.class);
|
||||
} else {
|
||||
@ -33,7 +33,7 @@ public class DiscountApi {
|
||||
* 新增满减
|
||||
*/
|
||||
public static void save(DiscountDTO discountDTO, Boolean isMainShop) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/discount";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/discount";
|
||||
if(isMainShop) {
|
||||
HttpUtil.post(url, discountDTO, UrlEnum.SHOP);
|
||||
} else {
|
||||
@ -45,7 +45,7 @@ public class DiscountApi {
|
||||
* 通过id获取满减
|
||||
*/
|
||||
public static DiscountVO getDiscountInfo(Long discountId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/discount/info/" + discountId;
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/discount/info/" + discountId;
|
||||
return HttpUtil.get(url, DiscountVO.class, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -53,7 +53,7 @@ public class DiscountApi {
|
||||
* 修改满减
|
||||
*/
|
||||
public static void update(DiscountDTO discountDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/discount";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/discount";
|
||||
HttpUtil.put(url, discountDTO, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -61,7 +61,7 @@ public class DiscountApi {
|
||||
* 删除满减
|
||||
*/
|
||||
public static void delete(Long discountId, Boolean isMainShop) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/discount/" + discountId;
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/discount/" + discountId;
|
||||
if(isMainShop) {
|
||||
HttpUtil.delete(url, UrlEnum.SHOP);
|
||||
} else {
|
||||
@ -73,7 +73,7 @@ public class DiscountApi {
|
||||
* 平台违规下架平台活动
|
||||
*/
|
||||
public static void offline(OfflineHandleEventDTO offlineHandleEventDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/discount/offline";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/discount/offline";
|
||||
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -81,7 +81,7 @@ public class DiscountApi {
|
||||
* 商家获取最新下架信息
|
||||
*/
|
||||
public static OfflineHandleEventVO shopGetOfflineHandleEvent(Long discountId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/discount/get_offline_handle_event/" + discountId;
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/discount/get_offline_handle_event/" + discountId;
|
||||
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -89,7 +89,7 @@ public class DiscountApi {
|
||||
* 商家申请上架,提交审核
|
||||
*/
|
||||
public static void applyDiscount(OfflineHandleEventDTO offlineHandleEventDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/discount/audit_apply";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/discount/audit_apply";
|
||||
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -97,7 +97,7 @@ public class DiscountApi {
|
||||
* 平台获取最新下架信息
|
||||
*/
|
||||
public static OfflineHandleEventVO platformGetOfflineHandleEvent(Long discountId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/discount/get_offline_handle_event/" + discountId;
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/discount/get_offline_handle_event/" + discountId;
|
||||
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -105,7 +105,7 @@ public class DiscountApi {
|
||||
* 平台审核平台活动
|
||||
*/
|
||||
public static void auditDiscount(OfflineHandleEventDTO offlineHandleEventDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/mp/discount/audit";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/mp/discount/audit";
|
||||
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,7 @@ public class DistributionProdApi {
|
||||
* 获取分销商品列表
|
||||
*/
|
||||
public static List<SpuAdminVO> getDistributionProdPage(Boolean isMainShop) {
|
||||
String url = Constant.API_URL + "/mall4cloud_search/mp/search/page_distribution_spu?pageSize=10&pageNum=1&distributionSpu=true&spuName=&distributionState=";
|
||||
String url = Constant.API_URL + "/tmerclub_search/mp/search/page_distribution_spu?pageSize=10&pageNum=1&distributionSpu=true&spuName=&distributionState=";
|
||||
if(isMainShop) {
|
||||
return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, EsPageVO.class, UrlEnum.SHOP)), EsPageVO.class).getList()), SpuAdminVO.class);
|
||||
} else {
|
||||
@ -33,7 +33,7 @@ public class DistributionProdApi {
|
||||
* 新增分销商品
|
||||
*/
|
||||
public static void save(DistributionSpuDTO distributionSpuDTO, Boolean isMainShop) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/m/distribution_spu";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/m/distribution_spu";
|
||||
if(isMainShop) {
|
||||
HttpUtil.post(url, distributionSpuDTO, UrlEnum.SHOP);
|
||||
} else {
|
||||
@ -45,7 +45,7 @@ public class DistributionProdApi {
|
||||
* 修改分销商品
|
||||
*/
|
||||
public static void update(DistributionSpuDTO distributionSpuDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/m/distribution_spu";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/m/distribution_spu";
|
||||
HttpUtil.put(url, distributionSpuDTO, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -53,7 +53,7 @@ public class DistributionProdApi {
|
||||
* 删除分销商品
|
||||
*/
|
||||
public static void delete(Long distributionSpuId, Boolean isMainShop) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/m/distribution_spu?distributionSpuId=" + distributionSpuId;
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/m/distribution_spu?distributionSpuId=" + distributionSpuId;
|
||||
if(isMainShop) {
|
||||
HttpUtil.delete(url, UrlEnum.SHOP);
|
||||
} else {
|
||||
@ -65,7 +65,7 @@ public class DistributionProdApi {
|
||||
* 平台违规下架活动
|
||||
*/
|
||||
public static void offline(OfflineHandleEventDTO offlineHandleEventDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/p/distribution_spu/offline";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/p/distribution_spu/offline";
|
||||
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -73,7 +73,7 @@ public class DistributionProdApi {
|
||||
* 商家获取最新下架信息
|
||||
*/
|
||||
public static OfflineHandleEventVO shopGetOfflineHandleEvent(Long distributionSpuId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/m/distribution_spu/get_offline_handle_event?distributionSpuId=" + distributionSpuId;
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/m/distribution_spu/get_offline_handle_event?distributionSpuId=" + distributionSpuId;
|
||||
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -81,7 +81,7 @@ public class DistributionProdApi {
|
||||
* 商家申请上架,提交审核
|
||||
*/
|
||||
public static void apply(OfflineHandleEventDTO offlineHandleEventDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/m/distribution_spu/audit_apply";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/m/distribution_spu/audit_apply";
|
||||
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -89,7 +89,7 @@ public class DistributionProdApi {
|
||||
* 平台获取最新下架信息
|
||||
*/
|
||||
public static OfflineHandleEventVO platformGetOfflineHandleEvent(Long distributionSpuId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/p/distribution_spu/get_offline_handle_event?distributionSpuId=" + distributionSpuId;
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/p/distribution_spu/get_offline_handle_event?distributionSpuId=" + distributionSpuId;
|
||||
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -97,7 +97,7 @@ public class DistributionProdApi {
|
||||
* 平台审核平台活动
|
||||
*/
|
||||
public static void audit(OfflineHandleEventDTO offlineHandleEventDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_marketing/p/distribution_spu/audit";
|
||||
String url = Constant.API_URL + "/tmerclub_marketing/p/distribution_spu/audit";
|
||||
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.PLATFORM);
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ public class GiveawayApi {
|
||||
* 获取赠品活动列表
|
||||
*/
|
||||
public static List<GiveawayVO> getGiveawayPage() {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/m/giveaway/page?pageNum=1&pageSize=10&name=&spuName=&status=&giveawaySpuName=";
|
||||
String url = Constant.API_URL + "/tmerclub_product/m/giveaway/page?pageNum=1&pageSize=10&name=&spuName=&status=&giveawaySpuName=";
|
||||
return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, PageVO.class, UrlEnum.SHOP)), PageVO.class).getList()), GiveawayVO.class);
|
||||
}
|
||||
|
||||
@ -27,7 +27,7 @@ public class GiveawayApi {
|
||||
* 新增赠品活动
|
||||
*/
|
||||
public static void save(GiveawayDTO giveawayDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/m/giveaway";
|
||||
String url = Constant.API_URL + "/tmerclub_product/m/giveaway";
|
||||
HttpUtil.post(url, giveawayDTO, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -35,7 +35,7 @@ public class GiveawayApi {
|
||||
* 根据id获取赠品活动信息
|
||||
*/
|
||||
public static GiveawayVO getGiveawayInfo(Long giveawayId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/m/giveaway?giveawayId=" + giveawayId;
|
||||
String url = Constant.API_URL + "/tmerclub_product/m/giveaway?giveawayId=" + giveawayId;
|
||||
return HttpUtil.get(url, GiveawayVO.class, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -43,7 +43,7 @@ public class GiveawayApi {
|
||||
* 修改赠品活动
|
||||
*/
|
||||
public static void update(GiveawayDTO giveawayDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/m/giveaway";
|
||||
String url = Constant.API_URL + "/tmerclub_product/m/giveaway";
|
||||
HttpUtil.put(url, giveawayDTO, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -51,7 +51,7 @@ public class GiveawayApi {
|
||||
* 修改赠品状态
|
||||
*/
|
||||
public static void updateGiveawayStatus(Integer status, Long giveawayId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/m/giveaway/changeStatus?status=" + status + "&giveawayId=" + giveawayId;
|
||||
String url = Constant.API_URL + "/tmerclub_product/m/giveaway/changeStatus?status=" + status + "&giveawayId=" + giveawayId;
|
||||
HttpUtil.put(url, UrlEnum.SHOP);
|
||||
}
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ public class GroupApi {
|
||||
* 新增拼团活动
|
||||
*/
|
||||
public static void save(GroupActivityDTO groupActivityDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_group/mp/group_activity";
|
||||
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity";
|
||||
HttpUtil.post(url, groupActivityDTO, UrlEnum.SHOP );
|
||||
}
|
||||
|
||||
@ -35,7 +35,7 @@ public class GroupApi {
|
||||
* 商家获取拼团活动列表
|
||||
*/
|
||||
public static List<GroupActivityVO> getGroupActivityPage() {
|
||||
String url = Constant.API_URL + "/mall4cloud_group/mp/group_activity/page?pageSize=10&pageNum=1&activityName=&spuName=&status=";
|
||||
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity/page?pageSize=10&pageNum=1&activityName=&spuName=&status=";
|
||||
return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, PageVO.class, UrlEnum.SHOP)), PageVO.class).getList()), GroupActivityVO.class);
|
||||
}
|
||||
|
||||
@ -43,7 +43,7 @@ public class GroupApi {
|
||||
*通过id获取拼团活动
|
||||
*/
|
||||
public static GroupActivityVO getGroupActivity(Long groupActivityId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_group/mp/group_activity?groupActivityId=" + groupActivityId;
|
||||
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity?groupActivityId=" + groupActivityId;
|
||||
return HttpUtil.get(url, GroupActivityVO.class, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -51,7 +51,7 @@ public class GroupApi {
|
||||
* 修改拼团活动
|
||||
*/
|
||||
public static void updateGroupActivity(GroupActivityDTO groupActivityDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_group/mp/group_activity";
|
||||
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity";
|
||||
HttpUtil.put(url, groupActivityDTO, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -59,7 +59,7 @@ public class GroupApi {
|
||||
* 启用拼团活动
|
||||
*/
|
||||
public static void activeGroupActivity(GroupActivityDTO groupActivityDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_group/mp/group_activity/active";
|
||||
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity/active";
|
||||
HttpUtil.put(url, groupActivityDTO, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -67,7 +67,7 @@ public class GroupApi {
|
||||
* 失效拼团活动
|
||||
*/
|
||||
public static void invalidActivity(GroupActivityDTO groupActivityDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_group/mp/group_activity/invalid";
|
||||
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity/invalid";
|
||||
HttpUtil.put(url, groupActivityDTO, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -75,7 +75,7 @@ public class GroupApi {
|
||||
* 删除拼团活动
|
||||
*/
|
||||
public static void deleteGroupActivity(Long groupActivityId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_group/mp/group_activity?groupActivityId=" + groupActivityId;
|
||||
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity?groupActivityId=" + groupActivityId;
|
||||
HttpUtil.delete(url, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -83,7 +83,7 @@ public class GroupApi {
|
||||
* 平台违规下架平台活动
|
||||
*/
|
||||
public static void offline(OfflineHandleEventDTO offlineHandleEventDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_group/mp/group_activity/offline";
|
||||
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity/offline";
|
||||
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -91,7 +91,7 @@ public class GroupApi {
|
||||
* 商家获取最新下架信息
|
||||
*/
|
||||
public static OfflineHandleEventVO shopGetOfflineHandleEvent(Long groupActivityId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_group/mp/group_activity/get_offline_handle_event/" + groupActivityId;
|
||||
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity/get_offline_handle_event/" + groupActivityId;
|
||||
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -99,7 +99,7 @@ public class GroupApi {
|
||||
* 商家申请上架,提交审核
|
||||
*/
|
||||
public static void applyGroupActivity(OfflineHandleEventDTO offlineHandleEventDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_group/mp/group_activity/audit_apply";
|
||||
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity/audit_apply";
|
||||
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -107,7 +107,7 @@ public class GroupApi {
|
||||
* 平台获取最新下架信息
|
||||
*/
|
||||
public static OfflineHandleEventVO platformGetOfflineHandleEvent(Long groupActivityId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_group/mp/group_activity/get_offline_handle_event/" + groupActivityId;
|
||||
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity/get_offline_handle_event/" + groupActivityId;
|
||||
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -115,7 +115,7 @@ public class GroupApi {
|
||||
* 平台审核平台活动
|
||||
*/
|
||||
public static void auditGroupActivity(OfflineHandleEventDTO offlineHandleEventDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_group/mp/group_activity/audit";
|
||||
String url = Constant.API_URL + "/tmerclub_group/mp/group_activity/audit";
|
||||
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -123,7 +123,7 @@ public class GroupApi {
|
||||
* 用户获取团购商品信息
|
||||
*/
|
||||
public static AppGroupActivityVO getGroupActivityInfo(Long productId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_group/ua/group_activity/info?spuId=" + productId;
|
||||
String url = Constant.API_URL + "/tmerclub_group/ua/group_activity/info?spuId=" + productId;
|
||||
return HttpUtil.get(url, AppGroupActivityVO.class, UrlEnum.API);
|
||||
}
|
||||
|
||||
@ -131,7 +131,7 @@ public class GroupApi {
|
||||
* 用户开团
|
||||
*/
|
||||
public static void openGroup(GroupOrderDTO groupOrderDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_group/group_order/confirm";
|
||||
String url = Constant.API_URL + "/tmerclub_group/group_order/confirm";
|
||||
HttpUtil.post(url, groupOrderDTO, UrlEnum.API);
|
||||
}
|
||||
|
||||
@ -139,7 +139,7 @@ public class GroupApi {
|
||||
* 开团用户提交拼团订单
|
||||
*/
|
||||
public static List<Long> submitGroupOrder(SubmitGroupOrderDTO submitGroupOrderDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_group/group_order/submit";
|
||||
String url = Constant.API_URL + "/tmerclub_group/group_order/submit";
|
||||
return HttpUtil.post(url, submitGroupOrderDTO, UrlEnum.API, List.class);
|
||||
}
|
||||
|
||||
@ -147,7 +147,7 @@ public class GroupApi {
|
||||
* 用户获取可参团列表
|
||||
*/
|
||||
public static List<AppGroupTeamVO> getJoinGroupList(Long groupActivityId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_group/ua/group_activity/join_group_list?groupActivityId=" + groupActivityId;
|
||||
String url = Constant.API_URL + "/tmerclub_group/ua/group_activity/join_group_list?groupActivityId=" + groupActivityId;
|
||||
return HttpUtil.get(url, List.class, UrlEnum.API_OTHER);
|
||||
}
|
||||
|
||||
@ -155,7 +155,7 @@ public class GroupApi {
|
||||
* 用户立即参团
|
||||
*/
|
||||
public static void joinGroup(GroupOrderDTO groupOrderDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_group/group_order/confirm";
|
||||
String url = Constant.API_URL + "/tmerclub_group/group_order/confirm";
|
||||
HttpUtil.post(url, groupOrderDTO, UrlEnum.API_OTHER);
|
||||
}
|
||||
|
||||
@ -163,7 +163,7 @@ public class GroupApi {
|
||||
* 参团用户提交拼团订单
|
||||
*/
|
||||
public static List<Long> submitJoinGroupOrder(SubmitGroupOrderDTO submitGroupOrderDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_group/group_order/submit";
|
||||
String url = Constant.API_URL + "/tmerclub_group/group_order/submit";
|
||||
return HttpUtil.post(url, submitGroupOrderDTO, UrlEnum.API_OTHER, List.class);
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
// * 商家获取直播商品列表
|
||||
// */
|
||||
// public static List<LiveProdStore> getLiveProdStorePage() {
|
||||
// String url = Constant.API_URL + "/mall4cloud_marketing/m/live_prod_store/page?pageNum=1&pageSize=10&name=";
|
||||
// String url = Constant.API_URL + "/tmerclub_marketing/m/live_prod_store/page?pageNum=1&pageSize=10&name=";
|
||||
// return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, PageVO.class, UrlEnum.SHOP)), PageVO.class).getList()), LiveProdStore.class);
|
||||
// }
|
||||
//
|
||||
@ -29,7 +29,7 @@
|
||||
// * 新增直播商品
|
||||
// */
|
||||
// public static void saveLiveProdStore(LiveProdStoreDTO liveProdStoreDTO) {
|
||||
// String url = Constant.API_URL + "/mall4cloud_marketing/m/live_prod_store";
|
||||
// String url = Constant.API_URL + "/tmerclub_marketing/m/live_prod_store";
|
||||
// HttpUtil.post(url, liveProdStoreDTO, UrlEnum.SHOP);
|
||||
// }
|
||||
//
|
||||
@ -37,7 +37,7 @@
|
||||
// * 获取直播商品信息
|
||||
// */
|
||||
// public static LiveProdStore getLiveProdStore(Long liveProdStoreId) {
|
||||
// String url = Constant.API_URL + "/mall4cloud_marketing/m/live_prod_store/info/" + liveProdStoreId;
|
||||
// String url = Constant.API_URL + "/tmerclub_marketing/m/live_prod_store/info/" + liveProdStoreId;
|
||||
// return HttpUtil.get(url, LiveProdStore.class, UrlEnum.SHOP);
|
||||
// }
|
||||
//
|
||||
@ -45,7 +45,7 @@
|
||||
// * 修改直播商品
|
||||
// */
|
||||
// public static void updateLiveProdStore(LiveProdStoreDTO liveProdStoreDTO) {
|
||||
// String url = Constant.API_URL + "/mall4cloud_marketing/m/live_prod_store";
|
||||
// String url = Constant.API_URL + "/tmerclub_marketing/m/live_prod_store";
|
||||
// HttpUtil.put(url, liveProdStoreDTO, UrlEnum.SHOP);
|
||||
// }
|
||||
//
|
||||
@ -53,7 +53,7 @@
|
||||
// * 提交审核
|
||||
// */
|
||||
// public static void submitVerify(LiveProdStore liveProdStore) {
|
||||
// String url = Constant.API_URL + "/mall4cloud_marketing/m/live_prod_store/submitVerify";
|
||||
// String url = Constant.API_URL + "/tmerclub_marketing/m/live_prod_store/submitVerify";
|
||||
// HttpUtil.put(url, liveProdStore, UrlEnum.SHOP);
|
||||
// }
|
||||
//
|
||||
@ -61,7 +61,7 @@
|
||||
// * 删除直播商品
|
||||
// */
|
||||
// public static void deleteLiveProdStore(Long liveProdStoreId) {
|
||||
// String url = Constant.API_URL + "/mall4cloud_marketing/m/live_prod_store/" + liveProdStoreId;
|
||||
// String url = Constant.API_URL + "/tmerclub_marketing/m/live_prod_store/" + liveProdStoreId;
|
||||
// HttpUtil.delete(url, UrlEnum.SHOP);
|
||||
// }
|
||||
//
|
||||
@ -69,7 +69,7 @@
|
||||
// * 商家获取直播间列表
|
||||
// */
|
||||
// public static List<LiveRoom> getLiveRoomPage() {
|
||||
// String url = Constant.API_URL + "/mall4cloud_marketing/m/live_room/page?pageNum=1&pageSize=10&name=&anchorName=&liveStatus=&roomTop=";
|
||||
// String url = Constant.API_URL + "/tmerclub_marketing/m/live_room/page?pageNum=1&pageSize=10&name=&anchorName=&liveStatus=&roomTop=";
|
||||
// return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, PageVO.class, UrlEnum.SHOP)), PageVO.class).getList()), LiveRoom.class);
|
||||
// }
|
||||
//
|
||||
@ -77,7 +77,7 @@
|
||||
// * 新增直播间
|
||||
// */
|
||||
// public static void saveLiveRoom(LiveRoom liveRoom) {
|
||||
// String url = Constant.API_URL + "/mall4cloud_marketing/m/live_room";
|
||||
// String url = Constant.API_URL + "/tmerclub_marketing/m/live_room";
|
||||
// HttpUtil.post(url, liveRoom, UrlEnum.SHOP);
|
||||
// }
|
||||
//
|
||||
@ -85,7 +85,7 @@
|
||||
// * 删除直播间
|
||||
// */
|
||||
// public static void deleteLiveRoom(Long liveRoomId) {
|
||||
// String url = Constant.API_URL + "/mall4cloud_marketing/m/live_room?id=" + liveRoomId;
|
||||
// String url = Constant.API_URL + "/tmerclub_marketing/m/live_room?id=" + liveRoomId;
|
||||
// HttpUtil.delete(url, UrlEnum.SHOP);
|
||||
// }
|
||||
//
|
||||
@ -93,7 +93,7 @@
|
||||
// * 获取直播成员
|
||||
// */
|
||||
// public static List<LiveUser> getLiveUserPage() {
|
||||
// String url = Constant.API_URL + "/mall4cloud_marketing/p/live_user/page?pageNum=1&pageSize=10&nickName=&anchorWechat=&roles=";
|
||||
// String url = Constant.API_URL + "/tmerclub_marketing/p/live_user/page?pageNum=1&pageSize=10&nickName=&anchorWechat=&roles=";
|
||||
// return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, PageVO.class, UrlEnum.PLATFORM)), PageVO.class).getList()), LiveUser.class);
|
||||
// }
|
||||
//
|
||||
|
@ -24,7 +24,7 @@ public class SeckillApi {
|
||||
* 平台新建秒杀分类
|
||||
*/
|
||||
public static void saveSeckillCategory(SeckillCategoryDTO seckillCategoryDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_seckill/mp/seckill_category";
|
||||
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill_category";
|
||||
HttpUtil.post(url, seckillCategoryDTO, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -32,7 +32,7 @@ public class SeckillApi {
|
||||
* 获取秒杀分类列表
|
||||
*/
|
||||
public static List<SeckillCategory> getSeckillCategoryList() {
|
||||
String url = Constant.API_URL + "/mall4cloud_seckill/mp/seckill_category/list";
|
||||
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill_category/list";
|
||||
return HttpUtil.get(url, List.class, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -40,7 +40,7 @@ public class SeckillApi {
|
||||
* 删除秒杀分类
|
||||
*/
|
||||
public static void deleteSeckillCategory(Long categoryId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_seckill/mp/seckill_category?categoryId=" + categoryId;
|
||||
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill_category?categoryId=" + categoryId;
|
||||
HttpUtil.delete(url, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -48,7 +48,7 @@ public class SeckillApi {
|
||||
* 获取可参加的秒杀列表
|
||||
*/
|
||||
public static List<SeckillAdminVO> getSeckillList() {
|
||||
String url = Constant.API_URL + "/mall4cloud_seckill/mp/seckill/list_seckill?pageSize=10&pageNum=1&name=&type=0";
|
||||
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill/list_seckill?pageSize=10&pageNum=1&name=&type=0";
|
||||
return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, PageVO.class, UrlEnum.SHOP)), PageVO.class).getList()), SeckillAdminVO.class);
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@ public class SeckillApi {
|
||||
* 新增秒杀活动
|
||||
*/
|
||||
public static void saveSeckill(SeckillDTO seckillDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_seckill/mp/seckill";
|
||||
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill";
|
||||
HttpUtil.post(url, seckillDTO, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -64,7 +64,7 @@ public class SeckillApi {
|
||||
* 根据时间获取秒杀活动列表
|
||||
*/
|
||||
public static List<SeckillSpuVO> getSeckillSpuList(Long startTimestamps) {
|
||||
String url = Constant.API_URL + "/mall4cloud_seckill/mp/seckill/list_seckill_spu_by_time?pageSize=10&pageNum=1&name=&startTimestamp=" + startTimestamps;
|
||||
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill/list_seckill_spu_by_time?pageSize=10&pageNum=1&name=&startTimestamp=" + startTimestamps;
|
||||
return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, PageVO.class, UrlEnum.SHOP)), PageVO.class).getList()), SeckillSpuVO.class);
|
||||
}
|
||||
|
||||
@ -72,7 +72,7 @@ public class SeckillApi {
|
||||
* 失效秒杀活动
|
||||
*/
|
||||
public static void invalidSeckill(Long seckillId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_seckill/mp/seckill/invalid/" + seckillId;
|
||||
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill/invalid/" + seckillId;
|
||||
HttpUtil.put(url, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -80,7 +80,7 @@ public class SeckillApi {
|
||||
* 平台违规下架活动
|
||||
*/
|
||||
public static void offline(OfflineHandleEventDTO offlineHandleEventDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_seckill/mp/seckill/offline";
|
||||
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill/offline";
|
||||
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -88,7 +88,7 @@ public class SeckillApi {
|
||||
* 商家获取最新下架信息
|
||||
*/
|
||||
public static OfflineHandleEventVO shopGetOfflineHandleEvent(Long seckillId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_seckill/mp/seckill/get_offline_handle_event/" + seckillId;
|
||||
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill/get_offline_handle_event/" + seckillId;
|
||||
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -96,7 +96,7 @@ public class SeckillApi {
|
||||
* 商家申请上架,提交审核
|
||||
*/
|
||||
public static void apply(OfflineHandleEventDTO offlineHandleEventDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_seckill/mp/seckill/audit_apply";
|
||||
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill/audit_apply";
|
||||
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -104,7 +104,7 @@ public class SeckillApi {
|
||||
* 平台获取最新下架信息
|
||||
*/
|
||||
public static OfflineHandleEventVO platformGetOfflineHandleEvent(Long seckillId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_seckill/mp/seckill/get_offline_handle_event/" + seckillId;
|
||||
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill/get_offline_handle_event/" + seckillId;
|
||||
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -112,7 +112,7 @@ public class SeckillApi {
|
||||
* 平台审核活动
|
||||
*/
|
||||
public static void audit(OfflineHandleEventDTO offlineHandleEventDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_seckill/mp/seckill/audit";
|
||||
String url = Constant.API_URL + "/tmerclub_seckill/mp/seckill/audit";
|
||||
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.PLATFORM);
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ import com.moyuer.cloud.systemtest.util.UrlEnum;
|
||||
*/
|
||||
public class CommentApi {
|
||||
public static void addComment(SpuCommDTO spuCommDto) {
|
||||
String url = Constant.API_URL+"/mall4cloud_product/spu_comm/comment";
|
||||
String url = Constant.API_URL+"/tmerclub_product/spu_comm/comment";
|
||||
HttpUtil.post(url,spuCommDto,UrlEnum.API);
|
||||
}
|
||||
}
|
||||
|
@ -19,37 +19,37 @@ import java.util.List;
|
||||
|
||||
public class MyOrderApi {
|
||||
public static ShopCartOrderMergerVO confirm(OrderDTO orderParam){
|
||||
String url = Constant.API_URL+"/mall4cloud_order/order/confirm";
|
||||
String url = Constant.API_URL+"/tmerclub_order/order/confirm";
|
||||
return HttpUtil.post(url, orderParam, UrlEnum.API, ShopCartOrderMergerVO.class);
|
||||
}
|
||||
|
||||
public static void confirmScoreOrder(OrderDTO orderParam){
|
||||
String url = Constant.API_URL+"/mall4cloud_order/score_order/confirm";
|
||||
String url = Constant.API_URL+"/tmerclub_order/score_order/confirm";
|
||||
HttpUtil.post(url, orderParam, UrlEnum.API);
|
||||
}
|
||||
|
||||
public static List<Long> submit(SubmitOrderDTO submitOrderDTO){
|
||||
String url = Constant.API_URL+"/mall4cloud_order/order/submit";
|
||||
String url = Constant.API_URL+"/tmerclub_order/order/submit";
|
||||
return HttpUtil.post(url, submitOrderDTO,UrlEnum.API, List.class);
|
||||
}
|
||||
|
||||
public static void cancel(Long orderNumber){
|
||||
String url = Constant.API_URL+"/mall4cloud_order/my_order/cancel/"+orderNumber;
|
||||
String url = Constant.API_URL+"/tmerclub_order/my_order/cancel/"+orderNumber;
|
||||
HttpUtil.put(url,UrlEnum.API);
|
||||
}
|
||||
|
||||
public static void receipt(Long orderNumber){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/my_order/receipt/"+orderNumber;
|
||||
String url = Constant.API_URL + "/tmerclub_order/my_order/receipt/"+orderNumber;
|
||||
HttpUtil.put(url,UrlEnum.API);
|
||||
}
|
||||
|
||||
public static OrderShopVO orderDetail(Long orderNumber){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/my_order/order_detail?orderId="+orderNumber;
|
||||
String url = Constant.API_URL + "/tmerclub_order/my_order/order_detail?orderId="+orderNumber;
|
||||
return HttpUtil.get(url,OrderShopVO.class,UrlEnum.API);
|
||||
}
|
||||
|
||||
public static void delete(Long orderNumber){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/my_order/"+orderNumber;
|
||||
String url = Constant.API_URL + "/tmerclub_order/my_order/"+orderNumber;
|
||||
HttpUtil.delete(url,UrlEnum.API);
|
||||
}
|
||||
|
||||
@ -57,7 +57,7 @@ public class MyOrderApi {
|
||||
* 自提订单门店详情
|
||||
*/
|
||||
public static OrderSelfStationVO stationOrderDetail(Long orderId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_order/my_station_order/station_detail?orderId=" + orderId + "&lat=22.943953938872706&lng=113.39070900424778";
|
||||
String url = Constant.API_URL + "/tmerclub_order/my_station_order/station_detail?orderId=" + orderId + "&lat=22.943953938872706&lng=113.39070900424778";
|
||||
return HttpUtil.get(url, OrderSelfStationVO.class, UrlEnum.API);
|
||||
}
|
||||
|
||||
@ -65,7 +65,7 @@ public class MyOrderApi {
|
||||
* 用户扫商家码核销订单
|
||||
*/
|
||||
public static void orderStationByOrderId(OrderStationDTO orderStationDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_order/my_station_order/order_station_by_order_id";
|
||||
String url = Constant.API_URL + "/tmerclub_order/my_station_order/order_station_by_order_id";
|
||||
HttpUtil.put(url, orderStationDTO, UrlEnum.API);
|
||||
}
|
||||
}
|
||||
|
@ -21,45 +21,45 @@ import java.util.List;
|
||||
*/
|
||||
public class OrderApi {
|
||||
public static OrderVO getOrderItemAndAddress(Long orderNumber){
|
||||
String url = Constant.API_URL+"/mall4cloud_order/mp/order/order_item_and_address/"+orderNumber;
|
||||
String url = Constant.API_URL+"/tmerclub_order/mp/order/order_item_and_address/"+orderNumber;
|
||||
return HttpUtil.get(url, OrderVO.class,UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
public static void delivery(DeliveryOrderDTO deliveryOrderParam){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/order/delivery";
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/order/delivery";
|
||||
HttpUtil.post(url,deliveryOrderParam,UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
public static OrderVO infoOrder(Long orderNumber){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/order/order_info/"+orderNumber;
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/order/order_info/"+orderNumber;
|
||||
return HttpUtil.get(url, OrderVO.class,UrlEnum.SHOP);
|
||||
}
|
||||
public static void changeOrderAmount(OrderAdminDTO orderAdminDTO){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/order/change_amount";
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/order/change_amount";
|
||||
HttpUtil.put(url, orderAdminDTO, UrlEnum.SHOP);
|
||||
}
|
||||
public static OrderAddrVO infoOrderAddr(Long orderNumber){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/order/order_addr/"+orderNumber;
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/order/order_addr/"+orderNumber;
|
||||
return HttpUtil.get(url,OrderAddrVO.class,UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
public static void changeOrderAddrCheck(Long orderNumber){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/order/get_change_amount?orderId="+orderNumber+"&areaId=130203";
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/order/get_change_amount?orderId="+orderNumber+"&areaId=130203";
|
||||
HttpUtil.get(url,UrlEnum.SHOP);
|
||||
}
|
||||
public static void changeOrderAddr(OrderAddrDTO orderAddrDTO){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/order/change_user_addr";
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/order/change_user_addr";
|
||||
HttpUtil.put(url,orderAddrDTO,UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
public static List<DeliveryOrderFeignVO> infoOrderDelivery(Long orderNumber){
|
||||
String url = Constant.API_URL+"/mall4cloud_order/mp/order_delivery/info?orderId="+orderNumber;
|
||||
String url = Constant.API_URL+"/tmerclub_order/mp/order_delivery/info?orderId="+orderNumber;
|
||||
List<DeliveryOrderFeignVO> deliveryOrderFeignVos = HttpUtil.get(url, List.class,UrlEnum.SHOP);
|
||||
return deliveryOrderFeignVos;
|
||||
}
|
||||
|
||||
public static void updateOrderDelivery(List<DeliveryOrderDTO> list){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/order_delivery/update";
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/order_delivery/update";
|
||||
HttpUtil.put(url,list,UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -67,7 +67,7 @@ public class OrderApi {
|
||||
* 自提订单商家端提货
|
||||
*/
|
||||
public static void changeStatusAndOrderStation(OrderSelfStationDTO orderSelfStationDTO){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/m/order_self_station/change_status_and_order_station";
|
||||
String url = Constant.API_URL + "/tmerclub_order/m/order_self_station/change_status_and_order_station";
|
||||
HttpUtil.put(url, orderSelfStationDTO, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -75,7 +75,7 @@ public class OrderApi {
|
||||
* 订单自提信息详情
|
||||
*/
|
||||
public static OrderSelfStationVO getOrderItemAndStationInfo(Long orderId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_order/m/order_self_station/get_order_item_and_station_info?orderId=" + orderId;
|
||||
String url = Constant.API_URL + "/tmerclub_order/m/order_self_station/get_order_item_and_station_info?orderId=" + orderId;
|
||||
return HttpUtil.get(url, OrderSelfStationVO.class, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -83,7 +83,7 @@ public class OrderApi {
|
||||
* 根据订单ID和核销码核销虚拟订单
|
||||
*/
|
||||
public static void orderWriteOffByOrderId(OrderVirtualInfoDTO orderVirtualInfoDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_order/m/order_virtual_info/order_write_off_by_order_id";
|
||||
String url = Constant.API_URL + "/tmerclub_order/m/order_virtual_info/order_write_off_by_order_id";
|
||||
HttpUtil.put(url, orderVirtualInfoDTO, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -91,7 +91,7 @@ public class OrderApi {
|
||||
* 根据订单ID采购订单
|
||||
* */
|
||||
public static void sourcingOrder(OrderAdminDTO orderDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/order/sourcing_order";
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/order/sourcing_order";
|
||||
HttpUtil.put(url, orderDTO, UrlEnum.SHOP);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public class OrderRefundApi {
|
||||
* 申请退款
|
||||
*/
|
||||
public static Long apply(OrderRefundDTO orderRefundParam){
|
||||
String url = Constant.API_URL+"/mall4cloud_order/order_refund/apply";
|
||||
String url = Constant.API_URL+"/tmerclub_order/order_refund/apply";
|
||||
return HttpUtil.post(url,orderRefundParam, UrlEnum.API, Long.class);
|
||||
}
|
||||
|
||||
@ -24,7 +24,7 @@ public class OrderRefundApi {
|
||||
* 用户提交退款订单物流填写信息
|
||||
*/
|
||||
public static void submitExpress(OrderRefundDeliveryDTO orderRefundExpressParam){
|
||||
String url = Constant.API_URL+"/mall4cloud_order/order_refund/submit_express";
|
||||
String url = Constant.API_URL+"/tmerclub_order/order_refund/submit_express";
|
||||
HttpUtil.post(url,orderRefundExpressParam,UrlEnum.API);
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ import com.moyuer.cloud.systemtest.util.UrlEnum;
|
||||
*/
|
||||
public class ShopCartApi {
|
||||
public static void addItem(ChangeShopCartItemDTO param) {
|
||||
String url = Constant.API_URL+"/mall4cloud_product/shop_cart/change_item";
|
||||
String url = Constant.API_URL+"/tmerclub_product/shop_cart/change_item";
|
||||
HttpUtil.post(url,param,UrlEnum.API);
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@ public class ShopOrderRefundApi {
|
||||
* 商家查询退款详情
|
||||
*/
|
||||
public static OrderRefundVO infoByRefundSn(Long refundId) {
|
||||
String url = Constant.API_URL+"/mall4cloud_order/m/order_refund/info/"+refundId;
|
||||
String url = Constant.API_URL+"/tmerclub_order/m/order_refund/info/"+refundId;
|
||||
return HttpUtil.get(url,OrderRefundVO.class, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -30,14 +30,14 @@ public class ShopOrderRefundApi {
|
||||
* 商家处理退款订单
|
||||
*/
|
||||
public static void processRefundOrder(OrderRefundDTO orderRefundParam){
|
||||
String url = Constant.API_URL+"/mall4cloud_order/m/order_refund/return_and_refund_audit";
|
||||
String url = Constant.API_URL+"/tmerclub_order/m/order_refund/return_and_refund_audit";
|
||||
HttpUtil.put(url,orderRefundParam,UrlEnum.SHOP);
|
||||
}
|
||||
/**
|
||||
* 商家处理退货退款订单
|
||||
*/
|
||||
public static void returnMoney(OrderRefundDTO orderRefundParam){
|
||||
String url = Constant.API_URL+"/mall4cloud_order/m/order_refund/return_money";
|
||||
String url = Constant.API_URL+"/tmerclub_order/m/order_refund/return_money";
|
||||
HttpUtil.put(url, orderRefundParam, UrlEnum.SHOP);
|
||||
|
||||
}
|
||||
@ -46,7 +46,7 @@ public class ShopOrderRefundApi {
|
||||
* 根据订单号查询退款记录
|
||||
*/
|
||||
public static List<EsOrderRefundVO> getEsOrderRefundVO(Long orderId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_search/mp/search/order_refund/page?pageSize=10&pageNum=1&orderId=" + orderId + "&returnMoneySts=&refundId=&orderType=&applyType=&refundType=&beginTime=&endTime=";
|
||||
String url = Constant.API_URL + "/tmerclub_search/mp/search/order_refund/page?pageSize=10&pageNum=1&orderId=" + orderId + "&returnMoneySts=&refundId=&orderType=&applyType=&refundType=&beginTime=&endTime=";
|
||||
return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, EsPageVO.class, UrlEnum.SHOP)), EsPageVO.class).getList()), EsOrderRefundVO.class);
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ import com.moyuer.cloud.systemtest.util.UrlEnum;
|
||||
*/
|
||||
public class ShopStationApi {
|
||||
public static void addStation(StationDTO stationDTO){
|
||||
String url = Constant.API_URL+"/mall4cloud_order/m/station";
|
||||
String url = Constant.API_URL+"/tmerclub_order/m/station";
|
||||
HttpUtil.post(url,stationDTO, UrlEnum.SHOP);
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ import java.util.List;
|
||||
*/
|
||||
public class StationApi {
|
||||
public static List<StationDetailVO> getStationList(Long shopId){
|
||||
String url = Constant.API_URL+"/mall4cloud_order/station/user_station?pageNum=1&pageSize=7&lat=22.943953938872706&lng=113.39070900424778&stationName=&shopId="+shopId;
|
||||
String url = Constant.API_URL+"/tmerclub_order/station/user_station?pageNum=1&pageSize=7&lat=22.943953938872706&lng=113.39070900424778&stationName=&shopId="+shopId;
|
||||
return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, PageVO.class, UrlEnum.API)), PageVO.class).getList()), StationDetailVO.class);
|
||||
}
|
||||
|
||||
@ -26,7 +26,7 @@ public class StationApi {
|
||||
* 获取门店首页数据
|
||||
*/
|
||||
public static StationVO getStationIndexInfo() {
|
||||
String url = Constant.API_URL + "/mall4cloud_order/station/get_station_index_info";
|
||||
String url = Constant.API_URL + "/tmerclub_order/station/get_station_index_info";
|
||||
return HttpUtil.get(url, StationVO.class, UrlEnum.STATION);
|
||||
}
|
||||
|
||||
@ -34,7 +34,7 @@ public class StationApi {
|
||||
* 在门店端查询订单信息
|
||||
* */
|
||||
public static OrderVO getStationOrderByCode(String code){
|
||||
String url = Constant.API_URL+"/mall4cloud_order/station/get_station_order_by_code?code="+code;
|
||||
String url = Constant.API_URL+"/tmerclub_order/station/get_station_order_by_code?code="+code;
|
||||
return HttpUtil.get(url,OrderVO.class, UrlEnum.STATION);
|
||||
}
|
||||
|
||||
@ -42,14 +42,14 @@ public class StationApi {
|
||||
* 在门店端核销自提订单
|
||||
* */
|
||||
public static void orderStationById(String orderIds) {
|
||||
String url = Constant.API_URL + "/mall4cloud_order/station/order_station_by_order_id";
|
||||
String url = Constant.API_URL + "/tmerclub_order/station/order_station_by_order_id";
|
||||
HttpUtil.put(url, orderIds, UrlEnum.STATION);
|
||||
}
|
||||
/**
|
||||
* 在门店端核销虚拟商品订单
|
||||
* */
|
||||
public static void orderWriteOffByOrderNumber(OrderVirtualInfoDTO orderVirtualInfoDTO){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/station/order_write_off_by_order_id";
|
||||
String url = Constant.API_URL + "/tmerclub_order/station/order_write_off_by_order_id";
|
||||
HttpUtil.put(url, orderVirtualInfoDTO, UrlEnum.STATION);
|
||||
}
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ public class PlatformProductApi {
|
||||
* 平台违规下架商品
|
||||
*/
|
||||
public static void offline(OfflineHandleEventDTO offlineHandleEventDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/mp/spu/batch_offline";
|
||||
String url = Constant.API_URL + "/tmerclub_product/mp/spu/batch_offline";
|
||||
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ public class PlatformProductApi {
|
||||
* 平台获取最新下架信息
|
||||
*/
|
||||
public static OfflineHandleEventVO platformGetOfflineHandleEvent(Long productId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/mp/spu/get_offline_handle_event/" + productId;
|
||||
String url = Constant.API_URL + "/tmerclub_product/mp/spu/get_offline_handle_event/" + productId;
|
||||
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -30,7 +30,7 @@ public class PlatformProductApi {
|
||||
* 平台审核平台活动
|
||||
*/
|
||||
public static void audit(OfflineHandleEventDTO offlineHandleEventDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/mp/spu/audit";
|
||||
String url = Constant.API_URL + "/tmerclub_product/mp/spu/audit";
|
||||
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -38,7 +38,7 @@ public class PlatformProductApi {
|
||||
* 平台置顶商品
|
||||
*/
|
||||
public static void toTop(Long productId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/p/spu/to_top?spuId=" + productId;
|
||||
String url = Constant.API_URL + "/tmerclub_product/p/spu/to_top?spuId=" + productId;
|
||||
HttpUtil.put(url, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -46,7 +46,7 @@ public class PlatformProductApi {
|
||||
* 平台删除商品
|
||||
*/
|
||||
public static void platformDeleteProduct(Long productId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/mp/spu?spuId=" + productId;
|
||||
String url = Constant.API_URL + "/tmerclub_product/mp/spu?spuId=" + productId;
|
||||
HttpUtil.delete(url, UrlEnum.PLATFORM);
|
||||
}
|
||||
}
|
||||
|
@ -14,12 +14,12 @@ import java.util.List;
|
||||
*/
|
||||
public class PlatformTransportApi {
|
||||
public static void platformAddTransport(TransportDTO transportDTO){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/transport";
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/transport";
|
||||
HttpUtil.post(url,transportDTO, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
public static List<TransportVO> platformInfoTransport(){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/transport/page?pageSize=10&pageNum=1&transName=";
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/transport/page?pageSize=10&pageNum=1&transName=";
|
||||
return JSON.parseArray(HttpUtil.gets(url,UrlEnum.PLATFORM), TransportVO.class);
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ public class PlatformWalletApi {
|
||||
* 根据订单号查询结算记录
|
||||
*/
|
||||
public static List<MongoShopWalletLogBO> getMongoShopWalletLogBO(Long orderId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_admin/mp/shop_wallet/page?platformIoType=&amountType=&orderId=" + orderId + "&refundId=&reason=&pageNum=1&pageSize=10";
|
||||
String url = Constant.API_URL + "/tmerclub_admin/mp/shop_wallet/page?platformIoType=&amountType=&orderId=" + orderId + "&refundId=&reason=&pageNum=1&pageSize=10";
|
||||
return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, PageVO.class, UrlEnum.PLATFORM)), PageVO.class).getList()), MongoShopWalletLogBO.class);
|
||||
}
|
||||
|
||||
@ -27,7 +27,7 @@ public class PlatformWalletApi {
|
||||
* 根据订单号查询结算明细
|
||||
*/
|
||||
public static OrderDetailVO getOrderDetailVO(Long orderId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/order_item/get_order_detail?orderId=" + orderId + "&refundId";
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/order_item/get_order_detail?orderId=" + orderId + "&refundId";
|
||||
return HttpUtil.get(url, OrderDetailVO.class, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -35,7 +35,7 @@ public class PlatformWalletApi {
|
||||
* 根据订单号与退款单号查询结算明细
|
||||
*/
|
||||
public static OrderDetailVO getOrderDetailVO(Long orderId, Long refundId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/order_item/get_order_detail?orderId=" + orderId + "&refundId=" + refundId;
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/order_item/get_order_detail?orderId=" + orderId + "&refundId=" + refundId;
|
||||
return HttpUtil.get(url, OrderDetailVO.class, UrlEnum.PLATFORM);
|
||||
}
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ public class ScoreConfigApi {
|
||||
* 获取积分配置详情
|
||||
*/
|
||||
public static ScoreConfigVO info() {
|
||||
String url = Constant.API_URL + "/mall4cloud_admin/p/score_config/info/SCORE_CONFIG";
|
||||
String url = Constant.API_URL + "/tmerclub_admin/p/score_config/info/SCORE_CONFIG";
|
||||
return HttpUtil.get(url, ScoreConfigVO.class, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ public class ScoreConfigApi {
|
||||
* 更新积分配置
|
||||
*/
|
||||
public static void update(ScoreConfigDTO scoreConfigDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_admin/p/score_config";
|
||||
String url = Constant.API_URL + "/tmerclub_admin/p/score_config";
|
||||
HttpUtil.post(url, scoreConfigDTO, UrlEnum.PLATFORM);
|
||||
}
|
||||
}
|
||||
|
@ -14,23 +14,23 @@ import java.util.List;
|
||||
*/
|
||||
public class ScoreOrderApi {
|
||||
public static OrderVO getScoreOrderItemAndAddress(Long orderNumber){
|
||||
String url = Constant.API_URL+"/mall4cloud_order/mp/order/order_item_and_address/"+orderNumber;
|
||||
String url = Constant.API_URL+"/tmerclub_order/mp/order/order_item_and_address/"+orderNumber;
|
||||
return HttpUtil.get(url, OrderVO.class, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
public static void scoreOrderDelivery(DeliveryOrderDTO deliveryOrderParam){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/order/delivery";
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/order/delivery";
|
||||
HttpUtil.post(url,deliveryOrderParam,UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
public static List<DeliveryOrderFeignVO> infoOrderDelivery(Long orderNumber){
|
||||
String url = Constant.API_URL+"/mall4cloud_order/mp/order_delivery/info?orderId="+orderNumber;
|
||||
String url = Constant.API_URL+"/tmerclub_order/mp/order_delivery/info?orderId="+orderNumber;
|
||||
List<DeliveryOrderFeignVO> deliveryOrderFeignVos = HttpUtil.get(url, List.class,UrlEnum.PLATFORM);
|
||||
return deliveryOrderFeignVos;
|
||||
}
|
||||
|
||||
public static void updateOrderDelivery(List<DeliveryOrderDTO> list){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/order_delivery/update";
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/order_delivery/update";
|
||||
HttpUtil.put(url,list,UrlEnum.PLATFORM);
|
||||
}
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ public class ScoreProductApi {
|
||||
* 发布积分商品
|
||||
*/
|
||||
public static Long createScoreProduct(SpuDTO spuDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/p/spu/score_save";
|
||||
String url = Constant.API_URL + "/tmerclub_product/p/spu/score_save";
|
||||
return HttpUtil.post(url, spuDTO, UrlEnum.PLATFORM,Long.class);
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ public class ScoreProductApi {
|
||||
* 删除积分商品
|
||||
*/
|
||||
public static void deleteScoreProduct(Long spuId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/mp/spu?spuId=" + spuId;
|
||||
String url = Constant.API_URL + "/tmerclub_product/mp/spu?spuId=" + spuId;
|
||||
HttpUtil.delete(url,UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -30,7 +30,7 @@ public class ScoreProductApi {
|
||||
* 获取积分商品详情
|
||||
*/
|
||||
public static SpuAppVO getScoreProductInfo(Long spuId, Long userId){
|
||||
String url = Constant.API_URL + "/mall4cloud_product/ma/spu/score_prod_info?spuId="+spuId+"&&userId="+userId;
|
||||
String url = Constant.API_URL + "/tmerclub_product/ma/spu/score_prod_info?spuId="+spuId+"&&userId="+userId;
|
||||
return HttpUtil.get(url, SpuAppVO.class,UrlEnum.API);
|
||||
}
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ public class UserLevelApi {
|
||||
* 获取用户等级信息
|
||||
*/
|
||||
public static UserLevelVO info(Long userLevelId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_user/p/user_level?userLevelId=" + userLevelId;
|
||||
String url = Constant.API_URL + "/tmerclub_user/p/user_level?userLevelId=" + userLevelId;
|
||||
return HttpUtil.get(url, UserLevelVO.class, UrlEnum.PLATFORM);
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ public class UserLevelApi {
|
||||
* 更新用户等级
|
||||
*/
|
||||
public static void update(UserLevelDTO userLevelDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_user/p/user_level";
|
||||
String url = Constant.API_URL + "/tmerclub_user/p/user_level";
|
||||
HttpUtil.put(url, userLevelDTO, UrlEnum.PLATFORM);
|
||||
}
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ public class UserRightsApi {
|
||||
* 新增用户权益
|
||||
*/
|
||||
public static Long save(UserRightsDTO userRightsDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_user/p/user_rights";
|
||||
String url = Constant.API_URL + "/tmerclub_user/p/user_rights";
|
||||
return HttpUtil.post(url, userRightsDTO, UrlEnum.PLATFORM, Long.class);
|
||||
}
|
||||
|
||||
@ -21,7 +21,7 @@ public class UserRightsApi {
|
||||
* 删除用户权益
|
||||
*/
|
||||
public static void delete(Long rightsId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_user/p/user_rights?rightsId=" + rightsId;
|
||||
String url = Constant.API_URL + "/tmerclub_user/p/user_rights?rightsId=" + rightsId;
|
||||
HttpUtil.delete(url, UrlEnum.PLATFORM);
|
||||
}
|
||||
}
|
||||
|
@ -11,12 +11,12 @@ import com.moyuer.cloud.systemtest.util.UrlEnum;
|
||||
*/
|
||||
public class SameCityApi {
|
||||
public static SameCityVO getSameCityInfo() {
|
||||
String url = Constant.API_URL + "/mall4cloud_order/m/same_city/get_same_city_info";
|
||||
String url = Constant.API_URL + "/tmerclub_order/m/same_city/get_same_city_info";
|
||||
return HttpUtil.get(url, SameCityVO.class, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
public static void saveSameCity(SameCityDTO sameCityDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_order/m/same_city";
|
||||
String url = Constant.API_URL + "/tmerclub_order/m/same_city";
|
||||
HttpUtil.post(url, sameCityDTO, UrlEnum.SHOP);
|
||||
}
|
||||
}
|
||||
|
@ -14,12 +14,12 @@ import java.util.List;
|
||||
*/
|
||||
public class ShopRefundAddrApi {
|
||||
public static Long addShopRefundAddr(ShopRefundAddrDTO shopRefundAddrDTO){
|
||||
String url = Constant.API_URL +"/mall4cloud_admin/mp/shop_refund_addr";
|
||||
String url = Constant.API_URL +"/tmerclub_admin/mp/shop_refund_addr";
|
||||
return JSON.parseArray(JSON.toJSONString(HttpUtil.post(url,shopRefundAddrDTO, UrlEnum.SHOP,Long.class)),Long.class).get(0);
|
||||
}
|
||||
|
||||
public static List<ShopRefundAddrVO> listShopRefundAddr(){
|
||||
String url = Constant.API_URL +"/mall4cloud_admin/mp/shop_refund_addr/list";
|
||||
String url = Constant.API_URL +"/tmerclub_admin/mp/shop_refund_addr/list";
|
||||
return JSON.parseArray(JSON.toJSONString(HttpUtil.get(url,List.class, UrlEnum.SHOP)),ShopRefundAddrVO.class);
|
||||
}
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ public class ShopSubstituteSalesApi {
|
||||
* 获取代销设置详情
|
||||
*/
|
||||
public static ShopSubstituteSalesVO getShopSubstituteSales() {
|
||||
String url = Constant.API_URL + "/mall4cloud_admin/m/shop_substitute_sales";
|
||||
String url = Constant.API_URL + "/tmerclub_admin/m/shop_substitute_sales";
|
||||
return HttpUtil.get(url, ShopSubstituteSalesVO.class, UrlEnum.SHOP);
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ public class ShopSubstituteSalesApi {
|
||||
* 修改代销设置
|
||||
*/
|
||||
public static void updateShopSubstituteSales(ShopSubstituteSalesDTO shopSubstituteSalesDTO, Boolean isMainShop) {
|
||||
String url = Constant.API_URL + "/mall4cloud_admin/m/shop_substitute_sales";
|
||||
String url = Constant.API_URL + "/tmerclub_admin/m/shop_substitute_sales";
|
||||
if(isMainShop) {
|
||||
HttpUtil.put(url, shopSubstituteSalesDTO, UrlEnum.SHOP);
|
||||
} else {
|
||||
|
@ -19,7 +19,7 @@ public class ShopWalletApi {
|
||||
* 根据订单号查询结算记录
|
||||
*/
|
||||
public static List<MongoShopWalletLogBO> getMongoShopWalletLogBO(Long orderId, Boolean isMainShop) {
|
||||
String url = Constant.API_URL + "/mall4cloud_admin/mp/shop_wallet/page?shopIoType=&amountType=&orderId=" + orderId + "&refundId=&reason=&pageNum=1&pageSize=10";
|
||||
String url = Constant.API_URL + "/tmerclub_admin/mp/shop_wallet/page?shopIoType=&amountType=&orderId=" + orderId + "&refundId=&reason=&pageNum=1&pageSize=10";
|
||||
if(isMainShop) {
|
||||
return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, PageVO.class, UrlEnum.SHOP)), PageVO.class).getList()), MongoShopWalletLogBO.class);
|
||||
} else {
|
||||
@ -31,7 +31,7 @@ public class ShopWalletApi {
|
||||
* 根据订单号查询结算明细
|
||||
*/
|
||||
public static OrderDetailVO getOrderDetailVO(Long orderId, Boolean isMainShop) {
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/order_item/get_order_detail?orderId=" + orderId + "&refundId";
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/order_item/get_order_detail?orderId=" + orderId + "&refundId";
|
||||
if(isMainShop) {
|
||||
return HttpUtil.get(url, OrderDetailVO.class, UrlEnum.SHOP);
|
||||
} else {
|
||||
@ -43,7 +43,7 @@ public class ShopWalletApi {
|
||||
* 根据订单号与退款单号查询结算明细
|
||||
*/
|
||||
public static OrderDetailVO getOrderDetailVO(Long orderId, Long refundId, Boolean isMainShop) {
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/order_item/get_order_detail?orderId=" + orderId + "&refundId=" + refundId;
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/order_item/get_order_detail?orderId=" + orderId + "&refundId=" + refundId;
|
||||
if(isMainShop) {
|
||||
return HttpUtil.get(url, OrderDetailVO.class, UrlEnum.SHOP);
|
||||
} else {
|
||||
|
@ -14,7 +14,7 @@ import java.util.List;
|
||||
*/
|
||||
public class SkuApi {
|
||||
public static List<SkuVO> getAllSkuList(Long prodId){
|
||||
String url = Constant.API_URL + "/mall4cloud_product/m/sku/get_all_skuList?prodId="+prodId;
|
||||
String url = Constant.API_URL + "/tmerclub_product/m/sku/get_all_skuList?prodId="+prodId;
|
||||
List list = HttpUtil.get(url, List.class, UrlEnum.SHOP);
|
||||
List<SkuVO> skuList = JSON.parseArray(JSON.toJSONString(list), SkuVO.class);
|
||||
return skuList;
|
||||
|
@ -15,7 +15,7 @@ import java.util.List;
|
||||
*/
|
||||
public class TransportApi {
|
||||
public static void addTransport(TransportDTO transportDTO, Boolean isMainShop){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/transport";
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/transport";
|
||||
if(isMainShop) {
|
||||
HttpUtil.post(url, transportDTO, UrlEnum.SHOP);
|
||||
} else {
|
||||
@ -24,7 +24,7 @@ public class TransportApi {
|
||||
}
|
||||
|
||||
public static List<TransportVO> infoTransport(Boolean isMainShop){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/transport/page?pageSize=50&pageNum=1&transName=";
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/transport/page?pageSize=50&pageNum=1&transName=";
|
||||
if(isMainShop) {
|
||||
return JSON.parseArray(HttpUtil.gets(url, UrlEnum.SHOP), TransportVO.class);
|
||||
} else {
|
||||
@ -33,7 +33,7 @@ public class TransportApi {
|
||||
}
|
||||
|
||||
public static TransportVO info(Long transportId, Boolean isMainShop) {
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/transport?transportId=" + transportId;
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/transport?transportId=" + transportId;
|
||||
if(isMainShop) {
|
||||
return HttpUtil.get(url, TransportVO.class, UrlEnum.SHOP);
|
||||
} else {
|
||||
@ -42,7 +42,7 @@ public class TransportApi {
|
||||
}
|
||||
|
||||
public static void update(TransportDTO transportDTO, Boolean isMainShop) {
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/transport";
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/transport";
|
||||
if(isMainShop) {
|
||||
HttpUtil.put(url, transportDTO, UrlEnum.SHOP);
|
||||
} else {
|
||||
@ -51,7 +51,7 @@ public class TransportApi {
|
||||
}
|
||||
|
||||
public static void deleteTransport(Long transportId, Boolean isMainShop){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/transport?transportIds="+transportId;
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/transport?transportIds="+transportId;
|
||||
if(isMainShop) {
|
||||
HttpUtil.delete(url,UrlEnum.SHOP);
|
||||
} else {
|
||||
@ -60,7 +60,7 @@ public class TransportApi {
|
||||
}
|
||||
|
||||
public static List<TransportVO> supplierTransportPage(Boolean isMainSupplier){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/transport/page?pageSize=50&pageNum=1&transName=";
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/transport/page?pageSize=50&pageNum=1&transName=";
|
||||
if(isMainSupplier) {
|
||||
return JSON.parseArray(HttpUtil.gets(url,UrlEnum.SUPPLIER), TransportVO.class);
|
||||
} else {
|
||||
@ -69,7 +69,7 @@ public class TransportApi {
|
||||
}
|
||||
|
||||
public static void addSupplierTransport(TransportDTO transportDTO, Boolean isMainSupplier){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/transport";
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/transport";
|
||||
if(isMainSupplier) {
|
||||
HttpUtil.post(url,transportDTO, UrlEnum.SUPPLIER);
|
||||
} else {
|
||||
@ -78,7 +78,7 @@ public class TransportApi {
|
||||
}
|
||||
|
||||
public static TransportVO infoSupplierTransport(Long transportId, Boolean isMainShop) {
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/transport?transportId=" + transportId;
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/transport?transportId=" + transportId;
|
||||
if(isMainShop) {
|
||||
return HttpUtil.get(url, TransportVO.class, UrlEnum.SHOP);
|
||||
} else {
|
||||
@ -87,7 +87,7 @@ public class TransportApi {
|
||||
}
|
||||
|
||||
public static void updateSupplierTransport(TransportDTO transportDTO, Boolean isMainShop) {
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/transport";
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/transport";
|
||||
if(isMainShop) {
|
||||
HttpUtil.put(url, transportDTO, UrlEnum.SHOP);
|
||||
} else {
|
||||
@ -96,7 +96,7 @@ public class TransportApi {
|
||||
}
|
||||
|
||||
public static void deleteSupplierTransport(Long transportId, Boolean isMainSupplier){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/transport?transportIds="+transportId;
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/transport?transportIds="+transportId;
|
||||
if(isMainSupplier) {
|
||||
HttpUtil.delete(url,UrlEnum.SUPPLIER);
|
||||
} else {
|
||||
|
@ -14,22 +14,22 @@ import java.util.List;
|
||||
*/
|
||||
public class SupplierOrderApi {
|
||||
public static void updateOrderDelivery(OrderAddrDTO orderAddrDTO){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/s/order/change_user_addr";
|
||||
String url = Constant.API_URL + "/tmerclub_order/s/order/change_user_addr";
|
||||
HttpUtil.put(url,orderAddrDTO, UrlEnum.SUPPLIER);
|
||||
}
|
||||
|
||||
public static OrderVO info(Long orderNumber){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/s/order/order_info/"+orderNumber;
|
||||
String url = Constant.API_URL + "/tmerclub_order/s/order/order_info/"+orderNumber;
|
||||
return HttpUtil.get(url,OrderVO.class, UrlEnum.SUPPLIER);
|
||||
}
|
||||
|
||||
public static void delivery(DeliveryOrderDTO deliveryOrderParam){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/s/order/delivery";
|
||||
String url = Constant.API_URL + "/tmerclub_order/s/order/delivery";
|
||||
HttpUtil.post(url,deliveryOrderParam,UrlEnum.SUPPLIER);
|
||||
}
|
||||
|
||||
public static void updateOrderDelivery(List<DeliveryOrderDTO> list){
|
||||
String url = Constant.API_URL + "/mall4cloud_order/mp/order_delivery/update";
|
||||
String url = Constant.API_URL + "/tmerclub_order/mp/order_delivery/update";
|
||||
HttpUtil.put(url,list,UrlEnum.SUPPLIER);
|
||||
}
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ import com.moyuer.cloud.systemtest.util.UrlEnum;
|
||||
*/
|
||||
public class SupplierProductApi {
|
||||
public static Long createProduct(SpuDTO spuDTO, Boolean isMainSupplier) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/s/spu";
|
||||
String url = Constant.API_URL + "/tmerclub_product/s/spu";
|
||||
if(isMainSupplier) {
|
||||
return HttpUtil.post(url, spuDTO, UrlEnum.SUPPLIER,Long.class);
|
||||
} else {
|
||||
@ -23,7 +23,7 @@ public class SupplierProductApi {
|
||||
}
|
||||
|
||||
public static void delete(Long spuId, Boolean isMainSupplier) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/s/spu/batch?spuIds=" + spuId;
|
||||
String url = Constant.API_URL + "/tmerclub_product/s/spu/batch?spuIds=" + spuId;
|
||||
if(isMainSupplier) {
|
||||
HttpUtil.delete(url,UrlEnum.SUPPLIER);
|
||||
} else {
|
||||
@ -35,7 +35,7 @@ public class SupplierProductApi {
|
||||
* 获取商品详情
|
||||
*/
|
||||
public static SpuVO info(Long spuId, Boolean isMainSupplier) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/s/spu?spuId=" + spuId;
|
||||
String url = Constant.API_URL + "/tmerclub_product/s/spu?spuId=" + spuId;
|
||||
if(isMainSupplier) {
|
||||
return HttpUtil.get(url, SpuVO.class, UrlEnum.SUPPLIER);
|
||||
} else {
|
||||
@ -47,7 +47,7 @@ public class SupplierProductApi {
|
||||
* 修改商品信息
|
||||
*/
|
||||
public static void update(SpuDTO spuDTO, Boolean isMainSupplier) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/s/spu";
|
||||
String url = Constant.API_URL + "/tmerclub_product/s/spu";
|
||||
if(isMainSupplier) {
|
||||
HttpUtil.put(url, spuDTO, UrlEnum.SUPPLIER);
|
||||
} else {
|
||||
@ -59,7 +59,7 @@ public class SupplierProductApi {
|
||||
* 商品列表修改商品信息
|
||||
*/
|
||||
public static void updateProductData(SpuDTO spuDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/s/spu/update_spu_data";
|
||||
String url = Constant.API_URL + "/tmerclub_product/s/spu/update_spu_data";
|
||||
HttpUtil.put(url, spuDTO, UrlEnum.SUPPLIER);
|
||||
}
|
||||
|
||||
@ -67,7 +67,7 @@ public class SupplierProductApi {
|
||||
* 修改商品状态-上架 1, 下架 0
|
||||
*/
|
||||
public static void changeProductStatus(SpuPageSearchDTO spuPageSearchDTO){
|
||||
String url = Constant.API_URL + "/mall4cloud_product/s/spu/prod_status";
|
||||
String url = Constant.API_URL + "/tmerclub_product/s/spu/prod_status";
|
||||
HttpUtil.put(url,spuPageSearchDTO,UrlEnum.SUPPLIER);
|
||||
}
|
||||
|
||||
@ -75,7 +75,7 @@ public class SupplierProductApi {
|
||||
* 商家获取最新下架信息
|
||||
*/
|
||||
public static OfflineHandleEventVO getOfflineHandleEvent(Long productId) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/s/spu/get_offline_handle_event/" + productId;
|
||||
String url = Constant.API_URL + "/tmerclub_product/s/spu/get_offline_handle_event/" + productId;
|
||||
return HttpUtil.get(url, OfflineHandleEventVO.class, UrlEnum.SUPPLIER);
|
||||
}
|
||||
|
||||
@ -83,7 +83,7 @@ public class SupplierProductApi {
|
||||
* 商家申请上架,提交审核
|
||||
*/
|
||||
public static void apply(OfflineHandleEventDTO offlineHandleEventDTO) {
|
||||
String url = Constant.API_URL + "/mall4cloud_product/s/spu/audit_apply";
|
||||
String url = Constant.API_URL + "/tmerclub_product/s/spu/audit_apply";
|
||||
HttpUtil.post(url, offlineHandleEventDTO, UrlEnum.SUPPLIER);
|
||||
}
|
||||
}
|
||||
|
@ -14,12 +14,12 @@ import java.util.List;
|
||||
*/
|
||||
public class SupplierRefundAddrApi {
|
||||
public static Long addSupplierRefundAddr(SupplierRefundAddrDTO supplierRefundAddrDTO){
|
||||
String url = Constant.API_URL +"/mall4cloud_admin/mp/supplier_refund_addr";
|
||||
String url = Constant.API_URL +"/tmerclub_admin/mp/supplier_refund_addr";
|
||||
return JSON.parseArray(JSON.toJSONString(HttpUtil.post(url,supplierRefundAddrDTO, UrlEnum.SUPPLIER,Long.class)),Long.class).get(0);
|
||||
}
|
||||
|
||||
public static List<SupplierApiRefundAddrVO> listSupplierRefundAddr(){
|
||||
String url = Constant.API_URL +"/mall4cloud_admin/mp/supplier_refund_addr/list";
|
||||
String url = Constant.API_URL +"/tmerclub_admin/mp/supplier_refund_addr/list";
|
||||
return JSON.parseArray(JSON.toJSONString(HttpUtil.get(url,List.class, UrlEnum.SUPPLIER)),SupplierApiRefundAddrVO.class);
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ import com.moyuer.cloud.systemtest.util.UrlEnum;
|
||||
*/
|
||||
public class SupplierRefundApi {
|
||||
public static void processRefundOrder(OrderRefundDTO orderRefundParam){
|
||||
String url = Constant.API_URL+"/mall4cloud_order/s/order_refund/return_and_refund_audit";
|
||||
String url = Constant.API_URL+"/tmerclub_order/s/order_refund/return_and_refund_audit";
|
||||
HttpUtil.put(url,orderRefundParam, UrlEnum.SUPPLIER);
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@ public class SupplierRefundApi {
|
||||
* 拒绝退货退款
|
||||
* */
|
||||
public static void returnMoneyRefundOrder(OrderRefundDTO orderRefundParam){
|
||||
String url = Constant.API_URL+"/mall4cloud_order/s/order_refund/return_money";
|
||||
String url = Constant.API_URL+"/tmerclub_order/s/order_refund/return_money";
|
||||
HttpUtil.put(url,orderRefundParam, UrlEnum.SUPPLIER);
|
||||
}
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
|
||||
/**
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2021/3/30
|
||||
*/
|
||||
@RefreshScope
|
||||
|
@ -14,20 +14,20 @@ import org.springframework.context.annotation.Configuration;
|
||||
/**
|
||||
* xxl-job config
|
||||
*
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2021/1/18
|
||||
*/
|
||||
@Configuration
|
||||
public class XxlJobConfig {
|
||||
private static final Logger logger = LoggerFactory.getLogger(XxlJobConfig.class);
|
||||
|
||||
@Value("${mall4cloud.job.admin.addresses}")
|
||||
@Value("${tmerclub.job.admin.addresses}")
|
||||
private String adminAddresses;
|
||||
|
||||
@Value("${mall4cloud.job.accessToken}")
|
||||
@Value("${tmerclub.job.accessToken}")
|
||||
private String accessToken;
|
||||
|
||||
@Value("${mall4cloud.job.logPath}")
|
||||
@Value("${tmerclub.job.logPath}")
|
||||
private String logPath;
|
||||
|
||||
@Value("${spring.application.name}")
|
||||
|
@ -6,7 +6,7 @@ import com.tmerclub.cloud.common.leaf.constant.GlobalDistributedIdKey;
|
||||
/**
|
||||
* 分布式id key
|
||||
*
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2021/4/9
|
||||
*/
|
||||
public interface DistributedIdKey {
|
||||
@ -14,30 +14,30 @@ public interface DistributedIdKey {
|
||||
/**
|
||||
* 平台用户id
|
||||
*/
|
||||
String MALL4CLOUD_PLATFORM_USER = "mall4cloud-platform-user";
|
||||
String tmerclub_PLATFORM_USER = "tmerclub-platform-user";
|
||||
|
||||
/**
|
||||
* 商家用户id
|
||||
*/
|
||||
String MALL4CLOUD_MULTISHOP_USER = "mall4cloud-multishop-user";
|
||||
String tmerclub_MULTISHOP_USER = "tmerclub-multishop-user";
|
||||
|
||||
/**
|
||||
* 供应商用户id
|
||||
*/
|
||||
String MALL4CLOUD_SUPPLIER_USER = "mall4cloud-supplier-user";
|
||||
String tmerclub_SUPPLIER_USER = "tmerclub-supplier-user";
|
||||
|
||||
/**
|
||||
* 钱包日志id
|
||||
*/
|
||||
String MALL4CLOUD_SHOP_WALLET_LOG = GlobalDistributedIdKey.MALL4CLOUD_SHOP_WALLET_LOG.value();
|
||||
String tmerclub_SHOP_WALLET_LOG = GlobalDistributedIdKey.tmerclub_SHOP_WALLET_LOG.value();
|
||||
|
||||
/**
|
||||
* 系统权限
|
||||
*/
|
||||
String MALL4CLOUD_AUTHORIZATION = "mall4cloud-authorization";
|
||||
String tmerclub_AUTHORIZATION = "tmerclub-authorization";
|
||||
|
||||
/**
|
||||
* 采购金额日志
|
||||
*/
|
||||
String PURCHASE_AMOUNT_LOG = "mall4cloud-purchase-amount-log";
|
||||
String PURCHASE_AMOUNT_LOG = "tmerclub-purchase-amount-log";
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ package com.tmerclub.cloud.multishop.constant;
|
||||
* 店铺钱包金额类型
|
||||
* 金额类型 0 未结算金额 1可提现金额 2冻结金额
|
||||
*
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
*/
|
||||
public enum NoticeType {
|
||||
|
||||
|
@ -5,7 +5,7 @@ package com.tmerclub.cloud.multishop.constant;
|
||||
* 店铺钱包金额类型
|
||||
* 金额类型 0 未结算金额 1可提现金额 2冻结金额
|
||||
*
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
*/
|
||||
public enum ShopWalletAmountType {
|
||||
|
||||
|
@ -6,7 +6,7 @@ package com.tmerclub.cloud.multishop.constant;
|
||||
* 店铺钱包金额发生改变的原因
|
||||
* 0用户支付 1用户确认收货 2 用户退款申请 3 拒绝用户退款申请 4 提现申请 5 提现申请被拒绝
|
||||
*
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
*/
|
||||
public enum ShopWalletChangeReason {
|
||||
|
||||
|
@ -31,7 +31,7 @@ public class ShopRenovationUpDelController {
|
||||
private ShopRenovationService shopRenovationService;
|
||||
|
||||
|
||||
@Value("${mall4cloud.expose.operation.auth:}")
|
||||
@Value("${tmerclub.expose.operation.auth:}")
|
||||
private Boolean permission;
|
||||
|
||||
|
||||
|
@ -30,7 +30,7 @@ public class ShopTemplateUpDelController {
|
||||
private ShopTemplateService shopTemplateService;
|
||||
|
||||
|
||||
@Value("${mall4cloud.expose.operation.auth:}")
|
||||
@Value("${tmerclub.expose.operation.auth:}")
|
||||
private Boolean permission;
|
||||
|
||||
@PutMapping("/update_pc")
|
||||
|
@ -28,7 +28,7 @@ import java.util.Objects;
|
||||
/**
|
||||
* 店铺详情
|
||||
*
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2020-12-05 15:50:25
|
||||
*/
|
||||
@RestController("appShopDetailController")
|
||||
|
@ -35,7 +35,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2020/09/02
|
||||
*/
|
||||
@RequestMapping("/m/shop_user")
|
||||
@ -43,7 +43,7 @@ import java.util.Objects;
|
||||
@Tag(name = "店铺用户信息")
|
||||
public class ShopUserController {
|
||||
|
||||
@Value("${mall4cloud.expose.operation.auth:}")
|
||||
@Value("${tmerclub.expose.operation.auth:}")
|
||||
private Boolean permission;
|
||||
|
||||
@Autowired
|
||||
|
@ -18,7 +18,7 @@ import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 商家提现申请信息
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
*/
|
||||
@RestController("multishopShopWithdrawCashController")
|
||||
@RequestMapping("/m/shop_withdraw_cash")
|
||||
|
@ -36,7 +36,7 @@ import java.util.Objects;
|
||||
/**
|
||||
* 店铺详情
|
||||
*
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2020-12-05 15:50:25
|
||||
*/
|
||||
@RestController("platformShopDetailController")
|
||||
@ -44,7 +44,7 @@ import java.util.Objects;
|
||||
@Tag(name = "platform-店铺信息")
|
||||
public class ShopDetailController {
|
||||
|
||||
@Value("${mall4cloud.expose.operation.auth:}")
|
||||
@Value("${tmerclub.expose.operation.auth:}")
|
||||
private Boolean permission;
|
||||
|
||||
@Autowired
|
||||
|
@ -9,7 +9,7 @@ import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2020/9/22
|
||||
*/
|
||||
public class ChangeAccountDTO implements Serializable {
|
||||
|
@ -12,7 +12,7 @@ import java.util.Date;
|
||||
/**
|
||||
* 店铺详情DTO
|
||||
*
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2020-12-05 15:50:25
|
||||
*/
|
||||
public class ShopDetailDTO implements Serializable {
|
||||
|
@ -9,7 +9,7 @@ import java.io.Serializable;
|
||||
/**
|
||||
* 商家退货地址DTO
|
||||
*
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2021-03-09 15:03:18
|
||||
*/
|
||||
public class ShopRefundAddrDTO implements Serializable {
|
||||
|
@ -8,7 +8,7 @@ import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2020/9/8
|
||||
*/
|
||||
public class ShopSearchDTO implements Serializable {
|
||||
|
@ -10,7 +10,7 @@ import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2020/9/8
|
||||
*/
|
||||
public class ShopUserDTO implements Serializable {
|
||||
|
@ -9,7 +9,7 @@ import java.util.Date;
|
||||
|
||||
/**
|
||||
* 商家提现申请信息DTO
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
*/
|
||||
public class ShopWithdrawCashDTO implements Serializable {
|
||||
@Serial
|
||||
|
@ -13,7 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2020/11/23
|
||||
*/
|
||||
@DubboService
|
||||
|
@ -22,7 +22,7 @@ import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2020/11/23
|
||||
*/
|
||||
@DubboService
|
||||
|
@ -12,7 +12,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2020/11/23
|
||||
*/
|
||||
@DubboService
|
||||
|
@ -33,7 +33,7 @@ import java.util.Objects;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
*/
|
||||
@Component
|
||||
@RocketMQMessageListener(topic = RocketMqConstant.ORDER_NOTIFY_SERVICE_TOPIC, consumerGroup = RocketMqConstant.ORDER_NOTIFY_SHOP_GROUP)
|
||||
|
@ -27,7 +27,7 @@ import java.util.Objects;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
*/
|
||||
@Component
|
||||
@RocketMQMessageListener(topic = RocketMqConstant.ORDER_PURCHASE_NOTIFY_SHOP_TOPIC, consumerGroup = RocketMqConstant.ORDER_PURCHASE_NOTIFY_SHOP_TOPIC)
|
||||
|
@ -13,7 +13,7 @@ import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
*/
|
||||
@Component
|
||||
@RocketMQMessageListener(topic = RocketMqConstant.ORDER_SETTLED_SHOP_BY_ALLINPAY_TOPIC, consumerGroup = RocketMqConstant.ORDER_SETTLED_SHOP_BY_ALLINPAY_TOPIC)
|
||||
|
@ -12,7 +12,7 @@ import org.springframework.stereotype.Component;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
*/
|
||||
@Component
|
||||
@RocketMQMessageListener(topic = RocketMqConstant.ORDER_SETTLED_SHOP_TOPIC, consumerGroup = RocketMqConstant.ORDER_SETTLED_SHOP_TOPIC)
|
||||
|
@ -14,7 +14,7 @@ import org.springframework.stereotype.Component;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
*/
|
||||
@Component
|
||||
@RocketMQMessageListener(topic = RocketMqConstant.ORDER_REFUND_SHOP_TOPIC, consumerGroup = RocketMqConstant.ORDER_REFUND_SHOP_TOPIC)
|
||||
|
@ -17,7 +17,7 @@ import java.util.List;
|
||||
/**
|
||||
* 店铺详情
|
||||
*
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2020-12-05 15:50:25
|
||||
*/
|
||||
public interface ShopDetailMapper {
|
||||
|
@ -11,7 +11,7 @@ import java.util.List;
|
||||
/**
|
||||
* 商家退货地址
|
||||
*
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2021-03-09 15:03:18
|
||||
*/
|
||||
public interface ShopRefundAddrMapper {
|
||||
|
@ -9,7 +9,7 @@ import org.apache.ibatis.annotations.Param;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2020/09/03
|
||||
*/
|
||||
public interface ShopUserMapper {
|
||||
|
@ -11,7 +11,7 @@ import java.util.List;
|
||||
/**
|
||||
* 商家钱包信息
|
||||
*
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2021-01-07 16:41:03
|
||||
*/
|
||||
public interface ShopWalletMapper {
|
||||
|
@ -12,7 +12,7 @@ import java.util.List;
|
||||
/**
|
||||
* 商家提现申请信息
|
||||
*
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2021-01-07 16:41:03
|
||||
*/
|
||||
public interface ShopWithdrawCashMapper {
|
||||
|
@ -10,7 +10,7 @@ import java.io.Serializable;
|
||||
/**
|
||||
* 银行卡信息
|
||||
*
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2021-04-29 10:22:13
|
||||
*/
|
||||
public class ShopBankCard extends BaseModel implements Serializable {
|
||||
|
@ -10,7 +10,7 @@ import java.util.Date;
|
||||
/**
|
||||
* 店铺工商信息
|
||||
*
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2021-04-27 15:16:03
|
||||
*/
|
||||
public class ShopCompany extends BaseModel implements Serializable {
|
||||
|
@ -12,7 +12,7 @@ import java.util.Date;
|
||||
/**
|
||||
* 店铺详情
|
||||
*
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2020-12-05 15:50:25
|
||||
*/
|
||||
public class ShopDetail extends BaseModel implements Serializable {
|
||||
|
@ -10,7 +10,7 @@ import java.io.Serializable;
|
||||
/**
|
||||
* 商家退货地址
|
||||
*
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2021-03-09 15:03:18
|
||||
*/
|
||||
public class ShopRefundAddr extends BaseModel implements Serializable {
|
||||
|
@ -10,7 +10,7 @@ import java.io.Serializable;
|
||||
/**
|
||||
* 商家用户
|
||||
*
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2020-12-05 15:50:25
|
||||
*/
|
||||
public class ShopUser extends BaseModel implements Serializable {
|
||||
|
@ -11,7 +11,7 @@ import java.io.Serializable;
|
||||
/**
|
||||
* 商家钱包信息
|
||||
*
|
||||
* @author FrozenWatermelon
|
||||
* @author tmerclub
|
||||
* @date 2021-01-07 16:41:03
|
||||
*/
|
||||
public class ShopWallet extends BaseModel implements Serializable {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user