@Resource(name="cardDao")
ICardDao cardDao;
@RequestMapping(value="/queryScorecards.do")
public ModelAndView queryScorecardsByPage(HttpServletRequest request,HttpServletResponse response){
PageArgument pageArgment = getPageInfo(request);
String card = request.getParameter("card");
String scoreStart = request.getParameter("scoreStart");
String scoreEnd = request.getParameter("scoreEnd");
String effectiveTimeStart = request.getParameter("effectiveTimeStart");
String effectiveTimeEnd = request.getParameter("effectiveTimeEnd");
if(scoreStart == null || "".equals(scoreStart))
{
scoreStart = "0";
}
if(scoreEnd == null || "".equals(scoreEnd))
{
scoreEnd = "0";
}
PageList pageList = scorecardDao.listScorecards(card, Double.parseDouble(scoreStart), Double.parseDouble(scoreEnd), effectiveTimeStart, effectiveTimeEnd, pageArgment.getCurPage(), pageArgment.getPageSize());
printJSON(response, pageList.toJSON());
return null;
}