Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
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
杨凯
YDL-Component-Medical
Commits
48bb8c74
Commit
48bb8c74
authored
Jul 07, 2022
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改筛选框价格文案,价格筛选传值字段使用后端返回的字段
parent
5b4f0e4a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
20 deletions
+12
-20
ExpertSearchPresenter.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchPresenter.kt
+6
-6
PriceRangesItem.kt
m-consultant/src/main/java/com/yidianling/consultant/model/bean/PriceRangesItem.kt
+6
-14
No files found.
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchPresenter.kt
View file @
48bb8c74
...
...
@@ -116,15 +116,15 @@ class ExpertSearchPresenter : SimplePresenter<IExpertSearchView>() {
filterMap
[
"product_specs.spec_id"
]
=
wayMap
}
// 服务均价
if
(
allFilter
.
priceRanges
!=
null
)
{
allFilter
.
priceRanges
?.
let
{
val
avgPriceMap
=
HashMap
<
String
,
Any
?>()
if
(!
TextUtils
.
isEmpty
(
allFilter
.
priceRanges
?
.
min_price
)){
avgPriceMap
[
"gte"
]
=
allFilter
.
priceRanges
?
.
min_price
if
(!
TextUtils
.
isEmpty
(
it
.
min_price
)){
avgPriceMap
[
"gte"
]
=
it
.
min_price
}
if
(!
TextUtils
.
isEmpty
(
allFilter
.
priceRanges
?
.
max_price
))
{
avgPriceMap
[
"lte"
]
=
allFilter
.
priceRanges
?
.
max_price
if
(!
TextUtils
.
isEmpty
(
it
.
max_price
))
{
avgPriceMap
[
"lte"
]
=
it
.
max_price
}
filterMap
[
allFilter
.
priceRanges
!!
.
key1
]
=
avgPriceMap
filterMap
[
it
.
key1
]
=
avgPriceMap
}
// 年龄
if
(
allFilter
.
ages
.
isNotEmpty
())
{
...
...
m-consultant/src/main/java/com/yidianling/consultant/model/bean/PriceRangesItem.kt
View file @
48bb8c74
package
com.yidianling.consultant.model.bean
import
com.google.gson.annotations.SerializedName
data class
PriceRangesItem
(
@field
:
SerializedName
(
"min_price"
)
var
min_price
:
String
?
=
null
,
@field
:
SerializedName
(
"max_price"
)
var
max_price
:
String
?
=
null
,
@SerializedName
(
"recommend_percent"
)
var
recommend_percent
:
String
?
=
null
,
var
display_range
:
String
?
=
null
,
var
key1
:
String
=
"avg_price"
var
min_price
:
String
?
=
null
,
var
max_price
:
String
?
=
null
,
var
recommend_percent
:
String
?
=
null
,
var
display_range
:
String
?
=
null
,
var
key1
:
String
=
"avg_price"
)
\ No newline at end of file
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