Constants.java
1.67 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
package com.xkl.config;
import com.xkl.domain.XklAmpReportMetaItemsEntity;
import com.xkl.domain.XklAmpReportMetaScoreStandardEntity;
import java.util.HashMap;
import java.util.Map;
/**
* 常量
*/
public interface Constants {
/**
* 存储当前登录用户id的字段名
*/
String CURRENT_USER_ID = "CURRENT_USER_ID";
/**
* token有效期(小时)
*/
int TOKEN_EXPIRES_HOUR = 72;
/**
* 存放Authorization的header字段
*/
String AUTHORIZATION = "authorization";
/**
* 单项打分标准
*/
Map<Integer,XklAmpReportMetaScoreStandardEntity> scoreMap=new HashMap<>();
/**
* 综合加权标准
*/
Map<Integer,Integer> weightedScoreMap=new HashMap<Integer,Integer>(){
{
put(2,10);
put(3,6);
put(4,4);
put(5,7);
put(6,3);
put(7,10);
put(8,10);
put(9,6);
put(10,4);
put(11,2);
put(12,4);
put(13,5);
put(14,5);
put(15,6);
put(16,4);
put(17,6);
put(18,2);
put(19,6);
}
};
Map<Integer,XklAmpReportMetaItemsEntity> itemMetaMap = new HashMap<Integer, XklAmpReportMetaItemsEntity>();
public static final int MALE = 0;
public static final int FEMALE = 1;
public static final int NORMAL = 0;
public static final int LOWER = 1;
public static final int HIGHER = 2;
public static final int STATUS_BAD = 0;
public static final boolean STATUS_BAD2 = false;
public static final int STATUS_OK = 1;
public static final boolean STATUS_OK2= true;
}