|
@ -395,9 +395,9 @@ public class BridgeService {
|
395
|
395
|
|
396
|
396
|
@Get
|
397
|
397
|
@Path("/all/byUser")
|
398
|
|
public Map<String,Object> queryAll(@JdbcConn Connection con,@Nullable Boolean active, String id)throws SQLException {
|
|
398
|
public Map<String,Object> queryAll(@JdbcConn Connection con,@Nullable Boolean active,@LoginUser SessionUser user)throws SQLException {
|
399
|
399
|
Map<String, Object> map = new HashMap<>();
|
400
|
|
List<Bridge> bridges = this.bridgeDao.listQueryByUser(con, active, id);
|
|
400
|
List<Bridge> bridges = this.bridgeDao.listQueryByUser(con, active, user.getId());
|
401
|
401
|
String[] bridgeId = new String[bridges.size()];
|
402
|
402
|
for(int i = 0 ; i < bridges.size() ; ++i) {
|
403
|
403
|
bridgeId[i] = bridges.get(i).getId();
|