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
5e99e649
Commit
5e99e649
authored
Mar 03, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改门店标签的传值
parent
69b4e16b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
StoreSearchDTO.java
...e-api/src/main/java/com/gic/store/dto/StoreSearchDTO.java
+9
-0
StoreController.java
...in/java/com/gic/store/web/controller/StoreController.java
+2
-5
No files found.
gic-store-api/src/main/java/com/gic/store/dto/StoreSearchDTO.java
View file @
5e99e649
...
...
@@ -23,6 +23,7 @@ public class StoreSearchDTO implements Serializable {
private
Long
storeResource
;
private
Integer
currentPage
=
1
;
private
Integer
pageSize
=
20
;
private
Integer
storeTagId
;
public
Integer
getStoreGroupId
()
{
return
storeGroupId
;
...
...
@@ -183,4 +184,12 @@ public class StoreSearchDTO implements Serializable {
public
void
setStoreCode
(
String
storeCode
)
{
this
.
storeCode
=
storeCode
;
}
public
Integer
getStoreTagId
()
{
return
storeTagId
;
}
public
void
setStoreTagId
(
Integer
storeTagId
)
{
this
.
storeTagId
=
storeTagId
;
}
}
gic-store-web/src/main/java/com/gic/store/web/controller/StoreController.java
View file @
5e99e649
...
...
@@ -32,7 +32,6 @@ import com.gic.store.web.vo.StoreListSourceVO;
import
com.gic.store.web.vo.StoreOverflowVO
;
import
com.gic.wechat.business.api.service.fwh.WeixinBaseFunService
;
import
com.gic.wechat.business.api.service.wxa.WeixinWxaFunService
;
import
org.apache.catalina.User
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
...
...
@@ -41,13 +40,11 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.concurrent.ConcurrentHashMap
;
...
...
@@ -138,7 +135,7 @@ public class StoreController extends DownloadUtils {
}
@RequestMapping
(
"/store-list"
)
public
RestResponse
storeList
(
@RequestBody
StoreSearchDTO
storeSearchDTO
,
Integer
storeTagId
)
{
public
RestResponse
storeList
(
@RequestBody
StoreSearchDTO
storeSearchDTO
)
{
logger
.
info
(
"查询条件:{}"
,
JSON
.
toJSONString
(
storeSearchDTO
));
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
();
Integer
userId
=
UserDetailUtils
.
getUserDetail
().
getUserId
();
...
...
@@ -148,7 +145,7 @@ public class StoreController extends DownloadUtils {
}
//门店标签
ServiceResponse
<
StoreTagDTO
>
storeTagResult
=
storeTagApiService
.
getByStoreTagId
(
store
TagId
);
ServiceResponse
<
StoreTagDTO
>
storeTagResult
=
storeTagApiService
.
getByStoreTagId
(
store
SearchDTO
.
getStoreTagId
()
);
if
(
storeTagResult
.
isSuccess
())
{
storeSearchDTO
.
setStoreResource
(
Long
.
parseLong
(
storeTagResult
.
getResult
().
getStoreWidgetId
().
toString
()));
}
...
...
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