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
edb35670
Commit
edb35670
authored
Sep 18, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店
parent
57f62aa5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
23 deletions
+22
-23
StoreController.java
...in/java/com/gic/store/web/controller/StoreController.java
+6
-7
StoreImportController.java
...a/com/gic/store/web/controller/StoreImportController.java
+5
-5
ClerkQrcodeQO.java
...c/main/java/com/gic/store/web/qo/store/ClerkQrcodeQO.java
+11
-11
No files found.
gic-store-web/src/main/java/com/gic/store/web/controller/StoreController.java
View file @
edb35670
...
...
@@ -23,7 +23,6 @@ import com.gic.enterprise.utils.ResultControllerUtils;
import
com.gic.enterprise.utils.UserDetailUtils
;
import
com.gic.log.api.service.LogApiService
;
import
com.gic.member.api.dto.BatchTaskOperaInfDTO
;
import
com.gic.member.api.dto.StoreBatchUpdateDTO
;
import
com.gic.member.api.service.BatchOperationApiService
;
import
com.gic.member.api.service.StoreUpdateApiService
;
import
com.gic.member.api.service.UserOwnerApiService
;
...
...
@@ -313,12 +312,12 @@ public class StoreController extends DownloadUtils {
ServiceResponse
<
Page
<
StoreDTO
>>
response
=
this
.
storeApiService
.
listStoreOverFlow
(
enterpriseId
,
page
,
search
);
if
(
response
.
isSuccess
())
{
page
=
response
.
getResult
();
Page
<
StoreOverflowVO
>
page
1
=
new
Page
<>();
page
1
.
setTotalCount
(
page
.
getTotalCount
());
page
1
.
setCurrentPage
(
page
.
getCurrentPage
());
page
1
.
setPageSize
(
page
.
getPageSize
());
page
1
.
setResult
(
EntityUtil
.
changeEntityListByJSON
(
StoreOverflowVO
.
class
,
page
.
getResult
()));
return
RestResponse
.
success
(
page
1
);
Page
<
StoreOverflowVO
>
page
Tmp
=
new
Page
<>();
page
Tmp
.
setTotalCount
(
page
.
getTotalCount
());
page
Tmp
.
setCurrentPage
(
page
.
getCurrentPage
());
page
Tmp
.
setPageSize
(
page
.
getPageSize
());
page
Tmp
.
setResult
(
EntityUtil
.
changeEntityListByJSON
(
StoreOverflowVO
.
class
,
page
.
getResult
()));
return
RestResponse
.
success
(
page
Tmp
);
}
return
EnterpriseRestResponse
.
failure
(
response
);
}
...
...
gic-store-web/src/main/java/com/gic/store/web/controller/StoreImportController.java
View file @
edb35670
...
...
@@ -84,12 +84,12 @@ public class StoreImportController {
ServiceResponse
<
List
<
List
<
String
>>>
titleServiceResponse
=
storeImportApiService
.
listImportTitle
(
enterpriseId
,
Integer
.
parseInt
(
regionIdStr
));
// 测试数据
List
<
String
>
list
3
=
new
ArrayList
<>();
Collections
.
addAll
(
list
3
,
"1"
,
"杭州测试总店"
,
"A001"
,
"自营"
,
"上线"
,
"12345678912"
,
"杭州门店"
,
"品牌1"
,
"浙江省"
,
"杭州市"
,
"西湖区"
,
"华星时代广场"
,
"经度"
,
"纬度"
);
Collections
.
addAll
(
list
,
list
3
);
int
size
=
list
3
.
size
();
List
<
String
>
list
Tmp
=
new
ArrayList
<>();
Collections
.
addAll
(
list
Tmp
,
"1"
,
"杭州测试总店"
,
"A001"
,
"自营"
,
"上线"
,
"12345678912"
,
"杭州门店"
,
"品牌1"
,
"浙江省"
,
"杭州市"
,
"西湖区"
,
"华星时代广场"
,
"经度"
,
"纬度"
);
Collections
.
addAll
(
list
,
list
Tmp
);
int
size
=
list
Tmp
.
size
();
for
(
int
i
=
0
;
i
<
titleServiceResponse
.
getResult
().
get
(
0
).
size
()
-
size
;
i
++)
{
list
3
.
add
(
" "
);
list
Tmp
.
add
(
" "
);
}
Workbook
workbook
=
ExcelUtils
.
getWorkbook
(
"门店导入模板"
,
titleServiceResponse
.
getResult
().
get
(
0
),
titleServiceResponse
.
getResult
().
get
(
1
),
list
,
regionIdStr
);
...
...
gic-store-web/src/main/java/com/gic/store/web/qo/store/ClerkQrcodeQO.java
View file @
edb35670
package
com
.
gic
.
store
.
web
.
qo
.
store
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.List
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.gic.store.dto.ClerkSearchDTO
;
import
org.apache.commons.lang.StringUtils
;
import
com.gic.store.dto.StoreSearchDTO
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.List
;
/**
*
...
...
@@ -17,7 +16,8 @@ import com.gic.store.dto.StoreSearchDTO;
* @date 2020-09-09 19:07
*/
public
class
ClerkQrcodeQO
implements
Serializable
{
private
Integer
h5
=
0
;
@JsonProperty
(
"h5"
)
private
Integer
html
=
0
;
private
String
appletIds
;
private
String
fwhIds
;
private
String
scenesValueIds
;
...
...
@@ -30,13 +30,13 @@ public class ClerkQrcodeQO implements Serializable {
private
String
fileName
;
private
ClerkSearchDTO
clerkSearchDTO
;
public
Integer
getH
5
()
{
return
h
5
;
public
Integer
getH
tml
()
{
return
h
tml
;
}
public
void
setH
5
(
Integer
h5
)
{
if
(
h
5
!=
null
&&
StringUtils
.
isNotBlank
(
h5
+
""
)){
this
.
h
5
=
h5
;
public
void
setH
tml
(
Integer
html
)
{
if
(
h
tml
!=
null
&&
StringUtils
.
isNotBlank
(
html
+
""
)){
this
.
h
tml
=
html
;
}
}
...
...
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