feat:改进部门模块
This commit is contained in:
parent
f0be0d605f
commit
3fd039de21
@ -4,6 +4,9 @@ import com.flyfish.framework.builder.CriteriaBuilder;
|
||||
import com.flyfish.framework.domain.base.NameLikeQo;
|
||||
import com.flyfish.framework.domain.po.User;
|
||||
import lombok.*;
|
||||
import org.springframework.data.mongodb.core.query.Criteria;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@ -22,8 +25,11 @@ public class UserQo extends NameLikeQo<User> {
|
||||
|
||||
private String status;
|
||||
|
||||
private List<String> departments;
|
||||
|
||||
@Override
|
||||
public CriteriaBuilder<User> criteriaBuilder() {
|
||||
return super.criteriaBuilder().with("type", "username", "password", "phone", "status");
|
||||
return super.criteriaBuilder().with("type", "username", "password", "phone", "status")
|
||||
.with("departments", "departments", CriteriaBuilder.Builders.IN);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user