Merge branch '20220927' into haucheng_panzhihua
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.community.ActivityInviteDTO; |
| | | import com.panzhihua.common.model.dtos.community.PageActivityInviteDTO; |
| | | import com.panzhihua.common.model.dtos.property.CommonPage; |
| | |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/") |
| | | public class CommunityApi { |
| | | public class CommunityApi extends BaseController { |
| | | @Resource |
| | | public ComMngPopulationDAO comMngPopulationDAO; |
| | | @Resource |
| | |
| | | */ |
| | | @GetMapping("/eventgrid/community/list") |
| | | public R getCommunityLists() { |
| | | return comActService.getCommunityLists(); |
| | | return comActService.getCommunityLists(this.getAppId()); |
| | | } |
| | | |
| | | /** |
| | |
| | | void updateAccountPassword(@Param("password") String password, @Param("account") String account, |
| | | @Param("communityId") Long communityId); |
| | | |
| | | @Select("select community_id,`name`,lng,lat from com_act where state = 0") |
| | | List<EventGridCommunityAdminVO> getCommunityLists(); |
| | | @Select("select community_id,`name`,lng,lat from com_act where state = 0 and app_id =#{appId}") |
| | | List<EventGridCommunityAdminVO> getCommunityLists(@Param("appId") String appId); |
| | | |
| | | @Select("select ca.`name`,cmsap.province_name,cmsac.city_name,cmsad.district_name,ca.street_id,ca.community_id,cs.`name` as streetName from com_act as ca \n" |
| | | + "left join com_mng_struct_area_province as cmsap on cmsap.province_adcode = ca.province_code\n" |
| | |
| | | * |
| | | * @return 社区列表 |
| | | */ |
| | | R getCommunityLists(); |
| | | R getCommunityLists(String appId); |
| | | |
| | | /** |
| | | * 查询西区社区列表 |
| | |
| | | * @return 社区列表 |
| | | */ |
| | | @Override |
| | | public R getCommunityLists() { |
| | | return R.ok(this.comActDAO.getCommunityLists()); |
| | | public R getCommunityLists(String appId) { |
| | | return R.ok(this.comActDAO.getCommunityLists(appId)); |
| | | } |
| | | |
| | | @Override |