springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/dao/UserDao.java
@@ -339,8 +339,8 @@ "FROM\n" + "\t sys_user u LEFT JOIN sys_user_role ur ON u.user_id = ur.user_id \n" + "\t LEFT JOIN sys_role r ON ur.role_id = r.role_id \n" + "WHERE ur.role_id IS NOT NULL AND u.phone = #{phone} ") Integer selectCountSysUser(@Param("phone")String phone); "WHERE ur.role_id IS NOT NULL AND u.phone = #{phone} and r.community_id=#{userCommunityId} ") Integer selectCountSysUser(@Param("phone")String phone, @Param("userCommunityId")Long userCommunityId); @Select("update com_shop_store set sys_user_id = #{sysUserId} where phone = #{phone}") void updateStoreByPhone(@Param("phone")String phone, @Param("sysUserId")Long sysUserId); springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java
@@ -242,7 +242,7 @@ //是否是"管理员"或者 本社区 "社区团队"、"党委成员" Integer countTeam = userDao.selectCountTeam(phone, userCommunityId); Integer selectCountMemberRole = userDao.selectCountMemberRole(phone, userCommunityId); Integer isSysUser = userDao.selectCountSysUser(phone); Integer isSysUser = userDao.selectCountSysUser(phone, userCommunityId); if (countTeam != null && countTeam > 0) { loginUserInfoVO.setIsmemberrole(1); } else if (selectCountMemberRole != null && selectCountMemberRole > 0) {