Package com.thinkgem.jeesite.modules.sys.entity

Examples of com.thinkgem.jeesite.modules.sys.entity.Area


  @ModelAttribute("area")
  public Area get(@RequestParam(required=false) String id) {
    if (StringUtils.isNotBlank(id)){
      return areaService.get(id);
    }else{
      return new Area();
    }
  }
View Full Code Here


    response.setContentType("application/json; charset=UTF-8");
    List<Map<String, Object>> mapList = Lists.newArrayList();
//    User user = UserUtils.getUser();
    List<Area> list = areaService.findAll();
    for (int i=0; i<list.size(); i++){
      Area e = list.get(i);
      if (extId == null || (extId!=null && !extId.equals(e.getId()) && e.getParentIds().indexOf(","+extId+",")==-1)){
        Map<String, Object> map = Maps.newHashMap();
        map.put("id", e.getId());
//        map.put("pId", !user.isAdmin()&&e.getId().equals(user.getArea().getId())?0:e.getParent()!=null?e.getParent().getId():0);
        map.put("pId", e.getParent()!=null?e.getParent().getId():0);
        map.put("name", e.getName());
        mapList.add(map);
      }
    }
    return mapList;
  }
View Full Code Here

TOP

Related Classes of com.thinkgem.jeesite.modules.sys.entity.Area

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.