|
@ -5,6 +5,7 @@ import java.sql.SQLException;
|
5
|
5
|
import java.util.Random;
|
6
|
6
|
|
7
|
7
|
import org.jfw.apt.annotation.Autowrie;
|
|
8
|
import org.jfw.apt.annotation.DefaultValue;
|
8
|
9
|
import org.jfw.apt.annotation.Nullable;
|
9
|
10
|
import org.jfw.apt.web.annotation.Path;
|
10
|
11
|
import org.jfw.apt.web.annotation.operate.Get;
|
|
@ -13,6 +14,7 @@ import org.jfw.apt.web.annotation.operate.Put;
|
13
|
14
|
import org.jfw.apt.web.annotation.param.JdbcConn;
|
14
|
15
|
import org.jfw.apt.web.annotation.param.PathVar;
|
15
|
16
|
import org.jfw.apt.web.annotation.param.RequestBody;
|
|
17
|
import org.jfw.util.PageQueryResult;
|
16
|
18
|
|
17
|
19
|
import com.ekexiu.portal.dao.ProfessorDao;
|
18
|
20
|
import com.ekexiu.portal.dao.UserDao;
|
|
@ -92,4 +94,10 @@ public class InitUserService {
|
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
|
}
|