|
@ -118,6 +118,21 @@ public class EnvDataService {
|
118
|
118
|
envDataDao.logicDeleteTransducer(con, sessionUser.getId(), id);
|
119
|
119
|
}
|
120
|
120
|
|
|
121
|
@Post
|
|
122
|
@Path("/server/update")
|
|
123
|
public void updateServer(@JdbcConn(true) Connection con, @LoginUser SessionUser sessionUser, EnvServer envServer) throws SQLException {
|
|
124
|
envServer.setModifier(sessionUser.getId());
|
|
125
|
envDataDao.update(con, envServer);
|
|
126
|
}
|
|
127
|
|
|
128
|
@Post
|
|
129
|
@Path("/transducer/update")
|
|
130
|
public void updateTransducer(@JdbcConn(true) Connection con, @LoginUser SessionUser sessionUser, EnvTransducer envTransducer) throws SQLException {
|
|
131
|
envTransducer.setModifier(sessionUser.getId());
|
|
132
|
envDataDao.update(con, envTransducer);
|
|
133
|
}
|
|
134
|
|
|
135
|
|
121
|
136
|
@Path("/server/pq")
|
122
|
137
|
@Get
|
123
|
138
|
public PageQueryResult<EnvServer> pageQuery(@JdbcConn Connection con, @Nullable Boolean active,@Nullable String key,@Nullable String code,int pageSize,int pageNo)throws SQLException {
|
|
@ -154,6 +169,12 @@ public class EnvDataService {
|
154
|
169
|
return this.envDataDao.querySerByCode(con, code, id,active);
|
155
|
170
|
}
|
156
|
171
|
|
|
172
|
@Get
|
|
173
|
@Path("/server/checkIp")
|
|
174
|
public EnvServer serverByIp(@JdbcConn Connection con,String ipAddress,@Nullable String id,@Nullable Boolean active)throws SQLException {
|
|
175
|
return this.envDataDao.querySerByIp(con, ipAddress, id, active);
|
|
176
|
}
|
|
177
|
|
157
|
178
|
@Get
|
158
|
179
|
@Path("/transducer/checkSeq")
|
159
|
180
|
public EnvServer transducerBySeq(@JdbcConn Connection con, String seq, @Nullable String id, @Nullable Boolean active)throws SQLException {
|