Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
B
byh-family-doctor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
包
包
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
杨凯
byh-family-doctor
Commits
253ca35f
提交
253ca35f
authored
3月 20, 2024
作者:
杨凯
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:家庭医生初始化
上级
e67d08cf
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
20 行增加
和
20 行删除
+20
-20
ScheduleRecordServiceImpl.java
...doctor/server/service/impl/ScheduleRecordServiceImpl.java
+20
-20
没有找到文件。
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/ScheduleRecordServiceImpl.java
浏览文件 @
253ca35f
...
@@ -9,7 +9,6 @@ import com.ebaiyihui.family.doctor.common.dto.*;
...
@@ -9,7 +9,6 @@ import com.ebaiyihui.family.doctor.common.dto.*;
import
com.ebaiyihui.family.doctor.common.vo.*
;
import
com.ebaiyihui.family.doctor.common.vo.*
;
import
com.ebaiyihui.family.doctor.server.common.enums.WhetherEnum
;
import
com.ebaiyihui.family.doctor.server.common.enums.WhetherEnum
;
import
com.ebaiyihui.family.doctor.server.entity.ScheduleRecordEntity
;
import
com.ebaiyihui.family.doctor.server.entity.ScheduleRecordEntity
;
import
com.ebaiyihui.family.doctor.server.entity.ServiceConfigEntity
;
import
com.ebaiyihui.family.doctor.server.feign.DoctorInfofeignClient
;
import
com.ebaiyihui.family.doctor.server.feign.DoctorInfofeignClient
;
import
com.ebaiyihui.family.doctor.server.mapper.ScheduleRecordMapper
;
import
com.ebaiyihui.family.doctor.server.mapper.ScheduleRecordMapper
;
import
com.ebaiyihui.family.doctor.server.service.ScheduleRecordService
;
import
com.ebaiyihui.family.doctor.server.service.ScheduleRecordService
;
...
@@ -161,6 +160,7 @@ public class ScheduleRecordServiceImpl implements ScheduleRecordService {
...
@@ -161,6 +160,7 @@ public class ScheduleRecordServiceImpl implements ScheduleRecordService {
timeIntervalEntity
.
setHospitalId
(
String
.
valueOf
(
requestGetScheduleForWeekDTO
.
getHospitalId
()));
timeIntervalEntity
.
setHospitalId
(
String
.
valueOf
(
requestGetScheduleForWeekDTO
.
getHospitalId
()));
timeIntervalEntity
.
setDoctorId
(
requestGetScheduleForWeekDTO
.
getDoctorId
());
timeIntervalEntity
.
setDoctorId
(
requestGetScheduleForWeekDTO
.
getDoctorId
());
timeIntervalEntity
.
setDeptId
(
String
.
valueOf
(
requestGetScheduleForWeekDTO
.
getDeptId
()));
timeIntervalEntity
.
setDeptId
(
String
.
valueOf
(
requestGetScheduleForWeekDTO
.
getDeptId
()));
timeIntervalEntity
.
setScheduleDate
(
weekDay
);
timeIntervalEntity
.
setScheduleRange
(
j
);
timeIntervalEntity
.
setScheduleRange
(
j
);
queryWrapper
.
setEntity
(
timeIntervalEntity
);
queryWrapper
.
setEntity
(
timeIntervalEntity
);
ScheduleRecordEntity
scheduleTimeIntervalEntity
=
scheduleRecordMapper
.
selectOne
(
queryWrapper
);
ScheduleRecordEntity
scheduleTimeIntervalEntity
=
scheduleRecordMapper
.
selectOne
(
queryWrapper
);
...
@@ -171,25 +171,25 @@ public class ScheduleRecordServiceImpl implements ScheduleRecordService {
...
@@ -171,25 +171,25 @@ public class ScheduleRecordServiceImpl implements ScheduleRecordService {
}
}
scheduleOfDayVo
.
setScheduleTimeSaveListVo
(
saveListVo
);
scheduleOfDayVo
.
setScheduleTimeSaveListVo
(
saveListVo
);
List
<
ScheduleRecordVo
>
scheduleRecordVoList
=
new
ArrayList
<>();
//
List<ScheduleRecordVo> scheduleRecordVoList = new ArrayList<>();
if
(!
recordEntityList
.
isEmpty
())
{
//
if (!recordEntityList.isEmpty()) {
for
(
ScheduleRecordEntity
scheduleRecordEntity
:
recordEntityList
)
{
//
for (ScheduleRecordEntity scheduleRecordEntity : recordEntityList) {
if
(
DateUtils
.
dateToSimpleString
(
scheduleRecordEntity
.
getScheduleDate
()).
equals
(
DateUtils
.
dateToSimpleString
(
weekDay
))
&&
scheduleRecordEntity
.
getScheduleRange
().
equals
(
j
))
{
//
if (DateUtils.dateToSimpleString(scheduleRecordEntity.getScheduleDate()).equals(DateUtils.dateToSimpleString(weekDay)) && scheduleRecordEntity.getScheduleRange().equals(j)) {
ScheduleRecordVo
scheduleRecordVo
=
new
ScheduleRecordVo
();
//
ScheduleRecordVo scheduleRecordVo = new ScheduleRecordVo();
BeanUtils
.
copyProperties
(
scheduleRecordEntity
,
scheduleRecordVo
);
//
BeanUtils.copyProperties(scheduleRecordEntity, scheduleRecordVo);
QueryWrapper
configQuery
=
new
QueryWrapper
();
//
QueryWrapper configQuery = new QueryWrapper();
//
ServiceConfigEntity
configEntity
=
new
ServiceConfigEntity
();
//
ServiceConfigEntity configEntity = new ServiceConfigEntity();
configEntity
.
setOrganId
(
String
.
valueOf
(
requestGetScheduleForWeekDTO
.
getHospitalId
()));
//
configEntity.setOrganId(String.valueOf(requestGetScheduleForWeekDTO.getHospitalId()));
configEntity
.
setDoctorId
(
scheduleRecordEntity
.
getDoctorId
());
//
configEntity.setDoctorId(scheduleRecordEntity.getDoctorId());
configEntity
.
setDeptId
(
Long
.
parseLong
(
scheduleRecordEntity
.
getDeptId
()));
//
configEntity.setDeptId(Long.parseLong(scheduleRecordEntity.getDeptId()));
configQuery
.
setEntity
(
configEntity
);
//
configQuery.setEntity(configEntity);
configQuery
.
last
(
"limit 1"
);
//
configQuery.last("limit 1");
scheduleRecordVoList
.
add
(
scheduleRecordVo
);
//
scheduleRecordVoList.add(scheduleRecordVo);
}
//
}
}
//
}
}
//
}
scheduleOfDayVo
.
setRecordVoList
(
scheduleRecordVoList
);
//
scheduleOfDayVo.setRecordVoList(scheduleRecordVoList);
scheduleOfDayVoList
.
add
(
scheduleOfDayVo
);
scheduleOfDayVoList
.
add
(
scheduleOfDayVo
);
}
}
scheduleForWeekVo
.
setScheduleOfDayVoList
(
scheduleOfDayVoList
);
scheduleForWeekVo
.
setScheduleOfDayVoList
(
scheduleOfDayVoList
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论