| | |
| | | private Long id; |
| | | @ApiModelProperty("名字") |
| | | private String name; |
| | | @ApiModelProperty("用户昵称") |
| | | private String nickName; |
| | | @ApiModelProperty("身份") |
| | | private String identity; |
| | | @ApiModelProperty("手机号") |
| | |
| | | @ApiModelProperty("评论人名字") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("评论人昵称") |
| | | private String nickName; |
| | | |
| | | @ApiModelProperty("评论人头像") |
| | | private String url; |
| | | |
| | |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.util.StringUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | if (R.isOk(r)) { |
| | | List<ActivitySignVO> activitySignVOS = JSONArray.parseArray(JSONArray.toJSONString( r.getData()),ActivitySignVO.class); |
| | | if (!ObjectUtils.isEmpty(activitySignVOS)) { |
| | | for (ActivitySignVO signVO:activitySignVOS) { |
| | | if(!StringUtils.isEmpty(signVO.getName())){ |
| | | signVO.setName(signVO.getNickName()); |
| | | } |
| | | } |
| | | List<ActivitySignVO> collect = activitySignVOS.stream().filter(activitySignVO1 -> activitySignVO1.getIsVolunteer() == 1).collect(Collectors.toList()); |
| | | if (!ObjectUtils.isEmpty(collect)) { |
| | | int size = collect.size(); |
| | |
| | | "u.user_id id,\n" + |
| | | "u.image_url,\n" + |
| | | "u.name,\n" + |
| | | "u.nick_name,\n" + |
| | | "case WHEN u.is_partymember = 1 THEN '党员' WHEN a.is_volunteer = 1 THEN '志愿者' ELSE '居民' END identity,\n" + |
| | | "u.phone,\n" + |
| | | "a.create_at, \n" + |
| | |
| | | "m.id,\n" + |
| | | "m.`comment`,\n" + |
| | | "e.`name`,\n" + |
| | | "e.`nick_name`,\n" + |
| | | "e.image_url url,\n" + |
| | | "m.create_at,\n" + |
| | | "if(u1.id is null,0,1)haveSign,\n" + |
| | |
| | | import com.panzhihua.common.model.vos.community.ComActEasyPhotoVO; |
| | | import com.panzhihua.common.model.vos.community.TodoEventsVO; |
| | | import com.panzhihua.common.utlis.SensitiveUtil; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.service_community.dao.ComActEasyPhotoCommentDAO; |
| | | import com.panzhihua.service_community.dao.ComActEasyPhotoCommentUserDAO; |
| | | import com.panzhihua.service_community.dao.ComActEasyPhotoDAO; |
| | |
| | | page.setSize(pageSize); |
| | | page.setCurrent(pageNum); |
| | | IPage<ComActEasyPhotoCommentVO> iPage = comActEasyPhotoCommentDAO.pageComActEasyPhotoComment(page, pageComActEasyPhotoCommentDTO); |
| | | if(!iPage.getRecords().isEmpty()){ |
| | | for (ComActEasyPhotoCommentVO commentVO:iPage.getRecords()) { |
| | | if(StringUtils.isNotEmpty(commentVO.getName())){ |
| | | commentVO.setName(commentVO.getNickName()); |
| | | } |
| | | } |
| | | } |
| | | return R.ok(iPage); |
| | | } |
| | | |