Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
B
byh-family-doctor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
包
包
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
杨凯
byh-family-doctor
Commits
8a2ea6a1
提交
8a2ea6a1
authored
5月 29, 2024
作者:
luzhangjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:查询聊天记录
上级
137562ce
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
60 行增加
和
20 行删除
+60
-20
OrderDetailsResVo.java
.../ebaiyihui/family/doctor/common/vo/OrderDetailsResVo.java
+7
-0
PatientMedicalRecordController.java
...tor/server/controller/PatientMedicalRecordController.java
+2
-4
PatientMedicalRecordService.java
...ly/doctor/server/service/PatientMedicalRecordService.java
+0
-13
OrderManagementServiceImpl.java
...octor/server/service/impl/OrderManagementServiceImpl.java
+51
-3
没有找到文件。
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/vo/OrderDetailsResVo.java
浏览文件 @
8a2ea6a1
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
vo
;
import
com.ebaiyihui.imforward.client.vo.IMSingleMsgResultVO
;
import
lombok.Data
;
import
java.util.List
;
...
...
@@ -19,5 +20,11 @@ public class OrderDetailsResVo {
private
List
<
GetPresListResVO
>
presListResVOS
;
/**
* 沟通记录
*/
private
List
<
IMSingleMsgResultVO
>
imSingleMsgResultVOS
;
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/controller/PatientMedicalRecordController.java
浏览文件 @
8a2ea6a1
...
...
@@ -65,12 +65,10 @@ public class PatientMedicalRecordController {
return
patientMedicalRecordService
.
getBaseInfoByAdmId
(
param
.
getAdmId
());
}
@ApiOperation
(
value
=
"
test"
,
notes
=
"test
"
)
@RequestMapping
(
value
=
"/
test
"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
value
=
"
手动挂号"
,
notes
=
"手动给已签约的订单挂号云his
"
)
@RequestMapping
(
value
=
"/
manualReg
"
,
method
=
RequestMethod
.
GET
)
public
BaseResponse
<
Object
>
test
(
@RequestParam
String
admId
)
{
PatientSignEntity
patientSignEntity
=
patientSignMapper
.
queryByAdmId
(
admId
);
BaseResponse
<
Object
>
response
=
hisTemplateService
.
registrationAndTreatment
(
patientSignEntity
);
if
(
response
.
isSuccess
()){
patientSignEntity
.
setClinicCode
(
response
.
getData
().
toString
());
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/PatientMedicalRecordService.java
浏览文件 @
8a2ea6a1
package
com
.
ebaiyihui
.
family
.
doctor
.
server
.
service
;
import
com.ebaiyihui.family.doctor.common.dto.InsertPatientMedicalRecordDTO
;
import
com.ebaiyihui.family.doctor.common.dto.InvalidMedicalRecordDTO
;
import
com.ebaiyihui.family.doctor.common.dto.UpdatePatientMedicalRecordDTO
;
import
com.ebaiyihui.family.doctor.common.vo.InsertPatientMedicalRecordVO
;
import
com.ebaiyihui.family.doctor.common.vo.PatientCaseDetail
;
import
com.ebaiyihui.framework.response.BaseResponse
;
...
...
@@ -15,14 +10,6 @@ import java.util.Objects;
*/
public
interface
PatientMedicalRecordService
{
// BaseResponse<InsertPatientMedicalRecordVO> insertPatientMedicalRecord(InsertPatientMedicalRecordDTO dto);
//
// BaseResponse<InsertPatientMedicalRecordVO> updatePatientMedicalRecord(UpdatePatientMedicalRecordDTO dto);
//
// BaseResponse<PatientMedicalRecordVO> detailMedicalRecord(InvalidMedicalRecordDTO dto);
//
// BaseResponse<Object> insertOrUpdate(InsertPatientMedicalRecordDTO dto);
PatientCaseDetail
getMedicalInfoByAdmId
(
String
admId
);
BaseResponse
<
Object
>
treatmentCard
(
String
admId
);
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/OrderManagementServiceImpl.java
浏览文件 @
8a2ea6a1
...
...
@@ -5,10 +5,12 @@ import com.doctoruser.api.pojo.base.dto.doctor.QueryPersonnelInfoReq;
import
com.doctoruser.api.pojo.base.vo.doctor.PersonnelInfo
;
import
com.ebaiyihui.family.doctor.common.dto.*
;
import
com.ebaiyihui.family.doctor.common.vo.*
;
import
com.ebaiyihui.family.doctor.server.common.constants.IMInformConstants
;
import
com.ebaiyihui.family.doctor.server.common.constants.ProjProperties
;
import
com.ebaiyihui.family.doctor.server.entity.PatientEntity
;
import
com.ebaiyihui.family.doctor.server.entity.PatientSignEntity
;
import
com.ebaiyihui.family.doctor.server.feign.DoctorInfofeignClient
;
import
com.ebaiyihui.family.doctor.server.feign.IMSyncMsgClient
;
import
com.ebaiyihui.family.doctor.server.mapper.PatientMapper
;
import
com.ebaiyihui.family.doctor.server.mapper.PatientSignMapper
;
import
com.ebaiyihui.family.doctor.server.service.OrderManagementService
;
...
...
@@ -16,12 +18,14 @@ import com.ebaiyihui.family.doctor.server.util.IDCardUtil;
import
com.ebaiyihui.family.doctor.server.util.PageUtil
;
import
com.ebaiyihui.framework.response.BaseResponse
;
import
com.ebaiyihui.framework.utils.HttpKit
;
import
com.ebaiyihui.imforward.client.vo.IMQueryMsgReqVO
;
import
com.ebaiyihui.imforward.client.vo.IMSingleMsgResultVO
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.
List
;
import
java.util.
Object
s
;
import
java.util.
*
;
import
java.util.
stream.Collector
s
;
@Service
@Slf4j
...
...
@@ -39,6 +43,9 @@ public class OrderManagementServiceImpl implements OrderManagementService {
@Autowired
private
DoctorInfofeignClient
doctorInfofeignClient
;
@Autowired
private
IMSyncMsgClient
imSyncMsgClient
;
@Override
public
BaseResponse
<
PageUtil
<
OrderListResVo
>>
orderList
(
OrderListReqDTO
param
)
{
log
.
info
(
"查询订单列表入参:{}"
,
JSON
.
toJSONString
(
param
));
...
...
@@ -68,12 +75,50 @@ public class OrderManagementServiceImpl implements OrderManagementService {
resVo
.
setPresListResVOS
(
getPresList
(
patientSignEntity
.
getAdmId
()));
// 订单信息
resVo
.
setOrderInfo
(
buildOrderInfo
(
patientSignEntity
));
// 沟通记录 todo
// 沟通记录
resVo
.
setImSingleMsgResultVOS
(
queryImMsg
(
patientSignEntity
));
return
BaseResponse
.
success
(
resVo
);
}
/**
* 获取聊天记录
*/
private
List
<
IMSingleMsgResultVO
>
queryImMsg
(
PatientSignEntity
patientSignEntity
){
List
<
IMSingleMsgResultVO
>
imSingleMsgResultVOS
=
new
ArrayList
<>();
IMQueryMsgReqVO
reqVO
=
new
IMQueryMsgReqVO
();
List
<
String
>
admIdList
=
new
ArrayList
<>();
admIdList
.
add
(
patientSignEntity
.
getAdmId
());
reqVO
.
setAppointmentId
(
admIdList
);
reqVO
.
setBusinessCode
(
"jtys"
);
reqVO
.
setPage
(
0
);
reqVO
.
setPageSize
(
9999
);
reqVO
.
setMsgType
(
"1"
);
reqVO
.
setUserId
(
patientSignEntity
.
getPatientUserId
());
BaseResponse
<
List
<
IMSingleMsgResultVO
>>
listBaseResponse
=
imSyncMsgClient
.
queryImMsg
(
reqVO
);
List
<
IMSingleMsgResultVO
>
imSingleMsgResultVoS
=
listBaseResponse
.
getData
();
if
(
null
!=
imSingleMsgResultVoS
)
{
Iterator
<
IMSingleMsgResultVO
>
it
=
imSingleMsgResultVoS
.
iterator
();
while
(
it
.
hasNext
())
{
IMSingleMsgResultVO
x
=
it
.
next
();
if
(
"administrator"
.
equals
(
x
.
getSender
()))
{
it
.
remove
();
}
else
if
(
x
.
getSender
().
contains
(
IMInformConstants
.
PATIENT_APPLICATION_CODE
))
{
x
.
setSender
(
IMInformConstants
.
PATIENT_APPLICATION_CODE
);
}
else
if
(
x
.
getSender
().
contains
(
IMInformConstants
.
DOCTOR_APPLICATION_CODE
))
{
x
.
setSender
(
IMInformConstants
.
DOCTOR_APPLICATION_CODE
);
}
}
imSingleMsgResultVOS
=
imSingleMsgResultVoS
.
stream
().
sorted
(
Comparator
.
comparing
(
IMSingleMsgResultVO:
:
getSendTime
)).
collect
(
Collectors
.
toList
());
}
return
imSingleMsgResultVOS
;
}
/**
* 构建订单基础信息
*/
private
OrderInfo
buildOrderInfo
(
PatientSignEntity
patientSignEntity
)
{
log
.
info
(
"buildOrderInfo:{}"
,
JSON
.
toJSONString
(
patientSignEntity
));
// 获取患者详情信息
...
...
@@ -103,6 +148,9 @@ public class OrderManagementServiceImpl implements OrderManagementService {
return
orderInfo
;
}
/**
* 获取处方信息
*/
private
List
<
GetPresListResVO
>
getPresList
(
String
admId
)
{
GetPresListReqVO
reqVo
=
new
GetPresListReqVO
();
reqVo
.
setAdmId
(
admId
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论