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
1f24a7ed
Commit
1f24a7ed
authored
Sep 01, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导购
parent
8f59001e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
17 deletions
+15
-17
StoreBusinessTimeServiceImpl.java
.../gic/store/service/impl/StoreBusinessTimeServiceImpl.java
+6
-7
StorePhotoServiceImpl.java
...ava/com/gic/store/service/impl/StorePhotoServiceImpl.java
+9
-10
No files found.
gic-store-service/src/main/java/com/gic/store/service/impl/StoreBusinessTimeServiceImpl.java
View file @
1f24a7ed
...
...
@@ -12,7 +12,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.Collections
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.stream.Collectors
;
...
...
@@ -31,12 +30,12 @@ public class StoreBusinessTimeServiceImpl implements StoreBusinessTimeService {
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
editStoreBusinessTime
(
Integer
enterpriseId
,
Integer
storeInfoId
,
List
<
StoreBusinessTimeDTO
>
businessTimeList
,
List
<
Integer
>
delBusinessTimes
)
{
//
if (CollectionUtils.isNotEmpty(delBusinessTimes)) {
//
for (Integer delId : delBusinessTimes) {
//
tabStoreBusinessTimeMapper.deleteByPrimaryKey(delId);
//
}
//
}
tabStoreBusinessTimeMapper
.
deleteBystoreInfoIds
(
enterpriseId
,
Collections
.
singletonList
(
storeInfoId
));
if
(
CollectionUtils
.
isNotEmpty
(
delBusinessTimes
))
{
for
(
Integer
delId
:
delBusinessTimes
)
{
tabStoreBusinessTimeMapper
.
deleteByPrimaryKey
(
delId
);
}
}
//
tabStoreBusinessTimeMapper.deleteBystoreInfoIds(enterpriseId, Collections.singletonList(storeInfoId));
if
(
CollectionUtils
.
isNotEmpty
(
businessTimeList
))
{
for
(
StoreBusinessTimeDTO
storeBusinessTimeDTO
:
businessTimeList
)
{
if
(
StringUtils
.
isNotBlank
(
storeBusinessTimeDTO
.
getWeekday
()))
{
...
...
gic-store-service/src/main/java/com/gic/store/service/impl/StorePhotoServiceImpl.java
View file @
1f24a7ed
...
...
@@ -10,7 +10,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.Collections
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -27,16 +26,16 @@ public class StorePhotoServiceImpl implements StorePhotoService {
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
editStoreImage
(
Integer
enterpriseId
,
Integer
storeId
,
List
<
StorePhotoDTO
>
photoList
,
List
<
Integer
>
delPhotos
)
{
//
if (CollectionUtils.isNotEmpty(delPhotos)) {
//
for (Integer delId : delPhotos) {
//
TabStorePhoto storePhoto = new TabStorePhoto();
//
storePhoto.setStorePhotoId(delId);
//
storePhoto.setStatus(GlobalInfo.DATA_STATUS_DELETE);
//
tabStorePhotoMapper.updateByPrimaryKeySelective(storePhoto);
//
}
//
}
if
(
CollectionUtils
.
isNotEmpty
(
delPhotos
))
{
for
(
Integer
delId
:
delPhotos
)
{
TabStorePhoto
storePhoto
=
new
TabStorePhoto
();
storePhoto
.
setStorePhotoId
(
delId
);
storePhoto
.
setStatus
(
GlobalInfo
.
DATA_STATUS_DELETE
);
tabStorePhotoMapper
.
updateByPrimaryKeySelective
(
storePhoto
);
}
}
// 删除老的
tabStorePhotoMapper
.
deleteBystoreInfoIds
(
enterpriseId
,
Collections
.
singletonList
(
storeId
));
//
tabStorePhotoMapper.deleteBystoreInfoIds(enterpriseId, Collections.singletonList(storeId));
if
(
CollectionUtils
.
isNotEmpty
(
photoList
))
{
for
(
int
i
=
0
;
i
<
photoList
.
size
();
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