From 1c9cb25e52ebdd60a2ad9c7d3e15df3e25029152 Mon Sep 17 00:00:00 2001
From: CeDo <cedoogle@gmail.com>
Date: 星期三, 28 四月 2021 15:56:45 +0800
Subject: [PATCH] bugfixed:78756

---
 springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/dao/UserDao.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/dao/UserDao.java b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/dao/UserDao.java
index 26e414b..996080b 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/dao/UserDao.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/dao/UserDao.java
@@ -161,7 +161,7 @@
             "from sys_user u\n" +
             "left join com_act a on u.community_id=a.community_id\n" +
             " where\n" +
-            "u.type=1\n" +
+            "u.type=1 and u.community_id is not null \n" +
             "<if test='pageUserAppletsBackstageDTO.phone != null and pageUserAppletsBackstageDTO.phone.trim() != &quot;&quot;'>" +
             "and u.phone=#{pageUserAppletsBackstageDTO.phone}\n" +
             " </if> " +
@@ -349,9 +349,9 @@
     void deleteStoreByPhoneAndStatus(@RequestParam("phone") String phone);
 
     @Select("update sys_user set" +
-            " card_photo_front = #{userArchivesVO.cardPhotoFront}" +
-            "and card_photo_back = #{userArchivesVO.cardPhotoBack}" +
-            "and family_book = #{userArchivesVO.familyBook}" +
+            " card_photo_front = #{userArchivesVO.cardPhotoFront} \n" +
+            ", card_photo_back = #{userArchivesVO.cardPhotoBack} \n" +
+            ",family_book = #{userArchivesVO.familyBook} \n" +
             " where user_id = #{userArchivesVO.userId}")
     void updateUserArchives(@Param("userArchivesVO") UpdateUserArchivesVO userArchivesVO);
 

--
Gitblit v1.7.1