|
@@ -32,8 +32,7 @@ public class CacheController {
|
|
|
@PostMapping("/clear")
|
|
|
@SysLogger("clear")
|
|
|
public RespDTO<Boolean> clear() {
|
|
|
- cacheFacade.clearAll();
|
|
|
- return RespDTO.onSuc(true);
|
|
|
+ return RespDTO.onSuc(cacheFacade.clearAll());
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "重新加载药物缓存[by:zhoutg]",
|
|
@@ -41,8 +40,7 @@ public class CacheController {
|
|
|
@PostMapping("/clearDrug")
|
|
|
@SysLogger("clearDrug")
|
|
|
public RespDTO<Boolean> clearDrug() {
|
|
|
- cacheFacade.clearDrugloadDrug();
|
|
|
- return RespDTO.onSuc(true);
|
|
|
+ return RespDTO.onSuc(cacheFacade.clearDrugloadDrug());
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "清除规则缓存[by:wangfeng]",
|
|
@@ -50,8 +48,8 @@ public class CacheController {
|
|
|
@PostMapping("/clearRuleAll")
|
|
|
@SysLogger("clearRuleAll")
|
|
|
public RespDTO<Boolean> clearRuleInfoAlls() {
|
|
|
- cacheFacade.clearRuleInfoAll();
|
|
|
- return RespDTO.onSuc(true);
|
|
|
+
|
|
|
+ return RespDTO.onSuc(cacheFacade.clearRuleInfoAll());
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "重新加载标准词及规则、药物缓存[by:wangfeng]",
|
|
@@ -59,7 +57,6 @@ public class CacheController {
|
|
|
@PostMapping("/clearStandRuleDrug")
|
|
|
@SysLogger("clearStandRuleDrug")
|
|
|
public RespDTO<Boolean> clearStandRuleDrugAll() {
|
|
|
- cacheFacade.clearStandRuleDrugAll();
|
|
|
- return RespDTO.onSuc(true);
|
|
|
+ return RespDTO.onSuc(cacheFacade.clearStandRuleDrugAll());
|
|
|
}
|
|
|
}
|