@ -83,7 +83,8 @@ public class UserAccountController {
QueryWrapper < UserAccount > qw = new QueryWrapper < > ( ) ;
qw . eq ( param . getStatus ( ) ! = null , "t1.status" , param . getStatus ( ) ) ;
qw . like ( param . getName ( ) ! = null , "t2.name" , param . getName ( ) ) ;
qw . eq ( param . getDepartmentId ( ) ! = null , "t3.departmentId" , param . getDepartmentId ( ) ) ;
// qw.eq(param.getDepartmentId() != null, "t3.departmentId", param.getDepartmentId());
qw . inSql ( param . getDepartmentId ( ) ! = null , "t2.openid" , "SELECT openid from qywxDepartmentUserLink WHERE qywxDepartmentUserLink.departmentId = " + param . getDepartmentId ( ) ) ;
qw . orderByDesc ( "updateAt" , "creatAt" ) ;
return Result . success ( userAccountService . listAll ( MybatisPlusUtil . SetNumPage ( param . getPageNum ( ) , param . getPageSize ( ) ) , qw ) ) ;
}