Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lingxi-lxy-yanshou
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
后端-黄柯铭
lingxi-lxy-yanshou
Commits
5a39a483
Commit
5a39a483
authored
Jul 29, 2021
by
fhj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模板服务 - 修复代码
parent
b1afd38e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
AreaControllerFeign.java
...lingxi/platform/manage/api/feign/AreaControllerFeign.java
+1
-1
MemberShopWebServiceImpl.java
...ate/service/serviceimpl/web/MemberShopWebServiceImpl.java
+5
-5
No files found.
platform-manage-service/platform-manage-service-api/src/main/java/com/ssy/lingxi/platform/manage/api/feign/AreaControllerFeign.java
View file @
5a39a483
...
...
@@ -21,7 +21,7 @@ public interface AreaControllerFeign {
@ApiOperation
(
value
=
"根据省编码获取所有市编码"
)
@GetMapping
(
"/manage/area/findCityCodeByProvinceCode"
)
public
Wrapper
<
List
<
String
>>
findCityCodeByProvinceCode
(
@RequestParam
(
"provinceCodes"
)
List
<
String
>
provinceCodes
);
Wrapper
<
List
<
String
>>
findCityCodeByProvinceCode
(
@RequestParam
(
"provinceCodes"
)
List
<
String
>
provinceCodes
);
@ApiOperation
(
value
=
"查询省市区列表"
)
@GetMapping
(
"/manage/area/all"
)
...
...
platform-template-service/src/main/java/com/ssy/lingxi/platform/template/service/serviceimpl/web/MemberShopWebServiceImpl.java
View file @
5a39a483
...
...
@@ -121,12 +121,12 @@ public class MemberShopWebServiceImpl implements MemberShopWebService {
List
<
String
>
provinceCodes
=
Stream
.
of
(
"0"
).
collect
(
toList
());
List
<
String
>
cityCodes
=
Stream
.
of
(
"0"
).
collect
(
toList
());
if
(
dto
.
getMemberShopAreas
().
stream
().
noneMatch
(
a
->
a
.
getProvinceCode
().
equals
(
"0"
)))
{
provinceCodes
=
dto
.
getMemberShopAreas
().
stream
().
map
(
AreaBO:
:
getProvince
).
collect
(
Collectors
.
toList
());
provinceCodes
=
dto
.
getMemberShopAreas
().
stream
().
map
(
AreaBO:
:
getProvince
Code
).
collect
(
Collectors
.
toList
());
cityCodes
=
dto
.
getMemberShopAreas
().
stream
().
filter
(
a
->
!
a
.
getCityCode
().
equals
(
"0"
)).
map
(
AreaBO:
:
getCityCode
).
collect
(
Collectors
.
toList
());
List
<
String
>
feignC
ityCodes
=
dto
.
getMemberShopAreas
().
stream
().
filter
(
a
->
a
.
getCityCode
().
equals
(
"0"
)).
map
(
AreaBO:
:
getProvinc
e
).
collect
(
Collectors
.
toList
());
if
(
CollectionUtil
.
isNotEmpty
(
feignC
ityC
odes
))
{
Wrapper
<
List
<
String
>>
cityCodesWrapper
=
areaControllerFeign
.
findCityCodeByProvinceCode
(
feignC
ityC
odes
);
List
<
String
>
feignC
odes
=
dto
.
getMemberShopAreas
().
stream
().
filter
(
a
->
a
.
getCityCode
().
equals
(
"0"
)).
map
(
AreaBO:
:
getProvinceCod
e
).
collect
(
Collectors
.
toList
());
if
(
CollectionUtil
.
isNotEmpty
(
feignCodes
))
{
Wrapper
<
List
<
String
>>
cityCodesWrapper
=
areaControllerFeign
.
findCityCodeByProvinceCode
(
feignCodes
);
if
(
cityCodesWrapper
.
getCode
()
==
ResponseCode
.
SUCCESS
.
getCode
()
&&
CollectionUtil
.
isNotEmpty
(
cityCodesWrapper
.
getData
()))
{
cityCodes
.
addAll
(
cityCodesWrapper
.
getData
());
}
...
...
@@ -172,7 +172,7 @@ public class MemberShopWebServiceImpl implements MemberShopWebService {
memberShop
.
setLat
(
dto
.
getLat
());
memberShop
.
setAreas
(
dto
.
getMemberShopAreas
().
stream
().
map
(
a
->
{
return
a
.
getProvince
()
+
"/"
+
a
.
getCity
();}).
collect
(
Collectors
.
joining
(
","
)));
memberShop
.
setProvincesCodeList
(
String
.
join
(
","
,
provinceCodes
));
memberShop
.
setCityCodeList
(
String
.
join
(
","
,
province
Codes
));
memberShop
.
setCityCodeList
(
String
.
join
(
","
,
city
Codes
));
memberShop
.
setMemberName
(
user
.
getCompany
());
memberShop
.
setLevelTag
(
platformMemberLrcWrapper
.
getData
().
getLevelTag
());
memberShop
.
setRegisterYears
(
platformMemberLrcWrapper
.
getData
().
getRegisterYears
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment