|
@@ -15,12 +15,10 @@ import java.util.Map;
|
|
|
*/
|
|
|
public class DiagMethodInterceptor implements MethodInterceptor {
|
|
|
|
|
|
- @Autowired
|
|
|
- private RedisUtil redisUtil;
|
|
|
-
|
|
|
@Override
|
|
|
public Object intercept(Object obj, Method method, Object[] args, MethodProxy proxy) throws Throwable {
|
|
|
if (method.getName().equals("setName")) {
|
|
|
+ RedisUtil redisUtil = SpringContextUtil.getBean("redisUtil");
|
|
|
Map<String, String> diagRedisMap = (Map<String, String>) redisUtil.get(KernelConstants.CONCEPT_DIAG_HOSPITAL_REFLECT);
|
|
|
String hospitalDiagName = args[0].toString();
|
|
|
args[0] = diagRedisMap.get(hospitalDiagName) == null ? "" : diagRedisMap.get(hospitalDiagName);
|