| @@ -127,6 +127,9 @@ public class TenantInfoImpl implements TenantInfo { | |||||
| if ("wx_cuser_floating_layer".equals(tableName)) { | if ("wx_cuser_floating_layer".equals(tableName)) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| if ("wx_floating_layer".equals(tableName)) { | |||||
| return true; | |||||
| } | |||||
| if ("wx_question".equals(tableName)) { | if ("wx_question".equals(tableName)) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| @@ -120,6 +120,9 @@ public class TenantInfoImpl implements TenantInfo { | |||||
| if ("wx_buser".equals(tableName)) { | if ("wx_buser".equals(tableName)) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| if ("wx_floating_layer".equals(tableName)) { | |||||
| return true; | |||||
| } | |||||
| if ("wx_user_visit".equals(tableName)) { | if ("wx_user_visit".equals(tableName)) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| @@ -117,6 +117,9 @@ public class TenantInfoImpl implements TenantInfo { | |||||
| if ("wx_cuser_floating_layer".equals(tableName)) { | if ("wx_cuser_floating_layer".equals(tableName)) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| if ("wx_floating_layer".equals(tableName)) { | |||||
| return true; | |||||
| } | |||||
| if ("wx_question".equals(tableName)) { | if ("wx_question".equals(tableName)) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| @@ -1,7 +1,7 @@ | |||||
| package com.iformall.domain.po; | package com.iformall.domain.po; | ||||
| import com.baomidou.mybatisplus.annotation.TableName; | import com.baomidou.mybatisplus.annotation.TableName; | ||||
| import com.iformall.domain.po.base.TenantEntity; | |||||
| import com.iformall.domain.po.base.BaseTenantEntity; | |||||
| import lombok.Data; | import lombok.Data; | ||||
| import lombok.EqualsAndHashCode; | import lombok.EqualsAndHashCode; | ||||
| @@ -10,7 +10,7 @@ import java.util.Date; | |||||
| @TableName(value = "wx_floating_layer") | @TableName(value = "wx_floating_layer") | ||||
| @Data | @Data | ||||
| @EqualsAndHashCode(callSuper = true) | @EqualsAndHashCode(callSuper = true) | ||||
| public class WxFloatingLayer extends TenantEntity { | |||||
| public class WxFloatingLayer extends BaseTenantEntity { | |||||
| protected Long id; | protected Long id; | ||||
| @@ -56,8 +56,11 @@ public class WxCuserFloatingLayerServiceImpl implements WxCuserFloatingLayerServ | |||||
| wxCuserFloatingLayerQuery.setUserId(byOpenId.getId()); | wxCuserFloatingLayerQuery.setUserId(byOpenId.getId()); | ||||
| WxCuserFloatingLayer wxCuserFloatingLayer = wxCuserFloatingLayerMapper.selectOne(new QueryWrapper<>(wxCuserFloatingLayerQuery)); | WxCuserFloatingLayer wxCuserFloatingLayer = wxCuserFloatingLayerMapper.selectOne(new QueryWrapper<>(wxCuserFloatingLayerQuery)); | ||||
| if (wxCuserFloatingLayer == null) { | if (wxCuserFloatingLayer == null) { | ||||
| saveCuserFloatingLayer(byOpenId); | |||||
| return getWxFloatingLayer(byOpenId); | |||||
| WxFloatingLayer wxFloatingLayer = getWxFloatingLayer(byOpenId); | |||||
| if (wxFloatingLayer != null) { | |||||
| saveCuserFloatingLayer(byOpenId); | |||||
| } | |||||
| return wxFloatingLayer; | |||||
| } | } | ||||
| return null; | return null; | ||||
| } | } | ||||