|
@@ -131,10 +131,11 @@ public class NeoFacade {
|
|
|
res.get(med_type).add(med_name);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- // 加载药品缓存
|
|
|
- for (String key : res.keySet()) {
|
|
|
- redisUtil.updateValue(RedisEnum.drugType.getName() + key, res.get(key));
|
|
|
+ Map redisMap = res.entrySet().stream().collect(
|
|
|
+ Collectors.toMap(k -> RedisEnum.drugType.getName() + k.getKey(),
|
|
|
+ v -> v.getValue(), (v1, v2) -> (v2)));
|
|
|
+ if (redisMap != null && redisMap.size() > 0) {
|
|
|
+ redisTemplate.opsForValue().multiSet(redisMap);
|
|
|
}
|
|
|
return res;
|
|
|
}
|
|
@@ -931,6 +932,9 @@ public class NeoFacade {
|
|
|
Map<String, StandConvertCrfDTO> crfMap = crfDTO.get(type);
|
|
|
for (String s : convertList) {
|
|
|
String lastS = s;
|
|
|
+ if (StringUtil.isBlank(s)) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
if (crfMap != null) {
|
|
|
StandConvertCrfDTO standConvertCrfDTO = crfMap.get(s);
|
|
|
if (standConvertCrfDTO != null) {
|