jiapeng 6 years ago
parent
commit
4e7869207a

+ 2 - 2
src/main/java/com/ekexiu/project/bridge/resource/service/BridgeService.java

395
395
396
    @Get
396
    @Get
397
    @Path("/all/byUser")
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
        Map<String, Object> map = new HashMap<>();
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
        String[] bridgeId = new String[bridges.size()];
401
        String[] bridgeId = new String[bridges.size()];
402
        for(int i = 0 ; i < bridges.size() ; ++i) {
402
        for(int i = 0 ; i < bridges.size() ; ++i) {
403
            bridgeId[i] = bridges.get(i).getId();
403
            bridgeId[i] = bridges.get(i).getId();