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
b4925d17
Commit
b4925d17
authored
May 12, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
dc61bfe2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
13 deletions
+14
-13
TabStorePhotoMapper.java
...in/java/com/gic/store/dao/mapper/TabStorePhotoMapper.java
+2
-1
StoreServiceImpl.java
...ain/java/com/gic/store/service/impl/StoreServiceImpl.java
+3
-3
StorePhotoAddStrategyImpl.java
...om/gic/store/strategy/impl/StorePhotoAddStrategyImpl.java
+9
-9
No files found.
gic-store-service/src/main/java/com/gic/store/dao/mapper/TabStorePhotoMapper.java
View file @
b4925d17
...
...
@@ -66,6 +66,6 @@ public interface TabStorePhotoMapper {
int
addAllStorePhoto
(
@Param
(
"imageCode"
)
String
imageCode
,
@Param
(
"imageUrl"
)
String
imageUrl
,
@Param
(
"sort"
)
int
sort
,
@Param
(
"enterpriseId"
)
Integer
enterpriseId
);
int
addPhotoBystoreInfoIds
(
@Param
(
"imageCode"
)
String
imageCode
,
@Param
(
"imageUrl"
)
String
imageUrl
,
@Param
(
"sort"
)
int
sort
,
@Param
(
"storeId
List"
)
List
<
Integer
>
storeId
List
);
int
addPhotoBystoreInfoIds
(
@Param
(
"imageCode"
)
String
imageCode
,
@Param
(
"imageUrl"
)
String
imageUrl
,
@Param
(
"sort"
)
int
sort
,
@Param
(
"storeId
InfoList"
)
List
<
Integer
>
storeIdInfo
List
);
}
\ No newline at end of file
gic-store-service/src/main/java/com/gic/store/service/impl/StoreServiceImpl.java
View file @
b4925d17
...
...
@@ -303,7 +303,7 @@ public class StoreServiceImpl implements StoreService {
}
@Override
public
int
bulkAddStorePhoto
(
String
storeIds
,
Integer
enterpriseId
,
String
value
)
{
public
int
bulkAddStorePhoto
(
String
storeI
nfoI
ds
,
Integer
enterpriseId
,
String
value
)
{
try
{
JSONArray
array
=
JSON
.
parseArray
(
value
);
List
<
Integer
>
list
=
new
ArrayList
<>();
...
...
@@ -311,10 +311,10 @@ public class StoreServiceImpl implements StoreService {
JSONObject
json
=
array
.
getJSONObject
(
i
);
String
imageCode
=
json
.
getString
(
"imageCode"
);
String
imageUrl
=
json
.
getString
(
"imageUrl"
);
if
(
"all"
.
equals
(
storeIds
))
{
if
(
"all"
.
equals
(
storeI
nfoI
ds
))
{
this
.
tabStorePhotoMapper
.
addAllStorePhoto
(
imageCode
,
imageUrl
,
i
,
enterpriseId
);
}
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/StorePhotoAddStrategyImpl.java
View file @
b4925d17
...
...
@@ -16,20 +16,20 @@ public class StorePhotoAddStrategyImpl implements BulkUpdateStoreStrtegy {
private
StoreLogService
storeLogService
;
@Override
public
int
bulkUpdateStore
(
String
storeIds
,
Integer
enterpriseId
,
String
value
,
StoreService
storeService
,
Integer
operatorId
,
String
operatorName
)
{
int
i
=
storeService
.
bulkAddStorePhoto
(
storeIds
,
enterpriseId
,
value
);
public
int
bulkUpdateStore
(
String
storeI
nfoI
ds
,
Integer
enterpriseId
,
String
value
,
StoreService
storeService
,
Integer
operatorId
,
String
operatorName
)
{
int
i
=
storeService
.
bulkAddStorePhoto
(
storeI
nfoI
ds
,
enterpriseId
,
value
);
if
(
i
>
0
)
{
List
<
Integer
>
storeIdList
;
if
(
"all"
.
equals
(
storeIds
))
{
storeIdList
=
storeService
.
listAllStoreId
(
enterpriseId
);
List
<
Integer
>
storeI
nfoI
dList
;
if
(
"all"
.
equals
(
storeI
nfoI
ds
))
{
storeI
nfoI
dList
=
storeService
.
listAllStoreId
(
enterpriseId
);
}
else
{
storeIdList
=
new
ArrayList
<>();
String
[]
storeIdArr
=
storeIds
.
split
(
","
);
storeI
nfoI
dList
=
new
ArrayList
<>();
String
[]
storeIdArr
=
storeI
nfoI
ds
.
split
(
","
);
for
(
String
s
:
storeIdArr
)
{
storeIdList
.
add
(
Integer
.
valueOf
(
s
));
storeI
nfoI
dList
.
add
(
Integer
.
valueOf
(
s
));
}
}
storeLogService
.
saveBulkStoreInfoLog
(
storeIdList
,
enterpriseId
,
operatorId
,
operatorName
,
"门店照片添加"
);
storeLogService
.
saveBulkStoreInfoLog
(
storeI
nfoI
dList
,
enterpriseId
,
operatorId
,
operatorName
,
"门店照片添加"
);
}
return
i
;
}
...
...
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