XMTT 6 years ago
parent
commit
74918211a0
1 changed files with 9 additions and 10 deletions
  1. 9 10
      src/main/java/com/ekexiu/project/bridge/alarm/AlarmService.java

+ 9 - 10
src/main/java/com/ekexiu/project/bridge/alarm/AlarmService.java

1
package com.ekexiu.project.bridge.alarm;
1
package com.ekexiu.project.bridge.alarm;
2

2

3
import java.sql.Connection;
4
import java.sql.PreparedStatement;
5
import java.sql.ResultSet;
6
import java.sql.SQLException;
7
import java.util.HashMap;
8
import java.util.List;
9
import java.util.Map;
10

3
import com.ekexiu.project.bridge.system.vo.SessionUser;
11
import org.jfw.apt.annotation.Autowrie;
4
import org.jfw.apt.annotation.Autowrie;
12
import org.jfw.apt.web.annotation.LoginUser;
5
import org.jfw.apt.web.annotation.LoginUser;
13
import org.jfw.apt.web.annotation.Path;
6
import org.jfw.apt.web.annotation.Path;
19
import org.jfw.util.jdbc.PreparedStatementConfig;
12
import org.jfw.util.jdbc.PreparedStatementConfig;
20
import org.jfw.util.jdbc.ResultSetExtractor;
13
import org.jfw.util.jdbc.ResultSetExtractor;
21

14

22
import com.ekexiu.project.bridge.system.vo.SessionUser;
15
import java.sql.Connection;
16
import java.sql.PreparedStatement;
17
import java.sql.ResultSet;
18
import java.sql.SQLException;
19
import java.util.HashMap;
20
import java.util.List;
21
import java.util.Map;
23

22

24
@Path("/alarm")
23
@Path("/alarm")
25
public class AlarmService {
24
public class AlarmService {
70
				for(;i < server.length;++i ){
69
				for(;i < server.length;++i ){
71
					ps.setString(i+1,server[i]);
70
					ps.setString(i+1,server[i]);
72
				}
71
				}
73
				ps.setString(i,user.getId());
72
				ps.setString(i+1,user.getId());
74
			}
73
			}
75
		});
74
		});
76
		
75