团队店铺信息同步,团队头像查询

main
cheney 11 months ago
parent e9b7260197
commit b9bdd8500b
  1. 2
      nakadai/src/main/java/com/huoran/nakadai/controller/PlatformTeamAccountController.java
  2. 14
      nakadai/src/main/java/com/huoran/nakadai/mapper/xml/PlatformTeamAccountMapper.xml

@ -28,6 +28,7 @@ import org.apache.commons.lang3.StringUtils;
import org.apache.http.HttpResponse; import org.apache.http.HttpResponse;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -246,6 +247,7 @@ public class PlatformTeamAccountController {
@ApiOperation(value = "小程序团队信息维护") @ApiOperation(value = "小程序团队信息维护")
@PostMapping("/updateTeamInfo") @PostMapping("/updateTeamInfo")
@CacheEvict(cacheNames = "shop_detail", key = "#teamInfo.id")
public R updateTeamInfo(@RequestBody TeamInfo teamInfo) { public R updateTeamInfo(@RequestBody TeamInfo teamInfo) {
PlatformTeamClassification platformTeamClassification = new PlatformTeamClassification(); PlatformTeamClassification platformTeamClassification = new PlatformTeamClassification();
BeanUtils.copyProperties(teamInfo, platformTeamClassification); BeanUtils.copyProperties(teamInfo, platformTeamClassification);

@ -126,6 +126,18 @@
AND ua.app_open_id = a.app_open_id AND ua.app_open_id = a.app_open_id
AND ua.platform_id = 7 AND ua.platform_id = 7
) AS userName, ) 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.last_login_time,
u.login_number, u.login_number,
a.work_number, a.work_number,
@ -136,7 +148,7 @@
pc.classification_name as teamName, pc.classification_name as teamName,
pc.id as partnerClassificationId, pc.id as partnerClassificationId,
pc.is_team, pc.is_team,
u.user_avatars,pc.parent_id, pc.parent_id,
pc.create_time as joinTime, pc.create_time as joinTime,
CASE CASE
WHEN count(ai.id) > 0 THEN '已认证' WHEN count(ai.id) > 0 THEN '已认证'

Loading…
Cancel
Save