From 0947c349e79d437dfb056bb2c622cba478c882f0 Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期四, 21 七月 2022 15:40:56 +0800 Subject: [PATCH] bug修改 --- springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java index 826137d..af569a8 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java @@ -105,6 +105,7 @@ import cn.hutool.core.util.IdcardUtil; import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.RequestParam; // import com.panzhihua.common.service.grid.GridService; @@ -300,7 +301,7 @@ * @return 用户基本信息、角色 */ @Override - public R<LoginUserInfoVO> getUserInfo(String name, int type) { + public R<LoginUserInfoVO> getUserInfo(String name, int type,String appId) { SysUserDO sysUserDO = null; if (1 == type) { sysUserDO = userDao.selectOne( @@ -337,11 +338,11 @@ if(StringUtils.isNotEmpty(areaName)){ loginUserInfoVO.setAreaName(areaName); } - SysAppConfig sysAppConfig=sysAppConfigDao.selectOne(new QueryWrapper<SysAppConfig>().lambda().eq(SysAppConfig::getAreaCode,comActVO.getAreaCode())); - if(sysAppConfig!=null){ - loginUserInfoVO.setAppId(sysAppConfig.getAppId()); - loginUserInfoVO.setAppSecret(sysAppConfig.getSecret()); - } +// SysAppConfig sysAppConfig=sysAppConfigDao.selectOne(new QueryWrapper<SysAppConfig>().lambda().eq(SysAppConfig::getAreaCode,comActVO.getAreaCode())); +// if(sysAppConfig!=null){ +// loginUserInfoVO.setAppId(sysAppConfig.getAppId()); +// loginUserInfoVO.setAppSecret(sysAppConfig.getSecret()); +// } } } List<SysRoleDO> roleDOList = roleDAO.selectByUserId(sysUserDO.getUserId()); @@ -1753,9 +1754,9 @@ * @return 协议内容 */ @Override - public R userAgreement(int type) { + public R userAgreement(int type,String appId) { SysUserAgreementDO sysUserAgreementDO = sysUserAgreementDAO - .selectOne(new QueryWrapper<SysUserAgreementDO>().lambda().eq(SysUserAgreementDO::getType, type)); + .selectOne(new QueryWrapper<SysUserAgreementDO>().lambda().eq(SysUserAgreementDO::getType, type).eq(SysUserAgreementDO::getAppId,appId)); return R.ok(sysUserAgreementDO); } -- Gitblit v1.7.1