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
025e050a
Commit
025e050a
authored
Jul 04, 2019
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量导入
parent
f2ca7a72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
StoreImportApiService.java
...ain/java/com/gic/store/service/StoreImportApiService.java
+1
-2
StoreImportApiServiceImpl.java
...om/gic/store/service/outer/StoreImportApiServiceImpl.java
+8
-2
No files found.
gic-store-api/src/main/java/com/gic/store/service/StoreImportApiService.java
View file @
025e050a
...
...
@@ -3,7 +3,6 @@ package com.gic.store.service;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.store.dto.StoreTmpDTO
;
import
com.task.allocation.exception.TaskAllocationException
;
import
java.util.List
;
...
...
@@ -22,7 +21,7 @@ public interface StoreImportApiService {
void
delStoreTmp
(
Integer
enterpriseId
);
ServiceResponse
<
String
>
importDataToStore
(
Integer
enterpriseId
,
String
userId
,
String
uuId
)
throws
TaskAllocationException
;
ServiceResponse
<
String
>
importDataToStore
(
Integer
enterpriseId
,
String
userId
,
String
uuId
);
void
save
(
StoreTmpDTO
bean
);
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/StoreImportApiServiceImpl.java
View file @
025e050a
...
...
@@ -7,6 +7,7 @@ import com.gic.store.dto.StoreTmpDTO;
import
com.gic.store.entity.TabStoreBrand
;
import
com.gic.store.entity.TabStoreGroup
;
import
com.gic.store.service.*
;
import
com.gic.store.utils.ErrorCode
;
import
com.task.allocation.exception.TaskAllocationException
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
...
@@ -109,7 +110,12 @@ public class StoreImportApiServiceImpl implements StoreImportApiService {
}
@Override
public
ServiceResponse
<
String
>
importDataToStore
(
Integer
enterpriseId
,
String
userId
,
String
uuId
)
throws
TaskAllocationException
{
return
ServiceResponse
.
success
(
storeTaskService
.
importDataToStore
(
enterpriseId
,
userId
,
uuId
));
public
ServiceResponse
<
String
>
importDataToStore
(
Integer
enterpriseId
,
String
userId
,
String
uuId
)
{
try
{
return
ServiceResponse
.
success
(
storeTaskService
.
importDataToStore
(
enterpriseId
,
userId
,
uuId
));
}
catch
(
TaskAllocationException
e
)
{
logger
.
warn
(
"队列错误"
);
}
return
ServiceResponse
.
failure
(
ErrorCode
.
ERR_3
.
getCode
(),
"队列错误"
);
}
}
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