Commit eb00a08f by 黄准

车道指标相关计算逻辑

parent 9532a0d3
......@@ -15,7 +15,7 @@ public class DataSourceUtils {
public static boolean isDbConnected(Connection con) {
//final String CHECK_SQL_QUERY = "SELECT 1";
try {
if(!con.isClosed() || con!=null){
if(con != null && !con.isValid(1000)){
return true;
}
} catch (SQLException e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment