linzhijie
2021-03-11 84fea994d2db7dc313ad1774f34eb12a45f8d6e7
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package com.ots.framework.aspectj.lang.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
 
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Excel {
    
    String name() default "";
    
    String dateFormat() default "";
    
    String readConverterExp() default "";
    
    ColumnType cellType() default ColumnType.STRING;
    
    double height() default 14;
    
    double width() default 16;
    
    String suffix() default "";
    
    String defaultValue() default "";
    
    String prompt() default "";
    
    String[] combo() default {};
    
    boolean isExport() default true;
    
    String targetAttr() default "";
    
    Type type() default Type.ALL;
    enum Type {
        ALL(0), EXPORT(1), IMPORT(2);
        private final int value;
        Type(int value) {
            this.value = value;
        }
        public int value() {
            return this.value;
        }
    }
    enum ColumnType {
        NUMERIC(0), STRING(1);
        private final int value;
        ColumnType(int value) {
            this.value = value;
        }
        public int value() {
            return this.value;
        }
    }
}