|
|
|
|
5
|
import java.util.Random;
|
5
|
import java.util.Random;
|
6
|
|
6
|
|
7
|
import org.jfw.apt.annotation.Autowrie;
|
7
|
import org.jfw.apt.annotation.Autowrie;
|
|
|
8
|
import org.jfw.apt.annotation.DefaultValue;
|
8
|
import org.jfw.apt.annotation.Nullable;
|
9
|
import org.jfw.apt.annotation.Nullable;
|
9
|
import org.jfw.apt.web.annotation.Path;
|
10
|
import org.jfw.apt.web.annotation.Path;
|
10
|
import org.jfw.apt.web.annotation.operate.Get;
|
11
|
import org.jfw.apt.web.annotation.operate.Get;
|
|
|
|
|
13
|
import org.jfw.apt.web.annotation.param.JdbcConn;
|
14
|
import org.jfw.apt.web.annotation.param.JdbcConn;
|
14
|
import org.jfw.apt.web.annotation.param.PathVar;
|
15
|
import org.jfw.apt.web.annotation.param.PathVar;
|
15
|
import org.jfw.apt.web.annotation.param.RequestBody;
|
16
|
import org.jfw.apt.web.annotation.param.RequestBody;
|
|
|
17
|
import org.jfw.util.PageQueryResult;
|
16
|
|
18
|
|
17
|
import com.ekexiu.portal.dao.ProfessorDao;
|
19
|
import com.ekexiu.portal.dao.ProfessorDao;
|
18
|
import com.ekexiu.portal.dao.UserDao;
|
20
|
import com.ekexiu.portal.dao.UserDao;
|
|
|
|
|
92
|
}
|
94
|
}
|
93
|
}
|
95
|
}
|
94
|
|
96
|
|
|
|
97
|
@Get
|
|
|
98
|
@Path("/pq")
|
|
|
99
|
public PageQueryResult<User> pageQuery(@JdbcConn Connection con,@DefaultValue("50") int pageSize,@DefaultValue("1") int pageNo)throws SQLException{
|
|
|
100
|
return this.userDao.pageQuery(con, pageSize, pageNo);
|
|
|
101
|
}
|
|
|
102
|
|
95
|
}
|
103
|
}
|