add
yj
2024-12-05 b9900893177c78fc559223521fe839aa21000017
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.dobbinsoft.fw.support.annotation;
 
import java.lang.annotation.*;
 
/**
 * 查表注解,使用此注解,标记接口是一个查询接口。
 * 框架可为其封装一个条件构造器 QueryWrapper
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Query {
 
    /**
     * 结果集是否升序
     * @return
     */
    public boolean isAsc() default true;
 
    /**
     * 默认主键升序
     * @return
     */
    public String[] sort() default {"id"};
 
    /**
     * 选择哪些字段
     * @return
     */
    public String[] select() default {};
 
}