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
77159ecc
Commit
77159ecc
authored
Feb 19, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店品牌变更
parent
f24d406f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
StoreBrandServiceImpl.java
...ava/com/gic/store/service/impl/StoreBrandServiceImpl.java
+2
-1
TabStoreBrandRefMapper.xml
...vice/src/main/resources/mapper/TabStoreBrandRefMapper.xml
+1
-1
No files found.
gic-store-service/src/main/java/com/gic/store/service/impl/StoreBrandServiceImpl.java
View file @
77159ecc
...
...
@@ -11,6 +11,7 @@ import com.gic.store.service.StoreBrandService;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.PageHelper
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.MapUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
...
...
@@ -86,7 +87,7 @@ public class StoreBrandServiceImpl implements StoreBrandService {
List
<
TabStoreBrandRef
>
existList
=
tabStoreBrandRefMapper
.
selectByEidAndBrandIdList
(
enterpriseId
,
storeBrandIdList
);
Map
<
String
,
Integer
>
existMap
=
existList
.
stream
().
collect
(
Collectors
.
toMap
(
ref
->
ref
.
getEnterpriseId
()
+
"-"
+
ref
.
getStoreBrandId
(),
TabStoreBrandRef:
:
getId
));
for
(
Integer
storeBrandId
:
storeBrandIdList
){
if
(!
existMap
.
containsKey
(
enterpriseId
+
"-"
+
storeBrandId
)){
if
(
MapUtils
.
isNotEmpty
(
existMap
)
&&
!
existMap
.
containsKey
(
enterpriseId
+
"-"
+
storeBrandId
)){
continue
;
}
TabStoreBrandRef
tabStoreBrandRef
=
new
TabStoreBrandRef
();
...
...
gic-store-service/src/main/resources/mapper/TabStoreBrandRefMapper.xml
View file @
77159ecc
...
...
@@ -160,7 +160,7 @@
</update>
<insert
id=
"insertList"
parameterType=
"com.gic.store.entity.TabStoreBrandRef"
>
insert into tab_store_brand_ref (
id,
enterprise_id, store_brand_id,
insert into tab_store_brand_ref (enterprise_id, store_brand_id,
type, create_time, update_time,
delete_flag, sort)
values
...
...
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