From a2c9ccd62624e4904119fcbc47db7cf32bea5166 Mon Sep 17 00:00:00 2001 From: yinzuomei <576302893@qq.com> Date: Wed, 18 Nov 2020 11:30:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9user=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=AF=B9=E5=A4=96=E6=8F=90=E4=BE=9B=E6=9F=A5=E8=AF=A2=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=9F=BA=E6=9C=AC=E4=BF=A1=E6=81=AF=E7=9A=84=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=EF=BC=8C=E7=BB=9F=E4=B8=80=E6=94=B9=E4=B8=BA=E5=8F=96?= =?UTF-8?q?user=5Fbase=5Finfo=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epmet/feign/EpmetUserOpenFeignClient.java | 4 +- .../com/epmet/controller/UserController.java | 2 +- .../main/resources/mapper/UserBaseInfoDao.xml | 40 +++++++++---------- .../main/resources/mapper/UserResiInfoDao.xml | 6 +-- 4 files changed, 23 insertions(+), 29 deletions(-) diff --git a/epmet-user/epmet-user-client/src/main/java/com/epmet/feign/EpmetUserOpenFeignClient.java b/epmet-user/epmet-user-client/src/main/java/com/epmet/feign/EpmetUserOpenFeignClient.java index f58c03e801..8655418acc 100644 --- a/epmet-user/epmet-user-client/src/main/java/com/epmet/feign/EpmetUserOpenFeignClient.java +++ b/epmet-user/epmet-user-client/src/main/java/com/epmet/feign/EpmetUserOpenFeignClient.java @@ -232,7 +232,7 @@ public interface EpmetUserOpenFeignClient { * * @param tokenDTO * @return com.epmet.commons.tools.utils.Result - * @Author zhangyong + * @Author zhangyong 直接取的 user_base_info * @Date 14:10 2020-07-30 **/ @PostMapping("/epmetuser/userbaseinfo/selectuserbaseinfo") @@ -317,7 +317,7 @@ public interface EpmetUserOpenFeignClient { /** * @Author sun - * @Description 居民端-查询用户基础信息 + * @Description 居民端-查询用户基础信息 返回值只有userId 、openId **/ @PostMapping(value = "epmetuser/user/getuserbasicinfo") Result getUserBasicInfo(@RequestBody UserBasicInfoFormDTO formDTO); diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/UserController.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/UserController.java index a524f9f0c9..a5959e0825 100644 --- a/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/UserController.java +++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/UserController.java @@ -146,7 +146,7 @@ public class UserController { /** * @Author sun - * @Description 居民端-查询用户基础信息 + * @Description 居民端-查询用户基础信息 返回值只有userId 、openId **/ @PostMapping("getuserbasicinfo") public Result getUserBasicInfo(@RequestBody UserBasicInfoFormDTO formDTO){ diff --git a/epmet-user/epmet-user-server/src/main/resources/mapper/UserBaseInfoDao.xml b/epmet-user/epmet-user-server/src/main/resources/mapper/UserBaseInfoDao.xml index cc86f83ccd..fcfbf02d64 100644 --- a/epmet-user/epmet-user-server/src/main/resources/mapper/UserBaseInfoDao.xml +++ b/epmet-user/epmet-user-server/src/main/resources/mapper/UserBaseInfoDao.xml @@ -28,28 +28,24 @@ diff --git a/epmet-user/epmet-user-server/src/main/resources/mapper/UserResiInfoDao.xml b/epmet-user/epmet-user-server/src/main/resources/mapper/UserResiInfoDao.xml index 23f27f4af8..c1f0edfce6 100644 --- a/epmet-user/epmet-user-server/src/main/resources/mapper/UserResiInfoDao.xml +++ b/epmet-user/epmet-user-server/src/main/resources/mapper/UserResiInfoDao.xml @@ -124,13 +124,11 @@ uri.STREET, '-', uri.SURNAME, - ( CASE WHEN uw.SEX = '1' THEN '先生' WHEN uw.SEX = '2' THEN '女士' ELSE '先生/女士' END ) + ( CASE WHEN uri.GENDER = '1' THEN '先生' WHEN uri.GENDER = '2' THEN '女士' ELSE '先生/女士' END ) ) AS show_name, - uw.HEAD_IMG_URL as head_photo + uri.HEAD_IMG_URL as head_photo FROM user_resi_info uri - left join user_wechat uw on(uri.user_id=uw.USER_ID) WHERE uri.DEL_FLAG = '0' - and uw.DEL_FLAG='0' AND uri.USER_ID in #{userId}