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
7bd23a7a
Commit
7bd23a7a
authored
May 12, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
c2b4d6c6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
TabStoreMapper.java
...rc/main/java/com/gic/store/dao/mapper/TabStoreMapper.java
+1
-1
StoreService.java
...ice/src/main/java/com/gic/store/service/StoreService.java
+1
-1
StoreServiceImpl.java
...ain/java/com/gic/store/service/impl/StoreServiceImpl.java
+3
-3
StoreGroupStrategyImpl.java
...a/com/gic/store/strategy/impl/StoreGroupStrategyImpl.java
+4
-4
No files found.
gic-store-service/src/main/java/com/gic/store/dao/mapper/TabStoreMapper.java
View file @
7bd23a7a
...
...
@@ -60,7 +60,7 @@ public interface TabStoreMapper {
int
updateStoreGroupBystoreInfoIds
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"value"
)
Integer
value
,
@Param
(
"storeI
dList"
)
List
<
Integer
>
store
IdList
);
@Param
(
"storeI
nfoIdList"
)
List
<
Integer
>
storeInfo
IdList
);
List
<
TabStore
>
getStoreNoStatus
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"storeInfoId"
)
Integer
storeInfoId
);
...
...
gic-store-service/src/main/java/com/gic/store/service/StoreService.java
View file @
7bd23a7a
...
...
@@ -78,7 +78,7 @@ public interface StoreService {
int
bulkUpdateStoreBrands
(
String
storeIds
,
Integer
enterpriseId
,
String
value
);
int
bulkUpdateStoreGroup
(
String
storeIds
,
Integer
enterpriseId
,
Integer
value
);
int
bulkUpdateStoreGroup
(
String
storeI
nfoI
ds
,
Integer
enterpriseId
,
Integer
value
);
StoreDTO
getByStoreNameAndStoreCode
(
Integer
enterpriseId
,
String
storeName
,
String
storeCode
);
...
...
gic-store-service/src/main/java/com/gic/store/service/impl/StoreServiceImpl.java
View file @
7bd23a7a
...
...
@@ -348,13 +348,13 @@ public class StoreServiceImpl implements StoreService {
}
@Override
public
int
bulkUpdateStoreGroup
(
String
storeIds
,
Integer
enterpriseId
,
Integer
value
)
{
public
int
bulkUpdateStoreGroup
(
String
storeI
nfoI
ds
,
Integer
enterpriseId
,
Integer
value
)
{
try
{
List
<
Integer
>
list
=
new
ArrayList
<>();
if
(
"all"
.
equals
(
storeIds
))
{
if
(
"all"
.
equals
(
storeI
nfoI
ds
))
{
return
this
.
tabStoreMapper
.
updateAllStoreGroup
(
enterpriseId
,
value
);
}
else
{
String
[]
storeIdArr
=
storeIds
.
split
(
","
);
String
[]
storeIdArr
=
storeI
nfoI
ds
.
split
(
","
);
for
(
String
s
:
storeIdArr
)
{
list
.
add
(
Integer
.
valueOf
(
s
));
}
...
...
gic-store-service/src/main/java/com/gic/store/strategy/impl/StoreGroupStrategyImpl.java
View file @
7bd23a7a
...
...
@@ -20,15 +20,15 @@ public class StoreGroupStrategyImpl implements BulkUpdateStoreStrtegy {
private
StoreGroupService
storeGroupService
;
@Override
public
int
bulkUpdateStore
(
String
storeIds
,
Integer
enterpriseId
,
String
value
,
StoreService
storeService
,
Integer
operatorId
,
String
operatorName
)
{
int
i
=
storeService
.
bulkUpdateStoreGroup
(
storeIds
,
enterpriseId
,
Integer
.
valueOf
(
value
));
public
int
bulkUpdateStore
(
String
storeI
nfoI
ds
,
Integer
enterpriseId
,
String
value
,
StoreService
storeService
,
Integer
operatorId
,
String
operatorName
)
{
int
i
=
storeService
.
bulkUpdateStoreGroup
(
storeI
nfoI
ds
,
enterpriseId
,
Integer
.
valueOf
(
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
));
}
...
...
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