| | |
| | | @ApiOperation(value = "根据距离搜索社区", response = CommunitySwitchAllAppletsVO.class) |
| | | @PostMapping("/distance/noToken") |
| | | public R searchDistance(@RequestBody SearchCommunityDTO communityDTO) { |
| | | communityDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.communitySwitchSearchDistanceList(communityDTO); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "随手拍分类列表", response = ComActEasyPhotoClassifyVO.class) |
| | | @GetMapping("easyphoto/classify/list") |
| | | public R easyPhotoClassifyList() { |
| | | return communityService.listPhotoClassify(); |
| | | return communityService.listPhotoClassify(this.getAreaCode()); |
| | | } |
| | | } |
| | |
| | | @ApiOperation(value = "所有服务分类", response = ConvenientServiceCategoryVO.class) |
| | | @GetMapping("/service-category/all") |
| | | public R getAllServiceCategories() { |
| | | return communityService.getAllServiceCategories(); |
| | | return communityService.getAllServiceCategories(this.getAreaCode()); |
| | | } |
| | | } |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | @GetMapping("info") |
| | | public R getUserInfo() { |
| | | Long userId = this.getUserId(); |
| | | return userService.detailUser(userId); |
| | | R r=userService.detailUser(userId); |
| | | if(r.getData()!=null){ |
| | | LoginUserInfoVO loginUserInfoVO= (LoginUserInfoVO) r.getData(); |
| | | if(StringUtils.isNotEmpty(loginUserInfoVO.getAreaCode())){ |
| | | switch (loginUserInfoVO.getAreaCode()){ |
| | | case "510423": loginUserInfoVO.setCommunityName("西区运营后台"); |
| | | break; |
| | | case "510411": loginUserInfoVO.setCommunityName("仁和区运营后台"); |
| | | break; |
| | | case "510402": loginUserInfoVO.setCommunityName("东区运营后台"); |
| | | break; |
| | | default:loginUserInfoVO.setCommunityName("运营后台"); |
| | | } |
| | | } |
| | | return R.ok(loginUserInfoVO); |
| | | } |
| | | return R.fail("无用户信息"); |
| | | } |
| | | |
| | | @ApiOperation(value = "修改密码") |
| | |
| | | private Long communityId; |
| | | |
| | | private String areaCode; |
| | | |
| | | private Integer isWjw; |
| | | } |
| | |
| | | * @return 随手拍分类列表 |
| | | */ |
| | | @GetMapping("/classify/admin/list") |
| | | R listPhotoClassify(); |
| | | R listPhotoClassify(@RequestParam("areaCode") String areaCode); |
| | | |
| | | /** |
| | | * 社区后台-切换随手拍公示状态 |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/convenient/service-category/all") |
| | | R getAllServiceCategories(); |
| | | R getAllServiceCategories(@RequestParam("areaCode") String areaCode); |
| | | |
| | | /** |
| | | * 获取用户便民服务商家详情 |
| | |
| | | @ApiOperation(value = "所有服务分类", response = ConvenientServiceCategoryVO.class) |
| | | @GetMapping("/service-category/all") |
| | | public R getAllServiceCategories() { |
| | | return communityService.getAllServiceCategories(); |
| | | return communityService.getAllServiceCategories(this.getAreaCode()); |
| | | } |
| | | |
| | | @ApiOperation(value = "便民服务商家导出") |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/service-category/all") |
| | | public R getAllServiceCategories() { |
| | | return convenientServiceCategoryService.getAllServiceCategories(); |
| | | public R getAllServiceCategories(@RequestParam("areaCode") String areaCode) { |
| | | return convenientServiceCategoryService.getAllServiceCategories(areaCode); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return 随手拍分类列表 |
| | | */ |
| | | @GetMapping("/admin/list") |
| | | public R listPhotoClassify() { |
| | | return comActEasyPhotoClassifyService.listPhotoClassify(); |
| | | public R listPhotoClassify(@RequestParam("areaCode")String areaCode) { |
| | | return comActEasyPhotoClassifyService.listPhotoClassify(areaCode); |
| | | } |
| | | |
| | | /** |
| | |
| | | * |
| | | * @return 随手拍分类列表 |
| | | */ |
| | | List<ComActEasyPhotoClassifyVO> getPhotoClassifyList(); |
| | | List<ComActEasyPhotoClassifyVO> getPhotoClassifyList(String areaCode); |
| | | |
| | | } |
| | |
| | | * |
| | | * @return 随手拍分类列表 |
| | | */ |
| | | R listPhotoClassify(); |
| | | R listPhotoClassify(String areaCode); |
| | | |
| | | /** |
| | | * 运营后台-随手拍分类删除 |
| | |
| | | * 获取所有便民服务分类 |
| | | * @return |
| | | */ |
| | | R getAllServiceCategories(); |
| | | R getAllServiceCategories(String areaCode); |
| | | |
| | | /** |
| | | * 获取该社区商家数量大于0的分类 |
| | |
| | | * @return 随手拍分类列表 |
| | | */ |
| | | @Override |
| | | public R listPhotoClassify() { |
| | | return R.ok(this.baseMapper.getPhotoClassifyList()); |
| | | public R listPhotoClassify(String areaCode) { |
| | | return R.ok(this.baseMapper.getPhotoClassifyList(areaCode)); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | if(comActReserveCommitVO.getRecordId()!=null){ |
| | | comActReserveRecordMapper.deleteById(comActReserveCommitVO.getRecordId()); |
| | | comActReserveDO.setJoinCount(comActReserveDO.getJoinCount()-1); |
| | | } |
| | | List<ComActReserveRecordDO> list=comActReserveRecordMapper.selectList(new QueryWrapper<ComActReserveRecordDO>().eq("reserve_id",comActReserveCommitVO.getId()).eq("user_id",comActReserveCommitVO.getUserId()).in("status",1,2,3)); |
| | | if(!list.isEmpty()&&list.size()>1&&comActReserveDO.getIsRepeat()==ComActReserveDO.isRepeat.no){ |
| | |
| | | } |
| | | |
| | | @Override |
| | | public R getAllServiceCategories() { |
| | | public R getAllServiceCategories(String areaCode) { |
| | | List<ConvenientServiceCategoryVO> categoryVOList = new ArrayList<>(); |
| | | List<ConvenientServiceCategoryDO> categoryDOS = this.baseMapper.selectList(new QueryWrapper<ConvenientServiceCategoryDO>() |
| | | .lambda().orderByDesc(ConvenientServiceCategoryDO::getWeight)); |
| | | .lambda().eq(ConvenientServiceCategoryDO::getAreaCode,areaCode).orderByDesc(ConvenientServiceCategoryDO::getWeight)); |
| | | if (!ObjectUtils.isEmpty(categoryDOS)) { |
| | | categoryDOS.forEach(categoryDO -> { |
| | | ConvenientServiceCategoryVO categoryVO = new ConvenientServiceCategoryVO(); |
| | |
| | | </select> |
| | | |
| | | <select id="getPhotoClassifyList" resultType="com.panzhihua.common.model.vos.community.easyPhoto.ComActEasyPhotoClassifyVO"> |
| | | select id,`name`,`status`,weight,remark,create_at,update_at from com_act_easy_photo_classify |
| | | select id,`name`,`status`,weight,remark,create_at,update_at from com_act_easy_photo_classify where area_code = #{areaCode} |
| | | order by create_at desc |
| | | </select> |
| | | |
| | |
| | | <if test="pageReserveDTO.endTime != null and pageReserveDTO.endTime != """> |
| | | AND DATE_FORMAT(t.create_at,'%Y-%m-%d %H:%i:%s') <![CDATA[ <= ]]> #{pageReserveDTO.endTime} |
| | | </if> |
| | | <if test="pageReserveDTO.isWjw !=null"> |
| | | AND (title like '%返攀%' or '%居家%') |
| | | </if> |
| | | </where> |
| | | order by t.create_at desc |
| | | </select> |
| | |
| | | SELECT ccsc.id, ccsc.name, ccsc.icon, ccsc.remark, ccsc.weight |
| | | FROM com_convenient_service_categories ccsc |
| | | INNER JOIN com_convenient_service_scope ccss ON ccsc.id = ccss.service_category_id |
| | | LEFT JOIN com_convenient_merchants ccm ON ccss.merchant_id = ccm.id |
| | | INNER JOIN com_convenient_merchants ccm ON ccss.merchant_id = ccm.id |
| | | WHERE ccsc.is_del = 0 AND ccm.is_del = 0 AND( ccm.community_id = ${communityId} or ccm.community_id =0) AND ccm.business_status = 1 GROUP BY ccsc.id ORDER BY ccsc.weight desc |
| | | </select> |
| | | </mapper> |
| | |
| | | @ApiOperation(value = "所有服务分类", response = ConvenientServiceCategoryVO.class) |
| | | @GetMapping("/service-category/all") |
| | | public R getAllServiceCategories() { |
| | | return communityService.getAllServiceCategories(); |
| | | return communityService.getAllServiceCategories(this.getAreaCode()); |
| | | } |
| | | |
| | | @ApiOperation(value = "编辑便民服务商家") |