123456789101112131415161718 |
- package com.chinacreator.videoalliance.query.dao;
- import java.sql.SQLException;
- import org.apache.commons.lang.math.NumberUtils;
- import org.springframework.stereotype.Component;
- import com.chinacreator.videoalliance.common.util.DataSource;
- import com.frameworkset.common.poolman.SQLExecutor;
- @Component
- public class ChangshiDebugDao {
-
- public boolean query(String userid) throws SQLException {
- String sql = "select count(1) from td_changshi_debug where userid=?";
- return NumberUtils.toInt(SQLExecutor.queryFieldWithDBName(DataSource.NET3G, sql,userid), 0) > 0;
- }
- }
|