1
zj
2024-06-13 a4662cc65a02f258062bf6cc392ceb1017db9292
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
package com.yami.trading.common.query;
 
import java.lang.annotation.*;
 
/**
 * 查询字段注解
 */
@Inherited
@Documented
@Target({ElementType.FIELD,ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface Query {
    /**
     * java属性名
     * @return
     */
    String javaField() default "";
 
    /**
     * mapper中的数据库字段名
     * @return
     */
    String tableColumn() default "";
 
    /**
     * 查询类型
     * @return
     */
    QueryType type() default QueryType.LIKE;
 
}