gaodm 5 years ago
parent
commit
aa8b4ab7c7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      data-service/src/main/java/com/diagbot/facade/PushSetFacade.java

+ 2 - 0
data-service/src/main/java/com/diagbot/facade/PushSetFacade.java

@@ -6,6 +6,7 @@ import com.diagbot.dto.RespDTO;
 import com.diagbot.util.RespDTOUtil;
 import com.diagbot.vo.PushSetVO;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.cache.annotation.Cacheable;
 import org.springframework.stereotype.Component;
 
 /**
@@ -18,6 +19,7 @@ public class PushSetFacade {
     @Autowired
     private AiptServiceClient aiptServiceClient;
 
+//    @Cacheable(value = "data-service", key = "'GetPushSet:mode_' + #pushSetVO.mode", unless = "#result == null")
     public PushSetDTO getPushSet(PushSetVO pushSetVO) {
         RespDTO<PushSetDTO> respDTO = aiptServiceClient.getPushSet(pushSetVO);
         RespDTOUtil.respNGDeal(respDTO, "获取推理配置信息失败");