Commit fd514b7795cbd05c10f8a2eb3c2172c15918e4dc

Authored by rui.zhang
1 parent af76d0dad2

platform permission

fix bug

Showing 1 changed file with 12 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/CommunityConfigController.java View file @ fd514b7
... ... @@ -21,6 +21,7 @@
21 21 import com.lyms.platform.pojo.CommunityConfig;
22 22  
23 23 /**
  24 + * 社区管理
24 25 * Created by Zhang.Rui on 2016/3/18.
25 26 */
26 27 @Controller
27 28  
... ... @@ -71,13 +72,23 @@
71 72 //查询区域
72 73 @RequestMapping(value = "communityConfig", method = RequestMethod.GET)
73 74 @ResponseBody
74   - public BaseListResponse queryArea(String keyword) {
  75 + public BaseListResponse queryArea(String keyword ) {
75 76 List<CommunityConfig> communityConfigList = communityConfigService.queryArea(keyword);
76 77 return new BaseListResponse().setData(communityConfigList)
77 78 .setErrorcode(ErrorCodeConstants.SUCCESS)
78 79 .setErrormsg("查询成功!");
79 80 }
80 81  
  82 + //
  83 + @RequestMapping(value = "communityConfigTest", method = RequestMethod.GET)
  84 + @ResponseBody
  85 + public Integer communityConfigTest() {
  86 + CommunityConfig communityConfig = new CommunityConfig(null, "河北省");
  87 + communityConfigService.appendArea(communityConfig);
  88 + communityConfig = new CommunityConfig(null, "四川省");
  89 + communityConfigService.appendArea(communityConfig);
  90 + return 1;
  91 + }
81 92  
82 93 }