/** * 查询符合条件的记录数量 * * @param <T> * @param modelType 模型类的Class * @param conditon SQL语句中where查询条件之后的条件 * @return */ public static <T extends AutoType> int getModelListCount(Class<?> modelType, String conditon) { synchronized (lock) { return PersistentUtils.getModelListCount(modelType, conditon); } }