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 '已认证'