From 31b8c6fc8c13f6a6e04362801eec0fce85af7366 Mon Sep 17 00:00:00 2001 From: manailin <261030956@qq.com> Date: 星期四, 11 十一月 2021 08:54:04 +0800 Subject: [PATCH] Merge branch 'test' of http://gitlab.nhys.cdnhxx.com/root/zhihuishequ into test --- springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java index db78ba4..f6e172c 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java @@ -12,6 +12,7 @@ import javax.annotation.Resource; +import org.apache.commons.lang.StringUtils; import org.springframework.beans.BeanUtils; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.util.ObjectUtils; @@ -96,6 +97,7 @@ if (!ObjectUtils.isEmpty(data)) { LoginUserInfoVO loginUserInfoVO = (LoginUserInfoVO)data; R r1 = communityService.detailHouse(userId); + R r4=communityService.selectByIdCard(loginUserInfoVO.getIdCard()); if (null != communityId && 0 != communityId) { R r2 = communityService.detailCommunity(communityId); if (R.isOk(r2)) { @@ -122,6 +124,13 @@ Object data1 = r1.getData(); if (!ObjectUtils.isEmpty(data1)) { loginUserInfoVO.setComMngStructHouseVOS((List<ComMngStructHouseVO>)data1); + r.setData(loginUserInfoVO); + } + } + if(R.isOk(r4)){ + String address= (String) r4.getData(); + if(StringUtils.isNotEmpty(address)){ + loginUserInfoVO.setAddress(address); r.setData(loginUserInfoVO); } } @@ -250,8 +259,9 @@ } @ApiOperation(value = "我的活动", response = ComActActivityVO.class) + @ApiImplicitParam(name = "status", value = "活动状态(4 进行中 5 已结束 6 已取消)", required = false) @GetMapping("listactivity") - public R listActivity() { + public R listActivity(@RequestParam("status") Integer status) { LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); Long userId = loginUserInfo.getUserId(); Long communityId = loginUserInfo.getCommunityId(); @@ -260,7 +270,7 @@ if (R.isOk(r)) { comActActivityVOS = (List<ComActActivityVO>)r.getData(); } - R r1 = partyBuildingService.listActivity(userId, communityId); + R r1 = partyBuildingService.listActivity(userId, communityId, status); if (R.isOk(r1)) { List<ComActActivityVO> data = (List<ComActActivityVO>)r1.getData(); comActActivityVOS.addAll(data); -- Gitblit v1.7.1