コード例 #1
0
 public Result getAttendanceRecordPageByClass(
     Page page, Long classId, String startDate, String endDate) throws BusinessException {
   startDate = startDate.substring(0, 10) + " 00:00:00";
   endDate = endDate.substring(0, 10) + " 23:59:59";
   return studentAttendanceRecordDao.getAttendanceRecordPageByClass(
       page, classId, startDate, endDate);
 }
コード例 #2
0
 @SuppressWarnings("unchecked")
 public Result getAttendanceRecordPager(Page page, String startDate, String endDate, Long xs_id)
     throws BusinessException {
   try {
     startDate = startDate.substring(0, 10) + " 00:00:00";
     endDate = endDate.substring(0, 10) + " 23:59:59";
     List values = new ArrayList();
     values.add(startDate);
     values.add(endDate);
     values.add(xs_id);
     return studentAttendanceRecordDao.getAttendanceRecordPager(page, values);
   } catch (Exception e) {
     logger.error("查询考勤记录出错!原因:" + e.toString());
     throw new BusinessException("查询考勤记录出错!原因:" + e.toString());
   }
 }