Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
B
byh-family-doctor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
包
包
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
杨凯
byh-family-doctor
Commits
01411f02
提交
01411f02
authored
4月 01, 2024
作者:
杨凯
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:家庭医生初始化
上级
b7313e29
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
33 行增加
和
26 行删除
+33
-26
PatientSignService.java
...ihui/family/doctor/server/service/PatientSignService.java
+1
-1
PatientSignServiceImpl.java
...ly/doctor/server/service/impl/PatientSignServiceImpl.java
+3
-3
SignedTask.java
...a/com/ebaiyihui/family/doctor/server/task/SignedTask.java
+29
-22
没有找到文件。
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/PatientSignService.java
浏览文件 @
01411f02
...
@@ -48,7 +48,7 @@ public interface PatientSignService {
...
@@ -48,7 +48,7 @@ public interface PatientSignService {
List
<
PatientSignEntity
>
selectList
(
PatientSignEntity
patientSignEntity
);
List
<
PatientSignEntity
>
selectList
(
PatientSignEntity
patientSignEntity
);
PatientSignEntity
getOne
ByPhone
(
String
phone
);
List
<
PatientSignEntity
>
getList
ByPhone
(
String
phone
);
int
updateById
(
PatientSignEntity
patientSignEntity
);
int
updateById
(
PatientSignEntity
patientSignEntity
);
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/PatientSignServiceImpl.java
浏览文件 @
01411f02
...
@@ -318,14 +318,14 @@ public class PatientSignServiceImpl implements PatientSignService {
...
@@ -318,14 +318,14 @@ public class PatientSignServiceImpl implements PatientSignService {
}
}
@Override
@Override
public
PatientSignEntity
getOne
ByPhone
(
String
phone
)
{
public
List
<
PatientSignEntity
>
getList
ByPhone
(
String
phone
)
{
QueryWrapper
<
PatientSignEntity
>
psWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
PatientSignEntity
>
psWrapper
=
new
QueryWrapper
<>();
PatientSignEntity
patientSign
=
new
PatientSignEntity
();
PatientSignEntity
patientSign
=
new
PatientSignEntity
();
patientSign
.
setPatientPhone
(
phone
);
patientSign
.
setPatientPhone
(
phone
);
psWrapper
.
setEntity
(
patientSign
);
psWrapper
.
setEntity
(
patientSign
);
psWrapper
.
orderByDesc
(
"createTime"
);
psWrapper
.
orderByDesc
(
"createTime"
);
psWrapper
.
last
(
"limit 1"
);
//
psWrapper.last("limit 1");
PatientSignEntity
pse
=
patientSignMapper
.
selectOne
(
psWrapper
);
List
<
PatientSignEntity
>
pse
=
patientSignMapper
.
selectList
(
psWrapper
);
return
pse
;
return
pse
;
}
}
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/task/SignedTask.java
浏览文件 @
01411f02
...
@@ -8,6 +8,7 @@ import com.ebaiyihui.family.doctor.common.dto.SendImMsgDTO;
...
@@ -8,6 +8,7 @@ import com.ebaiyihui.family.doctor.common.dto.SendImMsgDTO;
import
com.ebaiyihui.family.doctor.server.common.constants.CommonConstants
;
import
com.ebaiyihui.family.doctor.server.common.constants.CommonConstants
;
import
com.ebaiyihui.family.doctor.server.common.constants.ImConstants
;
import
com.ebaiyihui.family.doctor.server.common.constants.ImConstants
;
import
com.ebaiyihui.family.doctor.server.common.enums.MsgTempTypeEnum
;
import
com.ebaiyihui.family.doctor.server.common.enums.MsgTempTypeEnum
;
import
com.ebaiyihui.family.doctor.server.common.enums.SignStatus
;
import
com.ebaiyihui.family.doctor.server.common.enums.StatusEnum
;
import
com.ebaiyihui.family.doctor.server.common.enums.StatusEnum
;
import
com.ebaiyihui.family.doctor.server.entity.MobileBenefitPackageEntity
;
import
com.ebaiyihui.family.doctor.server.entity.MobileBenefitPackageEntity
;
import
com.ebaiyihui.family.doctor.server.entity.PatientSignEntity
;
import
com.ebaiyihui.family.doctor.server.entity.PatientSignEntity
;
...
@@ -186,7 +187,7 @@ public class SignedTask {
...
@@ -186,7 +187,7 @@ public class SignedTask {
}
}
}
}
@Scheduled
(
cron
=
"0
0
1 * * ?"
)
@Scheduled
(
cron
=
"0
56
1 * * ?"
)
public
void
orderInvalidation
()
{
public
void
orderInvalidation
()
{
log
.
info
(
"开始进行权益信息处理..."
);
log
.
info
(
"开始进行权益信息处理..."
);
List
<
MobileBenefitPackageEntity
>
mobileBenefitPackageEntities
=
mobileBenefitPackageMapper
.
queryMaxOneList
();
List
<
MobileBenefitPackageEntity
>
mobileBenefitPackageEntities
=
mobileBenefitPackageMapper
.
queryMaxOneList
();
...
@@ -196,12 +197,15 @@ public class SignedTask {
...
@@ -196,12 +197,15 @@ public class SignedTask {
for
(
MobileBenefitPackageEntity
mbp
:
mobileBenefitPackageEntities
)
{
for
(
MobileBenefitPackageEntity
mbp
:
mobileBenefitPackageEntities
)
{
Date
curTime
=
new
Date
();
Date
curTime
=
new
Date
();
Date
endTime
=
DateUtils
.
parseDate
(
mbp
.
getBenefitsEndTime
(),
DateUtils
.
FULL_FORMAT
);
Date
endTime
=
DateUtils
.
parseDate
(
mbp
.
getBenefitsEndTime
(),
DateUtils
.
FULL_FORMAT
);
PatientSignEntity
patientSignEntity
=
patientSignSevice
.
getOne
ByPhone
(
mbp
.
getPhone
());
List
<
PatientSignEntity
>
patientSignEntities
=
patientSignSevice
.
getList
ByPhone
(
mbp
.
getPhone
());
mbp
.
setVersion
(
1
);
mbp
.
setVersion
(
1
);
for
(
PatientSignEntity
patientSignEntity
:
patientSignEntities
)
{
if
(
endTime
.
after
(
curTime
))
{
if
(
endTime
.
after
(
curTime
))
{
patientSignEntity
.
setPackageOrderId
(
mbp
.
getActivateOrderId
());
patientSignEntity
.
setPackageOrderId
(
mbp
.
getActivateOrderId
());
patientSignEntity
.
setSignEndTime
(
endTime
);
patientSignEntity
.
setSignEndTime
(
endTime
);
}
else
{
}
else
{
if
(
SignStatus
.
SIGNED
.
getValue
().
equals
(
patientSignEntity
.
getSignStatus
())
&&
StatusEnum
.
IN_CONSULTATION
.
getValue
().
equals
(
patientSignEntity
.
getStatus
()))
{
patientSignEntity
.
setStatus
(
StatusEnum
.
FINISH_APPLY
.
getValue
());
patientSignEntity
.
setStatus
(
StatusEnum
.
FINISH_APPLY
.
getValue
());
MobileBenefitPackageEntity
entity
=
mobileBenefitPackageMapper
.
queryByPhone
(
patientSignEntity
.
getPatientPhone
(),
MobileBenefitPackageEntity
entity
=
mobileBenefitPackageMapper
.
queryByPhone
(
patientSignEntity
.
getPatientPhone
(),
patientSignEntity
.
getPackageOrderId
(),
"1"
);
patientSignEntity
.
getPackageOrderId
(),
"1"
);
...
@@ -219,7 +223,10 @@ public class SignedTask {
...
@@ -219,7 +223,10 @@ public class SignedTask {
thirdOrderPushUtil
.
syncBenefitUsedOrder
(
notifyConsultDataDTO
,
null
);
thirdOrderPushUtil
.
syncBenefitUsedOrder
(
notifyConsultDataDTO
,
null
);
}
}
}
}
}
patientSignSevice
.
updateById
(
patientSignEntity
);
patientSignSevice
.
updateById
(
patientSignEntity
);
}
mobileBenefitPackageMapper
.
updateVersion
(
mbp
);
mobileBenefitPackageMapper
.
updateVersion
(
mbp
);
}
}
}
}
...
...
杨凯
@yangkai
被提及 commit
11396273
·
4月 02, 2024
被提及 commit
11396273
被提及 commit 113962739345f1773ee4f9d76a60044ca4badbf2
切换提交列表
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论