From 18c3395244020e42c625d611516fa6566b6f3a9c Mon Sep 17 00:00:00 2001 From: xiaohanzi Date: Mon, 26 Apr 2021 10:34:44 +0800 Subject: [PATCH] fix cashout --- .../migration/V202104130001__for_cash_out.sql | 104 ++++++++++++++++++ .../config/BaseMyBatisConfiguration.java | 12 +- 2 files changed, 110 insertions(+), 6 deletions(-) diff --git a/mallinkAdmin/src/main/resources/db/migration/V202104130001__for_cash_out.sql b/mallinkAdmin/src/main/resources/db/migration/V202104130001__for_cash_out.sql index e5550f4e8..0c1ea33e3 100644 --- a/mallinkAdmin/src/main/resources/db/migration/V202104130001__for_cash_out.sql +++ b/mallinkAdmin/src/main/resources/db/migration/V202104130001__for_cash_out.sql @@ -51,4 +51,108 @@ ALTER TABLE wx_merchant ADD COLUMN `cash_out_last_time` datetime COMMENT '最近 ALTER TABLE wx_pay_account ADD COLUMN `merchant_api_key` VARCHAR(32) COMMENT '商户支付密钥' AFTER `api_key`; +create table wx_cash_out_0 like wx_cash_out; +create table wx_cash_out_1 like wx_cash_out; +create table wx_cash_out_2 like wx_cash_out; +create table wx_cash_out_3 like wx_cash_out; +create table wx_cash_out_4 like wx_cash_out; +create table wx_cash_out_5 like wx_cash_out; +create table wx_cash_out_6 like wx_cash_out; +create table wx_cash_out_7 like wx_cash_out; +create table wx_cash_out_8 like wx_cash_out; +create table wx_cash_out_9 like wx_cash_out; +create table wx_cash_out_10 like wx_cash_out; +create table wx_cash_out_11 like wx_cash_out; +create table wx_cash_out_12 like wx_cash_out; +create table wx_cash_out_13 like wx_cash_out; +create table wx_cash_out_14 like wx_cash_out; +create table wx_cash_out_15 like wx_cash_out; +create table wx_cash_out_16 like wx_cash_out; +create table wx_cash_out_17 like wx_cash_out; +create table wx_cash_out_18 like wx_cash_out; +create table wx_cash_out_19 like wx_cash_out; +create table wx_cash_out_20 like wx_cash_out; +create table wx_cash_out_21 like wx_cash_out; +create table wx_cash_out_22 like wx_cash_out; +create table wx_cash_out_23 like wx_cash_out; +create table wx_cash_out_24 like wx_cash_out; +create table wx_cash_out_25 like wx_cash_out; +create table wx_cash_out_26 like wx_cash_out; +create table wx_cash_out_27 like wx_cash_out; +create table wx_cash_out_28 like wx_cash_out; +create table wx_cash_out_29 like wx_cash_out; +create table wx_cash_out_30 like wx_cash_out; +create table wx_cash_out_31 like wx_cash_out; +create table wx_cash_out_32 like wx_cash_out; +create table wx_cash_out_33 like wx_cash_out; +create table wx_cash_out_34 like wx_cash_out; +create table wx_cash_out_35 like wx_cash_out; +create table wx_cash_out_36 like wx_cash_out; +create table wx_cash_out_37 like wx_cash_out; +create table wx_cash_out_38 like wx_cash_out; +create table wx_cash_out_39 like wx_cash_out; +create table wx_cash_out_40 like wx_cash_out; +create table wx_cash_out_41 like wx_cash_out; +create table wx_cash_out_42 like wx_cash_out; +create table wx_cash_out_43 like wx_cash_out; +create table wx_cash_out_44 like wx_cash_out; +create table wx_cash_out_45 like wx_cash_out; +create table wx_cash_out_46 like wx_cash_out; +create table wx_cash_out_47 like wx_cash_out; +create table wx_cash_out_48 like wx_cash_out; +create table wx_cash_out_49 like wx_cash_out; +create table wx_cash_out_50 like wx_cash_out; +create table wx_cash_out_51 like wx_cash_out; +create table wx_cash_out_52 like wx_cash_out; +create table wx_cash_out_53 like wx_cash_out; +create table wx_cash_out_54 like wx_cash_out; +create table wx_cash_out_55 like wx_cash_out; +create table wx_cash_out_56 like wx_cash_out; +create table wx_cash_out_57 like wx_cash_out; +create table wx_cash_out_58 like wx_cash_out; +create table wx_cash_out_59 like wx_cash_out; +create table wx_cash_out_60 like wx_cash_out; +create table wx_cash_out_61 like wx_cash_out; +create table wx_cash_out_62 like wx_cash_out; +create table wx_cash_out_63 like wx_cash_out; +create table wx_cash_out_64 like wx_cash_out; +create table wx_cash_out_65 like wx_cash_out; +create table wx_cash_out_66 like wx_cash_out; +create table wx_cash_out_67 like wx_cash_out; +create table wx_cash_out_68 like wx_cash_out; +create table wx_cash_out_69 like wx_cash_out; +create table wx_cash_out_70 like wx_cash_out; +create table wx_cash_out_71 like wx_cash_out; +create table wx_cash_out_72 like wx_cash_out; +create table wx_cash_out_73 like wx_cash_out; +create table wx_cash_out_74 like wx_cash_out; +create table wx_cash_out_75 like wx_cash_out; +create table wx_cash_out_76 like wx_cash_out; +create table wx_cash_out_77 like wx_cash_out; +create table wx_cash_out_78 like wx_cash_out; +create table wx_cash_out_79 like wx_cash_out; +create table wx_cash_out_80 like wx_cash_out; +create table wx_cash_out_81 like wx_cash_out; +create table wx_cash_out_82 like wx_cash_out; +create table wx_cash_out_83 like wx_cash_out; +create table wx_cash_out_84 like wx_cash_out; +create table wx_cash_out_85 like wx_cash_out; +create table wx_cash_out_86 like wx_cash_out; +create table wx_cash_out_87 like wx_cash_out; +create table wx_cash_out_88 like wx_cash_out; +create table wx_cash_out_89 like wx_cash_out; +create table wx_cash_out_90 like wx_cash_out; +create table wx_cash_out_91 like wx_cash_out; +create table wx_cash_out_92 like wx_cash_out; +create table wx_cash_out_93 like wx_cash_out; +create table wx_cash_out_94 like wx_cash_out; +create table wx_cash_out_95 like wx_cash_out; +create table wx_cash_out_96 like wx_cash_out; +create table wx_cash_out_97 like wx_cash_out; +create table wx_cash_out_98 like wx_cash_out; +create table wx_cash_out_99 like wx_cash_out; + +drop table wx_cash_out; + + diff --git a/mallinkService/src/main/java/com/iformall/config/BaseMyBatisConfiguration.java b/mallinkService/src/main/java/com/iformall/config/BaseMyBatisConfiguration.java index ba989be3f..9fa287d0e 100644 --- a/mallinkService/src/main/java/com/iformall/config/BaseMyBatisConfiguration.java +++ b/mallinkService/src/main/java/com/iformall/config/BaseMyBatisConfiguration.java @@ -219,12 +219,12 @@ public class BaseMyBatisConfiguration { wxCarJSOrderSharding.setRule(EnumShardingRule.HASH.getCode()); shardingList.add(wxCarJSOrderSharding); -// ShardingSphere wxCashOutSharding = new ShardingSphere(); -// wxCashOutSharding.setColumn("tenant_id"); -// wxCashOutSharding.setTableName("wx_cash_out"); -// wxCashOutSharding.setCount(100); -// wxCashOutSharding.setRule(EnumShardingRule.HASH.getCode()); -// shardingList.add(wxCashOutSharding); + ShardingSphere wxCashOutSharding = new ShardingSphere(); + wxCashOutSharding.setColumn("tenant_id"); + wxCashOutSharding.setTableName("wx_cash_out"); + wxCashOutSharding.setCount(100); + wxCashOutSharding.setRule(EnumShardingRule.HASH.getCode()); + shardingList.add(wxCashOutSharding); //初始化 shardingSpherePlugin.setShardingSpheres(shardingList);