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) {