jiapeng 6 years ago
parent
commit
2af60a5b82

+ 1 - 1
src/main/java/com/ekexiu/project/bridge/resource/dao/BridgeDao.java

58
58
59
    @PageSelect
59
    @PageSelect
60
    @OrderBy("ORDER BY CODE")
60
    @OrderBy("ORDER BY CODE")
61
    PageQueryResult<Bridge> pageQuery(Connection con, @Nullable Boolean active, @SqlColumn(handlerClass = StringHandler.class, value = "ID IN(SELECT BCODE FROM USER_BRIDGE WHERE UID=?)") String uid, int pageSize, int pageNo) throws SQLException;
61
    PageQueryResult<Bridge> pageQuery(Connection con, @Nullable Boolean active, @SqlColumn(handlerClass = StringHandler.class, value = "ID IN(SELECT BRIDGE FROM USER_BRIDGE WHERE UID=?)") String uid, int pageSize, int pageNo) throws SQLException;
62
62
63
    @SelectList
63
    @SelectList
64
    @OrderBy("ORDER BY CODE")
64
    @OrderBy("ORDER BY CODE")

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

164
164
165
    @Get
165
    @Get
166
    @Path("/bridge/byUser")
166
    @Path("/bridge/byUser")
167
    public PageQueryResult<Bridge> query(@JdbcConn Connection con, String uid, @Nullable Boolean active, int pageSize, int pageNo) throws SQLException {
168
        return this.bridgeDao.pageQuery(con, active, uid, pageSize, pageNo);
167
    public PageQueryResult<Bridge> query(@JdbcConn Connection con, @LoginUser SessionUser user, @Nullable Boolean active, int pageSize, int pageNo) throws SQLException {
168
        return this.bridgeDao.pageQuery(con, active, user.getId(), pageSize, pageNo);
169
    }
169
    }
170
170
171
171