@ -240,15 +240,16 @@ public class CereBuyerUserServiceImpl implements CereBuyerUserService {
@Override
@Override
public Page < CereBuyerUser > searchUser ( UserSearchParam param ) {
public Page < CereBuyerUser > searchUser ( UserSearchParam param ) {
PageHelper . startPage ( param . getPage ( ) , param . getPageSize ( ) ) ;
PageHelper . startPage ( param . getPage ( ) , param . getPageSize ( ) ) ;
LambdaQueryWrapper < CereBuyerUser > wrapper = new LambdaQueryWrapper < > ( ) ;
wrapper . eq ( CereBuyerUser : : getBuyerUserId , param . getSearchKey ( ) )
/ * LambdaQueryWrapper < CereBuyerUser > wrapper = new LambdaQueryWrapper < > ( ) ;
wrapper . eq ( CereBuyerUser : : getProject , "0" )
. eq ( CereBuyerUser : : getBuyerUserId , param . getSearchKey ( ) )
. or ( )
. or ( )
. eq ( CereBuyerUser : : getWechatOpenId , param . getSearchKey ( ) )
. eq ( CereBuyerUser : : getWechatOpenId , param . getSearchKey ( ) )
. or ( )
. or ( )
. like ( CereBuyerUser : : getName , param . getSearchKey ( ) )
. like ( CereBuyerUser : : getName , param . getSearchKey ( ) )
. or ( )
. or ( )
. eq ( CereBuyerUser : : getPhone , param . getSearchKey ( ) ) ;
List < CereBuyerUser > userList = cereBuyerUserDAO . selectList ( wrapper ) ;
. eq ( CereBuyerUser : : getPhone , param . getSearchKey ( ) ) ; * /
List < CereBuyerUser > userList = cereBuyerUserDAO . getBuyerUserBySearch ( param . getSearchKey ( ) ) ;
PageInfo < CereBuyerUser > pageInfo = new PageInfo < > ( userList ) ;
PageInfo < CereBuyerUser > pageInfo = new PageInfo < > ( userList ) ;
Page page = new Page ( pageInfo . getList ( ) , pageInfo . getTotal ( ) ) ;
Page page = new Page ( pageInfo . getList ( ) , pageInfo . getTotal ( ) ) ;
return page ;
return page ;