소스 검색

重新加载

wangfeng 4 년 전
부모
커밋
20b5421866
1개의 변경된 파일20개의 추가작업 그리고 0개의 파일을 삭제
  1. 20 0
      src/main/java/com/diagbot/web/CacheController.java

+ 20 - 0
src/main/java/com/diagbot/web/CacheController.java

@@ -64,4 +64,24 @@ public class CacheController {
         cacheFacade.clearStandConvert();
         return RespDTO.onSuc(true);
     }
+
+    @ApiOperation(value = "清除规则缓存[by:wangfeng]",
+            notes = "")
+    @PostMapping("/clearRuleInfoAll")
+    @SysLogger("clearRuleInfoAll")
+    public RespDTO<Boolean> clearRuleInfoAlls() {
+        cacheFacade.loadAllRuleCache();
+        return RespDTO.onSuc(true);
+    }
+
+    @ApiOperation(value = "重新加载标准词及规则、药物缓存[by:wangfeng]",
+            notes = "")
+    @PostMapping("/clearStandRuleDrug")
+    @SysLogger("clearStandRuleDrug")
+    public RespDTO<Boolean> clearStandRuleDrugAll() {
+        cacheFacade.clearStandConvert();
+        cacheFacade.loadAllRuleCache();
+        cacheFacade.loadDrugTypeCache();
+        return RespDTO.onSuc(true);
+    }
 }