Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
B
byh-family-doctor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
包
包
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
杨凯
byh-family-doctor
Commits
b7313e29
提交
b7313e29
authored
4月 01, 2024
作者:
杨凯
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'test'
上级
eaa9e2c6
51e506b3
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
21 行增加
和
13 行删除
+21
-13
ImChatTemplateImpl.java
...family/doctor/server/service/impl/ImChatTemplateImpl.java
+2
-2
PatientServiceImpl.java
...family/doctor/server/service/impl/PatientServiceImpl.java
+12
-10
SignedTask.java
...a/com/ebaiyihui/family/doctor/server/task/SignedTask.java
+6
-0
MobileBenefitPackageMapper.xml
.../src/main/resources/mapper/MobileBenefitPackageMapper.xml
+1
-1
没有找到文件。
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/ImChatTemplateImpl.java
浏览文件 @
b7313e29
...
...
@@ -180,7 +180,7 @@ public class ImChatTemplateImpl implements ImChatTemplate {
}
}
else
if
(
i
==
1
)
{
Map
<
String
,
Object
>
imageMap
=
new
HashMap
<>();
if
(
reportDetailVo
.
getReportType
().
equals
(
1
))
{
//
if (reportDetailVo.getReportType().equals(1)) {
imageMap
.
put
(
"UserAction"
,
CommonConstants
.
USER_ACTION
);
imageMap
.
put
(
"applicationCode"
,
IMInformConstants
.
IM_SYSTEM_BUSINESS_CODE
);
imageMap
.
put
(
"appointmentId"
,
sendImMsgDTO
.
getAdmId
());
...
...
@@ -197,7 +197,7 @@ public class ImChatTemplateImpl implements ImChatTemplate {
imageMap
.
put
(
"toApplicationCode"
,
IMInformConstants
.
IM_SYSTEM_BUSINESS_CODE
);
msgType
=
"TIMCustomElem"
;
}
//
}
content
=
JSONObject
.
toJSONString
(
imageMap
);
}
else
if
(
i
==
2
)
{
if
(
Objects
.
nonNull
(
reportDetailVo
))
{
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/PatientServiceImpl.java
浏览文件 @
b7313e29
...
...
@@ -78,6 +78,7 @@ public class PatientServiceImpl implements PatientService {
public
BaseResponse
<
String
>
signedDoctor
(
SignedDoctorDTO
reqVo
)
{
MobileBenefitPackageEntity
entity
=
mobileBenefitPackageMapper
.
queryByPhone
(
reqVo
.
getPhone
(),
reqVo
.
getPackageOrderId
(),
null
);
log
.
info
(
"entity={}"
,
entity
);
if
(
ObjectUtils
.
isEmpty
(
entity
))
{
return
BaseResponse
.
error
(
"没有查询到有关权益"
);
}
...
...
@@ -119,15 +120,16 @@ public class PatientServiceImpl implements PatientService {
List
<
PatientSignEntity
>
patientSignEntities
=
getPatientSignList
(
reqVo
.
getPhone
(),
reqVo
.
getPackageOrderId
(),
signStatus
,
status
);
if
(!
patientSignEntities
.
isEmpty
())
{
//
if (!SignStatus.CANCEL.getValue().equals(reqVo.getSignStatus())) {
if
(!
SignStatus
.
CANCEL
.
getValue
().
equals
(
reqVo
.
getSignStatus
()))
{
return
BaseResponse
.
error
(
"已经有进行中的签约或者改签医生,不能再进行签约或者改签!!!"
);
// }
// PatientSignEntity patientSignEntity = patientSignEntities.get(0);
// Date signCreateTime = patientSignEntity.getCreateTime();
// log.info("");
// if (signCreateTime.after(signStartTime) && signCreateTime.before(signEndTime)) {
// return BaseResponse.error("已经有进行中的签约或者改签医生,不能再进行签约或者改签!!!");
// }
}
PatientSignEntity
patientSignEntity
=
patientSignEntities
.
get
(
0
);
Date
signCreateTime
=
oldPatientSignEntity
.
getCreateTime
();
log
.
info
(
"signCreateTime={}, signStartTime={}, signEndTime={}"
,
signCreateTime
,
signStartTime
,
signEndTime
);
if
(
signCreateTime
.
after
(
signStartTime
)
&&
signCreateTime
.
before
(
signEndTime
))
{
return
BaseResponse
.
error
(
"已经有进行中的签约或者改签医生,不能再进行签约或者改签!!!"
);
}
oldPatientSignEntity
=
patientSignEntity
;
}
}
else
{
QueryWrapper
<
PatientSignEntity
>
psWrapper
=
new
QueryWrapper
<>();
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/task/SignedTask.java
浏览文件 @
b7313e29
...
...
@@ -55,9 +55,11 @@ public class SignedTask {
@Scheduled
(
cron
=
"0 0 10 * * ?"
)
public
void
healthRecordWhetherUpdate
()
{
log
.
info
(
"开始进行健康查询处理..."
);
PatientSignEntity
patientSignEntity
=
new
PatientSignEntity
();
patientSignEntity
.
setStatus
(
StatusEnum
.
IN_CONSULTATION
.
getValue
());
List
<
PatientSignEntity
>
patientSignEntities
=
patientSignSevice
.
selectList
(
patientSignEntity
);
log
.
info
(
"查询健康patientSignEntities={}"
,
patientSignEntities
);
if
(!
patientSignEntities
.
isEmpty
())
{
for
(
PatientSignEntity
ps
:
patientSignEntities
)
{
HealthInfoDTO
healthInfoDTO
=
new
HealthInfoDTO
();
...
...
@@ -135,7 +137,9 @@ public class SignedTask {
@Scheduled
(
cron
=
"0 0 20 * * ?"
)
public
void
holidayPush
()
{
log
.
info
(
"开始进行节假日消息处理..."
);
List
<
PatientSignEntity
>
patientSignEntities
=
patientSignSevice
.
selectList
(
new
PatientSignEntity
());
log
.
info
(
"查询节假日消息patientSignEntities={}"
,
patientSignEntities
);
try
{
if
(!
patientSignEntities
.
isEmpty
())
{
for
(
PatientSignEntity
ps
:
patientSignEntities
)
{
...
...
@@ -184,7 +188,9 @@ public class SignedTask {
@Scheduled
(
cron
=
"0 0 1 * * ?"
)
public
void
orderInvalidation
()
{
log
.
info
(
"开始进行权益信息处理..."
);
List
<
MobileBenefitPackageEntity
>
mobileBenefitPackageEntities
=
mobileBenefitPackageMapper
.
queryMaxOneList
();
log
.
info
(
"查询需要处理的权限mobileBenefitPackageEntities={}"
,
mobileBenefitPackageEntities
);
try
{
if
(!
mobileBenefitPackageEntities
.
isEmpty
())
{
for
(
MobileBenefitPackageEntity
mbp
:
mobileBenefitPackageEntities
)
{
...
...
family-doctor-server/src/main/resources/mapper/MobileBenefitPackageMapper.xml
浏览文件 @
b7313e29
...
...
@@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.ebaiyihui.family.doctor.server.mapper.MobileBenefitPackageMapper"
>
<sql
id=
"base_columns"
>
x_id,productId,phone,userId,orderId,timeLimit,used,activateOrderId
x_id,productId,phone,userId,orderId,timeLimit,used,activateOrderId
,benefitsStartTime,benefitsEndTime
</sql>
<insert
id=
"insert"
>
INSERT INTO mobile_benefit_package (
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论