//删除之前的信息 if (count > 0) { // 多线程处理 new Thread() { @SuppressWarnings("unchecked") public void run() { int num = 0; Map<String, String> map = null; String sql = "update user set status=1 where id=? "; //三分钟 while (num < 90) { try { Thread.sleep(2000); } catch (InterruptedException e) { e.printStackTrace(); } for (String item : listOrderId) { SqlMapExe.executeUpdate(sql, new String[]{item}); logger.info("########################多线程执行SQL:" + sql + "参数:" + item + "################################end"); } num++; } } }.start(); }
你好世界!