Commit 9b405d77 authored by 郭凡凡's avatar 郭凡凡

修改

parent 368d903a
...@@ -179,12 +179,12 @@ public class ApiBasicManagementServiceImpl extends ServiceImpl<ApiBasicManagemen ...@@ -179,12 +179,12 @@ public class ApiBasicManagementServiceImpl extends ServiceImpl<ApiBasicManagemen
@Override @Override
public ResponseVO<PageInfo<OcpApiBaseVo>> getBaseByGroupCode(ApiBaseDto apiBaseReq) { public ResponseVO<PageInfo<OcpApiBaseVo>> getBaseByGroupCode(ApiBaseDto apiBaseReq) {
if (apiBaseReq.getPageNum() == null || apiBaseReq.getPageSize() == null) { if (apiBaseReq.getCurrentPage() == null || apiBaseReq.getPageSize() == null) {
return ResponseVO.error("分页参数不能为空"); return ResponseVO.error("分页参数不能为空");
} }
apiGroupCode.add(apiBaseReq.getApiGroupCode()); apiGroupCode.add(apiBaseReq.getApiGroupCode());
setGroupIdValue(apiBaseReq.getApiGroupCompanyCode(), apiBaseReq.getApiGroupCode(), apiBaseReq.getApiPromotion()); setGroupIdValue(apiBaseReq.getApiGroupCompanyCode(), apiBaseReq.getApiGroupCode(), apiBaseReq.getApiPromotion());
PageHelper.startPage(apiBaseReq.getPageNum(), apiBaseReq.getPageSize()); PageHelper.startPage(apiBaseReq.getCurrentPage(), apiBaseReq.getPageSize());
apiBaseReq.setApiGroupCodeList(apiGroupCode); apiBaseReq.setApiGroupCodeList(apiGroupCode);
List<OcpApiBaseVo> ocpApiBaseVos = ocpApiGroupMapper.selectPageLists(apiBaseReq); List<OcpApiBaseVo> ocpApiBaseVos = ocpApiGroupMapper.selectPageLists(apiBaseReq);
apiGroupCode.clear(); apiGroupCode.clear();
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
and oab.api_user_name like CONCAT('%', #{apiUserName}::text,'%') and oab.api_user_name like CONCAT('%', #{apiUserName}::text,'%')
</if> </if>
<if test="apiPromotion !=null and apiPromotion!=''"> <if test="apiPromotion !=null ">
and oab.api_promotion = #{apiPromotion} and oab.api_promotion = #{apiPromotion}
</if> </if>
<if test="startCTime !=null and startCTime!= ''"> <if test="startCTime !=null and startCTime!= ''">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment