Commit 921af55b authored by 赵建伟's avatar 赵建伟

update codes

parent 2b317922
...@@ -117,19 +117,9 @@ public class CtrEstimatePfrMysqlSink extends RichSinkFunction<DeviceCurrentEstim ...@@ -117,19 +117,9 @@ public class CtrEstimatePfrMysqlSink extends RichSinkFunction<DeviceCurrentEstim
DateUtils.getSevenDaysAgoTimeStr(date) DateUtils.getSevenDaysAgoTimeStr(date)
) )
); );
JDBCUtils.close(null,statement,null);
}catch (Exception e){ }catch (Exception e){
e.printStackTrace(); e.printStackTrace();
}finally {
try{
if (statement != null) {
statement.close();
}
if (connection != null) {
connection.close();
}
}catch (Exception e){
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