diff --git a/src/main/java/com/pms/ocp/service/impl/ApiBasicManagementServiceImpl.java b/src/main/java/com/pms/ocp/service/impl/ApiBasicManagementServiceImpl.java index 3e379f637af2c48a565c2a7b733d9e6d8681b47e..43bb56ad9fe65a6dd5981826d855501af3434b0d 100644 --- a/src/main/java/com/pms/ocp/service/impl/ApiBasicManagementServiceImpl.java +++ b/src/main/java/com/pms/ocp/service/impl/ApiBasicManagementServiceImpl.java @@ -179,12 +179,12 @@ public class ApiBasicManagementServiceImpl extends ServiceImpl> getBaseByGroupCode(ApiBaseDto apiBaseReq) { - if (apiBaseReq.getPageNum() == null || apiBaseReq.getPageSize() == null) { + if (apiBaseReq.getCurrentPage() == null || apiBaseReq.getPageSize() == null) { return ResponseVO.error("分页参数不能为空"); } apiGroupCode.add(apiBaseReq.getApiGroupCode()); setGroupIdValue(apiBaseReq.getApiGroupCompanyCode(), apiBaseReq.getApiGroupCode(), apiBaseReq.getApiPromotion()); - PageHelper.startPage(apiBaseReq.getPageNum(), apiBaseReq.getPageSize()); + PageHelper.startPage(apiBaseReq.getCurrentPage(), apiBaseReq.getPageSize()); apiBaseReq.setApiGroupCodeList(apiGroupCode); List ocpApiBaseVos = ocpApiGroupMapper.selectPageLists(apiBaseReq); apiGroupCode.clear(); diff --git a/src/main/resources/mapper/OcpApiGroupMapper.xml b/src/main/resources/mapper/OcpApiGroupMapper.xml index eef60e421f83e52bd3272ca9b0ea1415ff918014..8e13471450460971c93259cec77bb2b96bf89efc 100644 --- a/src/main/resources/mapper/OcpApiGroupMapper.xml +++ b/src/main/resources/mapper/OcpApiGroupMapper.xml @@ -97,7 +97,7 @@ and oab.api_user_name like CONCAT('%', #{apiUserName}::text,'%') - + and oab.api_promotion = #{apiPromotion}