Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
B
byh-family-doctor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
包
包
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
杨凯
byh-family-doctor
Commits
234b629f
提交
234b629f
authored
3月 27, 2024
作者:
杨凯
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:家庭医生初始化
上级
215ed4b6
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
38 行增加
和
23 行删除
+38
-23
PatientSignInfo.java
...om/ebaiyihui/family/doctor/common/bo/PatientSignInfo.java
+11
-2
CommonConstants.java
...amily/doctor/server/common/constants/CommonConstants.java
+4
-0
ImChatTemplateImpl.java
...family/doctor/server/service/impl/ImChatTemplateImpl.java
+23
-21
没有找到文件。
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/bo/PatientSignInfo.java
浏览文件 @
234b629f
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
bo
;
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
bo
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.List
;
import
java.util.List
;
...
@@ -65,4 +64,14 @@ public class PatientSignInfo {
...
@@ -65,4 +64,14 @@ public class PatientSignInfo {
* 团队成员信息(个人这个值为null)
* 团队成员信息(个人这个值为null)
*/
*/
private
List
<
MemberInfo
>
memberInfos
;
private
List
<
MemberInfo
>
memberInfos
;
/**
* 医生头像图片地址
*/
private
String
doctorHeadPortrait
;
/**
* 医生职称
*/
private
String
doctorProfessional
;
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/common/constants/CommonConstants.java
浏览文件 @
234b629f
...
@@ -144,4 +144,8 @@ public class CommonConstants {
...
@@ -144,4 +144,8 @@ public class CommonConstants {
public
static
final
String
SUPPLIER_CODE
=
"ZhongKang"
;
public
static
final
String
SUPPLIER_CODE
=
"ZhongKang"
;
public
static
final
String
SUPPLIER_CODE_JTYS
=
"zhongkang_mfd"
;
public
static
final
String
SUPPLIER_CODE_JTYS
=
"zhongkang_mfd"
;
public
static
final
String
USER_ACTION
=
"2000"
;
public
static
final
String
MSG_TYPE
=
"PICTURE"
;
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/ImChatTemplateImpl.java
浏览文件 @
234b629f
...
@@ -185,26 +185,26 @@ public class ImChatTemplateImpl implements ImChatTemplate {
...
@@ -185,26 +185,26 @@ public class ImChatTemplateImpl implements ImChatTemplate {
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
if
(
reportDetailVo
.
getReportType
().
equals
(
1
))
{
if
(
reportDetailVo
.
getReportType
().
equals
(
1
))
{
List
<
Map
<
String
,
Object
>>
mapList
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
mapList
=
new
ArrayList
<>();
map
.
put
(
"UUID"
,
UUIDUtil
.
getUUID
());
map
.
put
(
"ImageFormat"
,
1
);
for
(
ReportDetailItemVo
reportDetailItemVo
:
reportDetailItemVos
)
{
if
(
reportDetailItemVo
.
getFileType
().
equals
(
1
))
{
Map
<
String
,
Object
>
imageMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
imageMap
=
new
HashMap
<>();
imageMap
.
put
(
"Type"
,
1
);
imageMap
.
put
(
"UserAction"
,
CommonConstants
.
USER_ACTION
);
imageMap
.
put
(
"URL"
,
reportDetailItemVo
.
getFileUrl
());
imageMap
.
put
(
"applicationCode"
,
IMInformConstants
.
IM_SYSTEM_BUSINESS_CODE
);
imageMap
.
put
(
"appointmentId"
,
sendImMsgDTO
.
getAdmId
());
imageMap
.
put
(
"attacheUrl"
,
reportDetailItemVos
.
get
(
0
).
getFileUrl
());
imageMap
.
put
(
"businessCode"
,
IMInformConstants
.
IM_SYSTEM_BUSINESS_CODE
);
imageMap
.
put
(
"doctorHeadUrl"
,
patientSignInfo
.
getDoctorHeadPortrait
());
imageMap
.
put
(
"doctorName"
,
patientSignInfo
.
getDoctorName
());
imageMap
.
put
(
"msgId"
,
UUIDUtil
.
getUUID
());
imageMap
.
put
(
"msgType"
,
CommonConstants
.
MSG_TYPE
);
imageMap
.
put
(
"senderName"
,
patientSignInfo
.
getDoctorName
());
imageMap
.
put
(
"senderProfessional"
,
patientSignInfo
.
getDoctorProfessional
());
imageMap
.
put
(
"team"
,
false
);
imageMap
.
put
(
"teamFlag"
,
0
);
imageMap
.
put
(
"toApplicationCode"
,
IMInformConstants
.
IM_SYSTEM_BUSINESS_CODE
);
mapList
.
add
(
imageMap
);
mapList
.
add
(
imageMap
);
}
}
map
.
put
(
"data"
,
mapList
);
map
.
put
(
"ImageInfoArray"
,
mapList
);
msgType
=
"TIMCustomElem"
;
msgType
=
"TIMImageElem"
;
}
else
{
map
.
put
(
"UUID"
,
UUIDUtil
.
getUUID
());
map
.
put
(
"URL"
,
reportDetailItemVos
.
get
(
0
).
getFileUrl
());
map
.
put
(
"FileName"
,
StringUtils
.
isEmpty
(
reportDetailVo
.
getReportName
())
?
ReportTypeEnum
.
getDesc
(
reportDetailVo
.
getReportType
())
:
reportDetailVo
.
getReportName
());
map
.
put
(
"Download_Flag"
,
"2"
);
msgType
=
"TIMFileElem"
;
}
}
content
=
JSONObject
.
toJSONString
(
map
);
content
=
JSONObject
.
toJSONString
(
map
);
}
else
if
(
i
==
2
)
{
}
else
if
(
i
==
2
)
{
...
@@ -309,6 +309,8 @@ public class ImChatTemplateImpl implements ImChatTemplate {
...
@@ -309,6 +309,8 @@ public class ImChatTemplateImpl implements ImChatTemplate {
return
new
PatientSignInfo
();
return
new
PatientSignInfo
();
}
}
patientSignInfo
.
setDoctorUserId
(
userInfoByUserIdRespVO
.
getUserId
());
patientSignInfo
.
setDoctorUserId
(
userInfoByUserIdRespVO
.
getUserId
());
patientSignInfo
.
setDoctorHeadPortrait
(
doctorInfo
.
getData
().
getPortrait
());
patientSignInfo
.
setDoctorProfessional
(
doctorInfo
.
getData
().
getTitle
());
log
.
info
(
"patientSignInfo:{}"
+
JSON
.
toJSONString
(
patientSignInfo
));
log
.
info
(
"patientSignInfo:{}"
+
JSON
.
toJSONString
(
patientSignInfo
));
return
patientSignInfo
;
return
patientSignInfo
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论