Commit b5e606fe4506bd6401410f352380fb2f08ec40b6

Authored by rui.zhang
1 parent 2a6a8f93ea

platform permission

fix bug

Showing 1 changed file with 3 additions and 2 deletions

platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/CommunityConfigService.java View file @ b5e606f
... ... @@ -56,9 +56,10 @@
56 56  
57 57 MongoQuery mongoQuery = mongoCondition.toMongoQuery();
58 58 BaseQuery baseQuery = new BaseQuery();
59   - baseQuery.setPage(page);
60   - baseQuery.setLimit(limit);
  59 +
61 60 if(null != page && null != limit) {
  61 + baseQuery.setPage(page);
  62 + baseQuery.setLimit(limit);
62 63 baseQuery.mysqlBuild((int) communityConfigDao.queryCount(mongoQuery));
63 64 mongoQuery.start(baseQuery.getOffset()).end(baseQuery.getLimit());
64 65 }