Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
B
byh-family-doctor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
包
包
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
杨凯
byh-family-doctor
Commits
2d9033a4
提交
2d9033a4
authored
3月 31, 2024
作者:
杨凯
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'test'
上级
9a119401
51473498
显示空白字符变更
内嵌
并排
正在显示
29 个修改的文件
包含
602 行增加
和
60 行删除
+602
-60
MessageInfo.java
...va/com/ebaiyihui/family/doctor/common/bo/MessageInfo.java
+15
-1
PatientSignInfo.java
...om/ebaiyihui/family/doctor/common/bo/PatientSignInfo.java
+16
-2
ImNoReadMsgDTO.java
...om/ebaiyihui/family/doctor/common/dto/ImNoReadMsgDTO.java
+17
-0
MasterUrlDTO.java
.../com/ebaiyihui/family/doctor/common/dto/MasterUrlDTO.java
+19
-0
ReportDetailDTO.java
...m/ebaiyihui/family/doctor/common/dto/ReportDetailDTO.java
+15
-0
SendImMsgDTO.java
.../com/ebaiyihui/family/doctor/common/dto/SendImMsgDTO.java
+2
-0
ImNoReadMsgVo.java
.../com/ebaiyihui/family/doctor/common/vo/ImNoReadMsgVo.java
+21
-0
RegisterPatientVo.java
.../ebaiyihui/family/doctor/common/vo/RegisterPatientVo.java
+4
-0
ReportDetailItemVo.java
...ebaiyihui/family/doctor/common/vo/ReportDetailItemVo.java
+17
-0
ReportDetailVo.java
...com/ebaiyihui/family/doctor/common/vo/ReportDetailVo.java
+31
-0
CommonConstants.java
...amily/doctor/server/common/constants/CommonConstants.java
+4
-0
UrlConstants.java
...i/family/doctor/server/common/constants/UrlConstants.java
+10
-0
MsgTempTypeEnum.java
...ui/family/doctor/server/common/enums/MsgTempTypeEnum.java
+5
-5
ReportTypeEnum.java
...hui/family/doctor/server/common/enums/ReportTypeEnum.java
+66
-0
ImMsgTemplateController.java
...ily/doctor/server/controller/ImMsgTemplateController.java
+14
-0
PatientSignController.java
...amily/doctor/server/controller/PatientSignController.java
+13
-0
MobileBenefitPackageMapper.java
...mily/doctor/server/mapper/MobileBenefitPackageMapper.java
+1
-1
RabbitConsumer.java
...aiyihui/family/doctor/server/rabbitmq/RabbitConsumer.java
+29
-0
ImMsgTemplateService.java
...ui/family/doctor/server/service/ImMsgTemplateService.java
+4
-0
PatientSignService.java
...ihui/family/doctor/server/service/PatientSignService.java
+3
-0
DoctorServiceImpl.java
.../family/doctor/server/service/impl/DoctorServiceImpl.java
+15
-0
ImChatTemplateImpl.java
...family/doctor/server/service/impl/ImChatTemplateImpl.java
+100
-13
ImMsgTemplateServiceImpl.java
.../doctor/server/service/impl/ImMsgTemplateServiceImpl.java
+7
-0
MobileBenefitPackageServiceImpl.java
.../server/service/impl/MobileBenefitPackageServiceImpl.java
+25
-2
PatientServiceImpl.java
...family/doctor/server/service/impl/PatientServiceImpl.java
+45
-29
PatientSignServiceImpl.java
...ly/doctor/server/service/impl/PatientSignServiceImpl.java
+39
-3
SignedTask.java
...a/com/ebaiyihui/family/doctor/server/task/SignedTask.java
+17
-0
ThirdOrderPushUtil.java
...aiyihui/family/doctor/server/util/ThirdOrderPushUtil.java
+46
-4
MobileBenefitPackageMapper.xml
.../src/main/resources/mapper/MobileBenefitPackageMapper.xml
+2
-0
没有找到文件。
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/bo/MessageInfo.java
浏览文件 @
2d9033a4
...
@@ -43,6 +43,11 @@ public class MessageInfo {
...
@@ -43,6 +43,11 @@ public class MessageInfo {
*/
*/
private
String
actionType
;
private
String
actionType
;
/**
* 【选填】消息类型:TIMTextElem,TIMLocationElem,TIMFaceElem,TIMCustomElem,TIMSoundElem,TIMImageElem,TIMFileElem, TIMVideoFileElem
*/
private
String
msgType
;
public
List
<
AccountVO
>
getReceiveAccounts
()
{
public
List
<
AccountVO
>
getReceiveAccounts
()
{
return
receiveAccounts
;
return
receiveAccounts
;
}
}
...
@@ -91,6 +96,14 @@ public class MessageInfo {
...
@@ -91,6 +96,14 @@ public class MessageInfo {
this
.
actionType
=
actionType
;
this
.
actionType
=
actionType
;
}
}
public
String
getMsgType
()
{
return
msgType
;
}
public
void
setMsgType
(
String
msgType
)
{
this
.
msgType
=
msgType
;
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
"MessageInfo{"
+
return
"MessageInfo{"
+
...
@@ -99,7 +112,8 @@ public class MessageInfo {
...
@@ -99,7 +112,8 @@ public class MessageInfo {
", selfAccount="
+
selfAccount
+
", selfAccount="
+
selfAccount
+
", message="
+
message
+
", message="
+
message
+
", syncFlag="
+
syncFlag
+
", syncFlag="
+
syncFlag
+
", actionType='"
+
actionType
+
'\''
+
", actionType='"
+
actionType
+
", msgType='"
+
msgType
+
'\''
+
'}'
;
'}'
;
}
}
}
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/bo/PatientSignInfo.java
浏览文件 @
2d9033a4
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
bo
;
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
bo
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.List
;
import
java.util.List
;
...
@@ -65,4 +64,19 @@ public class PatientSignInfo {
...
@@ -65,4 +64,19 @@ public class PatientSignInfo {
* 团队成员信息(个人这个值为null)
* 团队成员信息(个人这个值为null)
*/
*/
private
List
<
MemberInfo
>
memberInfos
;
private
List
<
MemberInfo
>
memberInfos
;
/**
* 医生头像图片地址
*/
private
String
doctorHeadPortrait
;
/**
* 医生职称
*/
private
String
doctorProfessional
;
/**
* 签约id
*/
private
Long
signedId
;
}
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/dto/ImNoReadMsgDTO.java
0 → 100644
浏览文件 @
2d9033a4
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
dto
;
import
lombok.Data
;
/**
* @ClassName: ImNoReadMsgDTO
* @Author:yanliang
* @Date:2024/3/27 13:46
* @Description
*/
@Data
public
class
ImNoReadMsgDTO
{
private
String
phone
;
private
String
doctorId
;
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/dto/MasterUrlDTO.java
0 → 100644
浏览文件 @
2d9033a4
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
dto
;
import
lombok.Data
;
/**
* @ClassName: MasterUrlDTO
* @Author:yanliang
* @Date:2024/3/27 13:55
* @Description
*/
@Data
public
class
MasterUrlDTO
{
private
String
phone
;
private
String
signSeqId
;
private
String
type
;
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/dto/ReportDetailDTO.java
0 → 100644
浏览文件 @
2d9033a4
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
dto
;
import
lombok.Data
;
/**
* @ClassName: ReportDetailDTO
* @Author:yanliang
* @Date:2024/3/27 14:14
* @Description
*/
@Data
public
class
ReportDetailDTO
{
private
String
thirdId
;
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/dto/SendImMsgDTO.java
浏览文件 @
2d9033a4
...
@@ -30,4 +30,6 @@ public class SendImMsgDTO {
...
@@ -30,4 +30,6 @@ public class SendImMsgDTO {
private
String
abnormalId
;
private
String
abnormalId
;
private
String
intention
;
private
String
intention
;
private
String
thirdId
;
}
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/vo/ImNoReadMsgVo.java
0 → 100644
浏览文件 @
2d9033a4
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
vo
;
import
lombok.Data
;
/**
* @ClassName: ImNoReadMsgVo
* @Author:yanliang
* @Date:2024/3/27 13:47
* @Description
*/
@Data
public
class
ImNoReadMsgVo
{
private
String
userName
;
private
String
messageNum
;
private
String
groupId
;
private
String
timestamp
;
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/vo/RegisterPatientVo.java
浏览文件 @
2d9033a4
...
@@ -36,4 +36,8 @@ public class RegisterPatientVo {
...
@@ -36,4 +36,8 @@ public class RegisterPatientVo {
private
String
intention
;
private
String
intention
;
private
String
doctorId
;
private
String
doctorId
;
private
String
thirdId
;
private
String
userId
;
}
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/vo/ReportDetailItemVo.java
0 → 100644
浏览文件 @
2d9033a4
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
vo
;
import
lombok.Data
;
/**
* @ClassName: ReportDetailItemVo
* @Author:yanliang
* @Date:2024/3/27 14:17
* @Description
*/
@Data
public
class
ReportDetailItemVo
{
private
String
fileUrl
;
private
Integer
fileType
;
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/vo/ReportDetailVo.java
0 → 100644
浏览文件 @
2d9033a4
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
vo
;
import
lombok.Data
;
import
java.util.List
;
/**
* @ClassName: ReportDetailVo
* @Author:yanliang
* @Date:2024/3/27 14:15
* @Description
*/
@Data
public
class
ReportDetailVo
{
private
String
reportName
;
private
String
institution
;
private
String
department
;
private
String
diagnosis
;
private
Integer
reportType
;
private
String
createTime
;
private
String
examinationTime
;
private
List
<
ReportDetailItemVo
>
reportFileList
;
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/common/constants/CommonConstants.java
浏览文件 @
2d9033a4
...
@@ -144,4 +144,8 @@ public class CommonConstants {
...
@@ -144,4 +144,8 @@ public class CommonConstants {
public
static
final
String
SUPPLIER_CODE
=
"ZhongKang"
;
public
static
final
String
SUPPLIER_CODE
=
"ZhongKang"
;
public
static
final
String
SUPPLIER_CODE_JTYS
=
"zhongkang_mfd"
;
public
static
final
String
SUPPLIER_CODE_JTYS
=
"zhongkang_mfd"
;
public
static
final
String
USER_ACTION
=
"2000"
;
public
static
final
String
MSG_TYPE
=
"PICTURE"
;
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/common/constants/UrlConstants.java
浏览文件 @
2d9033a4
...
@@ -65,4 +65,14 @@ public class UrlConstants {
...
@@ -65,4 +65,14 @@ public class UrlConstants {
* 查询用户基础指标信息
* 查询用户基础指标信息
*/
*/
public
static
final
String
USER_BASIC_IND_URL
=
"/auth/v1.0.0/userBasicIndicators"
;
public
static
final
String
USER_BASIC_IND_URL
=
"/auth/v1.0.0/userBasicIndicators"
;
/**
* 查询资源落地页
*/
public
static
final
String
MASTER_URL
=
"/auth/v1.0.0/family_doctor_master_url"
;
/**
* 查询用户报告详情
*/
public
static
final
String
REPORT_DETAIL_URL
=
"/auth/v1.0.0/report_detail"
;
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/common/enums/MsgTempTypeEnum.java
浏览文件 @
2d9033a4
...
@@ -15,15 +15,15 @@ public enum MsgTempTypeEnum {
...
@@ -15,15 +15,15 @@ public enum MsgTempTypeEnum {
HP_INQ_DOCTOR
(
"家庭主页问医生"
,
3
),
HP_INQ_DOCTOR
(
"家庭主页问医生"
,
3
),
HP_INQ_DUTY_DOCTOR
(
"家庭主页问联系值班医生"
,
4
),
HP_INQ_DUTY_DOCTOR
(
"家庭主页问联系值班医生"
,
8
),
HEAL_DIS_CON
(
"健康/疾病咨询"
,
5
),
HEAL_DIS_CON
(
"健康/疾病咨询"
,
4
),
MED_GUD
(
"用药指导"
,
6
),
MED_GUD
(
"用药指导"
,
5
),
REP_INTER
(
"报告解读"
,
7
),
REP_INTER
(
"报告解读"
,
6
),
PRES_MED
(
"处方开药"
,
8
),
PRES_MED
(
"处方开药"
,
7
),
REP_ANO
(
"报告异常"
,
9
),
REP_ANO
(
"报告异常"
,
9
),
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/common/enums/ReportTypeEnum.java
0 → 100644
浏览文件 @
2d9033a4
package
com
.
ebaiyihui
.
family
.
doctor
.
server
.
common
.
enums
;
import
org.apache.commons.lang.StringUtils
;
/**
* @ClassName: ReportTypeEnum
* @Author:yanliang
* @Date:2024/3/27 15:10
* @Description
*/
public
enum
ReportTypeEnum
{
// 报告类型,1检查检验, 2就诊病历
INSPECTION
(
"检查检验"
,
1
),
CONSULTATION
(
"就诊病历"
,
2
);
private
String
desc
;
private
Integer
value
;
private
ReportTypeEnum
(
String
desc
,
Integer
value
)
{
this
.
desc
=
desc
;
this
.
value
=
value
;
}
public
String
getDesc
()
{
return
desc
;
}
public
void
setDesc
(
String
desc
)
{
this
.
desc
=
desc
;
}
public
Integer
getValue
()
{
return
value
;
}
public
void
setValue
(
Integer
value
)
{
this
.
value
=
value
;
}
public
static
String
getDesc
(
Integer
value
)
{
if
(
value
==
null
||
value
<
0
)
{
return
null
;
}
for
(
ReportTypeEnum
reportTypeEnum
:
ReportTypeEnum
.
values
())
{
if
(
value
.
equals
(
reportTypeEnum
.
getValue
()))
{
return
reportTypeEnum
.
getDesc
();
}
}
return
null
;
}
public
static
Integer
getValue
(
String
desc
)
{
if
(
StringUtils
.
isBlank
(
desc
))
{
return
null
;
}
for
(
ReportTypeEnum
reportTypeEnum
:
ReportTypeEnum
.
values
())
{
if
(
reportTypeEnum
.
getDesc
().
equals
(
desc
))
{
return
reportTypeEnum
.
getValue
();
}
}
return
null
;
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/controller/ImMsgTemplateController.java
浏览文件 @
2d9033a4
package
com
.
ebaiyihui
.
family
.
doctor
.
server
.
controller
;
package
com
.
ebaiyihui
.
family
.
doctor
.
server
.
controller
;
import
com.ebaiyihui.family.doctor.common.dto.ImNoReadMsgDTO
;
import
com.ebaiyihui.family.doctor.common.dto.SendImMsgDTO
;
import
com.ebaiyihui.family.doctor.common.dto.SendImMsgDTO
;
import
com.ebaiyihui.family.doctor.common.vo.ImNoReadMsgVo
;
import
com.ebaiyihui.family.doctor.server.service.ImMsgTemplateService
;
import
com.ebaiyihui.family.doctor.server.service.ImMsgTemplateService
;
import
com.ebaiyihui.framework.response.BaseResponse
;
import
com.ebaiyihui.framework.response.BaseResponse
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -39,4 +41,16 @@ public class ImMsgTemplateController {
...
@@ -39,4 +41,16 @@ public class ImMsgTemplateController {
}
}
return
BaseResponse
.
success
(
"消息推送成功"
);
return
BaseResponse
.
success
(
"消息推送成功"
);
}
}
@RequestMapping
(
value
=
"/queryImNoReadMsg"
,
method
=
RequestMethod
.
POST
)
public
BaseResponse
<
ImNoReadMsgVo
>
queryImNoReadMsg
(
@RequestBody
ImNoReadMsgDTO
reqVo
,
BindingResult
bindingResult
)
{
BaseResponse
<
ImNoReadMsgVo
>
response
=
null
;
try
{
response
=
imMsgTemplateService
.
queryImNoReadMsg
(
reqVo
);
}
catch
(
Exception
e
)
{
return
BaseResponse
.
error
(
e
.
getMessage
());
}
return
response
;
}
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/controller/PatientSignController.java
浏览文件 @
2d9033a4
...
@@ -113,4 +113,17 @@ public class PatientSignController {
...
@@ -113,4 +113,17 @@ public class PatientSignController {
public
BaseResponse
<
IMQueryUserLoginRspVO
>
querySdkLogin
(
@RequestBody
IMQueryUserLoginReqVO
reqVO
)
{
public
BaseResponse
<
IMQueryUserLoginRspVO
>
querySdkLogin
(
@RequestBody
IMQueryUserLoginReqVO
reqVO
)
{
return
patientSignService
.
querySdkLogin
(
reqVO
);
return
patientSignService
.
querySdkLogin
(
reqVO
);
}
}
@RequestMapping
(
value
=
"/queryMasterUrl"
,
method
=
RequestMethod
.
POST
)
public
BaseResponse
<
String
>
queryMasterUrl
(
@RequestBody
MasterUrlDTO
reqVo
,
BindingResult
bindingResult
)
{
BaseResponse
<
String
>
response
=
null
;
try
{
response
=
patientSignService
.
queryMasterUrl
(
reqVo
);
}
catch
(
Exception
e
)
{
return
BaseResponse
.
error
(
e
.
getMessage
());
}
return
response
;
}
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/mapper/MobileBenefitPackageMapper.java
浏览文件 @
2d9033a4
...
@@ -17,7 +17,7 @@ public interface MobileBenefitPackageMapper {
...
@@ -17,7 +17,7 @@ public interface MobileBenefitPackageMapper {
void
insert
(
MobileBenefitPackageEntity
entity
);
void
insert
(
MobileBenefitPackageEntity
entity
);
MobileBenefitPackageEntity
queryByPhone
(
@Param
(
"mobile"
)
String
mobile
,
@Param
(
"activateOrderId"
)
String
activateOrderId
);
MobileBenefitPackageEntity
queryByPhone
(
@Param
(
"mobile"
)
String
mobile
,
@Param
(
"activateOrderId"
)
String
activateOrderId
,
@Param
(
"flag"
)
String
flag
);
void
updateUsed
(
MobileBenefitPackageEntity
entity
);
void
updateUsed
(
MobileBenefitPackageEntity
entity
);
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/rabbitmq/RabbitConsumer.java
浏览文件 @
2d9033a4
package
com
.
ebaiyihui
.
family
.
doctor
.
server
.
rabbitmq
;
package
com
.
ebaiyihui
.
family
.
doctor
.
server
.
rabbitmq
;
import
com.ebaiyihui.family.doctor.common.dto.NotifyConsultDataDTO
;
import
com.ebaiyihui.family.doctor.server.common.constants.CommonConstants
;
import
com.ebaiyihui.family.doctor.server.common.enums.StatusEnum
;
import
com.ebaiyihui.family.doctor.server.common.enums.StatusEnum
;
import
com.ebaiyihui.family.doctor.server.config.RabbitMqConfig
;
import
com.ebaiyihui.family.doctor.server.config.RabbitMqConfig
;
import
com.ebaiyihui.family.doctor.server.entity.MobileBenefitPackageEntity
;
import
com.ebaiyihui.family.doctor.server.entity.PatientSignEntity
;
import
com.ebaiyihui.family.doctor.server.entity.PatientSignEntity
;
import
com.ebaiyihui.family.doctor.server.mapper.MobileBenefitPackageMapper
;
import
com.ebaiyihui.family.doctor.server.mapper.PatientSignMapper
;
import
com.ebaiyihui.family.doctor.server.mapper.PatientSignMapper
;
import
com.ebaiyihui.family.doctor.server.util.DateUtils
;
import
com.ebaiyihui.family.doctor.server.util.ThirdOrderPushUtil
;
import
com.ebaiyihui.family.doctor.server.vo.OrderTaskVo
;
import
com.ebaiyihui.family.doctor.server.vo.OrderTaskVo
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.amqp.rabbit.annotation.RabbitListener
;
import
org.springframework.amqp.rabbit.annotation.RabbitListener
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.messaging.handler.annotation.Payload
;
import
org.springframework.messaging.handler.annotation.Payload
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.ObjectUtils
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -26,6 +33,12 @@ public class RabbitConsumer {
...
@@ -26,6 +33,12 @@ public class RabbitConsumer {
@Autowired
@Autowired
private
PatientSignMapper
patientSignMapper
;
private
PatientSignMapper
patientSignMapper
;
@Autowired
private
MobileBenefitPackageMapper
mobileBenefitPackageMapper
;
@Autowired
private
ThirdOrderPushUtil
thirdOrderPushUtil
;
@RabbitListener
(
queues
=
RabbitMqConfig
.
ORDER_DELAY_QUEUE_1
)
@RabbitListener
(
queues
=
RabbitMqConfig
.
ORDER_DELAY_QUEUE_1
)
public
void
orderDelayQueue1
(
@Payload
OrderTaskVo
orderTaskVo
)
{
public
void
orderDelayQueue1
(
@Payload
OrderTaskVo
orderTaskVo
)
{
log
.
info
(
"定时任务监听结果:{}"
,
orderTaskVo
.
toString
());
log
.
info
(
"定时任务监听结果:{}"
,
orderTaskVo
.
toString
());
...
@@ -41,6 +54,22 @@ public class RabbitConsumer {
...
@@ -41,6 +54,22 @@ public class RabbitConsumer {
if
(
StatusEnum
.
IN_CONSULTATION
.
getValue
().
equals
(
patientSignEntity
.
getStatus
()))
{
if
(
StatusEnum
.
IN_CONSULTATION
.
getValue
().
equals
(
patientSignEntity
.
getStatus
()))
{
patientSignEntity
.
setStatus
(
StatusEnum
.
FINISH_APPLY
.
getValue
());
patientSignEntity
.
setStatus
(
StatusEnum
.
FINISH_APPLY
.
getValue
());
patientSignMapper
.
updateById
(
patientSignEntity
);
patientSignMapper
.
updateById
(
patientSignEntity
);
MobileBenefitPackageEntity
entity
=
mobileBenefitPackageMapper
.
queryByPhone
(
patientSignEntity
.
getPatientPhone
(),
patientSignEntity
.
getPackageOrderId
(),
"1"
);
if
(!
ObjectUtils
.
isEmpty
(
entity
))
{
// 推送第三方权益使用
NotifyConsultDataDTO
notifyConsultDataDTO
=
new
NotifyConsultDataDTO
();
notifyConsultDataDTO
.
setActivateOrderId
(
patientSignEntity
.
getPackageOrderId
());
notifyConsultDataDTO
.
setConsultOrderNo
(
patientSignEntity
.
getAdmId
());
notifyConsultDataDTO
.
setStatus
(
String
.
valueOf
(
StatusEnum
.
FINISH_APPLY
.
getValue
()));
notifyConsultDataDTO
.
setProductId
(
entity
.
getProductId
());
notifyConsultDataDTO
.
setPatientId
(
entity
.
getUserId
());
notifyConsultDataDTO
.
setExpertName
(
patientSignEntity
.
getDoctorName
());
notifyConsultDataDTO
.
setOrderDate
(
DateUtils
.
dateToFullString
(
patientSignEntity
.
getCreateTime
()));
notifyConsultDataDTO
.
setSupplierCode
(
CommonConstants
.
SUPPLIER_CODE_JTYS
);
thirdOrderPushUtil
.
syncBenefitUsedOrder
(
notifyConsultDataDTO
,
null
);
}
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
info
(
"orderDelayQueue监听异常"
,
e
);
log
.
info
(
"orderDelayQueue监听异常"
,
e
);
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/ImMsgTemplateService.java
浏览文件 @
2d9033a4
package
com
.
ebaiyihui
.
family
.
doctor
.
server
.
service
;
package
com
.
ebaiyihui
.
family
.
doctor
.
server
.
service
;
import
com.ebaiyihui.family.doctor.common.dto.ImNoReadMsgDTO
;
import
com.ebaiyihui.family.doctor.common.dto.SendImMsgDTO
;
import
com.ebaiyihui.family.doctor.common.dto.SendImMsgDTO
;
import
com.ebaiyihui.family.doctor.common.vo.ImNoReadMsgVo
;
import
com.ebaiyihui.framework.response.BaseResponse
;
import
com.ebaiyihui.framework.response.BaseResponse
;
/**
/**
...
@@ -13,4 +15,6 @@ import com.ebaiyihui.framework.response.BaseResponse;
...
@@ -13,4 +15,6 @@ import com.ebaiyihui.framework.response.BaseResponse;
public
interface
ImMsgTemplateService
{
public
interface
ImMsgTemplateService
{
BaseResponse
<
String
>
sendImMsg
(
SendImMsgDTO
reqVo
);
BaseResponse
<
String
>
sendImMsg
(
SendImMsgDTO
reqVo
);
BaseResponse
<
ImNoReadMsgVo
>
queryImNoReadMsg
(
ImNoReadMsgDTO
reqVo
);
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/PatientSignService.java
浏览文件 @
2d9033a4
...
@@ -3,6 +3,7 @@ package com.ebaiyihui.family.doctor.server.service;
...
@@ -3,6 +3,7 @@ package com.ebaiyihui.family.doctor.server.service;
import
com.ebaiyihui.family.doctor.common.dto.ImAccountReqDTO
;
import
com.ebaiyihui.family.doctor.common.dto.ImAccountReqDTO
;
import
com.ebaiyihui.family.doctor.common.dto.ImInfoDetailDocReqDTO
;
import
com.ebaiyihui.family.doctor.common.dto.ImInfoDetailDocReqDTO
;
import
com.ebaiyihui.family.doctor.common.dto.ImInfoListDocReqDTO
;
import
com.ebaiyihui.family.doctor.common.dto.ImInfoListDocReqDTO
;
import
com.ebaiyihui.family.doctor.common.dto.MasterUrlDTO
;
import
com.ebaiyihui.family.doctor.common.vo.ImAccountVo
;
import
com.ebaiyihui.family.doctor.common.vo.ImAccountVo
;
import
com.ebaiyihui.family.doctor.common.vo.ImInfoDetailDocResVo
;
import
com.ebaiyihui.family.doctor.common.vo.ImInfoDetailDocResVo
;
import
com.ebaiyihui.family.doctor.common.vo.ImInfoListResVo
;
import
com.ebaiyihui.family.doctor.common.vo.ImInfoListResVo
;
...
@@ -50,4 +51,6 @@ public interface PatientSignService {
...
@@ -50,4 +51,6 @@ public interface PatientSignService {
PatientSignEntity
getOneByPhone
(
String
phone
);
PatientSignEntity
getOneByPhone
(
String
phone
);
int
updateById
(
PatientSignEntity
patientSignEntity
);
int
updateById
(
PatientSignEntity
patientSignEntity
);
BaseResponse
<
String
>
queryMasterUrl
(
MasterUrlDTO
reqVo
);
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/DoctorServiceImpl.java
浏览文件 @
2d9033a4
...
@@ -13,11 +13,13 @@ import com.ebaiyihui.family.doctor.common.dto.*;
...
@@ -13,11 +13,13 @@ import com.ebaiyihui.family.doctor.common.dto.*;
import
com.ebaiyihui.family.doctor.common.vo.*
;
import
com.ebaiyihui.family.doctor.common.vo.*
;
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.SignStatus
;
import
com.ebaiyihui.family.doctor.server.common.enums.SignStatus
;
import
com.ebaiyihui.family.doctor.server.entity.PatientEntity
;
import
com.ebaiyihui.family.doctor.server.entity.PatientSignEntity
;
import
com.ebaiyihui.family.doctor.server.entity.PatientSignEntity
;
import
com.ebaiyihui.family.doctor.server.entity.ServiceConfigEntity
;
import
com.ebaiyihui.family.doctor.server.entity.ServiceConfigEntity
;
import
com.ebaiyihui.family.doctor.server.feign.DepartmentFeignClient
;
import
com.ebaiyihui.family.doctor.server.feign.DepartmentFeignClient
;
import
com.ebaiyihui.family.doctor.server.feign.DoctorInfofeignClient
;
import
com.ebaiyihui.family.doctor.server.feign.DoctorInfofeignClient
;
import
com.ebaiyihui.family.doctor.server.feign.DoctorWorkingServiceClient
;
import
com.ebaiyihui.family.doctor.server.feign.DoctorWorkingServiceClient
;
import
com.ebaiyihui.family.doctor.server.mapper.PatientMapper
;
import
com.ebaiyihui.family.doctor.server.mapper.PatientSignMapper
;
import
com.ebaiyihui.family.doctor.server.mapper.PatientSignMapper
;
import
com.ebaiyihui.family.doctor.server.mapper.ServiceConfigMapper
;
import
com.ebaiyihui.family.doctor.server.mapper.ServiceConfigMapper
;
import
com.ebaiyihui.family.doctor.server.service.DoctorService
;
import
com.ebaiyihui.family.doctor.server.service.DoctorService
;
...
@@ -33,6 +35,7 @@ import org.springframework.util.CollectionUtils;
...
@@ -33,6 +35,7 @@ import org.springframework.util.CollectionUtils;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
/**
/**
...
@@ -48,6 +51,9 @@ public class DoctorServiceImpl implements DoctorService {
...
@@ -48,6 +51,9 @@ public class DoctorServiceImpl implements DoctorService {
@Autowired
@Autowired
private
PatientSignMapper
patientSignMapper
;
private
PatientSignMapper
patientSignMapper
;
@Autowired
private
PatientMapper
patientMapper
;
@Autowired
@Autowired
private
ServiceConfigMapper
serviceConfigMapper
;
private
ServiceConfigMapper
serviceConfigMapper
;
...
@@ -78,6 +84,15 @@ public class DoctorServiceImpl implements DoctorService {
...
@@ -78,6 +84,15 @@ public class DoctorServiceImpl implements DoctorService {
patientSignEntity
.
setPatientId
(
reqVo
.
getPatientId
());
patientSignEntity
.
setPatientId
(
reqVo
.
getPatientId
());
patientSignEntity
.
setOrganId
(
reqVo
.
getOrganId
());
patientSignEntity
.
setOrganId
(
reqVo
.
getOrganId
());
patientSignEntity
.
setSignStatus
(
SignStatus
.
SIGNED
.
getValue
());
patientSignEntity
.
setSignStatus
(
SignStatus
.
SIGNED
.
getValue
());
QueryWrapper
<
PatientEntity
>
pWrapper
=
new
QueryWrapper
<>();
PatientEntity
patient
=
new
PatientEntity
();
patient
.
setId
(
reqVo
.
getPatientId
());
pWrapper
.
setEntity
(
patient
);
PatientEntity
patientEntity
=
patientMapper
.
selectOne
(
pWrapper
);
if
(
Objects
.
nonNull
(
patientEntity
))
{
patientSignEntity
.
setPatientPhone
(
patientEntity
.
getPhone
());
}
wrapper
.
setEntity
(
patientSignEntity
);
wrapper
.
setEntity
(
patientSignEntity
);
wrapper
.
orderByDesc
(
"create_time"
);
wrapper
.
orderByDesc
(
"create_time"
);
wrapper
.
last
(
"limit 1"
);
wrapper
.
last
(
"limit 1"
);
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/ImChatTemplateImpl.java
浏览文件 @
2d9033a4
...
@@ -8,13 +8,14 @@ import com.doctoruser.api.pojo.base.vo.doctor.PersonnelInfo;
...
@@ -8,13 +8,14 @@ import com.doctoruser.api.pojo.base.vo.doctor.PersonnelInfo;
import
com.doctoruser.api.pojo.vo.UserInfoByDoctorIdRespVO
;
import
com.doctoruser.api.pojo.vo.UserInfoByDoctorIdRespVO
;
import
com.doctoruser.api.pojo.vo.UserInfoByUserIdRespVO
;
import
com.doctoruser.api.pojo.vo.UserInfoByUserIdRespVO
;
import
com.ebaiyihui.family.doctor.common.bo.*
;
import
com.ebaiyihui.family.doctor.common.bo.*
;
import
com.ebaiyihui.family.doctor.common.dto.
DoctorIdDTO
;
import
com.ebaiyihui.family.doctor.common.dto.
*
;
import
com.ebaiyihui.family.doctor.common.
dto.HealthInfoDTO
;
import
com.ebaiyihui.family.doctor.common.
vo.ReportDetailItemVo
;
import
com.ebaiyihui.family.doctor.common.
dto.SendImMsgDTO
;
import
com.ebaiyihui.family.doctor.common.
vo.ReportDetailVo
;
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.IMInformConstants
;
import
com.ebaiyihui.family.doctor.server.common.constants.IMInformConstants
;
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.ReportTypeEnum
;
import
com.ebaiyihui.family.doctor.server.common.enums.SenderEnum
;
import
com.ebaiyihui.family.doctor.server.common.enums.SenderEnum
;
import
com.ebaiyihui.family.doctor.server.entity.PatientSignEntity
;
import
com.ebaiyihui.family.doctor.server.entity.PatientSignEntity
;
import
com.ebaiyihui.family.doctor.server.exception.BusinessException
;
import
com.ebaiyihui.family.doctor.server.exception.BusinessException
;
...
@@ -26,6 +27,7 @@ import com.ebaiyihui.family.doctor.server.mapper.PatientSignMapper;
...
@@ -26,6 +27,7 @@ import com.ebaiyihui.family.doctor.server.mapper.PatientSignMapper;
import
com.ebaiyihui.family.doctor.server.service.ImChatTemplate
;
import
com.ebaiyihui.family.doctor.server.service.ImChatTemplate
;
import
com.ebaiyihui.family.doctor.server.util.JsonUtil
;
import
com.ebaiyihui.family.doctor.server.util.JsonUtil
;
import
com.ebaiyihui.family.doctor.server.util.ThirdOrderPushUtil
;
import
com.ebaiyihui.family.doctor.server.util.ThirdOrderPushUtil
;
import
com.ebaiyihui.family.doctor.server.util.UUIDUtil
;
import
com.ebaiyihui.framework.response.BaseResponse
;
import
com.ebaiyihui.framework.response.BaseResponse
;
import
com.ebaiyihui.imforward.client.vo.*
;
import
com.ebaiyihui.imforward.client.vo.*
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -35,9 +37,7 @@ import org.springframework.stereotype.Service;
...
@@ -35,9 +37,7 @@ import org.springframework.stereotype.Service;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
java.text.MessageFormat
;
import
java.text.MessageFormat
;
import
java.util.ArrayList
;
import
java.util.*
;
import
java.util.List
;
import
java.util.Objects
;
/**
/**
* @ClassName: ImChatTemplateImpl
* @ClassName: ImChatTemplateImpl
...
@@ -143,7 +143,7 @@ public class ImChatTemplateImpl implements ImChatTemplate {
...
@@ -143,7 +143,7 @@ public class ImChatTemplateImpl implements ImChatTemplate {
parameter
.
setAdmissionId
(
admId
);
parameter
.
setAdmissionId
(
admId
);
parameter
.
setBusiCode
(
IMInformConstants
.
IM_SYSTEM_BUSINESS_CODE
);
parameter
.
setBusiCode
(
IMInformConstants
.
IM_SYSTEM_BUSINESS_CODE
);
log
.
info
(
"推送家庭医生提示语推送:{}"
+
JSON
.
toJSONString
(
parameter
.
getMessageInfos
()));
log
.
info
(
"推送家庭医生提示语推送:{}"
+
JSON
.
toJSONString
(
parameter
.
getMessageInfos
()));
if
(
personUserImInform
(
parameter
,
content
,
null
))
{
if
(
personUserImInform
(
parameter
,
content
,
null
,
null
))
{
log
.
info
(
"推送家庭医生提示语推送成功,admissionId:{}"
,
admId
);
log
.
info
(
"推送家庭医生提示语推送成功,admissionId:{}"
,
admId
);
}
}
}
}
...
@@ -153,15 +153,74 @@ public class ImChatTemplateImpl implements ImChatTemplate {
...
@@ -153,15 +153,74 @@ public class ImChatTemplateImpl implements ImChatTemplate {
Boolean
flag
=
false
;
Boolean
flag
=
false
;
if
(!
componentsList
.
isEmpty
())
{
if
(!
componentsList
.
isEmpty
())
{
log
.
info
(
"componentsList={}"
,
componentsList
);
log
.
info
(
"componentsList={}"
,
componentsList
);
String
reportResult
=
""
;
// 报告推送
if
(
MsgTempTypeEnum
.
REP_INTER
.
getValue
().
equals
(
sendImMsgDTO
.
getType
()))
{
ReportDetailDTO
reportDetailDTO
=
new
ReportDetailDTO
();
reportDetailDTO
.
setThirdId
(
sendImMsgDTO
.
getThirdId
());
reportResult
=
thirdOrderPushUtil
.
getReportDetail
(
reportDetailDTO
);
// reportResult = "{\"code\":\"200\",\"message\":\"success\",\"data\":{\"reportType\":1,\"institution\":\"瑞金医院\",\"reportFileList\":[{\"fileUrl\":\"https://pension.home.komect.com/ac-health-oss/health-container/K4aW5uWQToWj0Ty7rCUlqw?AWSAccessKeyId=82A0955SWSXVITYRB1Z4&Expires=4070880000&Signature=Efrj6X4BI%2BtYlcdjoGboaJhedE0%3D\",\"fileType\":1}],\"reportName\":\"验血报告\",\"createTime\":\"2024-03-26 19:29:28\",\"examinationTime\":\"2024-03-26\"},\"time\":1711530711174}";
}
for
(
int
i
=
0
;
i
<
componentsList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
componentsList
.
size
();
i
++)
{
String
content
=
componentsList
.
get
(
i
).
getContent
();
String
content
=
componentsList
.
get
(
i
).
getContent
();
List
<
MessageInfo
>
messageInfos
=
new
ArrayList
<>();
List
<
MessageInfo
>
messageInfos
=
new
ArrayList
<>();
PatientSignInfo
patientSignInfo
=
getPatientSignInfo
(
sendImMsgDTO
.
getAdmId
());
PatientSignInfo
patientSignInfo
=
getPatientSignInfo
(
sendImMsgDTO
.
getAdmId
());
MessageInfo
messageInfo
=
new
MessageInfo
();
MessageInfo
messageInfo
=
new
MessageInfo
();
// 报告解读
// 报告异常特殊处理
String
msgType
=
null
;
if
(
MsgTempTypeEnum
.
REP_ANO
.
getValue
().
equals
(
sendImMsgDTO
.
getType
()))
{
if
(
MsgTempTypeEnum
.
REP_INTER
.
getValue
().
equals
(
sendImMsgDTO
.
getType
()))
{
if
(!
StringUtils
.
isEmpty
(
reportResult
))
{
Result
rrResult
=
JSON
.
parseObject
(
reportResult
,
Result
.
class
);
if
(
rrResult
.
isSuccess
())
{
ReportDetailVo
reportDetailVo
=
JSON
.
parseObject
(
JSONObject
.
toJSONString
(
rrResult
.
getData
()),
ReportDetailVo
.
class
);
List
<
ReportDetailItemVo
>
reportDetailItemVos
=
reportDetailVo
.
getReportFileList
();
if
(
i
==
0
)
{
if
(
Objects
.
nonNull
(
reportDetailVo
))
{
content
=
MessageFormat
.
format
(
content
,
patientSignInfo
.
getDoctorName
(),
ReportTypeEnum
.
getDesc
(
reportDetailVo
.
getReportType
()));
}
}
else
if
(
i
==
1
)
{
Map
<
String
,
Object
>
imageMap
=
new
HashMap
<>();
if
(
reportDetailVo
.
getReportType
().
equals
(
1
))
{
imageMap
.
put
(
"UserAction"
,
CommonConstants
.
USER_ACTION
);
imageMap
.
put
(
"applicationCode"
,
IMInformConstants
.
IM_SYSTEM_BUSINESS_CODE
);
imageMap
.
put
(
"appointmentId"
,
sendImMsgDTO
.
getAdmId
());
imageMap
.
put
(
"attacheUrl"
,
reportDetailItemVos
.
get
(
0
).
getFileUrl
());
imageMap
.
put
(
"businessCode"
,
IMInformConstants
.
IM_SYSTEM_BUSINESS_CODE
);
imageMap
.
put
(
"doctorHeadUrl"
,
patientSignInfo
.
getDoctorHeadPortrait
());
imageMap
.
put
(
"doctorName"
,
patientSignInfo
.
getDoctorName
());
imageMap
.
put
(
"msgId"
,
UUIDUtil
.
getUUID
());
imageMap
.
put
(
"msgType"
,
CommonConstants
.
MSG_TYPE
);
imageMap
.
put
(
"senderName"
,
patientSignInfo
.
getDoctorName
());
imageMap
.
put
(
"senderProfessional"
,
patientSignInfo
.
getDoctorProfessional
());
imageMap
.
put
(
"team"
,
false
);
imageMap
.
put
(
"teamFlag"
,
0
);
imageMap
.
put
(
"toApplicationCode"
,
IMInformConstants
.
IM_SYSTEM_BUSINESS_CODE
);
msgType
=
"TIMCustomElem"
;
}
content
=
JSONObject
.
toJSONString
(
imageMap
);
}
else
if
(
i
==
2
)
{
if
(
Objects
.
nonNull
(
reportDetailVo
))
{
content
=
MessageFormat
.
format
(
content
,
ReportTypeEnum
.
getDesc
(
reportDetailVo
.
getReportType
()));
}
}
}
}
}
else
if
(
MsgTempTypeEnum
.
REP_ANO
.
getValue
().
equals
(
sendImMsgDTO
.
getType
()))
{
// 报告异常特殊处理
content
=
MessageFormat
.
format
(
content
,
patientSignInfo
.
getDoctorName
(),
sendImMsgDTO
.
getIntention
());
content
=
MessageFormat
.
format
(
content
,
patientSignInfo
.
getDoctorName
(),
sendImMsgDTO
.
getIntention
());
}
else
if
(
MsgTempTypeEnum
.
AFTER_HEAL_ASSE
.
getValue
().
equals
(
sendImMsgDTO
.
getType
()))
{
// 健康评估后特殊处理
MasterUrlDTO
masterUrlDTO
=
new
MasterUrlDTO
();
masterUrlDTO
.
setPhone
(
patientSignInfo
.
getPatientPhone
());
masterUrlDTO
.
setSignSeqId
(
String
.
valueOf
(
patientSignInfo
.
getSignedId
()));
masterUrlDTO
.
setType
(
"2"
);
String
masterResult
=
thirdOrderPushUtil
.
getMasterUrl
(
masterUrlDTO
);
if
(!
StringUtils
.
isEmpty
(
masterResult
))
{
Result
<
String
>
muResult
=
JSON
.
parseObject
(
masterResult
,
Result
.
class
);
if
(
muResult
.
isSuccess
())
{
content
=
MessageFormat
.
format
(
content
,
muResult
.
getData
());
}
}
}
else
{
}
else
{
if
(!
StringUtils
.
isEmpty
(
sendImMsgDTO
.
getOldAdmId
()))
{
if
(!
StringUtils
.
isEmpty
(
sendImMsgDTO
.
getOldAdmId
()))
{
if
(
MsgTempTypeEnum
.
UP_SUC
.
getValue
().
equals
(
sendImMsgDTO
.
getType
()))
{
if
(
MsgTempTypeEnum
.
UP_SUC
.
getValue
().
equals
(
sendImMsgDTO
.
getType
()))
{
...
@@ -177,6 +236,17 @@ public class ImChatTemplateImpl implements ImChatTemplate {
...
@@ -177,6 +236,17 @@ public class ImChatTemplateImpl implements ImChatTemplate {
if
(
hssResult
.
isSuccess
()
&&
CommonConstants
.
STATUS_VALID
.
equals
(
hssResult
.
getData
()))
{
if
(
hssResult
.
isSuccess
()
&&
CommonConstants
.
STATUS_VALID
.
equals
(
hssResult
.
getData
()))
{
continue
;
continue
;
}
}
MasterUrlDTO
masterUrlDTO
=
new
MasterUrlDTO
();
masterUrlDTO
.
setPhone
(
patientSignInfo
.
getPatientPhone
());
masterUrlDTO
.
setSignSeqId
(
String
.
valueOf
(
patientSignInfo
.
getSignedId
()));
masterUrlDTO
.
setType
(
"3"
);
String
masterResult
=
thirdOrderPushUtil
.
getMasterUrl
(
masterUrlDTO
);
if
(!
StringUtils
.
isEmpty
(
masterResult
))
{
Result
<
String
>
muResult
=
JSON
.
parseObject
(
masterResult
,
Result
.
class
);
if
(
muResult
.
isSuccess
())
{
content
=
MessageFormat
.
format
(
content
,
muResult
.
getData
());
}
}
}
}
}
}
}
else
{
}
else
{
...
@@ -195,7 +265,8 @@ public class ImChatTemplateImpl implements ImChatTemplate {
...
@@ -195,7 +265,8 @@ public class ImChatTemplateImpl implements ImChatTemplate {
if
(
SenderEnum
.
DOCTOR
.
getDesc
().
equals
(
componentsList
.
get
(
i
).
getSender
()))
{
if
(
SenderEnum
.
DOCTOR
.
getDesc
().
equals
(
componentsList
.
get
(
i
).
getSender
()))
{
messageInfo
=
getDoctorInformRefreshPatientParam
(
patientSignInfo
,
IMInformConstants
.
REFRESH
);
messageInfo
=
getDoctorInformRefreshPatientParam
(
patientSignInfo
,
IMInformConstants
.
REFRESH
);
}
else
{
}
else
{
messageInfo
=
getInformRefreshPatientParam
(
patientSignInfo
,
IMInformConstants
.
REFRESH
);
log
.
info
(
"msgType={}"
,
msgType
);
messageInfo
=
getInformRefreshPatientParam
(
patientSignInfo
,
IMInformConstants
.
REFRESH
,
msgType
);
}
}
messageInfos
.
add
(
messageInfo
);
messageInfos
.
add
(
messageInfo
);
PersonImInformReq
parameter
=
new
PersonImInformReq
();
PersonImInformReq
parameter
=
new
PersonImInformReq
();
...
@@ -204,7 +275,7 @@ public class ImChatTemplateImpl implements ImChatTemplate {
...
@@ -204,7 +275,7 @@ public class ImChatTemplateImpl implements ImChatTemplate {
parameter
.
setBusiCode
(
IMInformConstants
.
IM_SYSTEM_BUSINESS_CODE
);
parameter
.
setBusiCode
(
IMInformConstants
.
IM_SYSTEM_BUSINESS_CODE
);
log
.
info
(
"推送家庭医生提示语推送:{}"
+
JSON
.
toJSONString
(
parameter
.
getMessageInfos
()));
log
.
info
(
"推送家庭医生提示语推送:{}"
+
JSON
.
toJSONString
(
parameter
.
getMessageInfos
()));
Long
syncFlag
=
i
*
100L
;
Long
syncFlag
=
i
*
100L
;
if
(
personUserImInform
(
parameter
,
content
,
syncFlag
))
{
if
(
personUserImInform
(
parameter
,
content
,
syncFlag
,
msgType
))
{
log
.
info
(
"推送家庭医生提示语推送成功,admissionId:{}"
,
sendImMsgDTO
.
getAdmId
());
log
.
info
(
"推送家庭医生提示语推送成功,admissionId:{}"
,
sendImMsgDTO
.
getAdmId
());
flag
=
true
;
flag
=
true
;
}
}
...
@@ -238,6 +309,8 @@ public class ImChatTemplateImpl implements ImChatTemplate {
...
@@ -238,6 +309,8 @@ public class ImChatTemplateImpl implements ImChatTemplate {
PatientSignInfo
patientSignInfo
=
new
PatientSignInfo
();
PatientSignInfo
patientSignInfo
=
new
PatientSignInfo
();
BeanUtils
.
copyProperties
(
patientSignEntity
,
patientSignInfo
);
BeanUtils
.
copyProperties
(
patientSignEntity
,
patientSignInfo
);
patientSignInfo
.
setSignedId
(
patientSignEntity
.
getId
());
// 获取医生基本信息
// 获取医生基本信息
QueryPersonnelInfoReq
queryPersonnelInfoReq
=
new
QueryPersonnelInfoReq
();
QueryPersonnelInfoReq
queryPersonnelInfoReq
=
new
QueryPersonnelInfoReq
();
queryPersonnelInfoReq
.
setDoctorId
(
String
.
valueOf
(
patientSignEntity
.
getDoctorId
()));
queryPersonnelInfoReq
.
setDoctorId
(
String
.
valueOf
(
patientSignEntity
.
getDoctorId
()));
...
@@ -253,6 +326,8 @@ public class ImChatTemplateImpl implements ImChatTemplate {
...
@@ -253,6 +326,8 @@ public class ImChatTemplateImpl implements ImChatTemplate {
return
new
PatientSignInfo
();
return
new
PatientSignInfo
();
}
}
patientSignInfo
.
setDoctorUserId
(
userInfoByUserIdRespVO
.
getUserId
());
patientSignInfo
.
setDoctorUserId
(
userInfoByUserIdRespVO
.
getUserId
());
patientSignInfo
.
setDoctorHeadPortrait
(
doctorInfo
.
getData
().
getPortrait
());
patientSignInfo
.
setDoctorProfessional
(
doctorInfo
.
getData
().
getTitle
());
log
.
info
(
"patientSignInfo:{}"
+
JSON
.
toJSONString
(
patientSignInfo
));
log
.
info
(
"patientSignInfo:{}"
+
JSON
.
toJSONString
(
patientSignInfo
));
return
patientSignInfo
;
return
patientSignInfo
;
}
}
...
@@ -275,7 +350,7 @@ public class ImChatTemplateImpl implements ImChatTemplate {
...
@@ -275,7 +350,7 @@ public class ImChatTemplateImpl implements ImChatTemplate {
return
messageInfo
;
return
messageInfo
;
}
}
private
<
T
>
MessageInfo
getInformRefreshPatientParam
(
PatientSignInfo
patientSignInfo
,
Integer
isRefresh
)
{
private
<
T
>
MessageInfo
getInformRefreshPatientParam
(
PatientSignInfo
patientSignInfo
,
Integer
isRefresh
,
String
msgType
)
{
String
doctorUserId
=
patientSignInfo
.
getDoctorUserId
();
String
doctorUserId
=
patientSignInfo
.
getDoctorUserId
();
if
(
StringUtils
.
isEmpty
(
doctorUserId
))
{
if
(
StringUtils
.
isEmpty
(
doctorUserId
))
{
log
.
error
(
"IM INFORM ERROR : 无法查询到接收人信息"
);
log
.
error
(
"IM INFORM ERROR : 无法查询到接收人信息"
);
...
@@ -288,7 +363,11 @@ public class ImChatTemplateImpl implements ImChatTemplate {
...
@@ -288,7 +363,11 @@ public class ImChatTemplateImpl implements ImChatTemplate {
message
.
setApplicationCode
(
IMInformConstants
.
IM_SYSTEM_BUSINESS_CODE
);
message
.
setApplicationCode
(
IMInformConstants
.
IM_SYSTEM_BUSINESS_CODE
);
messageInfo
.
setSingleAccount
(
newAccount
(
IMInformConstants
.
DOCTOR_APPLICATION_CODE
,
doctorUserId
));
messageInfo
.
setSingleAccount
(
newAccount
(
IMInformConstants
.
DOCTOR_APPLICATION_CODE
,
doctorUserId
));
messageInfo
.
setSelfAccount
(
newAccount
(
IMInformConstants
.
PATIENT_APPLICATION_CODE
,
patientSignInfo
.
getPatientUserId
()));
messageInfo
.
setSelfAccount
(
newAccount
(
IMInformConstants
.
PATIENT_APPLICATION_CODE
,
patientSignInfo
.
getPatientUserId
()));
// if (!StringUtils.isEmpty(msgType)) {
messageInfo
.
setMsgType
(
msgType
);
// }
messageInfo
.
setMessage
(
message
);
messageInfo
.
setMessage
(
message
);
log
.
info
(
"messageInfo={}"
,
messageInfo
);
return
messageInfo
;
return
messageInfo
;
}
}
...
@@ -305,7 +384,7 @@ public class ImChatTemplateImpl implements ImChatTemplate {
...
@@ -305,7 +384,7 @@ public class ImChatTemplateImpl implements ImChatTemplate {
* @param param
* @param param
* @return
* @return
*/
*/
private
boolean
personUserImInform
(
PersonImInformReq
param
,
String
content
,
Long
syncFlag
)
{
private
boolean
personUserImInform
(
PersonImInformReq
param
,
String
content
,
Long
syncFlag
,
String
msgType
)
{
List
<
MessageInfo
>
messageInfos
=
param
.
getMessageInfos
();
List
<
MessageInfo
>
messageInfos
=
param
.
getMessageInfos
();
if
(
messageInfos
==
null
||
messageInfos
.
isEmpty
())
{
if
(
messageInfos
==
null
||
messageInfos
.
isEmpty
())
{
log
.
error
(
"IM INFORM ERROR : 没有可发送的消息"
);
log
.
error
(
"IM INFORM ERROR : 没有可发送的消息"
);
...
@@ -321,6 +400,9 @@ public class ImChatTemplateImpl implements ImChatTemplate {
...
@@ -321,6 +400,9 @@ public class ImChatTemplateImpl implements ImChatTemplate {
if
(
Objects
.
nonNull
(
syncFlag
))
{
if
(
Objects
.
nonNull
(
syncFlag
))
{
msgsingleData
.
setSyncFlag
(
syncFlag
);
msgsingleData
.
setSyncFlag
(
syncFlag
);
}
}
if
(
Objects
.
nonNull
(
msgType
))
{
msgsingleData
.
setMsgType
(
msgType
);
}
msgsingleData
.
setMessage
(
content
);
msgsingleData
.
setMessage
(
content
);
msgSingleDatas
.
add
(
msgsingleData
);
msgSingleDatas
.
add
(
msgsingleData
);
});
});
...
@@ -432,4 +514,9 @@ public class ImChatTemplateImpl implements ImChatTemplate {
...
@@ -432,4 +514,9 @@ public class ImChatTemplateImpl implements ImChatTemplate {
return
reqVO
;
return
reqVO
;
}
}
public
static
void
main
(
String
[]
args
)
{
String
s
=
""
;
JSONObject
.
parseObject
(
s
);
}
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/ImMsgTemplateServiceImpl.java
浏览文件 @
2d9033a4
...
@@ -4,7 +4,9 @@ import com.alibaba.fastjson.JSON;
...
@@ -4,7 +4,9 @@ import com.alibaba.fastjson.JSON;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.ebaiyihui.family.doctor.common.bo.Components
;
import
com.ebaiyihui.family.doctor.common.bo.Components
;
import
com.ebaiyihui.family.doctor.common.bo.MsgContent
;
import
com.ebaiyihui.family.doctor.common.bo.MsgContent
;
import
com.ebaiyihui.family.doctor.common.dto.ImNoReadMsgDTO
;
import
com.ebaiyihui.family.doctor.common.dto.SendImMsgDTO
;
import
com.ebaiyihui.family.doctor.common.dto.SendImMsgDTO
;
import
com.ebaiyihui.family.doctor.common.vo.ImNoReadMsgVo
;
import
com.ebaiyihui.family.doctor.server.entity.ImMsgTemplateEntity
;
import
com.ebaiyihui.family.doctor.server.entity.ImMsgTemplateEntity
;
import
com.ebaiyihui.family.doctor.server.exception.BusinessException
;
import
com.ebaiyihui.family.doctor.server.exception.BusinessException
;
import
com.ebaiyihui.family.doctor.server.mapper.ImMsgTemplateMapper
;
import
com.ebaiyihui.family.doctor.server.mapper.ImMsgTemplateMapper
;
...
@@ -54,4 +56,9 @@ public class ImMsgTemplateServiceImpl implements ImMsgTemplateService {
...
@@ -54,4 +56,9 @@ public class ImMsgTemplateServiceImpl implements ImMsgTemplateService {
}
}
return
BaseResponse
.
success
(
"消息推送成功"
);
return
BaseResponse
.
success
(
"消息推送成功"
);
}
}
@Override
public
BaseResponse
<
ImNoReadMsgVo
>
queryImNoReadMsg
(
ImNoReadMsgDTO
reqVo
)
{
return
null
;
}
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/MobileBenefitPackageServiceImpl.java
浏览文件 @
2d9033a4
...
@@ -11,6 +11,8 @@ import com.ebaiyihui.family.doctor.common.bo.Result;
...
@@ -11,6 +11,8 @@ import com.ebaiyihui.family.doctor.common.bo.Result;
import
com.ebaiyihui.family.doctor.common.dto.MobileBenefitPackageDTO
;
import
com.ebaiyihui.family.doctor.common.dto.MobileBenefitPackageDTO
;
import
com.ebaiyihui.family.doctor.common.vo.RegisterPatientVo
;
import
com.ebaiyihui.family.doctor.common.vo.RegisterPatientVo
;
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.enums.SignStatus
;
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.PatientEntity
;
import
com.ebaiyihui.family.doctor.server.entity.PatientEntity
;
import
com.ebaiyihui.family.doctor.server.entity.PatientSignEntity
;
import
com.ebaiyihui.family.doctor.server.entity.PatientSignEntity
;
...
@@ -61,7 +63,7 @@ public class MobileBenefitPackageServiceImpl implements MobileBenefitPackageServ
...
@@ -61,7 +63,7 @@ public class MobileBenefitPackageServiceImpl implements MobileBenefitPackageServ
RegisterPatientVo
registerPatientVo
=
new
RegisterPatientVo
();
RegisterPatientVo
registerPatientVo
=
new
RegisterPatientVo
();
MobileBenefitPackageEntity
entity
=
new
MobileBenefitPackageEntity
();
MobileBenefitPackageEntity
entity
=
new
MobileBenefitPackageEntity
();
if
(
Objects
.
nonNull
(
map
.
get
(
"activateOrderId"
)))
{
if
(
Objects
.
nonNull
(
map
.
get
(
"activateOrderId"
)))
{
entity
=
mobileBenefitPackageMapper
.
queryByPhone
(
map
.
get
(
"mobile"
),
map
.
get
(
"activateOrderId"
));
entity
=
mobileBenefitPackageMapper
.
queryByPhone
(
map
.
get
(
"mobile"
),
map
.
get
(
"activateOrderId"
)
,
null
);
if
(
ObjectUtils
.
isEmpty
(
entity
))
{
if
(
ObjectUtils
.
isEmpty
(
entity
))
{
return
BaseResponse
.
error
(
"没有查询到有关权益"
);
return
BaseResponse
.
error
(
"没有查询到有关权益"
);
}
}
...
@@ -124,10 +126,26 @@ public class MobileBenefitPackageServiceImpl implements MobileBenefitPackageServ
...
@@ -124,10 +126,26 @@ public class MobileBenefitPackageServiceImpl implements MobileBenefitPackageServ
registerPatientVo
.
setDoctorId
(
map
.
get
(
"doctorId"
));
registerPatientVo
.
setDoctorId
(
map
.
get
(
"doctorId"
));
}
}
if
(
Objects
.
nonNull
(
map
.
get
(
"thirdId"
)))
{
registerPatientVo
.
setThirdId
(
map
.
get
(
"thirdId"
));
}
if
(
Objects
.
nonNull
(
map
.
get
(
"signSeqId"
)))
{
if
(
Objects
.
nonNull
(
map
.
get
(
"signSeqId"
)))
{
registerPatientVo
.
setSignSeqId
(
map
.
get
(
"signSeqId"
));
registerPatientVo
.
setSignSeqId
(
map
.
get
(
"signSeqId"
));
PatientSignEntity
patientSignEntity
=
patientSignMapper
.
selectById
(
Long
.
valueOf
(
map
.
get
(
"signSeqId"
)));
PatientSignEntity
patientSignEntity
=
patientSignMapper
.
selectById
(
Long
.
valueOf
(
map
.
get
(
"signSeqId"
)));
registerPatientVo
.
setAdmId
(
patientSignEntity
.
getAdmId
());
registerPatientVo
.
setAdmId
(
patientSignEntity
.
getAdmId
());
if
(
StatusEnum
.
FINISH_APPLY
.
getValue
().
equals
(
patientSignEntity
.
getStatus
())
&&
SignStatus
.
CANCEL
.
getValue
().
equals
(
patientSignEntity
.
getSignStatus
()))
{
QueryWrapper
<
PatientSignEntity
>
psWrapper
=
new
QueryWrapper
<>();
PatientSignEntity
patientSign
=
new
PatientSignEntity
();
patientSign
.
setSignId
(
patientSignEntity
.
getId
());
patientSign
.
setStatus
(
StatusEnum
.
IN_CONSULTATION
.
getValue
());
patientSign
.
setSignStatus
(
SignStatus
.
SIGNED
.
getValue
());
psWrapper
.
setEntity
(
patientSign
);
patientSignEntity
=
patientSignMapper
.
selectOne
(
psWrapper
);
registerPatientVo
.
setAdmId
(
patientSignEntity
.
getAdmId
());
}
// 更新权益医生id
// 更新权益医生id
if
(
Objects
.
nonNull
(
patientSignEntity
))
{
if
(
Objects
.
nonNull
(
patientSignEntity
))
{
entity
.
setDoctorId
(
String
.
valueOf
(
patientSignEntity
.
getDoctorId
()));
entity
.
setDoctorId
(
String
.
valueOf
(
patientSignEntity
.
getDoctorId
()));
...
@@ -156,13 +174,18 @@ public class MobileBenefitPackageServiceImpl implements MobileBenefitPackageServ
...
@@ -156,13 +174,18 @@ public class MobileBenefitPackageServiceImpl implements MobileBenefitPackageServ
patientEntity
.
setUserId
(
entity
.
getUserId
());
patientEntity
.
setUserId
(
entity
.
getUserId
());
log
.
info
(
"数据库不存在添加患者: {}"
,
JSON
.
toJSONString
(
patientEntity
));
log
.
info
(
"数据库不存在添加患者: {}"
,
JSON
.
toJSONString
(
patientEntity
));
patientMapper
.
insert
(
patientEntity
);
patientMapper
.
insert
(
patientEntity
);
}
else
{
if
(!
map
.
get
(
"mobile"
).
equals
(
patientEntity
.
getPhone
()))
{
patientEntity
.
setPhone
(
map
.
get
(
"mobile"
));
patientMapper
.
updateById
(
patientEntity
);
}
}
}
//保存就诊人id
//保存就诊人id
entity
.
setUserId
(
map
.
get
(
"patient_id"
));
entity
.
setUserId
(
map
.
get
(
"patient_id"
));
mobileBenefitPackageMapper
.
update
(
entity
);
mobileBenefitPackageMapper
.
update
(
entity
);
}
}
registerPatientVo
.
setUserId
(
entity
.
getUserId
());
return
BaseResponse
.
success
(
registerPatientVo
);
return
BaseResponse
.
success
(
registerPatientVo
);
}
}
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/PatientServiceImpl.java
浏览文件 @
2d9033a4
...
@@ -77,7 +77,7 @@ public class PatientServiceImpl implements PatientService {
...
@@ -77,7 +77,7 @@ public class PatientServiceImpl implements PatientService {
@Override
@Override
public
BaseResponse
<
String
>
signedDoctor
(
SignedDoctorDTO
reqVo
)
{
public
BaseResponse
<
String
>
signedDoctor
(
SignedDoctorDTO
reqVo
)
{
MobileBenefitPackageEntity
entity
=
mobileBenefitPackageMapper
.
queryByPhone
(
reqVo
.
getPhone
(),
reqVo
.
getPackageOrderId
());
MobileBenefitPackageEntity
entity
=
mobileBenefitPackageMapper
.
queryByPhone
(
reqVo
.
getPhone
(),
reqVo
.
getPackageOrderId
()
,
null
);
if
(
ObjectUtils
.
isEmpty
(
entity
))
{
if
(
ObjectUtils
.
isEmpty
(
entity
))
{
return
BaseResponse
.
error
(
"没有查询到有关权益"
);
return
BaseResponse
.
error
(
"没有查询到有关权益"
);
}
}
...
@@ -110,20 +110,22 @@ public class PatientServiceImpl implements PatientService {
...
@@ -110,20 +110,22 @@ public class PatientServiceImpl implements PatientService {
}
}
if
(!
SignStatus
.
NORMAL
.
getValue
().
equals
(
reqVo
.
getSignStatus
()))
{
if
(!
SignStatus
.
NORMAL
.
getValue
().
equals
(
reqVo
.
getSignStatus
()))
{
Integer
signStatus
=
SignStatus
.
SIGNED
.
getValue
();
Integer
status
=
StatusEnum
.
IN_CONSULTATION
.
getValue
();
if
(
SignStatus
.
CANCEL
.
getValue
().
equals
(
reqVo
.
getSignStatus
()))
{
signStatus
=
SignStatus
.
CANCEL
.
getValue
();
status
=
StatusEnum
.
FINISH_APPLY
.
getValue
();
}
List
<
PatientSignEntity
>
patientSignEntities
=
getPatientSignList
(
reqVo
.
getPhone
(),
reqVo
.
getPackageOrderId
(),
List
<
PatientSignEntity
>
patientSignEntities
=
getPatientSignList
(
reqVo
.
getPhone
(),
reqVo
.
getPackageOrderId
(),
reqVo
.
getSignStatus
(),
StatusEnum
.
IN_CONSULTATION
.
getValue
()
);
signStatus
,
status
);
if
(!
patientSignEntities
.
isEmpty
())
{
if
(!
patientSignEntities
.
isEmpty
())
{
return
BaseResponse
.
error
(
"已经有进行中的签约或者改签医生,不能再进行签约或者改签!!!"
);
return
BaseResponse
.
error
(
"已经有进行中的签约或者改签医生,不能再进行签约或者改签!!!"
);
}
}
}
else
{
}
else
{
QueryWrapper
<
PatientSignEntity
>
psWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
PatientSignEntity
>
psWrapper
=
new
QueryWrapper
<>();
PatientSignEntity
patientSign
=
new
PatientSignEntity
();
PatientSignEntity
patientSign
=
new
PatientSignEntity
();
if
(
Objects
.
nonNull
(
reqVo
.
getAdmId
()))
{
patientSign
.
setSignId
(
oldPatientSignEntity
.
getId
());
patientSign
.
setAdmId
(
reqVo
.
getAdmId
());
patientSign
.
setStatus
(
StatusEnum
.
IN_CONSULTATION
.
getValue
());
}
if
(
Objects
.
nonNull
(
reqVo
.
getSignSeqId
()))
{
patientSign
.
setId
(
Long
.
valueOf
(
reqVo
.
getSignSeqId
()));
}
patientSign
.
setSignStatus
(
SignStatus
.
NORMAL
.
getValue
());
patientSign
.
setSignStatus
(
SignStatus
.
NORMAL
.
getValue
());
psWrapper
.
setEntity
(
patientSign
);
psWrapper
.
setEntity
(
patientSign
);
PatientSignEntity
patientSignEntity
=
patientSignMapper
.
selectOne
(
psWrapper
);
PatientSignEntity
patientSignEntity
=
patientSignMapper
.
selectOne
(
psWrapper
);
...
@@ -207,25 +209,6 @@ public class PatientServiceImpl implements PatientService {
...
@@ -207,25 +209,6 @@ 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
());
if
(!
SignStatus
.
NORMAL
.
getValue
().
equals
(
reqVo
.
getSignStatus
()))
{
// 推送第三方权益使用
NotifyConsultDataDTO
notifyConsultDataDTO
=
new
NotifyConsultDataDTO
();
notifyConsultDataDTO
.
setActivateOrderId
(
reqVo
.
getPackageOrderId
());
notifyConsultDataDTO
.
setConsultOrderNo
(
admId
);
notifyConsultDataDTO
.
setStatus
(
String
.
valueOf
(
reqVo
.
getSignStatus
()));
notifyConsultDataDTO
.
setProductId
(
entity
.
getProductId
());
notifyConsultDataDTO
.
setPatientId
(
entity
.
getUserId
());
notifyConsultDataDTO
.
setExpertName
(
reqVo
.
getDoctorName
());
notifyConsultDataDTO
.
setOrderDate
(
DateUtils
.
dateToFullString
(
patientSignEntity
.
getCreateTime
()));
notifyConsultDataDTO
.
setSupplierCode
(
CommonConstants
.
SUPPLIER_CODE_JTYS
);
thirdOrderPushUtil
.
syncBenefitUsedOrder
(
notifyConsultDataDTO
);
}
else
{
if
(
Objects
.
nonNull
(
oldPatientSignEntity
))
{
sendImMsgDTO
.
setOldAdmId
(
oldPatientSignEntity
.
getAdmId
());
}
}
//放入MQ任务,处理订单到时结束
//放入MQ任务,处理订单到时结束
if
(
"0"
.
equals
(
entity
.
getIsRenew
())
||
SignStatus
.
NORMAL
.
getValue
().
equals
(
reqVo
.
getSignStatus
()))
{
if
(
"0"
.
equals
(
entity
.
getIsRenew
())
||
SignStatus
.
NORMAL
.
getValue
().
equals
(
reqVo
.
getSignStatus
()))
{
OrderTaskVo
orderTaskVo
=
new
OrderTaskVo
();
OrderTaskVo
orderTaskVo
=
new
OrderTaskVo
();
...
@@ -245,6 +228,39 @@ public class PatientServiceImpl implements PatientService {
...
@@ -245,6 +228,39 @@ public class PatientServiceImpl implements PatientService {
imMsgTemplateService
.
sendImMsg
(
sendImMsgDTO
);
imMsgTemplateService
.
sendImMsg
(
sendImMsgDTO
);
if
(!
SignStatus
.
NORMAL
.
getValue
().
equals
(
reqVo
.
getSignStatus
()))
{
// 推送第三方权益使用
NotifyConsultDataDTO
notifyConsultDataDTO
=
new
NotifyConsultDataDTO
();
notifyConsultDataDTO
.
setActivateOrderId
(
reqVo
.
getPackageOrderId
());
notifyConsultDataDTO
.
setConsultOrderNo
(
admId
);
notifyConsultDataDTO
.
setStatus
(
String
.
valueOf
(
StatusEnum
.
IN_CONSULTATION
.
getValue
()));
notifyConsultDataDTO
.
setProductId
(
entity
.
getProductId
());
notifyConsultDataDTO
.
setPatientId
(
entity
.
getUserId
());
notifyConsultDataDTO
.
setExpertName
(
reqVo
.
getDoctorName
());
notifyConsultDataDTO
.
setOrderDate
(
DateUtils
.
dateToFullString
(
patientSignEntity
.
getCreateTime
()));
notifyConsultDataDTO
.
setSupplierCode
(
CommonConstants
.
SUPPLIER_CODE_JTYS
);
thirdOrderPushUtil
.
syncBenefitUsedOrder
(
notifyConsultDataDTO
,
10000L
);
if
(
SignStatus
.
CANCEL
.
getValue
().
equals
(
reqVo
.
getSignStatus
()))
{
// 推送第三方权益使用
NotifyConsultDataDTO
notifyConsultDataDTO2
=
new
NotifyConsultDataDTO
();
notifyConsultDataDTO2
.
setActivateOrderId
(
reqVo
.
getPackageOrderId
());
notifyConsultDataDTO2
.
setConsultOrderNo
(
oldPatientSignEntity
.
getAdmId
());
notifyConsultDataDTO2
.
setStatus
(
String
.
valueOf
(
StatusEnum
.
FINISH_APPLY
.
getValue
()));
notifyConsultDataDTO2
.
setProductId
(
entity
.
getProductId
());
notifyConsultDataDTO2
.
setPatientId
(
entity
.
getUserId
());
notifyConsultDataDTO2
.
setExpertName
(
reqVo
.
getDoctorName
());
notifyConsultDataDTO2
.
setOrderDate
(
DateUtils
.
dateToFullString
(
patientSignEntity
.
getCreateTime
()));
notifyConsultDataDTO2
.
setSupplierCode
(
CommonConstants
.
SUPPLIER_CODE_JTYS
);
thirdOrderPushUtil
.
syncBenefitUsedOrder
(
notifyConsultDataDTO2
,
10000L
);
}
}
else
{
if
(
Objects
.
nonNull
(
oldPatientSignEntity
))
{
sendImMsgDTO
.
setOldAdmId
(
oldPatientSignEntity
.
getAdmId
());
}
}
// 推送app提示语
// 推送app提示语
goEasyPushService
.
newOrderToReceive
(
admId
);
goEasyPushService
.
newOrderToReceive
(
admId
);
...
@@ -298,12 +314,12 @@ public class PatientServiceImpl implements PatientService {
...
@@ -298,12 +314,12 @@ public class PatientServiceImpl implements PatientService {
List
<
ScheduleRecordEntity
>
scheduleRecordEntities
=
scheduleRecordMapper
.
selectByDate
(
String
.
valueOf
(
CommonConstants
.
ORGAN_CODE
),
5
,
date
,
1
,
hourAndSecond
);
List
<
ScheduleRecordEntity
>
scheduleRecordEntities
=
scheduleRecordMapper
.
selectByDate
(
String
.
valueOf
(
CommonConstants
.
ORGAN_CODE
),
5
,
date
,
1
,
hourAndSecond
);
log
.
info
(
"当前排班医生:{}"
,
JSON
.
toJSONString
(
scheduleRecordEntities
));
log
.
info
(
"当前排班医生:{}"
,
JSON
.
toJSONString
(
scheduleRecordEntities
));
if
(!
CollectionUtils
.
isEmpty
(
scheduleRecordEntities
)){
if
(!
CollectionUtils
.
isEmpty
(
scheduleRecordEntities
))
{
scheduleRecordEntities
.
stream
().
filter
(
scheduleRecordEntity
->
!
scheduleRecordEntity
.
getDoctorId
().
equals
(
doctorId
)).
collect
(
Collectors
.
toList
());
scheduleRecordEntities
.
stream
().
filter
(
scheduleRecordEntity
->
!
scheduleRecordEntity
.
getDoctorId
().
equals
(
doctorId
)).
collect
(
Collectors
.
toList
());
}
}
if
(
CollectionUtils
.
isEmpty
(
scheduleRecordEntities
))
{
if
(
CollectionUtils
.
isEmpty
(
scheduleRecordEntities
))
{
throw
new
BusinessException
(
"
暂无排班医生,请稍后重试
"
);
throw
new
BusinessException
(
"
服务时间为08:00-20:00,您发起的咨询暂时没有医生回答,医生上班后会第一时间回复您。
"
);
}
}
ScheduleRecordEntity
scheduleRecordEntity
=
new
ScheduleRecordEntity
();
ScheduleRecordEntity
scheduleRecordEntity
=
new
ScheduleRecordEntity
();
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/PatientSignServiceImpl.java
浏览文件 @
2d9033a4
...
@@ -5,9 +5,8 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -5,9 +5,8 @@ import com.alibaba.fastjson.JSONObject;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.doctoruser.api.pojo.base.dto.doctor.QueryPersonnelInfoReq
;
import
com.doctoruser.api.pojo.base.dto.doctor.QueryPersonnelInfoReq
;
import
com.doctoruser.api.pojo.base.vo.doctor.PersonnelInfo
;
import
com.doctoruser.api.pojo.base.vo.doctor.PersonnelInfo
;
import
com.ebaiyihui.family.doctor.common.dto.ImAccountReqDTO
;
import
com.ebaiyihui.family.doctor.common.bo.Result
;
import
com.ebaiyihui.family.doctor.common.dto.ImInfoDetailDocReqDTO
;
import
com.ebaiyihui.family.doctor.common.dto.*
;
import
com.ebaiyihui.family.doctor.common.dto.ImInfoListDocReqDTO
;
import
com.ebaiyihui.family.doctor.common.vo.*
;
import
com.ebaiyihui.family.doctor.common.vo.*
;
import
com.ebaiyihui.family.doctor.server.common.constants.IMInformConstants
;
import
com.ebaiyihui.family.doctor.server.common.constants.IMInformConstants
;
import
com.ebaiyihui.family.doctor.server.common.constants.ImConstants
;
import
com.ebaiyihui.family.doctor.server.common.constants.ImConstants
;
...
@@ -24,6 +23,7 @@ import com.ebaiyihui.family.doctor.server.service.ImChatTemplate;
...
@@ -24,6 +23,7 @@ import com.ebaiyihui.family.doctor.server.service.ImChatTemplate;
import
com.ebaiyihui.family.doctor.server.service.PatientSignService
;
import
com.ebaiyihui.family.doctor.server.service.PatientSignService
;
import
com.ebaiyihui.family.doctor.server.util.IDCardUtil
;
import
com.ebaiyihui.family.doctor.server.util.IDCardUtil
;
import
com.ebaiyihui.family.doctor.server.util.PageUtil
;
import
com.ebaiyihui.family.doctor.server.util.PageUtil
;
import
com.ebaiyihui.family.doctor.server.util.ThirdOrderPushUtil
;
import
com.ebaiyihui.framework.response.BaseResponse
;
import
com.ebaiyihui.framework.response.BaseResponse
;
import
com.ebaiyihui.imforward.client.vo.*
;
import
com.ebaiyihui.imforward.client.vo.*
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -63,6 +63,9 @@ public class PatientSignServiceImpl implements PatientSignService {
...
@@ -63,6 +63,9 @@ public class PatientSignServiceImpl implements PatientSignService {
@Autowired
@Autowired
private
ImChatTemplate
imChatTemplate
;
private
ImChatTemplate
imChatTemplate
;
@Autowired
private
ThirdOrderPushUtil
thirdOrderPushUtil
;
@Override
@Override
public
BaseResponse
<
List
<
IMSingleMsgResultVO
>>
getAllMsgContent
(
IMQueryMsgReqVO
reqVO
)
{
public
BaseResponse
<
List
<
IMSingleMsgResultVO
>>
getAllMsgContent
(
IMQueryMsgReqVO
reqVO
)
{
...
@@ -131,7 +134,18 @@ public class PatientSignServiceImpl implements PatientSignService {
...
@@ -131,7 +134,18 @@ public class PatientSignServiceImpl implements PatientSignService {
.
build
();
.
build
();
// 患者信息
// 患者信息
resVo
.
setPatientName
(
patientSignEntity
.
getPatientName
());
resVo
.
setPatientName
(
patientSignEntity
.
getPatientName
());
// 查询患者头像
resVo
.
setPatientPortrait
(
""
);
resVo
.
setPatientPortrait
(
""
);
UserInfoDTO
userInfoDTO
=
new
UserInfoDTO
();
userInfoDTO
.
setPhone
(
patientSignEntity
.
getPatientPhone
());
String
userPicResult
=
thirdOrderPushUtil
.
getUserPic
(
userInfoDTO
);
if
(
StringUtils
.
isNotEmpty
(
userPicResult
))
{
Result
<
String
>
upResult
=
JSON
.
parseObject
(
userPicResult
,
Result
.
class
);
if
(
upResult
.
isSuccess
())
{
resVo
.
setPatientPortrait
(
upResult
.
getData
());
}
}
resVo
.
setDoctorId
(
patientSignEntity
.
getDoctorId
());
resVo
.
setDoctorId
(
patientSignEntity
.
getDoctorId
());
...
@@ -234,6 +248,15 @@ public class PatientSignServiceImpl implements PatientSignService {
...
@@ -234,6 +248,15 @@ public class PatientSignServiceImpl implements PatientSignService {
patientInfoVo
.
setCredNo
(
patientEntity
.
getCredNo
());
patientInfoVo
.
setCredNo
(
patientEntity
.
getCredNo
());
patientInfoVo
.
setPatientUserId
(
patientSignEntity
.
getPatientUserId
());
patientInfoVo
.
setPatientUserId
(
patientSignEntity
.
getPatientUserId
());
patientInfoVo
.
setPortrait
(
""
);
patientInfoVo
.
setPortrait
(
""
);
UserInfoDTO
userInfoDTO
=
new
UserInfoDTO
();
userInfoDTO
.
setPhone
(
patientSignEntity
.
getPatientPhone
());
String
userPicResult
=
thirdOrderPushUtil
.
getUserPic
(
userInfoDTO
);
if
(
StringUtils
.
isNotEmpty
(
userPicResult
))
{
Result
<
String
>
upResult
=
JSON
.
parseObject
(
userPicResult
,
Result
.
class
);
if
(
upResult
.
isSuccess
())
{
patientInfoVo
.
setPortrait
(
upResult
.
getData
());
}
}
resVo
.
setPatientInfo
(
patientInfoVo
);
resVo
.
setPatientInfo
(
patientInfoVo
);
// 获取医生基本信息
// 获取医生基本信息
...
@@ -311,6 +334,19 @@ public class PatientSignServiceImpl implements PatientSignService {
...
@@ -311,6 +334,19 @@ public class PatientSignServiceImpl implements PatientSignService {
return
patientSignMapper
.
updateById
(
patientSignEntity
);
return
patientSignMapper
.
updateById
(
patientSignEntity
);
}
}
@Override
public
BaseResponse
<
String
>
queryMasterUrl
(
MasterUrlDTO
reqVo
)
{
String
resulStr
=
""
;
String
result
=
thirdOrderPushUtil
.
getMasterUrl
(
reqVo
);
if
(
StringUtils
.
isNotEmpty
(
result
))
{
Result
<
String
>
muResult
=
JSON
.
parseObject
(
result
,
Result
.
class
);
if
(
muResult
.
isSuccess
())
{
resulStr
=
muResult
.
getData
();
}
}
return
BaseResponse
.
success
(
resulStr
);
}
public
ImAccountVo
getImAccounts
(
PatientSignEntity
patientSignEntity
,
String
admId
,
String
imAppCode
,
String
doctorId
)
{
public
ImAccountVo
getImAccounts
(
PatientSignEntity
patientSignEntity
,
String
admId
,
String
imAppCode
,
String
doctorId
)
{
ImAccountVo
admission
=
new
ImAccountVo
();
ImAccountVo
admission
=
new
ImAccountVo
();
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/task/SignedTask.java
浏览文件 @
2d9033a4
...
@@ -3,6 +3,7 @@ package com.ebaiyihui.family.doctor.server.task;
...
@@ -3,6 +3,7 @@ package com.ebaiyihui.family.doctor.server.task;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.ebaiyihui.family.doctor.common.bo.Result
;
import
com.ebaiyihui.family.doctor.common.bo.Result
;
import
com.ebaiyihui.family.doctor.common.dto.HealthInfoDTO
;
import
com.ebaiyihui.family.doctor.common.dto.HealthInfoDTO
;
import
com.ebaiyihui.family.doctor.common.dto.NotifyConsultDataDTO
;
import
com.ebaiyihui.family.doctor.common.dto.SendImMsgDTO
;
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
;
...
@@ -24,6 +25,7 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -24,6 +25,7 @@ import lombok.extern.slf4j.Slf4j;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.ObjectUtils
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -195,6 +197,21 @@ public class SignedTask {
...
@@ -195,6 +197,21 @@ public class SignedTask {
patientSignEntity
.
setSignEndTime
(
endTime
);
patientSignEntity
.
setSignEndTime
(
endTime
);
}
else
{
}
else
{
patientSignEntity
.
setStatus
(
StatusEnum
.
FINISH_APPLY
.
getValue
());
patientSignEntity
.
setStatus
(
StatusEnum
.
FINISH_APPLY
.
getValue
());
MobileBenefitPackageEntity
entity
=
mobileBenefitPackageMapper
.
queryByPhone
(
patientSignEntity
.
getPatientPhone
(),
patientSignEntity
.
getPackageOrderId
(),
"1"
);
if
(!
ObjectUtils
.
isEmpty
(
entity
))
{
// 推送第三方权益使用
NotifyConsultDataDTO
notifyConsultDataDTO
=
new
NotifyConsultDataDTO
();
notifyConsultDataDTO
.
setActivateOrderId
(
patientSignEntity
.
getPackageOrderId
());
notifyConsultDataDTO
.
setConsultOrderNo
(
patientSignEntity
.
getAdmId
());
notifyConsultDataDTO
.
setStatus
(
String
.
valueOf
(
StatusEnum
.
FINISH_APPLY
.
getValue
()));
notifyConsultDataDTO
.
setProductId
(
entity
.
getProductId
());
notifyConsultDataDTO
.
setPatientId
(
entity
.
getUserId
());
notifyConsultDataDTO
.
setExpertName
(
patientSignEntity
.
getDoctorName
());
notifyConsultDataDTO
.
setOrderDate
(
DateUtils
.
dateToFullString
(
patientSignEntity
.
getCreateTime
()));
notifyConsultDataDTO
.
setSupplierCode
(
CommonConstants
.
SUPPLIER_CODE_JTYS
);
thirdOrderPushUtil
.
syncBenefitUsedOrder
(
notifyConsultDataDTO
,
null
);
}
}
}
patientSignSevice
.
updateById
(
patientSignEntity
);
patientSignSevice
.
updateById
(
patientSignEntity
);
mobileBenefitPackageMapper
.
updateVersion
(
mbp
);
mobileBenefitPackageMapper
.
updateVersion
(
mbp
);
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/util/ThirdOrderPushUtil.java
浏览文件 @
2d9033a4
...
@@ -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
));
...
@@ -216,16 +220,17 @@ public class ThirdOrderPushUtil {
...
@@ -216,16 +220,17 @@ public class ThirdOrderPushUtil {
*
*
* @param userInfoDTO
* @param userInfoDTO
*/
*/
public
void
getUserPic
(
UserInfoDTO
userInfoDTO
)
{
public
String
getUserPic
(
UserInfoDTO
userInfoDTO
)
{
String
result
=
""
;
try
{
try
{
String
param
=
JSONObject
.
toJSONString
(
userInfoDTO
);
String
param
=
JSONObject
.
toJSONString
(
userInfoDTO
);
log
.
info
(
"getUserPic请求入参{}"
,
param
);
log
.
info
(
"getUserPic请求入参{}"
,
param
);
String
result
=
HttpKit
.
jsonPost
(
projProperties
.
getFamilyDoctorThirdUrl
()
+
UrlConstants
.
USER_PIC_URL
,
param
,
getThirdHead
(
userInfoDTO
));
result
=
HttpKit
.
jsonPost
(
projProperties
.
getFamilyDoctorThirdUrl
()
+
UrlConstants
.
USER_PIC_URL
,
param
,
getThirdHead
(
userInfoDTO
));
log
.
info
(
"getUserPic请求返参{}"
,
param
);
log
.
info
(
"getUserPic请求返参{}"
,
param
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"getUserPic请求失败:{}"
,
e
);
log
.
error
(
"getUserPic请求失败:{}"
,
e
);
}
}
return
result
;
}
}
/**
/**
...
@@ -261,4 +266,41 @@ public class ThirdOrderPushUtil {
...
@@ -261,4 +266,41 @@ public class ThirdOrderPushUtil {
}
}
}
}
/**
* 查询资源落地页
*
* @param masterUrlDTO
*/
public
String
getMasterUrl
(
MasterUrlDTO
masterUrlDTO
)
{
String
result
=
""
;
try
{
String
param
=
JSONObject
.
toJSONString
(
masterUrlDTO
);
log
.
info
(
"getMasterUrl请求入参{}"
,
param
);
result
=
HttpKit
.
jsonPost
(
projProperties
.
getFamilyDoctorThirdUrl
()
+
UrlConstants
.
MASTER_URL
,
param
,
getThirdHead
(
masterUrlDTO
));
log
.
info
(
"getMasterUrl请求返参{}"
,
param
);
}
catch
(
Exception
e
)
{
log
.
error
(
"getMasterUrl请求失败:{}"
,
e
);
}
return
result
;
}
/**
* 查询用户报告详情
*
* @param reportDetailDTO
*/
public
String
getReportDetail
(
ReportDetailDTO
reportDetailDTO
)
{
String
result
=
""
;
try
{
String
param
=
JSONObject
.
toJSONString
(
reportDetailDTO
);
log
.
info
(
"getReportDetail请求入参{}"
,
param
);
result
=
HttpKit
.
jsonPost
(
projProperties
.
getFamilyDoctorThirdUrl
()
+
UrlConstants
.
REPORT_DETAIL_URL
,
param
,
getThirdHead
(
reportDetailDTO
));
log
.
info
(
"getReportDetail请求返参{}"
,
param
);
}
catch
(
Exception
e
)
{
log
.
error
(
"getReportDetail请求失败:{}"
,
e
);
}
return
result
;
}
}
}
family-doctor-server/src/main/resources/mapper/MobileBenefitPackageMapper.xml
浏览文件 @
2d9033a4
...
@@ -59,7 +59,9 @@
...
@@ -59,7 +59,9 @@
mobile_benefit_package
mobile_benefit_package
WHERE
WHERE
phone = #{mobile} and activateOrderId = #{activateOrderId}
phone = #{mobile} and activateOrderId = #{activateOrderId}
<if
test=
"flag!=null and flag!=''"
>
and NOW() BETWEEN STR_TO_DATE(benefitsStartTime, '%Y-%m-%d %H:%i:%s') AND STR_TO_DATE(benefitsEndTime, '%Y-%m-%d %H:%i:%s')
and NOW() BETWEEN STR_TO_DATE(benefitsStartTime, '%Y-%m-%d %H:%i:%s') AND STR_TO_DATE(benefitsEndTime, '%Y-%m-%d %H:%i:%s')
</if>
ORDER BY
ORDER BY
x_create_time DESC
x_create_time DESC
LIMIT 0,1
LIMIT 0,1
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论