浏览代码

缓存查询

zyg 1 年之前
父节点
当前提交
d83d376cc8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hz-business/src/main/java/com/hz/business/service/impl/BatteryServiceImpl.java

+ 1 - 1
hz-business/src/main/java/com/hz/business/service/impl/BatteryServiceImpl.java

@@ -1034,7 +1034,7 @@ public class BatteryServiceImpl extends ServiceImpl<BatteryMapper, Battery> impl
      * @return com.hz.business.vo.BatteryStatisticsVo
      */
     @Override
-    //@Cacheable(cacheNames = "query::batteryStatisticsCache", key = "#batteryOverviewParam")
+    @Cacheable(cacheNames = "query::batteryStatisticsCache", key = "#batteryOverviewParam")
     public BatteryStatisticsVo getBatteryStatistics(BatteryOverviewParam batteryOverviewParam) {
         BatteryStatisticsVo bsVo = new BatteryStatisticsVo();
         //改为合众车型查询