Commit 4c908c1f by 刘宇峰

暂时去掉

1 parent 7c20b118
...@@ -6,7 +6,6 @@ import cn.com.glsx.admin.modules.model.cloudcrane.response.GoodsSkuListItem; ...@@ -6,7 +6,6 @@ import cn.com.glsx.admin.modules.model.cloudcrane.response.GoodsSkuListItem;
import cn.com.glsx.admin.modules.model.cloudcrane.response.GoodsSkuListSearchItem; import cn.com.glsx.admin.modules.model.cloudcrane.response.GoodsSkuListSearchItem;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper; import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.w3c.dom.stylesheets.LinkStyle;
import java.util.List; import java.util.List;
......
...@@ -24,7 +24,7 @@ public class BaseBrandService { ...@@ -24,7 +24,7 @@ public class BaseBrandService {
@Autowired @Autowired
private CloudCraneService cloudCraneService; private CloudCraneService cloudCraneService;
@Cacheable(cacheNames = {CacheNameTimeConstant.CACHE_24HOURS}, value = "brandList") @Cacheable(value = "brandList")
public List<QueryBrandListResponse> queryBrandList() { public List<QueryBrandListResponse> queryBrandList() {
List<BaseBrand> brandList = baseBrandMapper.selectList(); List<BaseBrand> brandList = baseBrandMapper.selectList();
List<QueryBrandListResponse> list = brandList.parallelStream() List<QueryBrandListResponse> list = brandList.parallelStream()
......
...@@ -26,7 +26,7 @@ public class BaseCategoryService { ...@@ -26,7 +26,7 @@ public class BaseCategoryService {
@Autowired @Autowired
private CloudCraneService cloudCraneService; private CloudCraneService cloudCraneService;
@Cacheable(cacheNames = {CacheNameTimeConstant.CACHE_24HOURS}, value = "oneCategoryList") @Cacheable(value = "oneCategoryList")
public List<QueryOneCategoryListResponse> queryOneCategoryList() { public List<QueryOneCategoryListResponse> queryOneCategoryList() {
List<BaseCategory> oneCategoryList = baseCategoryMapper.selectByCategoryLevel(1); List<BaseCategory> oneCategoryList = baseCategoryMapper.selectByCategoryLevel(1);
List<QueryOneCategoryListResponse> list = oneCategoryList.parallelStream() List<QueryOneCategoryListResponse> list = oneCategoryList.parallelStream()
...@@ -38,7 +38,7 @@ public class BaseCategoryService { ...@@ -38,7 +38,7 @@ public class BaseCategoryService {
return cloudCraneService.queryOneCategoryList(); return cloudCraneService.queryOneCategoryList();
} }
@Cacheable(cacheNames = {CacheNameTimeConstant.CACHE_24HOURS}, value = "secondCategoryList", key = "#parentCategoryCode") @Cacheable(value = "secondCategoryList", key = "#parentCategoryCode")
public List<QuerySecondCategoryListResponse> querySecondCategoryList(String parentCategoryCode) { public List<QuerySecondCategoryListResponse> querySecondCategoryList(String parentCategoryCode) {
List<BaseCategory> twoCategoryList = baseCategoryMapper.selectByParentCategoryCode(parentCategoryCode); List<BaseCategory> twoCategoryList = baseCategoryMapper.selectByParentCategoryCode(parentCategoryCode);
List<QuerySecondCategoryListResponse> list = twoCategoryList.parallelStream() List<QuerySecondCategoryListResponse> list = twoCategoryList.parallelStream()
...@@ -50,7 +50,7 @@ public class BaseCategoryService { ...@@ -50,7 +50,7 @@ public class BaseCategoryService {
return cloudCraneService.querySecondCategoryList(parentCategoryCode); return cloudCraneService.querySecondCategoryList(parentCategoryCode);
} }
@Cacheable(cacheNames = {CacheNameTimeConstant.CACHE_24HOURS}, value = "threeCategoryList", key = "#parentCategoryCode") @Cacheable(value = "threeCategoryList", key = "#parentCategoryCode")
public List<QueryThreeCategoryListResponse> queryThreeCategoryList(String parentCategoryCode) { public List<QueryThreeCategoryListResponse> queryThreeCategoryList(String parentCategoryCode) {
List<BaseCategory> threeCategoryList = baseCategoryMapper.selectByParentCategoryCode(parentCategoryCode); List<BaseCategory> threeCategoryList = baseCategoryMapper.selectByParentCategoryCode(parentCategoryCode);
List<QueryThreeCategoryListResponse> list = threeCategoryList.parallelStream() List<QueryThreeCategoryListResponse> list = threeCategoryList.parallelStream()
......
...@@ -49,7 +49,7 @@ public class BaseDistrictService { ...@@ -49,7 +49,7 @@ public class BaseDistrictService {
} }
} }
@Cacheable(cacheNames = {CacheNameTimeConstant.CACHE_24HOURS}, value = "addressProvinces") @Cacheable(value = "addressProvinces")
public List<QueryAddressProvinceResponse> queryAddressProvince() { public List<QueryAddressProvinceResponse> queryAddressProvince() {
List<BaseDistrict> addressProvinceList = baseDistrictMapper.selectByAddressLevel(1001); List<BaseDistrict> addressProvinceList = baseDistrictMapper.selectByAddressLevel(1001);
...@@ -62,7 +62,7 @@ public class BaseDistrictService { ...@@ -62,7 +62,7 @@ public class BaseDistrictService {
return cloudCraneService.queryAddressProvince(); return cloudCraneService.queryAddressProvince();
} }
@Cacheable(cacheNames = {CacheNameTimeConstant.CACHE_24HOURS}, value = "addressCities", key = "#parentAddressCode") @Cacheable(value = "addressCities", key = "#parentAddressCode")
public List<QueryAddressCityResponse> queryAddressCity(String parentAddressCode) { public List<QueryAddressCityResponse> queryAddressCity(String parentAddressCode) {
List<BaseDistrict> addressCityList = baseDistrictMapper.selectByParentAddressCode(parentAddressCode); List<BaseDistrict> addressCityList = baseDistrictMapper.selectByParentAddressCode(parentAddressCode);
List<QueryAddressCityResponse> list = addressCityList.parallelStream() List<QueryAddressCityResponse> list = addressCityList.parallelStream()
...@@ -74,7 +74,7 @@ public class BaseDistrictService { ...@@ -74,7 +74,7 @@ public class BaseDistrictService {
return cloudCraneService.queryAddressCity(parentAddressCode); return cloudCraneService.queryAddressCity(parentAddressCode);
} }
@Cacheable(cacheNames = {CacheNameTimeConstant.CACHE_24HOURS}, value = "addressAreas", key = "#parentAddressCode") @Cacheable(value = "addressAreas", key = "#parentAddressCode")
public List<QueryAddressAreaResponse> queryAddressArea(String parentAddressCode) { public List<QueryAddressAreaResponse> queryAddressArea(String parentAddressCode) {
List<BaseDistrict> addressAreaList = baseDistrictMapper.selectByParentAddressCode(parentAddressCode); List<BaseDistrict> addressAreaList = baseDistrictMapper.selectByParentAddressCode(parentAddressCode);
List<QueryAddressAreaResponse> list = addressAreaList.parallelStream() List<QueryAddressAreaResponse> list = addressAreaList.parallelStream()
...@@ -86,7 +86,7 @@ public class BaseDistrictService { ...@@ -86,7 +86,7 @@ public class BaseDistrictService {
return cloudCraneService.queryAddressArea(parentAddressCode); return cloudCraneService.queryAddressArea(parentAddressCode);
} }
@Cacheable(cacheNames = {CacheNameTimeConstant.CACHE_24HOURS}, value = "addressStreets", key = "#parentAddressCode") @Cacheable(value = "addressStreets", key = "#parentAddressCode")
public List<QueryAddressStreetResponse> queryAddressStreet(String parentAddressCode) { public List<QueryAddressStreetResponse> queryAddressStreet(String parentAddressCode) {
List<BaseDistrict> addressStreetList = baseDistrictMapper.selectByParentAddressCode(parentAddressCode); List<BaseDistrict> addressStreetList = baseDistrictMapper.selectByParentAddressCode(parentAddressCode);
List<QueryAddressStreetResponse> list = addressStreetList.parallelStream() List<QueryAddressStreetResponse> list = addressStreetList.parallelStream()
......
...@@ -23,7 +23,7 @@ public class BaseExpressService { ...@@ -23,7 +23,7 @@ public class BaseExpressService {
@Autowired @Autowired
private CloudCraneService cloudCraneService; private CloudCraneService cloudCraneService;
@Cacheable(cacheNames = {CacheNameTimeConstant.CACHE_24HOURS}, value = "expressList") @Cacheable(value = "expressList")
public List<QueryExpressListResponse> queryExpressList() { public List<QueryExpressListResponse> queryExpressList() {
List<BaseExpress> expressList = baseExpressMapper.selectList(); List<BaseExpress> expressList = baseExpressMapper.selectList();
List<QueryExpressListResponse> list = expressList.parallelStream() List<QueryExpressListResponse> list = expressList.parallelStream()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!