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
12a234b2
Commit
12a234b2
authored
Mar 24, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat : 前置信息收集导医分配增加参数
parent
43e0dba2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
12 deletions
+22
-12
config.gradle
config.gradle
+2
-2
ImRetrofitApi.kt
m-im/src/main/java/com/yidianling/im/http/ImRetrofitApi.kt
+4
-1
CmsExamQuestionPaperActivity.kt
m-im/src/main/java/com/yidianling/im/ui/activity/CmsExamQuestionPaperActivity.kt
+15
-9
QuestionPaperBean.java
m-im/src/main/java/com/yidianling/uikit/custom/http/response/question/QuestionPaperBean.java
+1
-0
No files found.
config.gradle
View file @
12a234b2
...
...
@@ -10,7 +10,7 @@ ext {
"m-fm"
:
"0.0.30.04"
,
"m-user"
:
"0.0.61.94"
,
"m-home"
:
"0.0.22.84"
,
"m-im"
:
"0.0.21.0
1
"
,
"m-im"
:
"0.0.21.0
3
"
,
"m-dynamic"
:
"0.0.7.35"
,
"m-article"
:
"0.0.0.10"
,
...
...
@@ -93,7 +93,7 @@ ext {
"m-fm"
:
"0.0.30.07"
,
"m-user"
:
"0.0.61.94"
,
"m-home"
:
"0.0.22.83"
,
"m-im"
:
"0.0.21.0
1
"
,
"m-im"
:
"0.0.21.0
3
"
,
"m-dynamic"
:
"0.0.7.35"
,
"m-article"
:
"0.0.0.8"
,
...
...
m-im/src/main/java/com/yidianling/im/http/ImRetrofitApi.kt
View file @
12a234b2
...
...
@@ -156,6 +156,8 @@ interface ImRetrofitApi {
fun
getConsultAssistantUidRequest
(
@Query
(
"location"
)
location
:
Int
,
@Query
(
"ffrom_2"
)
ffrom
:
String
?,
@Query
(
"naviType"
)
naviType
:
String
=
"1"
@Query
(
"naviType"
)
naviType
:
String
=
"1"
,
@Query
(
"examId"
)
examId
:
String
=
""
,
@Query
(
"questionPaperId"
)
questionPaperId
:
String
=
""
):
Observable
<
BaseAPIResponse
<
Long
>>
}
\ No newline at end of file
m-im/src/main/java/com/yidianling/im/ui/activity/CmsExamQuestionPaperActivity.kt
View file @
12a234b2
...
...
@@ -86,8 +86,9 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
private
var
location
:
Int
=
0
private
var
ffrom2
:
String
?
=
null
/**单选类型*/
private
const
val
RADIO_KEY
=
"radio"
private
const
val
RADIO_KEY
=
"radio"
@JvmStatic
fun
start
(
context
:
Context
,
toUid
:
String
,
expertInfo
:
IMExpertBuild
,
isFromQingShu
:
Int
)
{
...
...
@@ -241,7 +242,7 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
//当前问题
tv_cur_problem
.
setOnClickListener
{
problemContent
=
et_input_problem
.
text
.
toString
()
if
(!
TextUtils
.
isEmpty
(
problemContent
)){
if
(!
TextUtils
.
isEmpty
(
problemContent
))
{
problemContent
=
"$problemContent\n\n"
}
et_input_problem
.
setText
(
"$problemContent${tv_cur_problem.text}:"
)
...
...
@@ -251,7 +252,7 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
//持续时间
tv_duration
.
setOnClickListener
{
problemContent
=
et_input_problem
.
text
.
toString
()
if
(!
TextUtils
.
isEmpty
(
problemContent
)){
if
(!
TextUtils
.
isEmpty
(
problemContent
))
{
problemContent
=
"$problemContent\n\n"
}
et_input_problem
.
setText
(
"$problemContent${tv_duration.text}:"
)
...
...
@@ -261,7 +262,7 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
//问题影响
tv_problem_impact
.
setOnClickListener
{
problemContent
=
et_input_problem
.
text
.
toString
()
if
(!
TextUtils
.
isEmpty
(
problemContent
)){
if
(!
TextUtils
.
isEmpty
(
problemContent
))
{
problemContent
=
"$problemContent\n\n"
}
et_input_problem
.
setText
(
"$problemContent${tv_problem_impact.text}:"
)
...
...
@@ -322,6 +323,7 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
}
}
}
/**
* 最后一题
* */
...
...
@@ -348,6 +350,7 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
mData
[
index
].
type5CanClick
=
false
}
}
/**
* 隐藏输入框
* */
...
...
@@ -405,10 +408,10 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
//还有下一题
questionMultiItem2
.
questionsBean
=
questionsBean
if
(
RADIO_KEY
==
questionsBean
.
type
)
{
if
(!
questionsBean
.
image
.
isNullOrEmpty
()||!
questionsBean
.
url
.
isNullOrEmpty
())
{
if
(!
questionsBean
.
image
.
isNullOrEmpty
()
||
!
questionsBean
.
url
.
isNullOrEmpty
())
{
tv_skip
.
visibility
=
View
.
GONE
questionMultiItem2
.
viewType
=
7
}
else
{
}
else
{
questionMultiItem2
.
viewType
=
3
}
}
else
{
...
...
@@ -589,10 +592,10 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
val
questionsBean
=
mQuestionBean
!!
.
questionPaper
.
questions
[
questionChain
.
questionId
]
questionMultiItem2
.
questionsBean
=
questionsBean
if
(
RADIO_KEY
==
questionsBean
?.
type
)
{
if
(!
questionsBean
.
image
.
isNullOrEmpty
()||!
questionsBean
.
url
.
isNullOrEmpty
())
{
if
(!
questionsBean
.
image
.
isNullOrEmpty
()
||
!
questionsBean
.
url
.
isNullOrEmpty
())
{
tv_skip
.
visibility
=
View
.
GONE
questionMultiItem2
.
viewType
=
7
}
else
{
}
else
{
questionMultiItem2
.
viewType
=
3
}
}
else
{
...
...
@@ -772,8 +775,11 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
},
1000L
)
}
else
{
//代表是导医进来的 导医进来的需要获取导医后再发送消息
var
questionPaperId
=
""
mQuestionBean
?.
questionPaper
?.
id
?.
let
{
questionPaperId
=
it
}
ImRetrofitApi
.
getImJavaApi
()
.
getConsultAssistantUidRequest
(
location
,
ffrom2
)
.
getConsultAssistantUidRequest
(
location
,
ffrom2
,
answerQuestionId
,
questionPaperId
)
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
({
uidBean
->
...
...
m-im/src/main/java/com/yidianling/uikit/custom/http/response/question/QuestionPaperBean.java
View file @
12a234b2
...
...
@@ -3,6 +3,7 @@ package com.yidianling.uikit.custom.http.response.question;
import
java.util.Map
;
public
class
QuestionPaperBean
{
//试卷id
public
String
id
;
public
String
createTime
;
public
String
updateTime
;
...
...
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