Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
B
byh-family-doctor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
包
包
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
杨凯
byh-family-doctor
Commits
51473498
提交
51473498
authored
3月 30, 2024
作者:
杨凯
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:家庭医生初始化
上级
ee138f31
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
28 行增加
和
24 行删除
+28
-24
RabbitConsumer.java
...aiyihui/family/doctor/server/rabbitmq/RabbitConsumer.java
+1
-1
PatientServiceImpl.java
...family/doctor/server/service/impl/PatientServiceImpl.java
+21
-21
SignedTask.java
...a/com/ebaiyihui/family/doctor/server/task/SignedTask.java
+1
-1
ThirdOrderPushUtil.java
...aiyihui/family/doctor/server/util/ThirdOrderPushUtil.java
+5
-1
没有找到文件。
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/rabbitmq/RabbitConsumer.java
浏览文件 @
51473498
...
@@ -68,7 +68,7 @@ public class RabbitConsumer {
...
@@ -68,7 +68,7 @@ public class RabbitConsumer {
notifyConsultDataDTO
.
setExpertName
(
patientSignEntity
.
getDoctorName
());
notifyConsultDataDTO
.
setExpertName
(
patientSignEntity
.
getDoctorName
());
notifyConsultDataDTO
.
setOrderDate
(
DateUtils
.
dateToFullString
(
patientSignEntity
.
getCreateTime
()));
notifyConsultDataDTO
.
setOrderDate
(
DateUtils
.
dateToFullString
(
patientSignEntity
.
getCreateTime
()));
notifyConsultDataDTO
.
setSupplierCode
(
CommonConstants
.
SUPPLIER_CODE_JTYS
);
notifyConsultDataDTO
.
setSupplierCode
(
CommonConstants
.
SUPPLIER_CODE_JTYS
);
thirdOrderPushUtil
.
syncBenefitUsedOrder
(
notifyConsultDataDTO
);
thirdOrderPushUtil
.
syncBenefitUsedOrder
(
notifyConsultDataDTO
,
null
);
}
}
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/PatientServiceImpl.java
浏览文件 @
51473498
...
@@ -209,6 +209,25 @@ public class PatientServiceImpl implements PatientService {
...
@@ -209,6 +209,25 @@ public class PatientServiceImpl implements PatientService {
SignStatus
.
CANCEL
.
getValue
().
equals
(
reqVo
.
getSignStatus
())
?
ImSignStatus
.
REISSUE_SUC
.
getValue
()
:
SignStatus
.
CANCEL
.
getValue
().
equals
(
reqVo
.
getSignStatus
())
?
ImSignStatus
.
REISSUE_SUC
.
getValue
()
:
ImSignStatus
.
INQUIRY_SCH_DOC
.
getValue
());
ImSignStatus
.
INQUIRY_SCH_DOC
.
getValue
());
//放入MQ任务,处理订单到时结束
if
(
"0"
.
equals
(
entity
.
getIsRenew
())
||
SignStatus
.
NORMAL
.
getValue
().
equals
(
reqVo
.
getSignStatus
()))
{
OrderTaskVo
orderTaskVo
=
new
OrderTaskVo
();
orderTaskVo
.
setType
(
1
);
orderTaskVo
.
setId
(
String
.
valueOf
(
patientSignEntity
.
getId
()));
if
(
"0"
.
equals
(
entity
.
getIsRenew
()))
{
orderTaskVo
.
setExpireTime
(
DateUtils
.
secondBetween
(
signStartTime
,
signEndTime
));
}
rabbitProduct
.
sendDelay
(
orderTaskVo
);
}
// 推送第三方签名相关订单信息
thirdOrderPushUtil
.
pushSignedOrder
(
String
.
valueOf
(
reqVo
.
getDoctorId
()),
reqVo
.
getPhone
(),
SignStatus
.
SIGNED
.
getValue
().
equals
(
reqVo
.
getSignStatus
())
?
String
.
valueOf
(
patientSignEntity
.
getId
())
:
String
.
valueOf
(
patientSignEntity
.
getSignId
()),
reqVo
.
getPackageOrderId
(),
reqVo
.
getSignStatus
());
imMsgTemplateService
.
sendImMsg
(
sendImMsgDTO
);
if
(!
SignStatus
.
NORMAL
.
getValue
().
equals
(
reqVo
.
getSignStatus
()))
{
if
(!
SignStatus
.
NORMAL
.
getValue
().
equals
(
reqVo
.
getSignStatus
()))
{
// 推送第三方权益使用
// 推送第三方权益使用
NotifyConsultDataDTO
notifyConsultDataDTO
=
new
NotifyConsultDataDTO
();
NotifyConsultDataDTO
notifyConsultDataDTO
=
new
NotifyConsultDataDTO
();
...
@@ -220,7 +239,7 @@ public class PatientServiceImpl implements PatientService {
...
@@ -220,7 +239,7 @@ public class PatientServiceImpl implements PatientService {
notifyConsultDataDTO
.
setExpertName
(
reqVo
.
getDoctorName
());
notifyConsultDataDTO
.
setExpertName
(
reqVo
.
getDoctorName
());
notifyConsultDataDTO
.
setOrderDate
(
DateUtils
.
dateToFullString
(
patientSignEntity
.
getCreateTime
()));
notifyConsultDataDTO
.
setOrderDate
(
DateUtils
.
dateToFullString
(
patientSignEntity
.
getCreateTime
()));
notifyConsultDataDTO
.
setSupplierCode
(
CommonConstants
.
SUPPLIER_CODE_JTYS
);
notifyConsultDataDTO
.
setSupplierCode
(
CommonConstants
.
SUPPLIER_CODE_JTYS
);
thirdOrderPushUtil
.
syncBenefitUsedOrder
(
notifyConsultDataDTO
);
thirdOrderPushUtil
.
syncBenefitUsedOrder
(
notifyConsultDataDTO
,
10000L
);
if
(
SignStatus
.
CANCEL
.
getValue
().
equals
(
reqVo
.
getSignStatus
()))
{
if
(
SignStatus
.
CANCEL
.
getValue
().
equals
(
reqVo
.
getSignStatus
()))
{
// 推送第三方权益使用
// 推送第三方权益使用
...
@@ -233,7 +252,7 @@ public class PatientServiceImpl implements PatientService {
...
@@ -233,7 +252,7 @@ public class PatientServiceImpl implements PatientService {
notifyConsultDataDTO2
.
setExpertName
(
reqVo
.
getDoctorName
());
notifyConsultDataDTO2
.
setExpertName
(
reqVo
.
getDoctorName
());
notifyConsultDataDTO2
.
setOrderDate
(
DateUtils
.
dateToFullString
(
patientSignEntity
.
getCreateTime
()));
notifyConsultDataDTO2
.
setOrderDate
(
DateUtils
.
dateToFullString
(
patientSignEntity
.
getCreateTime
()));
notifyConsultDataDTO2
.
setSupplierCode
(
CommonConstants
.
SUPPLIER_CODE_JTYS
);
notifyConsultDataDTO2
.
setSupplierCode
(
CommonConstants
.
SUPPLIER_CODE_JTYS
);
thirdOrderPushUtil
.
syncBenefitUsedOrder
(
notifyConsultDataDTO2
);
thirdOrderPushUtil
.
syncBenefitUsedOrder
(
notifyConsultDataDTO2
,
10000L
);
}
}
}
else
{
}
else
{
if
(
Objects
.
nonNull
(
oldPatientSignEntity
))
{
if
(
Objects
.
nonNull
(
oldPatientSignEntity
))
{
...
@@ -242,25 +261,6 @@ public class PatientServiceImpl implements PatientService {
...
@@ -242,25 +261,6 @@ public class PatientServiceImpl implements PatientService {
}
}
//放入MQ任务,处理订单到时结束
if
(
"0"
.
equals
(
entity
.
getIsRenew
())
||
SignStatus
.
NORMAL
.
getValue
().
equals
(
reqVo
.
getSignStatus
()))
{
OrderTaskVo
orderTaskVo
=
new
OrderTaskVo
();
orderTaskVo
.
setType
(
1
);
orderTaskVo
.
setId
(
String
.
valueOf
(
patientSignEntity
.
getId
()));
if
(
"0"
.
equals
(
entity
.
getIsRenew
()))
{
orderTaskVo
.
setExpireTime
(
DateUtils
.
secondBetween
(
signStartTime
,
signEndTime
));
}
rabbitProduct
.
sendDelay
(
orderTaskVo
);
}
// 推送第三方签名相关订单信息
thirdOrderPushUtil
.
pushSignedOrder
(
String
.
valueOf
(
reqVo
.
getDoctorId
()),
reqVo
.
getPhone
(),
SignStatus
.
SIGNED
.
getValue
().
equals
(
reqVo
.
getSignStatus
())
?
String
.
valueOf
(
patientSignEntity
.
getId
())
:
String
.
valueOf
(
patientSignEntity
.
getSignId
()),
reqVo
.
getPackageOrderId
(),
reqVo
.
getSignStatus
());
imMsgTemplateService
.
sendImMsg
(
sendImMsgDTO
);
// 推送app提示语
// 推送app提示语
goEasyPushService
.
newOrderToReceive
(
admId
);
goEasyPushService
.
newOrderToReceive
(
admId
);
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/task/SignedTask.java
浏览文件 @
51473498
...
@@ -210,7 +210,7 @@ public class SignedTask {
...
@@ -210,7 +210,7 @@ public class SignedTask {
notifyConsultDataDTO
.
setExpertName
(
patientSignEntity
.
getDoctorName
());
notifyConsultDataDTO
.
setExpertName
(
patientSignEntity
.
getDoctorName
());
notifyConsultDataDTO
.
setOrderDate
(
DateUtils
.
dateToFullString
(
patientSignEntity
.
getCreateTime
()));
notifyConsultDataDTO
.
setOrderDate
(
DateUtils
.
dateToFullString
(
patientSignEntity
.
getCreateTime
()));
notifyConsultDataDTO
.
setSupplierCode
(
CommonConstants
.
SUPPLIER_CODE_JTYS
);
notifyConsultDataDTO
.
setSupplierCode
(
CommonConstants
.
SUPPLIER_CODE_JTYS
);
thirdOrderPushUtil
.
syncBenefitUsedOrder
(
notifyConsultDataDTO
);
thirdOrderPushUtil
.
syncBenefitUsedOrder
(
notifyConsultDataDTO
,
null
);
}
}
}
}
patientSignSevice
.
updateById
(
patientSignEntity
);
patientSignSevice
.
updateById
(
patientSignEntity
);
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/util/ThirdOrderPushUtil.java
浏览文件 @
51473498
...
@@ -16,6 +16,7 @@ import org.springframework.stereotype.Component;
...
@@ -16,6 +16,7 @@ import org.springframework.stereotype.Component;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Objects
;
/**
/**
* @ClassName: ThirdOrderPushUtil
* @ClassName: ThirdOrderPushUtil
...
@@ -97,8 +98,11 @@ public class ThirdOrderPushUtil {
...
@@ -97,8 +98,11 @@ public class ThirdOrderPushUtil {
}
}
@Async
@Async
public
void
syncBenefitUsedOrder
(
NotifyConsultDataDTO
notifyConsultDataDTO
)
{
public
void
syncBenefitUsedOrder
(
NotifyConsultDataDTO
notifyConsultDataDTO
,
Long
sleepTime
)
{
try
{
try
{
if
(
Objects
.
nonNull
(
sleepTime
))
{
Thread
.
sleep
(
10000
);
}
String
param
=
JSONObject
.
toJSONString
(
notifyConsultDataDTO
);
String
param
=
JSONObject
.
toJSONString
(
notifyConsultDataDTO
);
log
.
info
(
"syncBenefitUsedOrder请求入参{}"
,
param
);
log
.
info
(
"syncBenefitUsedOrder请求入参{}"
,
param
);
String
result
=
HttpKit
.
jsonPost
(
projProperties
.
getFamilyDoctorThirdUrl
()
+
UrlConstants
.
PUSH_DATA_URL
,
param
,
getThirdHead
(
notifyConsultDataDTO
));
String
result
=
HttpKit
.
jsonPost
(
projProperties
.
getFamilyDoctorThirdUrl
()
+
UrlConstants
.
PUSH_DATA_URL
,
param
,
getThirdHead
(
notifyConsultDataDTO
));
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论