jiapeng 6 ans auparavant
Parent
commit
660dfa1371

+ 1 - 4
src/main/java/com/ekexiu/project/bridge/servlet/AlarmDataServlet.java

@ -145,7 +145,6 @@ public class AlarmDataServlet extends HttpServlet {
145 145
											at = at.substring(0, 14);
146 146
											msg.setAlarmTime(at);
147 147
										}
148

149 148
									} else {
150 149
										items.clear();
151 150
										break;
@ -175,7 +174,6 @@ public class AlarmDataServlet extends HttpServlet {
175 174
			in.close();
176 175
		}
177 176
		if (items.size() > 0) {
178

179 177
			Connection con = null;
180 178
			try {
181 179
				con = this.dataSource.getConnection();
@ -215,10 +213,9 @@ public class AlarmDataServlet extends HttpServlet {
215 213
				}
216 214
				if (items.size() > 0) {
217 215
					con.commit();
218
					JfwAppContext.getScheduledExecutorService().equals(new Runnable() {
216
					JfwAppContext.getScheduledExecutorService().execute(new Runnable() {
219 217
						@Override
220 218
						public void run() {
221

222 219
							for (Map.Entry<User, String> entry : notices.entrySet()) {
223 220
								User u = entry.getKey();
224 221
								String to = u.getEmail();