Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-webapp-plug
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-webapp-plug
Commits
c0d1bf75
Commit
c0d1bf75
authored
Dec 24, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
0525100b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
3 deletions
+28
-3
StoreController.java
...ain/java/com/gic/plug/web/controller/StoreController.java
+4
-3
StoreWidgetCountQO.java
src/main/java/com/gic/plug/web/qo/StoreWidgetCountQO.java
+24
-0
No files found.
src/main/java/com/gic/plug/web/controller/StoreController.java
View file @
c0d1bf75
...
@@ -4,6 +4,7 @@ import com.gic.api.base.commons.ServiceResponse;
...
@@ -4,6 +4,7 @@ import com.gic.api.base.commons.ServiceResponse;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.utils.UserDetailUtils
;
import
com.gic.enterprise.utils.UserDetailUtils
;
import
com.gic.plug.web.qo.StoreWidgetCountQO
;
import
com.gic.plug.web.qo.StoreWidgetQO
;
import
com.gic.plug.web.qo.StoreWidgetQO
;
import
com.gic.plug.web.vo.StoreRegionVO
;
import
com.gic.plug.web.vo.StoreRegionVO
;
import
com.gic.plug.web.vo.StoreVO
;
import
com.gic.plug.web.vo.StoreVO
;
...
@@ -67,12 +68,12 @@ public class StoreController {
...
@@ -67,12 +68,12 @@ public class StoreController {
}
}
@RequestMapping
(
"get-store-count"
)
@RequestMapping
(
"get-store-count"
)
public
RestResponse
getStoreCount
(
String
authSearchJson
,
String
searchJson
){
public
RestResponse
getStoreCount
(
@RequestBody
StoreWidgetCountQO
storeWidgetCountQO
){
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
();
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
();
StoreSearchDTO
storeSearchDTO
=
new
StoreSearchDTO
();
StoreSearchDTO
storeSearchDTO
=
new
StoreSearchDTO
();
storeSearchDTO
.
setEnterpriseId
(
enterpriseId
);
storeSearchDTO
.
setEnterpriseId
(
enterpriseId
);
storeSearchDTO
.
setSearchJson
(
s
earchJson
);
storeSearchDTO
.
setSearchJson
(
s
toreWidgetCountQO
.
getSearchJson
()
);
storeSearchDTO
.
setAuthSearchJson
(
authSearchJson
);
storeSearchDTO
.
setAuthSearchJson
(
storeWidgetCountQO
.
getAuthSearchJson
()
);
ServiceResponse
<
Long
>
response
=
storeApiService
.
queryStoreCountFromES
(
storeSearchDTO
);
ServiceResponse
<
Long
>
response
=
storeApiService
.
queryStoreCountFromES
(
storeSearchDTO
);
return
RestResponse
.
success
(
response
.
getResult
());
return
RestResponse
.
success
(
response
.
getResult
());
}
}
...
...
src/main/java/com/gic/plug/web/qo/StoreWidgetCountQO.java
0 → 100644
View file @
c0d1bf75
package
com
.
gic
.
plug
.
web
.
qo
;
import
java.io.Serializable
;
public
class
StoreWidgetCountQO
implements
Serializable
{
private
String
authSearchJson
;
private
String
searchJson
;
public
String
getAuthSearchJson
()
{
return
authSearchJson
;
}
public
void
setAuthSearchJson
(
String
authSearchJson
)
{
this
.
authSearchJson
=
authSearchJson
;
}
public
String
getSearchJson
()
{
return
searchJson
;
}
public
void
setSearchJson
(
String
searchJson
)
{
this
.
searchJson
=
searchJson
;
}
}
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