| | |
| | | @ApiOperation(value = "列表查询",response = ComAreaCounty.class) |
| | | @GetMapping("/areaTownCommunity") |
| | | public R test(){ |
| | | return communityService.areaTownCommunity(this.getLoginUserInfo().getName()); |
| | | return communityService.areaTownCommunity("panzhihua"); |
| | | } |
| | | } |
| | |
| | | @Data |
| | | public class ComAreaCounty { |
| | | private String value; |
| | | private Long communityId; |
| | | private List<ComAreaCounty> children; |
| | | } |
| | |
| | | </select> |
| | | |
| | | <select id="selectCommunity" resultType="com.panzhihua.common.model.vos.community.acid.ComAreaCounty"> |
| | | select distinct community as value from com_area_town_community where town =#{town} |
| | | select distinct community as value,community_id from com_area_town_community where town =#{town} |
| | | </select> |
| | | |
| | | </mapper> |