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
d267d315
Commit
d267d315
authored
Oct 21, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导购交互优化
parent
4b792bcf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletions
+21
-1
ClerkSearchDTO.java
...e-api/src/main/java/com/gic/store/dto/ClerkSearchDTO.java
+9
-1
ClerkController.java
...in/java/com/gic/store/web/controller/ClerkController.java
+12
-0
No files found.
gic-store-api/src/main/java/com/gic/store/dto/ClerkSearchDTO.java
View file @
d267d315
...
...
@@ -27,7 +27,7 @@ public class ClerkSearchDTO implements Serializable {
private
List
<
String
>
fieldCodeList
;
private
Integer
dataType
;
private
Integer
status
;
private
Integer
searchType
=
1
;
public
String
getSearch
()
{
return
search
;
...
...
@@ -149,6 +149,14 @@ public class ClerkSearchDTO implements Serializable {
return
status
;
}
public
Integer
getSearchType
()
{
return
searchType
;
}
public
void
setSearchType
(
Integer
searchType
)
{
this
.
searchType
=
searchType
;
}
@Override
public
String
toString
()
{
return
"ClerkSearchDTO{"
+
...
...
gic-store-web/src/main/java/com/gic/store/web/controller/ClerkController.java
View file @
d267d315
...
...
@@ -252,6 +252,12 @@ public class ClerkController extends DownloadUtils {
public
RestResponse
listClerk
(
@RequestBody
ClerkSearchDTO
clerkSearchDTO
)
{
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
();
clerkSearchDTO
.
setEnterpriseId
(
enterpriseId
);
if
(
clerkSearchDTO
.
getSearchType
()
==
2
)
{
// 如果是查询门店 查询参数其实是storeSearch
String
search
=
clerkSearchDTO
.
getSearch
();
clerkSearchDTO
.
setStoreSearch
(
search
);
clerkSearchDTO
.
setSearch
(
null
);
}
ServiceResponse
serviceResponse
=
clerkApiService
.
listClerk
(
enterpriseId
,
clerkSearchDTO
,
clerkSearchDTO
.
getCurrentPage
(),
clerkSearchDTO
.
getPageSize
());
if
(
serviceResponse
.
isSuccess
())
{
return
RestResponse
.
success
(
serviceResponse
.
getResult
());
...
...
@@ -275,6 +281,12 @@ public class ClerkController extends DownloadUtils {
public
RestResponse
countClerk
(
@RequestBody
ClerkSearchDTO
clerkSearchDTO
)
{
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
();
clerkSearchDTO
.
setEnterpriseId
(
enterpriseId
);
if
(
clerkSearchDTO
.
getSearchType
()
==
2
)
{
// 如果是查询门店 查询参数其实是storeSearch
String
search
=
clerkSearchDTO
.
getSearch
();
clerkSearchDTO
.
setStoreSearch
(
search
);
clerkSearchDTO
.
setSearch
(
null
);
}
clerkSearchDTO
.
setStatus
(
1
);
ServiceResponse
serviceResponse
=
clerkApiService
.
getTotalClerk
(
enterpriseId
,
clerkSearchDTO
);
if
(
serviceResponse
.
isSuccess
())
{
...
...
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