From 4e8be752d24ae22362455c16f75d3bcbccb23359 Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期二, 20 四月 2021 15:27:07 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 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 913d7c8..4c410c1 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
@@ -1558,4 +1558,17 @@
         }
         return R.ok(list);
     }
+
+    @Override
+    public R getSysUserVOByAccount(String account, Integer type) {
+        LambdaQueryWrapper<SysUserDO> query = new QueryWrapper<SysUserDO>().lambda().eq(SysUserDO::getAccount, account);
+        query.eq(SysUserDO::getType, type);
+        SysUserDO sysUserDO = userDao.selectOne(query);
+        if (ObjectUtils.isEmpty(sysUserDO)) {
+            return R.fail("用户不存在");
+        }
+        SysUserVO sysUserVO = new SysUserVO();
+        BeanUtils.copyProperties(sysUserDO, sysUserVO);
+        return R.ok(sysUserVO);
+    }
 }

--
Gitblit v1.7.1