From 6290d0422b7a98a7bbabf3b3729451f8fedc69bb Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期四, 10 六月 2021 18:46:03 +0800 Subject: [PATCH] 修改bug --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/EldersAuthServiceImpl.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/EldersAuthServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/EldersAuthServiceImpl.java index 4b2aadb..adc1e93 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/EldersAuthServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/EldersAuthServiceImpl.java @@ -302,9 +302,10 @@ //判断当前用户是否是高龄老人,如果是则将这个人新增到高龄老人的列表里 SysUserVO userVO = this.eldersAuthDAO.getSysUserByUserId(authPageDTO.getUserId()); if(userVO != null){ + userVO.setIdCard(AESUtil.encrypt128(userVO.getIdCard(), aesKey)); //查询当前用户是否已存在用户关联中 ComEldersAuthUserDO oldAuthUserDO = comEldersAuthUserMapper.selectOne(new QueryWrapper<ComEldersAuthUserDO>().lambda() - .eq(ComEldersAuthUserDO::getIdCard, AESUtil.encrypt128(userVO.getIdCard(), aesKey))); + .eq(ComEldersAuthUserDO::getIdCard, userVO.getIdCard())); if(oldAuthUserDO == null){ //查询老人库是否存在当前用户信息 ComEldersAuthElderlyDO authElderlyDO = comEldersAuthElderlyMapper.selectOne(new QueryWrapper<ComEldersAuthElderlyDO>().lambda() -- Gitblit v1.7.1