吉安感知网项目-后端
xiebin
2026-01-06 d207a86cdf1ab52ef8cb7cd83bad8fceab8038cf
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
package org.sxkj.common.query;
 
import com.baomidou.mybatisplus.core.enums.SqlKeyword;
 
import java.lang.annotation.*;
 
/**
 * 用于标记字段参与 SQL 条件生成
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface QueryCondition {
    /**
     * 查询条件类型(默认 =)
     */
    SqlKeyword type() default SqlKeyword.EQ;
 
    /**
     * 数据库字段名(默认使用实体类字段名)
     */
    String column() default "";
 
    /**
     * 是否忽略
     * @return
     */
    boolean ignore() default false;
}