Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
B
byh-family-doctor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
包
包
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
杨凯
byh-family-doctor
Commits
530eb354
提交
530eb354
authored
3月 22, 2024
作者:
杨凯
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:家庭医生初始化
上级
dc0db529
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
25 行增加
和
18 行删除
+25
-18
ScheduleOfDayVo.java
...om/ebaiyihui/family/doctor/common/vo/ScheduleOfDayVo.java
+1
-1
PatientServiceImpl.java
...family/doctor/server/service/impl/PatientServiceImpl.java
+16
-12
ScheduleRecordServiceImpl.java
...doctor/server/service/impl/ScheduleRecordServiceImpl.java
+8
-5
没有找到文件。
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/vo/ScheduleOfDayVo.java
浏览文件 @
530eb354
...
@@ -13,7 +13,7 @@ import java.util.List;
...
@@ -13,7 +13,7 @@ import java.util.List;
@Data
@Data
public
class
ScheduleOfDayVo
{
public
class
ScheduleOfDayVo
{
private
ScheduleTimeSaveListVo
scheduleTimeSaveListVo
;
private
List
<
ScheduleTimeSaveListVo
>
scheduleTimeSaveListVo
;
private
List
<
ScheduleRecordVo
>
recordVoList
;
private
List
<
ScheduleRecordVo
>
recordVoList
;
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/PatientServiceImpl.java
浏览文件 @
530eb354
...
@@ -94,9 +94,8 @@ public class PatientServiceImpl implements PatientService {
...
@@ -94,9 +94,8 @@ public class PatientServiceImpl implements PatientService {
String
doctorName
=
reqVo
.
getDoctorName
();
String
doctorName
=
reqVo
.
getDoctorName
();
Long
deptId
=
reqVo
.
getDeptId
();
Long
deptId
=
reqVo
.
getDeptId
();
String
deptName
=
reqVo
.
getDeptName
();
String
deptName
=
reqVo
.
getDeptName
();
List
<
PatientSignEntity
>
patientSignEntities
=
new
ArrayList
<>();
if
(!
SignStatus
.
NORMAL
.
getValue
().
equals
(
reqVo
.
getSignStatus
()))
{
if
(!
SignStatus
.
NORMAL
.
getValue
().
equals
(
reqVo
.
getSignStatus
()))
{
patientSignEntities
=
getPatientSignList
(
reqVo
.
getPhone
(),
reqVo
.
getPackageOrderId
(),
List
<
PatientSignEntity
>
patientSignEntities
=
getPatientSignList
(
reqVo
.
getPhone
(),
reqVo
.
getPackageOrderId
(),
reqVo
.
getSignStatus
(),
StatusEnum
.
IN_CONSULTATION
.
getValue
());
reqVo
.
getSignStatus
(),
StatusEnum
.
IN_CONSULTATION
.
getValue
());
if
(!
patientSignEntities
.
isEmpty
())
{
if
(!
patientSignEntities
.
isEmpty
())
{
return
BaseResponse
.
error
(
"已经有进行中的签约或者改签医生,不能再进行签约或者改签!!!"
);
return
BaseResponse
.
error
(
"已经有进行中的签约或者改签医生,不能再进行签约或者改签!!!"
);
...
@@ -104,10 +103,12 @@ public class PatientServiceImpl implements PatientService {
...
@@ -104,10 +103,12 @@ public class PatientServiceImpl implements PatientService {
}
else
{
}
else
{
QueryWrapper
<
PatientSignEntity
>
psWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
PatientSignEntity
>
psWrapper
=
new
QueryWrapper
<>();
PatientSignEntity
patientSign
=
new
PatientSignEntity
();
PatientSignEntity
patientSign
=
new
PatientSignEntity
();
patientSign
.
setPatientPhone
(
reqVo
.
getPhone
());
if
(
Objects
.
nonNull
(
reqVo
.
getAdmId
()))
{
patientSign
.
setPackageOrderId
(
reqVo
.
getPackageOrderId
());
patientSign
.
setAdmId
(
reqVo
.
getAdmId
());
patientSign
.
setSignStatus
(
SignStatus
.
NORMAL
.
getValue
());
}
patientSign
.
setStatus
(
StatusEnum
.
IN_CONSULTATION
.
getValue
());
if
(
Objects
.
nonNull
(
reqVo
.
getSignSeqId
()))
{
patientSign
.
setId
(
Long
.
valueOf
(
reqVo
.
getSignSeqId
()));
}
psWrapper
.
setEntity
(
patientSign
);
psWrapper
.
setEntity
(
patientSign
);
PatientSignEntity
patientSignEntity
=
patientSignMapper
.
selectOne
(
psWrapper
);
PatientSignEntity
patientSignEntity
=
patientSignMapper
.
selectOne
(
psWrapper
);
if
(
Objects
.
nonNull
(
patientSignEntity
))
{
if
(
Objects
.
nonNull
(
patientSignEntity
))
{
...
@@ -121,11 +122,14 @@ public class PatientServiceImpl implements PatientService {
...
@@ -121,11 +122,14 @@ public class PatientServiceImpl implements PatientService {
deptId
=
Long
.
valueOf
(
scheduleRecordEntity
.
getDeptId
());
deptId
=
Long
.
valueOf
(
scheduleRecordEntity
.
getDeptId
());
deptName
=
scheduleRecordEntity
.
getDeptName
();
deptName
=
scheduleRecordEntity
.
getDeptName
();
}
}
PatientSignEntity
oldPatientSignEntity
=
new
PatientSignEntity
();
// 改签或者排班医生获取签约的id
// 改签或者排班医生获取签约的id
if
(!
SignStatus
.
SIGNED
.
getValue
().
equals
(
reqVo
.
getSignStatus
()))
{
if
(!
SignStatus
.
SIGNED
.
getValue
().
equals
(
reqVo
.
getSignStatus
()))
{
patientSignEntities
=
getPatientSignList
(
reqVo
.
getPhone
(),
reqVo
.
getPackageOrderId
(),
QueryWrapper
<
PatientSignEntity
>
psWrapper
=
new
QueryWrapper
<>();
SignStatus
.
SIGNED
.
getValue
(),
StatusEnum
.
IN_CONSULTATION
.
getValue
());
PatientSignEntity
patientSign
=
new
PatientSignEntity
();
patientSign
.
setAdmId
(
reqVo
.
getAdmId
());
psWrapper
.
setEntity
(
patientSign
);
oldPatientSignEntity
=
patientSignMapper
.
selectOne
(
psWrapper
);
}
}
// 处理换绑医生
// 处理换绑医生
...
@@ -171,9 +175,9 @@ public class PatientServiceImpl implements PatientService {
...
@@ -171,9 +175,9 @@ public class PatientServiceImpl implements PatientService {
patientSignEntity
.
setStatus
(
StatusEnum
.
IN_CONSULTATION
.
getValue
());
patientSignEntity
.
setStatus
(
StatusEnum
.
IN_CONSULTATION
.
getValue
());
patientSignEntity
.
setPackageOrderId
(
reqVo
.
getPackageOrderId
());
patientSignEntity
.
setPackageOrderId
(
reqVo
.
getPackageOrderId
());
patientSignEntity
.
setSignEndTime
(
signEndTime
);
patientSignEntity
.
setSignEndTime
(
signEndTime
);
log
.
info
(
"
patientSignEntities={}"
,
patientSignEntities
);
log
.
info
(
"
oldPatientSignEntity={}"
,
oldPatientSignEntity
);
if
(
!
patientSignEntities
.
isEmpty
(
))
{
if
(
Objects
.
nonNull
(
oldPatientSignEntity
))
{
patientSignEntity
.
setSignId
(
patientSignEntities
.
get
(
0
)
.
getId
());
patientSignEntity
.
setSignId
(
oldPatientSignEntity
.
getId
());
}
}
patientSignMapper
.
insert
(
patientSignEntity
);
patientSignMapper
.
insert
(
patientSignEntity
);
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/ScheduleRecordServiceImpl.java
浏览文件 @
530eb354
...
@@ -163,13 +163,16 @@ public class ScheduleRecordServiceImpl implements ScheduleRecordService {
...
@@ -163,13 +163,16 @@ public class ScheduleRecordServiceImpl implements ScheduleRecordService {
timeIntervalEntity
.
setScheduleDate
(
weekDay
);
timeIntervalEntity
.
setScheduleDate
(
weekDay
);
timeIntervalEntity
.
setScheduleRange
(
j
);
timeIntervalEntity
.
setScheduleRange
(
j
);
queryWrapper
.
setEntity
(
timeIntervalEntity
);
queryWrapper
.
setEntity
(
timeIntervalEntity
);
ScheduleRecordEntity
scheduleTimeIntervalEntity
=
scheduleRecordMapper
.
selectOne
(
queryWrapper
);
List
<
ScheduleRecordEntity
>
scheduleTimeIntervalEntity
=
scheduleRecordMapper
.
selectList
(
queryWrapper
);
ScheduleTimeSaveListVo
saveListVo
=
new
ScheduleTimeSaveListVo
();
List
<
ScheduleTimeSaveListVo
>
scheduleTimeSaveListVos
=
new
ArrayList
<>
();
if
(
null
!=
scheduleTimeIntervalEntity
)
{
if
(
null
!=
scheduleTimeIntervalEntity
)
{
scheduleTimeSaveListVos
.
forEach
(
scheduleTimeSaveListVo
->
{
ScheduleTimeSaveListVo
saveListVo
=
new
ScheduleTimeSaveListVo
();
BeanUtils
.
copyProperties
(
scheduleTimeIntervalEntity
,
saveListVo
);
BeanUtils
.
copyProperties
(
scheduleTimeIntervalEntity
,
saveListVo
);
scheduleTimeSaveListVos
.
add
(
saveListVo
);
});
}
}
scheduleOfDayVo
.
setScheduleTimeSaveListVo
(
s
aveListVo
);
scheduleOfDayVo
.
setScheduleTimeSaveListVo
(
s
cheduleTimeSaveListVos
);
// List<ScheduleRecordVo> scheduleRecordVoList = new ArrayList<>();
// List<ScheduleRecordVo> scheduleRecordVoList = new ArrayList<>();
// if (!recordEntityList.isEmpty()) {
// if (!recordEntityList.isEmpty()) {
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论