@ -237,17 +237,17 @@ public class CereBusinessBuyerUserServiceImpl implements CereBusinessBuyerUserSe
}
@Override
public Page < CereBuyerUser > searchUser ( BusinessUserSearchParam param ) {
public Page < CereBuyerUser > searchUser ( String project , BusinessUserSearchParam param ) {
PageHelper . startPage ( param . getPage ( ) , param . getPageSize ( ) ) ;
LambdaQueryWrapper < CereBuyerUser > wrapper = new LambdaQueryWrapper < > ( ) ;
/ * LambdaQueryWrapper < CereBuyerUser > wrapper = new LambdaQueryWrapper < > ( ) ;
wrapper . eq ( CereBuyerUser : : getBuyerUserId , param . getSearchKey ( ) )
. or ( )
. eq ( CereBuyerUser : : getWechatOpenId , param . getSearchKey ( ) )
. or ( )
. like ( CereBuyerUser : : getName , param . getSearchKey ( ) )
. or ( )
. eq ( CereBuyerUser : : getPhone , param . getSearchKey ( ) ) ;
List < CereBuyerUser > userList = businessBuyerUserDAO . selectList ( wrapper ) ;
. eq ( CereBuyerUser : : getPhone , param . getSearchKey ( ) ) ; * /
List < CereBuyerUser > userList = businessBuyerUserDAO . getBuyerUserBySearch ( project , param . getSearchKey ( ) ) ;
PageInfo < CereBuyerUser > pageInfo = new PageInfo < > ( userList ) ;
Page page = new Page ( pageInfo . getList ( ) , pageInfo . getTotal ( ) ) ;
return page ;