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
bf83b202
Commit
bf83b202
authored
May 24, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:私聊列表咨询服务列表从小到大排序
parent
af9255db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
ServiceItemBean.java
m-im/src/main/java/com/yidianling/uikit/custom/http/response/ServiceItemBean.java
+8
-1
ExpertConsultServiceView.kt
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceView.kt
+6
-1
No files found.
m-im/src/main/java/com/yidianling/uikit/custom/http/response/ServiceItemBean.java
View file @
bf83b202
...
...
@@ -156,7 +156,7 @@ public class ServiceItemBean {
private
String
extRemark
;
public
String
minOrderTime
;
public
String
saleAmount
;
public
int
sortIndex
;
public
long
getId
()
{
return
id
;
}
...
...
@@ -188,6 +188,13 @@ public class ServiceItemBean {
public
void
setUid
(
int
uid
)
{
this
.
uid
=
uid
;
}
public
int
getsortIndex
()
{
return
sortIndex
;
}
public
void
setsortIndex
(
int
sortIndex
)
{
this
.
sortIndex
=
sortIndex
;
}
public
String
getName
()
{
return
name
;
...
...
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceView.kt
View file @
bf83b202
...
...
@@ -125,7 +125,12 @@ class ExpertConsultServiceView : LinearLayout {
}
}
}
lastList
.
sortedWith
(
mCompare
).
forEach
{
val
sortedList
=
lastList
.
sortedBy
{
productsBean
:
ServiceItemBean
.
ProductsBean
->
productsBean
.
productDto
.
sortIndex
}
sortedList
.
sortedWith
(
mCompare
).
forEach
{
val
item
=
ExpertConsultServiceItemView
(
mContext
!!
,
mListener
)
item
.
setData
(
it
)
expert_consult_service_service_list
.
addView
(
item
)
...
...
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