Package com.eatle.persistent.pojo.foundation.place

Examples of com.eatle.persistent.pojo.foundation.place.CommunityCriteria


    public void getCommunitiesByDistrictId() throws IOException
    {
      Map<Long, String> communitiesMap = new HashMap<Long, String>();
      List<Community> communities = new ArrayList<Community>();
     
      CommunityCriteria cc = new CommunityCriteria();
      com.eatle.persistent.pojo.foundation.place.CommunityCriteria.Criteria criteria = cc.createCriteria();
      if(community != null)
      {
        criteria.andDistrictIdEqualTo(community.getDistrictId());
          communities = communityService.findByCriteria(cc);
      }
View Full Code Here


  @Override
  public Pagination findPagination(Map<String, Object> queryMap,
      int currentPage, int pageSize)
  {
    CommunityCriteria communityCriteria = new CommunityCriteria();
    Criteria criteria = communityCriteria.createCriteria();
    // 设置搜索条件参数
    if (queryMap != null)
    {
      if (queryMap.containsKey("name"))
      {
        criteria.andNameLike("%" + (String) queryMap.get("name") + "%");
      }
      if (queryMap.containsKey("pinyinName"))
      {
        criteria.andPinyinNameLike("%" + (String) queryMap.get("pinyinName") + "%");
      }
    }
    // 设置分页参数
    communityCriteria.setPageSize(pageSize);
    communityCriteria.setStartIndex((currentPage - 1) * pageSize);
    List<Community> communities = communityMapper.selectByCriteria(communityCriteria);
    // 结果集处理所属完整区域字符串
    List<Community> items = new ArrayList<Community>();
    for(Community c : communities)
    {
View Full Code Here

TOP

Related Classes of com.eatle.persistent.pojo.foundation.place.CommunityCriteria

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.