Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
B
byh-family-doctor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
包
包
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
杨凯
byh-family-doctor
Commits
dbe48757
提交
dbe48757
authored
3月 22, 2024
作者:
杨凯
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:家庭医生初始化
上级
e43d5bf5
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
27 行增加
和
25 行删除
+27
-25
AbnormalDataDTO.java
...m/ebaiyihui/family/doctor/common/dto/AbnormalDataDTO.java
+1
-1
FollowUpOrderDTO.java
.../ebaiyihui/family/doctor/common/dto/FollowUpOrderDTO.java
+1
-1
HealthInfoDTO.java
...com/ebaiyihui/family/doctor/common/dto/HealthInfoDTO.java
+1
-1
NotifyConsultDataDTO.java
...iyihui/family/doctor/common/dto/NotifyConsultDataDTO.java
+4
-2
SyncSignedOrderDTO.java
...baiyihui/family/doctor/common/dto/SyncSignedOrderDTO.java
+1
-1
ThirdPushDTO.java
.../com/ebaiyihui/family/doctor/common/dto/ThirdPushDTO.java
+0
-15
UserInfoDTO.java
...a/com/ebaiyihui/family/doctor/common/dto/UserInfoDTO.java
+1
-1
CommonConstants.java
...amily/doctor/server/common/constants/CommonConstants.java
+2
-0
PatientServiceImpl.java
...family/doctor/server/service/impl/PatientServiceImpl.java
+15
-1
ThirdOrderPushUtil.java
...aiyihui/family/doctor/server/util/ThirdOrderPushUtil.java
+1
-2
没有找到文件。
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/dto/AbnormalDataDTO.java
浏览文件 @
dbe48757
...
@@ -9,7 +9,7 @@ import lombok.Data;
...
@@ -9,7 +9,7 @@ import lombok.Data;
* @Description
* @Description
*/
*/
@Data
@Data
public
class
AbnormalDataDTO
extends
ThirdPushDTO
{
public
class
AbnormalDataDTO
{
private
String
abnormalId
;
private
String
abnormalId
;
...
...
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/dto/FollowUpOrderDTO.java
浏览文件 @
dbe48757
...
@@ -9,7 +9,7 @@ import lombok.Data;
...
@@ -9,7 +9,7 @@ import lombok.Data;
* @Description
* @Description
*/
*/
@Data
@Data
public
class
FollowUpOrderDTO
extends
ThirdPushDTO
{
public
class
FollowUpOrderDTO
{
private
String
phone
;
private
String
phone
;
...
...
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/dto/HealthInfoDTO.java
浏览文件 @
dbe48757
...
@@ -9,7 +9,7 @@ import lombok.Data;
...
@@ -9,7 +9,7 @@ import lombok.Data;
* @Description
* @Description
*/
*/
@Data
@Data
public
class
HealthInfoDTO
extends
ThirdPushDTO
{
public
class
HealthInfoDTO
{
private
String
phone
;
private
String
phone
;
}
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/dto/NotifyConsultDataDTO.java
浏览文件 @
dbe48757
...
@@ -10,8 +10,10 @@ import lombok.Data;
...
@@ -10,8 +10,10 @@ import lombok.Data;
* @Description
* @Description
*/
*/
@Data
@Data
public
class
NotifyConsultDataDTO
extends
ThirdPushDTO
{
public
class
NotifyConsultDataDTO
{
private
String
supplierCode
;
@ApiModelProperty
(
value
=
"激活订单ID"
,
required
=
true
)
@ApiModelProperty
(
value
=
"激活订单ID"
,
required
=
true
)
// @NotBlank(message = "激活订单ID 不为空")
// @NotBlank(message = "激活订单ID 不为空")
private
String
activateOrderId
;
private
String
activateOrderId
;
...
...
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/dto/SyncSignedOrderDTO.java
浏览文件 @
dbe48757
...
@@ -9,7 +9,7 @@ import lombok.Data;
...
@@ -9,7 +9,7 @@ import lombok.Data;
* @Description
* @Description
*/
*/
@Data
@Data
public
class
SyncSignedOrderDTO
extends
ThirdPushDTO
{
public
class
SyncSignedOrderDTO
{
private
String
doctorId
;
private
String
doctorId
;
...
...
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/dto/ThirdPushDTO.java
deleted
100644 → 0
浏览文件 @
e43d5bf5
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
dto
;
import
lombok.Data
;
/**
* @ClassName: ThirdPushDTO
* @Author:yanliang
* @Date:2024/3/18 15:40
* @Description
*/
@Data
public
class
ThirdPushDTO
{
private
String
supplierCode
;
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/dto/UserInfoDTO.java
浏览文件 @
dbe48757
...
@@ -9,7 +9,7 @@ import lombok.Data;
...
@@ -9,7 +9,7 @@ import lombok.Data;
* @Description
* @Description
*/
*/
@Data
@Data
public
class
UserInfoDTO
extends
ThirdPushDTO
{
public
class
UserInfoDTO
{
private
String
phone
;
private
String
phone
;
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/common/constants/CommonConstants.java
浏览文件 @
dbe48757
...
@@ -142,4 +142,6 @@ public class CommonConstants {
...
@@ -142,4 +142,6 @@ public class CommonConstants {
public
static
final
String
SIGN_SECRET
=
"123456"
;
public
static
final
String
SIGN_SECRET
=
"123456"
;
public
static
final
String
SUPPLIER_CODE
=
"ZhongKang"
;
public
static
final
String
SUPPLIER_CODE
=
"ZhongKang"
;
public
static
final
String
SUPPLIER_CODE_JTYS
=
"zhongkang_mfd"
;
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/PatientServiceImpl.java
浏览文件 @
dbe48757
...
@@ -109,6 +109,18 @@ public class PatientServiceImpl implements PatientService {
...
@@ -109,6 +109,18 @@ public class PatientServiceImpl implements PatientService {
return
BaseResponse
.
error
(
"已经有进行中的签约的医生,不能在进行签约!!!"
);
return
BaseResponse
.
error
(
"已经有进行中的签约的医生,不能在进行签约!!!"
);
}
}
}
else
{
}
else
{
QueryWrapper
<
PatientSignEntity
>
psWrapper
=
new
QueryWrapper
<>();
PatientSignEntity
patientSign
=
new
PatientSignEntity
();
patientSign
.
setPatientPhone
(
reqVo
.
getPhone
());
patientSign
.
setPackageOrderId
(
reqVo
.
getPackageOrderId
());
patientSign
.
setSignStatus
(
SignStatus
.
NORMAL
.
getValue
());
patientSign
.
setStatus
(
StatusEnum
.
IN_CONSULTATION
.
getValue
());
psWrapper
.
setEntity
(
patientSign
);
PatientSignEntity
patientSignEntity
=
patientSignMapper
.
selectOne
(
psWrapper
);
if
(
Objects
.
nonNull
(
patientSignEntity
))
{
return
BaseResponse
.
success
(
patientSignEntity
.
getAdmId
());
}
// 查询排班医生信息
// 查询排班医生信息
ScheduleRecordEntity
scheduleRecordEntity
=
getScheduleDoctor
(
reqVo
.
getPatientId
());
ScheduleRecordEntity
scheduleRecordEntity
=
getScheduleDoctor
(
reqVo
.
getPatientId
());
doctorId
=
Long
.
valueOf
(
scheduleRecordEntity
.
getDoctorId
());
doctorId
=
Long
.
valueOf
(
scheduleRecordEntity
.
getDoctorId
());
...
@@ -129,7 +141,8 @@ public class PatientServiceImpl implements PatientService {
...
@@ -129,7 +141,8 @@ public class PatientServiceImpl implements PatientService {
}
}
// 处理换绑医生
// 处理换绑医生
if
(
Objects
.
nonNull
(
reqVo
.
getAdmId
())
||
Objects
.
nonNull
(
reqVo
.
getSignSeqId
()))
{
if
((
Objects
.
nonNull
(
reqVo
.
getAdmId
())
||
Objects
.
nonNull
(
reqVo
.
getSignSeqId
())
&&
SignStatus
.
CANCEL
.
getValue
().
equals
(
reqVo
.
getSignStatus
())))
{
QueryWrapper
<
PatientSignEntity
>
psWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
PatientSignEntity
>
psWrapper
=
new
QueryWrapper
<>();
PatientSignEntity
patientSign
=
new
PatientSignEntity
();
PatientSignEntity
patientSign
=
new
PatientSignEntity
();
if
(
Objects
.
nonNull
(
reqVo
.
getAdmId
()))
{
if
(
Objects
.
nonNull
(
reqVo
.
getAdmId
()))
{
...
@@ -198,6 +211,7 @@ public class PatientServiceImpl implements PatientService {
...
@@ -198,6 +211,7 @@ public class PatientServiceImpl implements PatientService {
notifyConsultDataDTO
.
setPatientId
(
entity
.
getUserId
());
notifyConsultDataDTO
.
setPatientId
(
entity
.
getUserId
());
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
);
thirdOrderPushUtil
.
syncBenefitUsedOrder
(
notifyConsultDataDTO
);
thirdOrderPushUtil
.
syncBenefitUsedOrder
(
notifyConsultDataDTO
);
}
else
{
}
else
{
QueryWrapper
<
PatientSignEntity
>
psWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
PatientSignEntity
>
psWrapper
=
new
QueryWrapper
<>();
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/util/ThirdOrderPushUtil.java
浏览文件 @
dbe48757
...
@@ -31,9 +31,8 @@ public class ThirdOrderPushUtil {
...
@@ -31,9 +31,8 @@ public class ThirdOrderPushUtil {
private
ProjProperties
projProperties
;
private
ProjProperties
projProperties
;
public
<
T
extends
ThirdPushDTO
>
Map
<
String
,
String
>
getThirdHead
(
T
t
)
{
public
<
T
>
Map
<
String
,
String
>
getThirdHead
(
T
t
)
{
log
.
info
(
"业务入参:{}"
,
t
);
log
.
info
(
"业务入参:{}"
,
t
);
t
.
setSupplierCode
(
CommonConstants
.
SUPPLIER_CODE
);
String
param
=
JSONObject
.
toJSONString
(
t
);
String
param
=
JSONObject
.
toJSONString
(
t
);
log
.
info
(
"业务数据:{}"
,
param
);
log
.
info
(
"业务数据:{}"
,
param
);
String
assessToken
=
getAssessToken
();
String
assessToken
=
getAssessToken
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论