Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ufo
/
yohoufo-fore
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
caoyan
6 years ago
Commit
fa43ccc4be5b46fa565d8a0d8fc79d09f72f083d
1 parent
beeb1593
搜索增加有货商品
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
product/src/main/java/com/yohoufo/product/controller/ProductSearchController.java
product/src/main/java/com/yohoufo/product/helper/SearchParam.java
product/src/main/java/com/yohoufo/product/controller/ProductSearchController.java
View file @
fa43ccc
...
...
@@ -57,7 +57,7 @@ public class ProductSearchController {
@RequestParam
(
value
=
"query"
,
required
=
false
)
String
query
,
@RequestParam
(
value
=
"limit"
,
required
=
false
)
Integer
limit
,
@RequestParam
(
value
=
"page"
,
required
=
false
)
Integer
page
,
@RequestParam
(
value
=
"app_version"
,
required
=
tru
e
)
String
appVersion
@RequestParam
(
value
=
"app_version"
,
required
=
fals
e
)
String
appVersion
)
{
if
(
type
!=
null
)
{
Map
<
Integer
,
Integer
>
poolConfig
=
ufoServiceCaller
.
call
(
"ufo.resource.goodsPool"
,
Map
.
class
);
...
...
@@ -114,7 +114,8 @@ public class ProductSearchController {
@RequestParam
(
value
=
"gender"
,
required
=
false
)
String
gender
,
@RequestParam
(
value
=
"size"
,
required
=
false
)
String
size
,
@RequestParam
(
value
=
"isSoonSale"
,
required
=
false
)
String
isSoonSale
,
@RequestParam
(
value
=
"query"
,
required
=
false
)
String
query
@RequestParam
(
value
=
"query"
,
required
=
false
)
String
query
,
@RequestParam
(
value
=
"app_version"
,
required
=
false
)
String
appVersion
)
{
...
...
@@ -122,6 +123,7 @@ public class ProductSearchController {
ProductSearchReq
req
=
new
ProductSearchReq
().
setPool
(
productPool
).
setBrand
(
brand
).
setMidSort
(
sortIdLevel
.
getMidSortId
()).
setMaxSort
(
sortIdLevel
.
getMaxSortId
())
.
setSeries
(
series
).
setGender
(
gender
).
setSize
(
size
).
setIsSoonSale
(
isSoonSale
);
searchHelpService
.
setQuery
(
query
,
req
);
searchHelpService
.
setContainYoho
(
appVersion
,
req
);
LOG
.
info
(
"in method=ufo.product.search.list req={}"
,
req
.
toString
());
SearchProductListFilterResp
resp
=
productSearchService
.
searchProductListFilter
(
req
);
...
...
product/src/main/java/com/yohoufo/product/helper/SearchParam.java
View file @
fa43ccc
...
...
@@ -64,7 +64,8 @@ public class SearchParam {
.
setProductPool
(
req
.
getPool
()).
setBrandSeries
(
req
.
getSeries
()).
setGender
(
req
.
getGender
()).
setNotId
(
req
.
getNot_id
())
.
setFilterYearMonth
(
req
.
getFilterYearMonth
())
.
setStartTime
(
req
.
getStartTime
())
.
setEndTime
(
req
.
getEndTime
());
.
setEndTime
(
req
.
getEndTime
())
.
setContainYoho
(
req
.
getContainYoho
());
return
this
;
}
...
...
Please
register
or
login
to post a comment