Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-shopmall-parent
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4c908c1f
authored
Apr 11, 2023
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
暂时去掉
1 parent
7c20b118
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
10 deletions
platform-shopmall/src/main/java/cn/com/glsx/admin/modules/mapper/GoodsMapper.java
platform-shopmall/src/main/java/cn/com/glsx/admin/modules/service/BaseBrandService.java
platform-shopmall/src/main/java/cn/com/glsx/admin/modules/service/BaseCategoryService.java
platform-shopmall/src/main/java/cn/com/glsx/admin/modules/service/BaseDistrictService.java
platform-shopmall/src/main/java/cn/com/glsx/admin/modules/service/BaseExpressService.java
platform-shopmall/src/main/java/cn/com/glsx/admin/modules/mapper/GoodsMapper.java
View file @
4c908c1
...
...
@@ -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
com.glsx.plat.mybatis.mapper.CommonBaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.w3c.dom.stylesheets.LinkStyle
;
import
java.util.List
;
...
...
platform-shopmall/src/main/java/cn/com/glsx/admin/modules/service/BaseBrandService.java
View file @
4c908c1
...
...
@@ -24,7 +24,7 @@ public class BaseBrandService {
@Autowired
private
CloudCraneService
cloudCraneService
;
@Cacheable
(
cacheNames
=
{
CacheNameTimeConstant
.
CACHE_24HOURS
},
value
=
"brandList"
)
@Cacheable
(
value
=
"brandList"
)
public
List
<
QueryBrandListResponse
>
queryBrandList
()
{
List
<
BaseBrand
>
brandList
=
baseBrandMapper
.
selectList
();
List
<
QueryBrandListResponse
>
list
=
brandList
.
parallelStream
()
...
...
platform-shopmall/src/main/java/cn/com/glsx/admin/modules/service/BaseCategoryService.java
View file @
4c908c1
...
...
@@ -26,7 +26,7 @@ public class BaseCategoryService {
@Autowired
private
CloudCraneService
cloudCraneService
;
@Cacheable
(
cacheNames
=
{
CacheNameTimeConstant
.
CACHE_24HOURS
},
value
=
"oneCategoryList"
)
@Cacheable
(
value
=
"oneCategoryList"
)
public
List
<
QueryOneCategoryListResponse
>
queryOneCategoryList
()
{
List
<
BaseCategory
>
oneCategoryList
=
baseCategoryMapper
.
selectByCategoryLevel
(
1
);
List
<
QueryOneCategoryListResponse
>
list
=
oneCategoryList
.
parallelStream
()
...
...
@@ -38,7 +38,7 @@ public class BaseCategoryService {
return
cloudCraneService
.
queryOneCategoryList
();
}
@Cacheable
(
cacheNames
=
{
CacheNameTimeConstant
.
CACHE_24HOURS
},
value
=
"secondCategoryList"
,
key
=
"#parentCategoryCode"
)
@Cacheable
(
value
=
"secondCategoryList"
,
key
=
"#parentCategoryCode"
)
public
List
<
QuerySecondCategoryListResponse
>
querySecondCategoryList
(
String
parentCategoryCode
)
{
List
<
BaseCategory
>
twoCategoryList
=
baseCategoryMapper
.
selectByParentCategoryCode
(
parentCategoryCode
);
List
<
QuerySecondCategoryListResponse
>
list
=
twoCategoryList
.
parallelStream
()
...
...
@@ -50,7 +50,7 @@ public class BaseCategoryService {
return
cloudCraneService
.
querySecondCategoryList
(
parentCategoryCode
);
}
@Cacheable
(
cacheNames
=
{
CacheNameTimeConstant
.
CACHE_24HOURS
},
value
=
"threeCategoryList"
,
key
=
"#parentCategoryCode"
)
@Cacheable
(
value
=
"threeCategoryList"
,
key
=
"#parentCategoryCode"
)
public
List
<
QueryThreeCategoryListResponse
>
queryThreeCategoryList
(
String
parentCategoryCode
)
{
List
<
BaseCategory
>
threeCategoryList
=
baseCategoryMapper
.
selectByParentCategoryCode
(
parentCategoryCode
);
List
<
QueryThreeCategoryListResponse
>
list
=
threeCategoryList
.
parallelStream
()
...
...
platform-shopmall/src/main/java/cn/com/glsx/admin/modules/service/BaseDistrictService.java
View file @
4c908c1
...
...
@@ -49,7 +49,7 @@ public class BaseDistrictService {
}
}
@Cacheable
(
cacheNames
=
{
CacheNameTimeConstant
.
CACHE_24HOURS
},
value
=
"addressProvinces"
)
@Cacheable
(
value
=
"addressProvinces"
)
public
List
<
QueryAddressProvinceResponse
>
queryAddressProvince
()
{
List
<
BaseDistrict
>
addressProvinceList
=
baseDistrictMapper
.
selectByAddressLevel
(
1001
);
...
...
@@ -62,7 +62,7 @@ public class BaseDistrictService {
return
cloudCraneService
.
queryAddressProvince
();
}
@Cacheable
(
cacheNames
=
{
CacheNameTimeConstant
.
CACHE_24HOURS
},
value
=
"addressCities"
,
key
=
"#parentAddressCode"
)
@Cacheable
(
value
=
"addressCities"
,
key
=
"#parentAddressCode"
)
public
List
<
QueryAddressCityResponse
>
queryAddressCity
(
String
parentAddressCode
)
{
List
<
BaseDistrict
>
addressCityList
=
baseDistrictMapper
.
selectByParentAddressCode
(
parentAddressCode
);
List
<
QueryAddressCityResponse
>
list
=
addressCityList
.
parallelStream
()
...
...
@@ -74,7 +74,7 @@ public class BaseDistrictService {
return
cloudCraneService
.
queryAddressCity
(
parentAddressCode
);
}
@Cacheable
(
cacheNames
=
{
CacheNameTimeConstant
.
CACHE_24HOURS
},
value
=
"addressAreas"
,
key
=
"#parentAddressCode"
)
@Cacheable
(
value
=
"addressAreas"
,
key
=
"#parentAddressCode"
)
public
List
<
QueryAddressAreaResponse
>
queryAddressArea
(
String
parentAddressCode
)
{
List
<
BaseDistrict
>
addressAreaList
=
baseDistrictMapper
.
selectByParentAddressCode
(
parentAddressCode
);
List
<
QueryAddressAreaResponse
>
list
=
addressAreaList
.
parallelStream
()
...
...
@@ -86,7 +86,7 @@ public class BaseDistrictService {
return
cloudCraneService
.
queryAddressArea
(
parentAddressCode
);
}
@Cacheable
(
cacheNames
=
{
CacheNameTimeConstant
.
CACHE_24HOURS
},
value
=
"addressStreets"
,
key
=
"#parentAddressCode"
)
@Cacheable
(
value
=
"addressStreets"
,
key
=
"#parentAddressCode"
)
public
List
<
QueryAddressStreetResponse
>
queryAddressStreet
(
String
parentAddressCode
)
{
List
<
BaseDistrict
>
addressStreetList
=
baseDistrictMapper
.
selectByParentAddressCode
(
parentAddressCode
);
List
<
QueryAddressStreetResponse
>
list
=
addressStreetList
.
parallelStream
()
...
...
platform-shopmall/src/main/java/cn/com/glsx/admin/modules/service/BaseExpressService.java
View file @
4c908c1
...
...
@@ -23,7 +23,7 @@ public class BaseExpressService {
@Autowired
private
CloudCraneService
cloudCraneService
;
@Cacheable
(
cacheNames
=
{
CacheNameTimeConstant
.
CACHE_24HOURS
},
value
=
"expressList"
)
@Cacheable
(
value
=
"expressList"
)
public
List
<
QueryExpressListResponse
>
queryExpressList
()
{
List
<
BaseExpress
>
expressList
=
baseExpressMapper
.
selectList
();
List
<
QueryExpressListResponse
>
list
=
expressList
.
parallelStream
()
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment