@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);
feedbackCriteria.setStartIndex((currentPage - 1) * pageSize);
List<Feedback> items = feedbackMapper.selectByCriteria(feedbackCriteria);
for(Feedback fb : items)
{
if(fb.getIdentifyId() != null)