xiaohanzi 5 лет назад
Родитель
Сommit
d91ba95180
3 измененных файлов: 5 добавлений и 3 удалений
  1. +1
    -1
      mallinkCApi/src/main/java/com/iformall/controller/WxCuserFloatingLayerController.java
  2. +2
    -1
      mallinkService/src/main/java/com/iformall/service/WxCuserFloatingLayerService.java
  3. +2
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxCuserFloatingLayerServiceImpl.java

+ 1
- 1
mallinkCApi/src/main/java/com/iformall/controller/WxCuserFloatingLayerController.java Просмотреть файл

@@ -35,7 +35,7 @@ public class WxCuserFloatingLayerController extends BaseController {
@ApiImplicitParam(name = "openId", value = "openId", dataType = "String", paramType = "query", required = true), @ApiImplicitParam(name = "openId", value = "openId", dataType = "String", paramType = "query", required = true),
@ApiImplicitParam(name = "appId", value = "appId", dataType = "String", paramType = "query", required = true)}) @ApiImplicitParam(name = "appId", value = "appId", dataType = "String", paramType = "query", required = true)})
public ResultData getAppIcon(String openId, String appId) { public ResultData getAppIcon(String openId, String appId) {
WxFloatingLayer wxFloatingLayer = wxCuserFloatingLayerService.getFloatingLayer(openId, appId);
WxFloatingLayer wxFloatingLayer = wxCuserFloatingLayerService.getFloatingLayer(openId, appId,getTenantInfo());
return new ResultData(Result.SUCCESS, "查询成功", wxFloatingLayer); return new ResultData(Result.SUCCESS, "查询成功", wxFloatingLayer);
} }




+ 2
- 1
mallinkService/src/main/java/com/iformall/service/WxCuserFloatingLayerService.java Просмотреть файл

@@ -1,12 +1,13 @@
package com.iformall.service; package com.iformall.service;


import com.iformall.domain.po.WxFloatingLayer; import com.iformall.domain.po.WxFloatingLayer;
import com.iformall.domain.po.base.TenantEntity;


/** /**
* @author gongbiao * @author gongbiao
*/ */
public interface WxCuserFloatingLayerService { public interface WxCuserFloatingLayerService {


WxFloatingLayer getFloatingLayer(String openId, String appId);
WxFloatingLayer getFloatingLayer(String openId, String appId,TenantEntity tenantinfo);


} }

+ 2
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxCuserFloatingLayerServiceImpl.java Просмотреть файл

@@ -41,11 +41,12 @@ public class WxCuserFloatingLayerServiceImpl implements WxCuserFloatingLayerServ




@Override @Override
public WxFloatingLayer getFloatingLayer(String openId, String appId) {
public WxFloatingLayer getFloatingLayer(String openId, String appId,TenantEntity tenantinfo) {
//1 查看是否存在用户,用户不存在 直接返回浮层信息 //1 查看是否存在用户,用户不存在 直接返回浮层信息
WxCUser user = new WxCUser(); WxCUser user = new WxCUser();
user.setOpenId(openId); user.setOpenId(openId);
user.setAppId(appId); user.setAppId(appId);
user.setTenantId(tenantinfo.getTenantId());
WxCUser byOpenId = wxCUserMapper.findByOpenId(user); WxCUser byOpenId = wxCUserMapper.findByOpenId(user);
if (byOpenId == null) { if (byOpenId == null) {
WxAppinfo appinfo = appinfoMapper.findByAppId(appId); WxAppinfo appinfo = appinfoMapper.findByAppId(appId);


Загрузка…
Отмена
Сохранить