From b9bdd8500bcd364babc018425b9b2b48071ed01c Mon Sep 17 00:00:00 2001 From: cheney <1251790704@qq.com> Date: Thu, 11 Jan 2024 11:21:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=A2=E9=98=9F=E5=BA=97=E9=93=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=90=8C=E6=AD=A5=EF=BC=8C=E5=9B=A2=E9=98=9F=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/PlatformTeamAccountController.java | 2 ++ .../mapper/xml/PlatformTeamAccountMapper.xml | 14 +++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/nakadai/src/main/java/com/huoran/nakadai/controller/PlatformTeamAccountController.java b/nakadai/src/main/java/com/huoran/nakadai/controller/PlatformTeamAccountController.java index 2582061..0d126a9 100644 --- a/nakadai/src/main/java/com/huoran/nakadai/controller/PlatformTeamAccountController.java +++ b/nakadai/src/main/java/com/huoran/nakadai/controller/PlatformTeamAccountController.java @@ -28,6 +28,7 @@ import org.apache.commons.lang3.StringUtils; import org.apache.http.HttpResponse; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.cache.annotation.CacheEvict; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.web.bind.annotation.*; @@ -246,6 +247,7 @@ public class PlatformTeamAccountController { @ApiOperation(value = "小程序团队信息维护") @PostMapping("/updateTeamInfo") + @CacheEvict(cacheNames = "shop_detail", key = "#teamInfo.id") public R updateTeamInfo(@RequestBody TeamInfo teamInfo) { PlatformTeamClassification platformTeamClassification = new PlatformTeamClassification(); BeanUtils.copyProperties(teamInfo, platformTeamClassification); diff --git a/nakadai/src/main/java/com/huoran/nakadai/mapper/xml/PlatformTeamAccountMapper.xml b/nakadai/src/main/java/com/huoran/nakadai/mapper/xml/PlatformTeamAccountMapper.xml index 0dfa987..646f83b 100644 --- a/nakadai/src/main/java/com/huoran/nakadai/mapper/xml/PlatformTeamAccountMapper.xml +++ b/nakadai/src/main/java/com/huoran/nakadai/mapper/xml/PlatformTeamAccountMapper.xml @@ -126,6 +126,18 @@ AND ua.app_open_id = a.app_open_id AND ua.platform_id = 7 ) AS userName, + ( + SELECT + u.user_avatars + FROM + hr_user_account ua + INNER JOIN hr_user_info u ON u.user_id = ua.user_id + AND u.is_del = 0 + WHERE + ua.is_del = 0 + AND ua.app_open_id = a.app_open_id + AND ua.platform_id = 7 + ) AS userAvatars, u.last_login_time, u.login_number, a.work_number, @@ -136,7 +148,7 @@ pc.classification_name as teamName, pc.id as partnerClassificationId, pc.is_team, - u.user_avatars,pc.parent_id, + pc.parent_id, pc.create_time as joinTime, CASE WHEN count(ai.id) > 0 THEN '已认证'