huwhois 4 vuotta sitten
vanhempi
commit
7b6a5f5ffd

+ 1 - 1
src/main/java/io/renren/modules/admin/service/impl/PaperServiceImpl.java

35
    public PageUtils myQueryPage(Map<String, Object> params) {
35
    public PageUtils myQueryPage(Map<String, Object> params) {
36
        Long meetingId = Long.valueOf((String) params.get("meetingId"));
36
        Long meetingId = Long.valueOf((String) params.get("meetingId"));
37
        String key = params.containsKey("page") ? (String) params.get("key") : "";
37
        String key = params.containsKey("page") ? (String) params.get("key") : "";
38
        int page = params.containsKey("page") ? Integer.valueOf(params.get("page").toString()) : 0;
38
        int page = params.containsKey("page") ? Integer.valueOf(params.get("page").toString()) -1: 0;
39
        int limit =  params.containsKey("limit") ? Integer.valueOf(params.get("limit").toString()) : 10;
39
        int limit =  params.containsKey("limit") ? Integer.valueOf(params.get("limit").toString()) : 10;
40
        if (page < 0) {
40
        if (page < 0) {
41
            page = 0;
41
            page = 0;