Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
Overview
Overview
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
base_platform_enterprise
gic-store
Commits
cc9b444e
Commit
cc9b444e
authored
Jun 25, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
店招品牌共享标志调整
parent
cbe9ef9c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
6 deletions
+20
-6
StoreBrandDTO.java
...re-api/src/main/java/com/gic/store/dto/StoreBrandDTO.java
+12
-0
StoreBrandApiService.java
...main/java/com/gic/store/service/StoreBrandApiService.java
+1
-0
StoreBrandApiServiceImpl.java
...ic/store/service/outer/impl/StoreBrandApiServiceImpl.java
+7
-6
No files found.
gic-store-api/src/main/java/com/gic/store/dto/StoreBrandDTO.java
View file @
cc9b444e
...
...
@@ -57,6 +57,8 @@ public class StoreBrandDTO implements Serializable {
/**1自有 2共享*/
private
Integer
type
;
private
Integer
fromEnterpriseId
;
/***********前端使用字段*********/
/**
* 共享标记 1:自有 0:共享
...
...
@@ -185,6 +187,15 @@ public class StoreBrandDTO implements Serializable {
return
this
;
}
public
Integer
getFromEnterpriseId
()
{
return
fromEnterpriseId
;
}
public
StoreBrandDTO
setFromEnterpriseId
(
Integer
fromEnterpriseId
)
{
this
.
fromEnterpriseId
=
fromEnterpriseId
;
return
this
;
}
@Override
public
String
toString
()
{
return
"StoreBrandDTO{"
+
...
...
@@ -202,6 +213,7 @@ public class StoreBrandDTO implements Serializable {
", type="
+
type
+
", ownerFlag="
+
ownerFlag
+
", ownerEntName='"
+
ownerEntName
+
'\''
+
", fromEnterpriseId='"
+
fromEnterpriseId
+
'\''
+
'}'
;
}
}
gic-store-api/src/main/java/com/gic/store/service/StoreBrandApiService.java
View file @
cc9b444e
...
...
@@ -58,6 +58,7 @@ public interface StoreBrandApiService {
* @param storeBrandList
* @return
*/
@Deprecated
ServiceResponse
<
Map
<
Integer
,
StoreBrandShareDTO
>>
getStoreBrandShareEnterprise
(
List
<
StoreBrandDTO
>
storeBrandList
);
/**
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreBrandApiServiceImpl.java
View file @
cc9b444e
...
...
@@ -86,14 +86,15 @@ public class StoreBrandApiServiceImpl implements StoreBrandApiService {
List
<
StoreBrandDTO
>
resultList
=
page
.
getResult
();
int
index
=
(
pageNum
-
1
)
*
pageSize
+
1
;
Map
<
Integer
,
StoreBrandShareDTO
>
storeBrandShareDTOMap
=
getStoreBrandShareEnterprise
(
resultList
).
getResult
();
Map
<
Integer
,
String
>
enterpriseIdMapName
=
enterpriseApiService
.
getEnterpriseIdMapName
(
resultList
.
stream
()
.
mapToInt
(
e
->
e
.
getFromEnterpriseId
())
.
boxed
()
.
collect
(
Collectors
.
toList
()))
.
getResult
();
for
(
int
i
=
0
;
i
<
resultList
.
size
();
i
++)
{
StoreBrandDTO
storeBrandDTO
=
resultList
.
get
(
i
);
StoreBrandShareDTO
temp
=
storeBrandShareDTOMap
.
get
(
storeBrandDTO
.
getStoreBrandId
());
if
(
temp
!=
null
)
{
storeBrandDTO
.
setOwnerFlag
(
temp
.
getOwnerFlag
());
storeBrandDTO
.
setOwnerEntName
(
temp
.
getOwnerEntName
());
}
storeBrandDTO
.
setOwnerEntName
(
enterpriseIdMapName
.
get
(
storeBrandDTO
.
getFromEnterpriseId
()));
storeBrandDTO
.
setSeq
(
index
+
i
);
}
return
ServiceResponse
.
success
(
page
);
...
...
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