From 43169a27a113c945924a9ea18d3ffee22e46f635 Mon Sep 17 00:00:00 2001 From: zhangdongxu Date: Wed, 28 Feb 2018 10:28:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../restful/UpdateCompileByJDBCThread.java | 37 ------------------- 1 file changed, 37 deletions(-) diff --git a/src/main/java/com/nis/web/service/restful/UpdateCompileByJDBCThread.java b/src/main/java/com/nis/web/service/restful/UpdateCompileByJDBCThread.java index 6be7d5d..acd698e 100644 --- a/src/main/java/com/nis/web/service/restful/UpdateCompileByJDBCThread.java +++ b/src/main/java/com/nis/web/service/restful/UpdateCompileByJDBCThread.java @@ -201,43 +201,6 @@ public class UpdateCompileByJDBCThread implements Runnable { } } } - - /** - * - * @Description: 根据compileId更新与之对应的group关系表的生效状态 - * @author (zdx) - * @date 2017年8月16日 上午9:46:44 - * @param compileList - * @param conn - * @param opTime - * @param msgList - */ - public static void updateGroupByCompileId(List compileList, Connection conn, Date opTime, - List msgList) { - if (null != compileList && compileList.size() > 0) { - try { - StringBuffer sb = new StringBuffer(); - sb.append("update CONFIG_GROUP set IS_VALID=?,op_time=?,LAST_UPDATE=sysdate where COMPILE_ID=? "); - conn.setAutoCommit(false); - PreparedStatement ps = conn.prepareStatement(sb.toString()); - for (ConfigCompile compile : compileList) { - Object[] obj = new Object[] { compile.getIsValid(), opTime,compile.getCompileId() }; - for (int x = 0; x < obj.length; x++) { - if (x == 1) { - ps.setTimestamp(x + 1, utileDate2TimeStamp(opTime)); - } else { - ps.setObject(x + 1, obj[x]); - } - } - ps.addBatch(); - } - ps.executeBatch(); - } catch (Exception e) { - logger.error(e); - msgList.add(e); - } - } - } public static void updateGroup(List groupList, Connection conn, Date opTime, List msgList) {