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
65ef6181
Commit
65ef6181
authored
Jul 04, 2019
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量导入
parent
3cd1126c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
10 deletions
+18
-10
TabStoreTmpMapper.java
...main/java/com/gic/store/dao/mapper/TabStoreTmpMapper.java
+4
-1
StoreImportServiceImpl.java
...va/com/gic/store/service/impl/StoreImportServiceImpl.java
+2
-2
TabStoreTmpMapper.xml
...e-service/src/main/resources/mapper/TabStoreTmpMapper.xml
+10
-5
StoreImportController.java
...a/com/gic/store/web/controller/StoreImportController.java
+2
-2
No files found.
gic-store-service/src/main/java/com/gic/store/dao/mapper/TabStoreTmpMapper.java
View file @
65ef6181
...
...
@@ -58,5 +58,7 @@ public interface TabStoreTmpMapper {
void
delStoreTmp
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
);
List
<
TabStoreTmp
>
listStoreTmp
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"isSuccess"
)
Boolean
isSuccess
,
@Param
(
"isWait"
)
Boolean
isWait
);
List
<
TabStoreTmp
>
listStoreTmp
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"isSuccess"
)
Boolean
isSuccess
);
List
<
TabStoreTmp
>
listUnImportStore
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
);
}
\ No newline at end of file
gic-store-service/src/main/java/com/gic/store/service/impl/StoreImportServiceImpl.java
View file @
65ef6181
...
...
@@ -43,12 +43,12 @@ public class StoreImportServiceImpl implements StoreImportService {
@Override
public
Page
listStoreTmp
(
Integer
enterpriseId
,
boolean
isSuccess
,
Integer
currentPage
,
Integer
pageSize
)
{
PageHelper
.
startPage
(
currentPage
,
pageSize
);
return
(
Page
)
tabStoreTmpMapper
.
listStoreTmp
(
enterpriseId
,
isSuccess
,
null
);
return
(
Page
)
tabStoreTmpMapper
.
listStoreTmp
(
enterpriseId
,
isSuccess
);
}
@Override
public
List
<
TabStoreTmp
>
listUnImportStore
(
String
enterpriseId
)
{
return
tabStoreTmpMapper
.
list
StoreTmp
(
Integer
.
parseInt
(
enterpriseId
),
null
,
true
);
return
tabStoreTmpMapper
.
list
UnImportStore
(
Integer
.
parseInt
(
enterpriseId
)
);
}
@Override
...
...
gic-store-service/src/main/resources/mapper/TabStoreTmpMapper.xml
View file @
65ef6181
...
...
@@ -327,14 +327,18 @@
<include
refid=
"Base_Column_List"
/>
from tab_store_tmp
where enterprise_id = #{enterpriseId}
<if
test=
"isSuccess != null and isSuccess"
>
<if
test=
"isSuccess != null and isSuccess
== true
"
>
and error_message = 'success'
</if>
<if
test=
"isSuccess != null and
!isSuccess
"
>
<if
test=
"isSuccess != null and
isSuccess == false
"
>
and error_message
<>
'success' and error_message
<>
'wait'
</if>
<if
test=
"isWait != null and isWait"
>
and error_message = 'wait'
</if>
</select>
<select
id=
"listUnImportStore"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_store_tmp
where enterprise_id = #{enterpriseId}
and error_message = 'wait'
</select>
</mapper>
\ No newline at end of file
gic-store-web/src/main/java/com/gic/store/web/controller/StoreImportController.java
View file @
65ef6181
...
...
@@ -59,7 +59,7 @@ public class StoreImportController {
if
(
StringUtils
.
isBlank
(
regionIdStr
))
{
return
RestResponse
.
failure
(
ErrorCode
.
ERR_5
.
getCode
(),
"请选择门店域"
);
}
Integer
enterpriseId
=
1
0000
;
Integer
enterpriseId
=
1
111
;
List
<
List
<
String
>>
list
=
new
ArrayList
<>();
ServiceResponse
<
List
<
List
<
String
>>>
titleServiceResponse
=
storeApiService
.
listImportTitle
(
enterpriseId
,
Integer
.
parseInt
(
regionIdStr
));
...
...
@@ -140,7 +140,7 @@ public class StoreImportController {
}
try
{
if
(
!
storeImportApiService
.
hasImportingStore
(
enterpriseId
).
getResult
())
{
if
(
storeImportApiService
.
hasImportingStore
(
enterpriseId
).
getResult
())
{
// TODO userId
String
r
=
storeImportApiService
.
importDataToStore
(
enterpriseId
,
"123"
,
uuId
).
getResult
();
if
(
StringUtils
.
isNotBlank
(
r
))
{
...
...
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