Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
B
byh-family-doctor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
包
包
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
杨凯
byh-family-doctor
Commits
51e506b3
提交
51e506b3
authored
4月 01, 2024
作者:
杨凯
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:家庭医生初始化
上级
2bc7459e
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
8 行增加
和
4 行删除
+8
-4
PatientServiceImpl.java
...family/doctor/server/service/impl/PatientServiceImpl.java
+2
-4
SignedTask.java
...a/com/ebaiyihui/family/doctor/server/task/SignedTask.java
+6
-0
没有找到文件。
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/PatientServiceImpl.java
浏览文件 @
51e506b3
...
@@ -88,11 +88,9 @@ public class PatientServiceImpl implements PatientService {
...
@@ -88,11 +88,9 @@ public class PatientServiceImpl implements PatientService {
Date
signEndTime
=
DateUtils
.
getAfterDay
(
curDate
,
CommonConstants
.
DAY
);
Date
signEndTime
=
DateUtils
.
getAfterDay
(
curDate
,
CommonConstants
.
DAY
);
Date
signStartTime
=
new
Date
();
Date
signStartTime
=
new
Date
();
try
{
try
{
log
.
info
(
"权益信息benefitsEndTime={}"
,
entity
.
getBenefitsEndTime
());
if
(!
StringUtils
.
isEmpty
(
entity
.
getBenefitsEndTime
()))
{
if
(!
StringUtils
.
isEmpty
(
entity
.
getBenefitsEndTime
()))
{
signEndTime
=
DateUtils
.
parseDate
(
entity
.
getBenefitsEndTime
(),
DateUtils
.
FULL_FORMAT
);
signEndTime
=
DateUtils
.
parseDate
(
entity
.
getBenefitsEndTime
(),
DateUtils
.
FULL_FORMAT
);
signStartTime
=
DateUtils
.
parseDate
(
entity
.
getBenefitsStartTime
(),
DateUtils
.
FULL_FORMAT
);
signStartTime
=
DateUtils
.
parseDate
(
entity
.
getBenefitsStartTime
(),
DateUtils
.
FULL_FORMAT
);
log
.
info
(
"权益信息signEndTime={},signStartTime={}"
,
signEndTime
,
signStartTime
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
return
BaseResponse
.
error
(
"没有查询到有关权益"
);
return
BaseResponse
.
error
(
"没有查询到有关权益"
);
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/task/SignedTask.java
浏览文件 @
51e506b3
...
@@ -55,9 +55,11 @@ public class SignedTask {
...
@@ -55,9 +55,11 @@ public class SignedTask {
@Scheduled
(
cron
=
"0 0 10 * * ?"
)
@Scheduled
(
cron
=
"0 0 10 * * ?"
)
public
void
healthRecordWhetherUpdate
()
{
public
void
healthRecordWhetherUpdate
()
{
log
.
info
(
"开始进行健康查询处理..."
);
PatientSignEntity
patientSignEntity
=
new
PatientSignEntity
();
PatientSignEntity
patientSignEntity
=
new
PatientSignEntity
();
patientSignEntity
.
setStatus
(
StatusEnum
.
IN_CONSULTATION
.
getValue
());
patientSignEntity
.
setStatus
(
StatusEnum
.
IN_CONSULTATION
.
getValue
());
List
<
PatientSignEntity
>
patientSignEntities
=
patientSignSevice
.
selectList
(
patientSignEntity
);
List
<
PatientSignEntity
>
patientSignEntities
=
patientSignSevice
.
selectList
(
patientSignEntity
);
log
.
info
(
"查询健康patientSignEntities={}"
,
patientSignEntities
);
if
(!
patientSignEntities
.
isEmpty
())
{
if
(!
patientSignEntities
.
isEmpty
())
{
for
(
PatientSignEntity
ps
:
patientSignEntities
)
{
for
(
PatientSignEntity
ps
:
patientSignEntities
)
{
HealthInfoDTO
healthInfoDTO
=
new
HealthInfoDTO
();
HealthInfoDTO
healthInfoDTO
=
new
HealthInfoDTO
();
...
@@ -135,7 +137,9 @@ public class SignedTask {
...
@@ -135,7 +137,9 @@ public class SignedTask {
@Scheduled
(
cron
=
"0 0 20 * * ?"
)
@Scheduled
(
cron
=
"0 0 20 * * ?"
)
public
void
holidayPush
()
{
public
void
holidayPush
()
{
log
.
info
(
"开始进行节假日消息处理..."
);
List
<
PatientSignEntity
>
patientSignEntities
=
patientSignSevice
.
selectList
(
new
PatientSignEntity
());
List
<
PatientSignEntity
>
patientSignEntities
=
patientSignSevice
.
selectList
(
new
PatientSignEntity
());
log
.
info
(
"查询节假日消息patientSignEntities={}"
,
patientSignEntities
);
try
{
try
{
if
(!
patientSignEntities
.
isEmpty
())
{
if
(!
patientSignEntities
.
isEmpty
())
{
for
(
PatientSignEntity
ps
:
patientSignEntities
)
{
for
(
PatientSignEntity
ps
:
patientSignEntities
)
{
...
@@ -184,7 +188,9 @@ public class SignedTask {
...
@@ -184,7 +188,9 @@ public class SignedTask {
@Scheduled
(
cron
=
"0 0 1 * * ?"
)
@Scheduled
(
cron
=
"0 0 1 * * ?"
)
public
void
orderInvalidation
()
{
public
void
orderInvalidation
()
{
log
.
info
(
"开始进行权益信息处理..."
);
List
<
MobileBenefitPackageEntity
>
mobileBenefitPackageEntities
=
mobileBenefitPackageMapper
.
queryMaxOneList
();
List
<
MobileBenefitPackageEntity
>
mobileBenefitPackageEntities
=
mobileBenefitPackageMapper
.
queryMaxOneList
();
log
.
info
(
"查询需要处理的权限mobileBenefitPackageEntities={}"
,
mobileBenefitPackageEntities
);
try
{
try
{
if
(!
mobileBenefitPackageEntities
.
isEmpty
())
{
if
(!
mobileBenefitPackageEntities
.
isEmpty
())
{
for
(
MobileBenefitPackageEntity
mbp
:
mobileBenefitPackageEntities
)
{
for
(
MobileBenefitPackageEntity
mbp
:
mobileBenefitPackageEntities
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论