feat:权限使用id正序排列
This commit is contained in:
parent
7bb00db892
commit
c62cdff45d
@ -6,6 +6,7 @@ import com.flyfish.framework.domain.tree.TreeQo;
|
||||
import com.flyfish.framework.domain.po.Permission;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.data.domain.Sort;
|
||||
|
||||
/**
|
||||
* 权限查询实体
|
||||
@ -20,6 +21,11 @@ public class PermissionQo extends TreeQo<Permission> {
|
||||
|
||||
private String type;
|
||||
|
||||
@Override
|
||||
public Sort sorts() {
|
||||
return Sort.by(Sort.Order.asc("_id"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public CriteriaBuilder<Permission> criteriaBuilder() {
|
||||
return super.criteriaBuilder().with("admin", "type");
|
||||
|
Loading…
Reference in New Issue
Block a user