Commit 26c0a3e9 by 徐高华

导购任务

parent 929fc730
...@@ -1451,12 +1451,12 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -1451,12 +1451,12 @@ public class StaffApiServiceImpl implements StaffApiService {
@Override @Override
public Page<StaffDTO> listByParams(String enterpriseId, String params , String wxEnterpriseId , com.gic.api.base.commons.BasePageInfo pageInfo) { public Page<StaffDTO> listByParams(String enterpriseId, String params , String wxEnterpriseId , com.gic.api.base.commons.BasePageInfo pageInfo) {
PageHelper.startPage(pageInfo.getPageNum(), pageInfo.getPageSize());
List<TabHaobanWxEnterprise> list = this.wxEnterpriseRelatedService.listByEnterpriseId(enterpriseId) ; List<TabHaobanWxEnterprise> list = this.wxEnterpriseRelatedService.listByEnterpriseId(enterpriseId) ;
List<String> wxEnterpriseIdList = list.stream().map(o->o.getWxEnterpriseId()).collect(Collectors.toList()); List<String> wxEnterpriseIdList = list.stream().map(o->o.getWxEnterpriseId()).collect(Collectors.toList());
if(StringUtils.isNotBlank(params)) { if(StringUtils.isNotBlank(params)) {
params = "%"+params+"%" ; params = "%"+params+"%" ;
} }
PageHelper.startPage(pageInfo.getPageNum(), pageInfo.getPageSize());
List<StaffDTO> pageList = this.staffMapper.listByParams(wxEnterpriseIdList , params) ; List<StaffDTO> pageList = this.staffMapper.listByParams(wxEnterpriseIdList , params) ;
return PageUtil.changePageHelperToCurrentPage(new PageInfo<>(pageList), StaffDTO.class); return PageUtil.changePageHelperToCurrentPage(new PageInfo<>(pageList), StaffDTO.class);
} }
......
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