|
@ -119,15 +119,23 @@ public class DataDictService {
|
119
|
119
|
List<DataDictCode> keys = new ArrayList<DataDictCode>();
|
120
|
120
|
for (DataDictCode hotKey : hotKeys) {
|
121
|
121
|
if(hotKey.getCaption().indexOf(key) != -1){
|
122
|
|
DataDictCode hotKey2 = new DataDictCode();
|
123
|
|
hotKey2.setCount(hotKey.getCount());
|
124
|
|
hotKey2.setCaption(hotKey.getCaption());
|
125
|
|
keys.add(hotKey2);
|
|
122
|
keys.add(hotKey);
|
126
|
123
|
}
|
127
|
124
|
}
|
128
|
125
|
return keys;
|
129
|
126
|
}
|
130
|
127
|
|
|
128
|
@Get
|
|
129
|
@Path("/qlHotKey")
|
|
130
|
public List<DataDictCode> hotKey(@DefaultValue("10") int rows){
|
|
131
|
List<DataDictCode> hotKeys = this.getHotKey();
|
|
132
|
List<DataDictCode> keys = new ArrayList<DataDictCode>();
|
|
133
|
for (int i = 0; i < rows; i++) {
|
|
134
|
keys.add(hotKeys.get(i));
|
|
135
|
}
|
|
136
|
return keys;
|
|
137
|
}
|
|
138
|
|
131
|
139
|
private List<DataDictCode> queryDictCode(boolean isSubject){
|
132
|
140
|
List<DataDictCode> ret = null;
|
133
|
141
|
if(isSubject){
|