/** * 统计记录数 * * @param modelType 模型类型Class * @param conditon 查询条件,标准SQL语句中where 之后的条件。 * @return */ public static long getRowCount(Class<?> modelType, String conditon) { synchronized (lock) { return PersistentUtils.getRowCount(modelType, conditon); } }