| | |
| | | */ |
| | | @PostMapping("/cluster/member/export/admin") |
| | | R exportClusterMember(@RequestBody PageClusterMemberAdminDto pageClusterMemberAdminDto); |
| | | |
| | | /** |
| | | * 社区后台分页查询微心愿 |
| | | * @param comActMicroWishVO 请求参数 |
| | | * @return 微心愿列表 |
| | | */ |
| | | @PostMapping("pagemicrowishAdmin") |
| | | R pageMicroWishAdmin(@RequestBody ComActMicroWishVO comActMicroWishVO); |
| | | } |
| | |
| | | public R wishHandleListAdmin(@RequestParam(value = "communityId") Long communityId,@RequestParam("type") Integer type){ |
| | | return R.ok(comActMicroWishService.wishHandleListAdmin(communityId,type)); |
| | | } |
| | | |
| | | /** |
| | | * 社区后台分页查询微心愿 |
| | | * @param comActMicroWishVO 请求参数 |
| | | * @return 微心愿列表 |
| | | */ |
| | | @PostMapping("pagemicrowishAdmin") |
| | | public R pageMicroWishAdmin(@RequestBody ComActMicroWishVO comActMicroWishVO) { |
| | | return comActMicroWishService.pageMicroWishAdmin(comActMicroWishVO); |
| | | } |
| | | } |
| | |
| | | "</script>") |
| | | IPage<ComActMicroWishVO> pageMicroWish(Page page, @Param("comActMicroWishVO") ComActMicroWishVO comActMicroWishVO); |
| | | |
| | | /** |
| | | * 社区后台分页查询微心愿 |
| | | * @param comActMicroWishVO 请求参数 |
| | | * @return 微心愿列表 |
| | | */ |
| | | IPage<ComActMicroWishVO> pageMicroWishAdmin(Page page, @Param("comActMicroWishVO") ComActMicroWishVO comActMicroWishVO); |
| | | |
| | | IPage<ComActMicroWishVO> pageMicroWishApplets(Page page, @Param("comActMicroWishVO") ComActMicroWishVO comActMicroWishVO); |
| | | @Select("SELECT " + |
| | | "w.id, " + |
| | |
| | | /** |
| | | * 图片地址 多个用逗号隔开 |
| | | */ |
| | | @TableField(updateStrategy = FieldStrategy.IGNORED) |
| | | private String photoPah; |
| | | |
| | | /** |
| | |
| | | * @return 处理人列表 |
| | | */ |
| | | R wishHandleListAdmin(Long communityId,Integer type); |
| | | |
| | | /** |
| | | * 社区后台分页查询微心愿 |
| | | * @param comActMicroWishVO 请求参数 |
| | | * @return 微心愿列表 |
| | | */ |
| | | R pageMicroWishAdmin(ComActMicroWishVO comActMicroWishVO); |
| | | } |
| | |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * 社区后台分页查询微心愿 |
| | | * @param comActMicroWishVO 请求参数 |
| | | * @return 微心愿列表 |
| | | */ |
| | | @Override |
| | | public R pageMicroWishAdmin(ComActMicroWishVO comActMicroWishVO) { |
| | | Long userId = comActMicroWishVO.getResponsibleId(); |
| | | IPage<ComActMicroWishVO> iPage = comActMicroWishDAO.pageMicroWishAdmin(new Page(comActMicroWishVO.getPageNum() |
| | | ,comActMicroWishVO.getPageSize()), comActMicroWishVO); |
| | | |
| | | List<ComActMicroWishVO> records = iPage.getRecords(); |
| | | if (!ObjectUtils.isEmpty(records)) { |
| | | records.forEach(comActMicroWishVO1 -> { |
| | | if(userId != null){ |
| | | Long id = comActMicroWishVO1.getId(); |
| | | ComActMicroWishUserDO comActMicroWishUserDO = comActMicroWishUserDAO.selectOne(new QueryWrapper<ComActMicroWishUserDO>().lambda().eq(ComActMicroWishUserDO::getMicroWishId, id) |
| | | .eq(ComActMicroWishUserDO::getUserId, userId)); |
| | | if (ObjectUtils.isEmpty(comActMicroWishUserDO)) { |
| | | comActMicroWishVO1.setHaveGiveThumbsUp(0); |
| | | } else { |
| | | comActMicroWishVO1.setHaveGiveThumbsUp(1); |
| | | } |
| | | } |
| | | comActMicroWishVO1.setSponsorPhone(SensitiveUtil.desensitizedPhoneNumber(comActMicroWishVO1.getSponsorPhone())); |
| | | //查询处理人 |
| | | comActMicroWishVO1.setResponsibleName(this.getWishHandleName(comActMicroWishVO1.getHandleId())); |
| | | }); |
| | | iPage.setRecords(records); |
| | | } |
| | | return R.ok(iPage); |
| | | } |
| | | } |
| | |
| | | cadc.`comment`, |
| | | cadc.`is_author`, |
| | | su.`image_url`, |
| | | IFNULL( su.`name`, su.nick_name ) AS userNameBack, |
| | | IFNULL( su.`name`, su.nick_name ) AS userName, |
| | | cadc.create_at |
| | | FROM |
| | | com_act_discuss_comment AS cadc |
| | |
| | | select user_id,IFNULL(`name`,nick_name) as `name`,`type`,is_volunteer,is_partymember from sys_user where user_id = #{userId} |
| | | </select> |
| | | |
| | | <select id="pageMicroWishAdmin" resultType="com.panzhihua.common.model.vos.community.ComActMicroWishVO"> |
| | | SELECT |
| | | w.id, |
| | | u.`name` sponsor_name, |
| | | u.nick_name userNickName, |
| | | u.image_url , |
| | | w.sponsor_phone, |
| | | w.wish_name, |
| | | w.`status`, |
| | | w.`feedback_at`, |
| | | w.`examine_at`, |
| | | w.`distribution_at`, |
| | | w.`evaluate_at`, |
| | | w.`photo_path_list`, |
| | | count(wu.id)star_num, |
| | | w.`detail`, |
| | | w.form, |
| | | w.reject_reason, |
| | | su1.`name` responsible_name, |
| | | w.score, |
| | | w.img_width, |
| | | w.finish_at, |
| | | w.aim_num, |
| | | w.img_height, |
| | | w.handle_id, |
| | | w.create_at |
| | | FROM |
| | | com_act_micro_wish w |
| | | left join com_act_micro_wish_user wu on w.id=wu.micro_wish_id |
| | | left JOIN sys_user u ON w.sponsor_id = u.user_id |
| | | LEFT JOIN sys_user su1 ON w.responsible_id = su1.user_id |
| | | <where> |
| | | <if test='comActMicroWishVO.communityId != null and comActMicroWishVO.communityId != 0'> |
| | | and w.community_id=#{comActMicroWishVO.communityId} |
| | | </if> |
| | | <if test='comActMicroWishVO.createBegin != null '> |
| | | AND w.create_at BETWEEN #{comActMicroWishVO.createBegin} |
| | | AND #{comActMicroWishVO.createEnd} |
| | | </if> |
| | | <if test='comActMicroWishVO.sponsorPhone != null and comActMicroWishVO.sponsorPhone != ""'> |
| | | AND u.`phone` like concat(#{comActMicroWishVO.sponsorPhone},'%') |
| | | </if> |
| | | <if test='comActMicroWishVO.sponsorName != null and comActMicroWishVO.sponsorName != ""'> |
| | | AND u.`name` like concat(#{comActMicroWishVO.sponsorName},'%') |
| | | </if> |
| | | <if test='comActMicroWishVO.responsibleName != null and comActMicroWishVO.responsibleName != ""'> |
| | | AND su1.`name` like concat(#{comActMicroWishVO.responsibleName},'%') |
| | | </if> |
| | | <if test='comActMicroWishVO.status != null'> |
| | | AND w.`status` = #{comActMicroWishVO.status} |
| | | </if> |
| | | </where> |
| | | ORDER BY w.create_at desc |
| | | </select> |
| | | |
| | | </mapper> |