Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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-platform-enterprise
Commits
271250d5
Commit
271250d5
authored
Jun 04, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步门店日志保存调整:如果已存在,则不新增,避免重复
parent
b08a68bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
WmStoreSyncLogServiceImpl.java
...ic/enterprise/service/impl/WmStoreSyncLogServiceImpl.java
+18
-12
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/WmStoreSyncLogServiceImpl.java
View file @
271250d5
package
com
.
gic
.
enterprise
.
service
.
impl
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.List
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -20,18 +22,22 @@ public class WmStoreSyncLogServiceImpl implements WmStoreSyncLogService {
@Override
public
void
saveWmStoreSyncLog
(
Integer
storeId
,
Integer
wmMallStoreId
,
Integer
type
,
Integer
enterpriseId
,
String
storeCode
,
String
storeName
)
{
Date
now
=
new
Date
();
TabWmStoreSyncLog
record
=
new
TabWmStoreSyncLog
()
.
setStoreId
(
storeId
)
.
setEnterpriseId
(
enterpriseId
)
.
setStatus
(
1
)
.
setStoreCode
(
storeCode
)
.
setWmMallStoreId
(
wmMallStoreId
)
.
setStoreName
(
storeName
)
.
setStoreType
(
type
)
.
setCreateTime
(
now
)
.
setUpdateTime
(
now
);
tabWmStoreSyncLogMapper
.
insert
(
record
);
//先判断是否已存在
List
<
TabWmStoreSyncLog
>
list
=
listByStoreId
(
Arrays
.
asList
(
storeId
),
wmMallStoreId
);
if
(
CollectionUtils
.
isEmpty
(
list
))
{
Date
now
=
new
Date
();
TabWmStoreSyncLog
record
=
new
TabWmStoreSyncLog
()
.
setStoreId
(
storeId
)
.
setEnterpriseId
(
enterpriseId
)
.
setStatus
(
1
)
.
setStoreCode
(
storeCode
)
.
setWmMallStoreId
(
wmMallStoreId
)
.
setStoreName
(
storeName
)
.
setStoreType
(
type
)
.
setCreateTime
(
now
)
.
setUpdateTime
(
now
);
tabWmStoreSyncLogMapper
.
insert
(
record
);
}
}
@Override
...
...
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