Commit 9fb0bfe0 authored by 赵建伟's avatar 赵建伟

update codes

parent 921af55b
...@@ -72,6 +72,7 @@ public class CtrEstimatePfrMysqlSink extends RichSinkFunction<DeviceCurrentEstim ...@@ -72,6 +72,7 @@ public class CtrEstimatePfrMysqlSink extends RichSinkFunction<DeviceCurrentEstim
private void insertAndDel(DeviceCurrentEstimatePfrTmp deviceCurrentEstimatePfrTmp) { private void insertAndDel(DeviceCurrentEstimatePfrTmp deviceCurrentEstimatePfrTmp) {
Statement statement = null; Statement statement = null;
Date date = new Date(); Date date = new Date();
if(null != deviceCurrentEstimatePfrTmp){
try{ try{
statement = connection.createStatement(); statement = connection.createStatement();
statement.executeUpdate( statement.executeUpdate(
...@@ -122,4 +123,5 @@ public class CtrEstimatePfrMysqlSink extends RichSinkFunction<DeviceCurrentEstim ...@@ -122,4 +123,5 @@ public class CtrEstimatePfrMysqlSink extends RichSinkFunction<DeviceCurrentEstim
e.printStackTrace(); e.printStackTrace();
} }
} }
}
} }
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