feat:改进部门模块

This commit is contained in:
wangyu 2021-11-28 23:40:41 +08:00
parent f0be0d605f
commit 3fd039de21

View File

@ -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);
}
}