jiangping
2023-12-22 f2c26596b44cccea3276b25c665e4fd5238d6c88
server/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKTools.java
@@ -51,9 +51,10 @@
      System.out.println(content.toString());
   }
   public static InterfaceLogService interfaceLogService = null;
   private static void saveInterfaceLog(String s, String result,Map<String, String> path) {
      InterfaceLogService bean = SpringContextUtil.getBean(InterfaceLogService.class);
      if(bean !=null){
//      InterfaceLogService bean = SpringContextUtil.getBean(InterfaceLogService.class);
      if(interfaceLogService !=null){
         InterfaceLog hkMonitoryLogDO=new InterfaceLog();
         hkMonitoryLogDO.setType(0);
         hkMonitoryLogDO.setCreateDate(new Date());
@@ -62,7 +63,7 @@
         hkMonitoryLogDO.setRepose(result);
         hkMonitoryLogDO.setName(path.get(HKConstants.https));
         hkMonitoryLogDO.setUrl(HKConstants.https + ArtemisConfig.host+path.get(HKConstants.https));
         bean.create(hkMonitoryLogDO);
         interfaceLogService.create(hkMonitoryLogDO);
      }
   }