Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
B
byh-family-doctor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
包
包
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
杨凯
byh-family-doctor
Commits
4cf138ff
提交
4cf138ff
authored
3月 20, 2024
作者:
杨凯
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:家庭医生初始化
上级
7c9e5596
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
29 行增加
和
5 行删除
+29
-5
RequestGetScheduleForWeekDTO.java
...amily/doctor/common/dto/RequestGetScheduleForWeekDTO.java
+7
-0
ImInfoResVo.java
...va/com/ebaiyihui/family/doctor/common/vo/ImInfoResVo.java
+3
-0
PatientSignServiceImpl.java
...ly/doctor/server/service/impl/PatientSignServiceImpl.java
+14
-3
ScheduleRecordServiceImpl.java
...doctor/server/service/impl/ScheduleRecordServiceImpl.java
+5
-2
没有找到文件。
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/dto/RequestGetScheduleForWeekDTO.java
浏览文件 @
4cf138ff
...
...
@@ -14,12 +14,19 @@ import java.util.Date;
@Data
public
class
RequestGetScheduleForWeekDTO
{
@ApiModelProperty
(
"医院id"
)
private
Long
hospitalId
;
@ApiModelProperty
(
"部门id"
)
private
Long
deptId
;
@ApiModelProperty
(
"第几周"
)
private
Integer
week
;
@ApiModelProperty
(
"医生id"
)
private
String
doctorId
;
@ApiModelProperty
(
"医生名称"
)
private
String
doctorName
;
@ApiModelProperty
(
"业务类型"
)
...
...
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/vo/ImInfoResVo.java
浏览文件 @
4cf138ff
...
...
@@ -33,6 +33,9 @@ public class ImInfoResVo {
@ApiModelProperty
(
"医生姓名"
)
private
String
doctorName
;
@ApiModelProperty
(
"医生科室id"
)
private
String
deptId
;
@ApiModelProperty
(
"IM历史消息"
)
private
List
<
IMMsgResultVo
>
iMMsgVo
;
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/PatientSignServiceImpl.java
浏览文件 @
4cf138ff
...
...
@@ -9,6 +9,7 @@ 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.vo.*
;
import
com.ebaiyihui.family.doctor.server.common.constants.CommonConstants
;
import
com.ebaiyihui.family.doctor.server.common.constants.IMInformConstants
;
import
com.ebaiyihui.family.doctor.server.common.constants.ImConstants
;
import
com.ebaiyihui.family.doctor.server.common.enums.StatusEnum
;
...
...
@@ -134,11 +135,21 @@ public class PatientSignServiceImpl implements PatientSignService {
BaseResponse
<
PersonnelInfo
>
res
=
doctorCilent
.
queryPersonnelInfo
(
queryPersonnelInfoReq
);
if
(
res
.
isSuccess
())
{
resVo
.
setDoctorPortrait
(
res
.
getData
().
getPortrait
());
resVo
.
setDeptId
(
String
.
valueOf
(
res
.
getData
().
getDeptId
()));
}
List
<
String
>
appointmentId
=
new
ArrayList
<>();
appointmentId
.
add
(
admId
);
imQueryMsgReqVO
.
setAppointmentId
(
appointmentId
);
// List<String> appointmentId = new ArrayList<>();
QueryWrapper
<
PatientSignEntity
>
listWrapper
=
new
QueryWrapper
<>();
PatientSignEntity
pg
=
new
PatientSignEntity
();
pg
.
setDoctorId
(
patientSignEntity
.
getDoctorId
());
pg
.
setDeptId
(
patientSignEntity
.
getDeptId
());
pg
.
setAppCode
(
CommonConstants
.
APP_CODE
);
listWrapper
.
setEntity
(
patientSign
);
listWrapper
.
in
(
"sign_status"
,
1
,
2
);
List
<
PatientSignEntity
>
patientSignEntities
=
patientSignMapper
.
selectList
(
listWrapper
);
// appointmentId.add(admId);
imQueryMsgReqVO
.
setAppointmentId
(
patientSignEntities
.
stream
().
map
(
PatientSignEntity:
:
getAdmId
).
collect
(
Collectors
.
toList
()));
BaseResponse
<
List
<
IMSingleMsgResultVO
>>
allMsgContent
=
getAllMsgContent
(
imQueryMsgReqVO
);
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/ScheduleRecordServiceImpl.java
浏览文件 @
4cf138ff
...
...
@@ -137,8 +137,9 @@ public class ScheduleRecordServiceImpl implements ScheduleRecordService {
QueryWrapper
<
ScheduleRecordEntity
>
wrapper
=
new
QueryWrapper
();
ScheduleRecordEntity
entity
=
new
ScheduleRecordEntity
();
entity
.
setDeptId
(
JSON
.
toJSONString
(
requestGetScheduleForWeekDTO
.
getDeptId
()));
entity
.
setHospitalId
(
JSON
.
toJSONString
(
requestGetScheduleForWeekDTO
.
getHospitalId
()));
entity
.
setDoctorId
(
requestGetScheduleForWeekDTO
.
getDoctorId
());
entity
.
setDeptId
(
String
.
valueOf
(
requestGetScheduleForWeekDTO
.
getDeptId
()));
entity
.
setHospitalId
(
String
.
valueOf
(
requestGetScheduleForWeekDTO
.
getHospitalId
()));
wrapper
.
setEntity
(
entity
);
wrapper
.
between
(
"schedule_date"
,
startDate
,
endDate
);
...
...
@@ -158,6 +159,8 @@ public class ScheduleRecordServiceImpl implements ScheduleRecordService {
QueryWrapper
<
ScheduleRecordEntity
>
queryWrapper
=
new
QueryWrapper
<>();
ScheduleRecordEntity
timeIntervalEntity
=
new
ScheduleRecordEntity
();
timeIntervalEntity
.
setHospitalId
(
String
.
valueOf
(
requestGetScheduleForWeekDTO
.
getHospitalId
()));
timeIntervalEntity
.
setDoctorId
(
requestGetScheduleForWeekDTO
.
getDoctorId
());
timeIntervalEntity
.
setDeptId
(
String
.
valueOf
(
requestGetScheduleForWeekDTO
.
getDeptId
()));
timeIntervalEntity
.
setScheduleRange
(
j
);
queryWrapper
.
setEntity
(
timeIntervalEntity
);
ScheduleRecordEntity
scheduleTimeIntervalEntity
=
scheduleRecordMapper
.
selectOne
(
queryWrapper
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论