sujinwen
2017-07-24 1a10d546c76f474d33e23c5958c08aa0afcdae67
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/sqlite/AttendanceDao.java
@@ -79,7 +79,7 @@
            }
            Integer total = null;
            while (c_count.moveToNext()) {
                total = c.getInt(c.getColumnIndex("count"));
                total = c_count.getInt(0);
            }
            resultBean.setTotalPages(getTotalPageSize(total));
            resultBean.setPageNum(pageNum);
@@ -115,7 +115,7 @@
            if(deviceCompanyId != null && !deviceCompanyId.trim().isEmpty()) {
                sb.append(" AND a.device_company_id = ").append(deviceCompanyId);
            }
            sb.append("ORDER BY a.time DESC");
            sb.append(" ORDER BY a.time DESC");
            StringBuilder count = new StringBuilder(sb.length());
            count.append("select count(*) as count from (").append(sb).append(" ) _table");
            sb.append(" LIMIT ").append("0").append(",").append(100);
@@ -131,7 +131,7 @@
            }
            Integer total = null;
            while (c_count.moveToNext()) {
                total = c.getInt(c.getColumnIndex("count"));
                total = c_count.getInt(0);
            }
        } catch (Exception e) {
            e.printStackTrace();