From 236dbe9724ec14bb09e86979bfa64e7507ad7d59 Mon Sep 17 00:00:00 2001 From: xhxu Date: Thu, 10 Mar 2022 09:50:16 +0800 Subject: [PATCH] /. --- .../java/com/iformall/config/BaseMyBatisConfiguration.java | 5 +---- .../iformall/service/impl/WxCouponChannelServiceImpl.java | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/config/BaseMyBatisConfiguration.java b/mallinkService/src/main/java/com/iformall/config/BaseMyBatisConfiguration.java index ab9aa411b..ae04812d4 100644 --- a/mallinkService/src/main/java/com/iformall/config/BaseMyBatisConfiguration.java +++ b/mallinkService/src/main/java/com/iformall/config/BaseMyBatisConfiguration.java @@ -16,10 +16,7 @@ public class BaseMyBatisConfiguration { protected MyBatisItercepters allIntercepters() { MyBatisItercepters intercepters = new MyBatisItercepters(); List plugins = new ArrayList(); - /** - * 去掉自动 tenant_id 配置 - */ -// plugins.add(multiTenancy()); + plugins.add(multiTenancy()); plugins.add(baseShardingSpherePlugin()); intercepters.setPlugins(plugins); diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java index 3a9638be8..158efefaa 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java @@ -320,6 +320,7 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService { */ private List handleCouponParam(WxCouponChannel wxCouponChannel){ WxCoupon couponQ = new WxCoupon(); + couponQ.updateTenantInfo(wxCouponChannel); couponQ.setStatus(EnumCouponStatus.COUPON_STATUS_THROW_IN.getCode()); if(wxCouponChannel.getSupportTransfer() != null){ couponQ.setSupportTransfer(wxCouponChannel.getSupportTransfer());