Package com.eatle.persistent.pojo.foundation.business.FeedbackCriteria

Examples of com.eatle.persistent.pojo.foundation.business.FeedbackCriteria.Criteria


  @Override
  public Pagination findPagination(Map<String, Object> queryMap,
      int currentPage, int pageSize) throws ParseException
  {
    FeedbackCriteria feedbackCriteria = new FeedbackCriteria();
    Criteria criteria = feedbackCriteria.createCriteria();
    // 设置搜索条件参数
    if (queryMap != null)
    {
      if (queryMap != null)
      {
        if (queryMap.containsKey("startTime"))
        {
          if(queryMap.containsKey("endTime"))
          {
            criteria.andSubTimeBetween(
              new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse((String) queryMap.get("startTime")),
              new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse((String) queryMap.get("endTime")));
          }
          else
          {
            criteria.andSubTimeBetween(
              new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse((String) queryMap.get("startTime")),
              new Date());
          }
        }
        if(queryMap.containsKey("handleStatus"))
        {
          criteria.andHandleStatusEqualTo(Short.parseShort((String) queryMap.get("handleStatus")));
        }
        if(queryMap.containsKey("identifyType"))
        {
          criteria.andIdentifyTypeEqualTo(Short.parseShort((String) queryMap.get("identifyType")));
        }
      }
    }
    // 设置分页参数
    feedbackCriteria.setPageSize(pageSize);
View Full Code Here

TOP

Related Classes of com.eatle.persistent.pojo.foundation.business.FeedbackCriteria.Criteria

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.