feat:权限使用id正序排列

This commit is contained in:
wangyu 2022-04-10 15:36:09 +08:00
parent 7bb00db892
commit c62cdff45d

View File

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