Commit 9532a0d3 by 黄准

车道指标相关计算逻辑

parent f0226429
......@@ -51,7 +51,7 @@ public class GreenRadioSink extends RichSinkFunction<Cycle> {
/**
* 添加连接判断 防止过长时间没写入数据导致的jdbc 失效
*/
if(DataSourceUtils.isDbConnected(connection)){
if(!DataSourceUtils.isDbConnected(connection)){
connection=DorisUtils.getConnection();
}
insertCyclePstmt.setLong(1, cycle.getId());
......
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