Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
B
byh-family-doctor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
包
包
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
杨凯
byh-family-doctor
Commits
74622231
提交
74622231
authored
3月 27, 2024
作者:
杨凯
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:家庭医生初始化
上级
6038ee0d
隐藏空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
227 行增加
和
0 行删除
+227
-0
ImNoReadMsgDTO.java
...om/ebaiyihui/family/doctor/common/dto/ImNoReadMsgDTO.java
+17
-0
MasterUrlDTO.java
.../com/ebaiyihui/family/doctor/common/dto/MasterUrlDTO.java
+19
-0
ReportDetailDTO.java
...m/ebaiyihui/family/doctor/common/dto/ReportDetailDTO.java
+15
-0
ImNoReadMsgVo.java
.../com/ebaiyihui/family/doctor/common/vo/ImNoReadMsgVo.java
+21
-0
ReportDetailItemVo.java
...ebaiyihui/family/doctor/common/vo/ReportDetailItemVo.java
+17
-0
ReportDetailVo.java
...com/ebaiyihui/family/doctor/common/vo/ReportDetailVo.java
+31
-0
UrlConstants.java
...i/family/doctor/server/common/constants/UrlConstants.java
+10
-0
ImMsgTemplateController.java
...ily/doctor/server/controller/ImMsgTemplateController.java
+14
-0
PatientSignController.java
...amily/doctor/server/controller/PatientSignController.java
+13
-0
ImMsgTemplateService.java
...ui/family/doctor/server/service/ImMsgTemplateService.java
+4
-0
PatientSignService.java
...ihui/family/doctor/server/service/PatientSignService.java
+3
-0
ImMsgTemplateServiceImpl.java
.../doctor/server/service/impl/ImMsgTemplateServiceImpl.java
+7
-0
PatientSignServiceImpl.java
...ly/doctor/server/service/impl/PatientSignServiceImpl.java
+19
-0
ThirdOrderPushUtil.java
...aiyihui/family/doctor/server/util/ThirdOrderPushUtil.java
+37
-0
没有找到文件。
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/dto/ImNoReadMsgDTO.java
0 → 100644
浏览文件 @
74622231
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
dto
;
import
lombok.Data
;
/**
* @ClassName: ImNoReadMsgDTO
* @Author:yanliang
* @Date:2024/3/27 13:46
* @Description
*/
@Data
public
class
ImNoReadMsgDTO
{
private
String
phone
;
private
String
doctorId
;
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/dto/MasterUrlDTO.java
0 → 100644
浏览文件 @
74622231
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
dto
;
import
lombok.Data
;
/**
* @ClassName: MasterUrlDTO
* @Author:yanliang
* @Date:2024/3/27 13:55
* @Description
*/
@Data
public
class
MasterUrlDTO
{
private
String
phone
;
private
String
signSeqId
;
private
String
type
;
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/dto/ReportDetailDTO.java
0 → 100644
浏览文件 @
74622231
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
dto
;
import
lombok.Data
;
/**
* @ClassName: ReportDetailDTO
* @Author:yanliang
* @Date:2024/3/27 14:14
* @Description
*/
@Data
public
class
ReportDetailDTO
{
private
String
thirdId
;
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/vo/ImNoReadMsgVo.java
0 → 100644
浏览文件 @
74622231
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
vo
;
import
lombok.Data
;
/**
* @ClassName: ImNoReadMsgVo
* @Author:yanliang
* @Date:2024/3/27 13:47
* @Description
*/
@Data
public
class
ImNoReadMsgVo
{
private
String
userName
;
private
String
messageNum
;
private
String
groupId
;
private
String
timestamp
;
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/vo/ReportDetailItemVo.java
0 → 100644
浏览文件 @
74622231
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
vo
;
import
lombok.Data
;
/**
* @ClassName: ReportDetailItemVo
* @Author:yanliang
* @Date:2024/3/27 14:17
* @Description
*/
@Data
public
class
ReportDetailItemVo
{
private
String
fileUrl
;
private
String
fileType
;
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/vo/ReportDetailVo.java
0 → 100644
浏览文件 @
74622231
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
vo
;
import
lombok.Data
;
import
java.util.List
;
/**
* @ClassName: ReportDetailVo
* @Author:yanliang
* @Date:2024/3/27 14:15
* @Description
*/
@Data
public
class
ReportDetailVo
{
private
String
reprotName
;
private
String
institution
;
private
String
department
;
private
String
diagnosis
;
private
String
reportType
;
private
String
createTime
;
private
String
examinationTime
;
private
List
<
ReportDetailItemVo
>
reportFileList
;
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/common/constants/UrlConstants.java
浏览文件 @
74622231
...
...
@@ -65,4 +65,14 @@ public class UrlConstants {
* 查询用户基础指标信息
*/
public
static
final
String
USER_BASIC_IND_URL
=
"/auth/v1.0.0/userBasicIndicators"
;
/**
* 查询资源落地页
*/
public
static
final
String
MASTER_URL
=
"/auth/v1.0.0/family_doctor_master_url"
;
/**
* 查询用户报告详情
*/
public
static
final
String
REPORT_DETAIL_URL
=
"/auth/v1.0.0/report_detail"
;
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/controller/ImMsgTemplateController.java
浏览文件 @
74622231
package
com
.
ebaiyihui
.
family
.
doctor
.
server
.
controller
;
import
com.ebaiyihui.family.doctor.common.dto.ImNoReadMsgDTO
;
import
com.ebaiyihui.family.doctor.common.dto.SendImMsgDTO
;
import
com.ebaiyihui.family.doctor.common.vo.ImNoReadMsgVo
;
import
com.ebaiyihui.family.doctor.server.service.ImMsgTemplateService
;
import
com.ebaiyihui.framework.response.BaseResponse
;
import
io.swagger.annotations.Api
;
...
...
@@ -39,4 +41,16 @@ public class ImMsgTemplateController {
}
return
BaseResponse
.
success
(
"消息推送成功"
);
}
@RequestMapping
(
value
=
"/queryImNoReadMsg"
,
method
=
RequestMethod
.
POST
)
public
BaseResponse
<
ImNoReadMsgVo
>
queryImNoReadMsg
(
@RequestBody
ImNoReadMsgDTO
reqVo
,
BindingResult
bindingResult
)
{
BaseResponse
<
ImNoReadMsgVo
>
response
=
null
;
try
{
response
=
imMsgTemplateService
.
queryImNoReadMsg
(
reqVo
);
}
catch
(
Exception
e
)
{
return
BaseResponse
.
error
(
e
.
getMessage
());
}
return
response
;
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/controller/PatientSignController.java
浏览文件 @
74622231
...
...
@@ -113,4 +113,17 @@ public class PatientSignController {
public
BaseResponse
<
IMQueryUserLoginRspVO
>
querySdkLogin
(
@RequestBody
IMQueryUserLoginReqVO
reqVO
)
{
return
patientSignService
.
querySdkLogin
(
reqVO
);
}
@RequestMapping
(
value
=
"/queryMasterUrl"
,
method
=
RequestMethod
.
POST
)
public
BaseResponse
<
String
>
queryMasterUrl
(
@RequestBody
MasterUrlDTO
reqVo
,
BindingResult
bindingResult
)
{
BaseResponse
<
String
>
response
=
null
;
try
{
response
=
patientSignService
.
queryMasterUrl
(
reqVo
);
}
catch
(
Exception
e
)
{
return
BaseResponse
.
error
(
e
.
getMessage
());
}
return
response
;
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/ImMsgTemplateService.java
浏览文件 @
74622231
package
com
.
ebaiyihui
.
family
.
doctor
.
server
.
service
;
import
com.ebaiyihui.family.doctor.common.dto.ImNoReadMsgDTO
;
import
com.ebaiyihui.family.doctor.common.dto.SendImMsgDTO
;
import
com.ebaiyihui.family.doctor.common.vo.ImNoReadMsgVo
;
import
com.ebaiyihui.framework.response.BaseResponse
;
/**
...
...
@@ -13,4 +15,6 @@ import com.ebaiyihui.framework.response.BaseResponse;
public
interface
ImMsgTemplateService
{
BaseResponse
<
String
>
sendImMsg
(
SendImMsgDTO
reqVo
);
BaseResponse
<
ImNoReadMsgVo
>
queryImNoReadMsg
(
ImNoReadMsgDTO
reqVo
);
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/PatientSignService.java
浏览文件 @
74622231
...
...
@@ -3,6 +3,7 @@ package com.ebaiyihui.family.doctor.server.service;
import
com.ebaiyihui.family.doctor.common.dto.ImAccountReqDTO
;
import
com.ebaiyihui.family.doctor.common.dto.ImInfoDetailDocReqDTO
;
import
com.ebaiyihui.family.doctor.common.dto.ImInfoListDocReqDTO
;
import
com.ebaiyihui.family.doctor.common.dto.MasterUrlDTO
;
import
com.ebaiyihui.family.doctor.common.vo.ImAccountVo
;
import
com.ebaiyihui.family.doctor.common.vo.ImInfoDetailDocResVo
;
import
com.ebaiyihui.family.doctor.common.vo.ImInfoListResVo
;
...
...
@@ -50,4 +51,6 @@ public interface PatientSignService {
PatientSignEntity
getOneByPhone
(
String
phone
);
int
updateById
(
PatientSignEntity
patientSignEntity
);
BaseResponse
<
String
>
queryMasterUrl
(
MasterUrlDTO
reqVo
);
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/ImMsgTemplateServiceImpl.java
浏览文件 @
74622231
...
...
@@ -4,7 +4,9 @@ import com.alibaba.fastjson.JSON;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.ebaiyihui.family.doctor.common.bo.Components
;
import
com.ebaiyihui.family.doctor.common.bo.MsgContent
;
import
com.ebaiyihui.family.doctor.common.dto.ImNoReadMsgDTO
;
import
com.ebaiyihui.family.doctor.common.dto.SendImMsgDTO
;
import
com.ebaiyihui.family.doctor.common.vo.ImNoReadMsgVo
;
import
com.ebaiyihui.family.doctor.server.entity.ImMsgTemplateEntity
;
import
com.ebaiyihui.family.doctor.server.exception.BusinessException
;
import
com.ebaiyihui.family.doctor.server.mapper.ImMsgTemplateMapper
;
...
...
@@ -54,4 +56,9 @@ public class ImMsgTemplateServiceImpl implements ImMsgTemplateService {
}
return
BaseResponse
.
success
(
"消息推送成功"
);
}
@Override
public
BaseResponse
<
ImNoReadMsgVo
>
queryImNoReadMsg
(
ImNoReadMsgDTO
reqVo
)
{
return
null
;
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/PatientSignServiceImpl.java
浏览文件 @
74622231
...
...
@@ -5,9 +5,11 @@ import com.alibaba.fastjson.JSONObject;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.doctoruser.api.pojo.base.dto.doctor.QueryPersonnelInfoReq
;
import
com.doctoruser.api.pojo.base.vo.doctor.PersonnelInfo
;
import
com.ebaiyihui.family.doctor.common.bo.Result
;
import
com.ebaiyihui.family.doctor.common.dto.ImAccountReqDTO
;
import
com.ebaiyihui.family.doctor.common.dto.ImInfoDetailDocReqDTO
;
import
com.ebaiyihui.family.doctor.common.dto.ImInfoListDocReqDTO
;
import
com.ebaiyihui.family.doctor.common.dto.MasterUrlDTO
;
import
com.ebaiyihui.family.doctor.common.vo.*
;
import
com.ebaiyihui.family.doctor.server.common.constants.IMInformConstants
;
import
com.ebaiyihui.family.doctor.server.common.constants.ImConstants
;
...
...
@@ -24,6 +26,7 @@ import com.ebaiyihui.family.doctor.server.service.ImChatTemplate;
import
com.ebaiyihui.family.doctor.server.service.PatientSignService
;
import
com.ebaiyihui.family.doctor.server.util.IDCardUtil
;
import
com.ebaiyihui.family.doctor.server.util.PageUtil
;
import
com.ebaiyihui.family.doctor.server.util.ThirdOrderPushUtil
;
import
com.ebaiyihui.framework.response.BaseResponse
;
import
com.ebaiyihui.imforward.client.vo.*
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -63,6 +66,9 @@ public class PatientSignServiceImpl implements PatientSignService {
@Autowired
private
ImChatTemplate
imChatTemplate
;
@Autowired
private
ThirdOrderPushUtil
thirdOrderPushUtil
;
@Override
public
BaseResponse
<
List
<
IMSingleMsgResultVO
>>
getAllMsgContent
(
IMQueryMsgReqVO
reqVO
)
{
...
...
@@ -311,6 +317,19 @@ public class PatientSignServiceImpl implements PatientSignService {
return
patientSignMapper
.
updateById
(
patientSignEntity
);
}
@Override
public
BaseResponse
<
String
>
queryMasterUrl
(
MasterUrlDTO
reqVo
)
{
String
resulStr
=
""
;
String
result
=
thirdOrderPushUtil
.
getMasterUrl
(
reqVo
);
if
(
StringUtils
.
isNotEmpty
(
result
))
{
Result
<
String
>
muResult
=
JSON
.
parseObject
(
result
,
Result
.
class
);
if
(
muResult
.
isSuccess
())
{
resulStr
=
muResult
.
getData
();
}
}
return
BaseResponse
.
success
(
resulStr
);
}
public
ImAccountVo
getImAccounts
(
PatientSignEntity
patientSignEntity
,
String
admId
,
String
imAppCode
,
String
doctorId
)
{
ImAccountVo
admission
=
new
ImAccountVo
();
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/util/ThirdOrderPushUtil.java
浏览文件 @
74622231
...
...
@@ -261,4 +261,41 @@ public class ThirdOrderPushUtil {
}
}
/**
* 查询资源落地页
*
* @param masterUrlDTO
*/
public
String
getMasterUrl
(
MasterUrlDTO
masterUrlDTO
)
{
String
result
=
""
;
try
{
String
param
=
JSONObject
.
toJSONString
(
masterUrlDTO
);
log
.
info
(
"getMasterUrl请求入参{}"
,
param
);
result
=
HttpKit
.
jsonPost
(
projProperties
.
getFamilyDoctorThirdUrl
()
+
UrlConstants
.
MASTER_URL
,
param
,
getThirdHead
(
masterUrlDTO
));
log
.
info
(
"getMasterUrl请求返参{}"
,
param
);
}
catch
(
Exception
e
)
{
log
.
error
(
"getMasterUrl请求失败:{}"
,
e
);
}
return
result
;
}
/**
* 查询用户报告详情
*
* @param reportDetailDTO
*/
public
String
getReportDetail
(
ReportDetailDTO
reportDetailDTO
)
{
String
result
=
""
;
try
{
String
param
=
JSONObject
.
toJSONString
(
reportDetailDTO
);
log
.
info
(
"getReportDetail请求入参{}"
,
param
);
result
=
HttpKit
.
jsonPost
(
projProperties
.
getFamilyDoctorThirdUrl
()
+
UrlConstants
.
REPORT_DETAIL_URL
,
param
,
getThirdHead
(
reportDetailDTO
));
log
.
info
(
"getReportDetail请求返参{}"
,
param
);
}
catch
(
Exception
e
)
{
log
.
error
(
"getReportDetail请求失败:{}"
,
e
);
}
return
result
;
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论