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
ed405e6e
Commit
ed405e6e
authored
May 12, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
7bd23a7a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
TabStoreBusinessTimeMapper.java
.../com/gic/store/dao/mapper/TabStoreBusinessTimeMapper.java
+2
-1
TabStoreInfoMapper.java
...ain/java/com/gic/store/dao/mapper/TabStoreInfoMapper.java
+1
-1
StoreBrandUpdateStrategyImpl.java
...gic/store/strategy/impl/StoreBrandUpdateStrategyImpl.java
+5
-5
No files found.
gic-store-service/src/main/java/com/gic/store/dao/mapper/TabStoreBusinessTimeMapper.java
View file @
ed405e6e
...
...
@@ -64,5 +64,5 @@ public interface TabStoreBusinessTimeMapper {
int
deleteAllByEnterpriseId
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
);
int
deleteBystoreInfoIds
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"storeInfoIdList"
)
List
<
Integer
>
storeIdList
);
int
deleteBystoreInfoIds
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"storeInfoIdList"
)
List
<
Integer
>
storeI
nfoI
dList
);
}
\ No newline at end of file
gic-store-service/src/main/java/com/gic/store/dao/mapper/TabStoreInfoMapper.java
View file @
ed405e6e
...
...
@@ -79,7 +79,7 @@ public interface TabStoreInfoMapper {
int
updateAllStoreBrand
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"value"
)
String
value
);
int
updateStoreBrandBystoreInfoIds
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"value"
)
String
value
,
@Param
(
"storeInfoIdList"
)
List
<
Integer
>
storeIdList
);
int
updateStoreBrandBystoreInfoIds
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"value"
)
String
value
,
@Param
(
"storeInfoIdList"
)
List
<
Integer
>
storeI
nfoI
dList
);
StoreDTO
getByStoreNameAndStoreCode
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"storeName"
)
String
storeName
,
@Param
(
"storeCode"
)
String
storeCode
);
...
...
gic-store-service/src/main/java/com/gic/store/strategy/impl/StoreBrandUpdateStrategyImpl.java
View file @
ed405e6e
...
...
@@ -22,20 +22,20 @@ public class StoreBrandUpdateStrategyImpl implements BulkUpdateStoreStrtegy {
private
StoreBrandService
storeBrandService
;
@Override
public
int
bulkUpdateStore
(
String
storeIds
,
Integer
enterpriseId
,
String
value
,
StoreService
storeService
,
Integer
operatorId
,
String
operatorName
)
{
int
i
=
storeService
.
bulkUpdateStoreBrands
(
storeIds
,
enterpriseId
,
value
);
public
int
bulkUpdateStore
(
String
storeI
nfoI
ds
,
Integer
enterpriseId
,
String
value
,
StoreService
storeService
,
Integer
operatorId
,
String
operatorName
)
{
int
i
=
storeService
.
bulkUpdateStoreBrands
(
storeI
nfoI
ds
,
enterpriseId
,
value
);
if
(
i
>
0
)
{
List
<
Integer
>
storeIdList
;
if
(
"all"
.
equals
(
storeIds
))
{
if
(
"all"
.
equals
(
storeI
nfoI
ds
))
{
storeIdList
=
storeService
.
listAllStoreId
(
enterpriseId
);
}
else
{
storeIdList
=
new
ArrayList
<>();
String
[]
storeIdArr
=
storeIds
.
split
(
","
);
String
[]
storeIdArr
=
storeI
nfoI
ds
.
split
(
","
);
for
(
String
s
:
storeIdArr
)
{
storeIdList
.
add
(
Integer
.
valueOf
(
s
));
}
}
List
<
TabStoreBrand
>
storeBrandList
=
storeBrandService
.
listStoreBrandByIds
(
storeIds
);
List
<
TabStoreBrand
>
storeBrandList
=
storeBrandService
.
listStoreBrandByIds
(
storeI
nfoI
ds
);
String
content
=
Optional
.
ofNullable
(
storeBrandList
).
orElse
(
Collections
.
emptyList
()).
stream
().
map
(
TabStoreBrand:
:
getStoreBrandName
).
reduce
((
x
,
y
)
->
x
+
","
+
y
).
orElse
(
""
);
storeLogService
.
saveBulkStoreInfoLog
(
storeIdList
,
enterpriseId
,
operatorId
,
operatorName
,
"门店品牌变更为【"
+
content
+
"】"
);
}
...
...
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