Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
B
byh-family-doctor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
包
包
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
杨凯
byh-family-doctor
Commits
a5bb9f46
提交
a5bb9f46
authored
4月 01, 2024
作者:
杨凯
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:家庭医生初始化
上级
93b11f99
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
39 行增加
和
12 行删除
+39
-12
ImMsgTemplateServiceImpl.java
.../doctor/server/service/impl/ImMsgTemplateServiceImpl.java
+11
-5
PatientServiceImpl.java
...family/doctor/server/service/impl/PatientServiceImpl.java
+28
-7
没有找到文件。
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/ImMsgTemplateServiceImpl.java
浏览文件 @
a5bb9f46
...
@@ -25,6 +25,7 @@ import com.ebaiyihui.family.doctor.server.mapper.PatientMapper;
...
@@ -25,6 +25,7 @@ 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.service.ImChatTemplate
;
import
com.ebaiyihui.family.doctor.server.service.ImChatTemplate
;
import
com.ebaiyihui.family.doctor.server.service.ImMsgTemplateService
;
import
com.ebaiyihui.family.doctor.server.service.ImMsgTemplateService
;
import
com.ebaiyihui.family.doctor.server.util.DateUtils
;
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.framework.response.BaseResponse
;
import
com.ebaiyihui.framework.response.BaseResponse
;
...
@@ -33,10 +34,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -33,10 +34,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.*
;
import
java.util.Comparator
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
/**
/**
...
@@ -137,7 +135,15 @@ public class ImMsgTemplateServiceImpl implements ImMsgTemplateService {
...
@@ -137,7 +135,15 @@ public class ImMsgTemplateServiceImpl implements ImMsgTemplateService {
infoListDTO
.
setDoctorId
(
String
.
valueOf
(
patientSignEntity
.
getDoctorId
()));
infoListDTO
.
setDoctorId
(
String
.
valueOf
(
patientSignEntity
.
getDoctorId
()));
infoListDTO
.
setMessageNum
(
String
.
valueOf
(
patientEntity
.
getUnReadCount
()));
infoListDTO
.
setMessageNum
(
String
.
valueOf
(
patientEntity
.
getUnReadCount
()));
infoListDTO
.
setGroupId
(
imMessageDTO
.
getRoomNum
());
infoListDTO
.
setGroupId
(
imMessageDTO
.
getRoomNum
());
infoListDTO
.
setTimestamp
(
imMessageDTO
.
getMsgTime
());
String
timestamp
=
""
;
try
{
Date
timestampDate
=
DateUtils
.
parseDate
(
imMessageDTO
.
getMsgTime
(),
DateUtils
.
FULL_FORMAT
);
timestamp
=
String
.
valueOf
(
timestampDate
.
getTime
());
}
catch
(
Exception
e
)
{
log
.
error
(
"日志转换异常"
,
e
);
}
infoListDTO
.
setTimestamp
(
timestamp
);
infoList
.
add
(
infoListDTO
);
infoList
.
add
(
infoListDTO
);
unReadMsgDTO
.
setInfoList
(
infoList
);
unReadMsgDTO
.
setInfoList
(
infoList
);
thirdOrderPushUtil
.
syncUnReadMsgCount
(
unReadMsgDTO
);
thirdOrderPushUtil
.
syncUnReadMsgCount
(
unReadMsgDTO
);
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/PatientServiceImpl.java
浏览文件 @
a5bb9f46
...
@@ -119,14 +119,15 @@ public class PatientServiceImpl implements PatientService {
...
@@ -119,14 +119,15 @@ public class PatientServiceImpl implements PatientService {
List
<
PatientSignEntity
>
patientSignEntities
=
getPatientSignList
(
reqVo
.
getPhone
(),
reqVo
.
getPackageOrderId
(),
List
<
PatientSignEntity
>
patientSignEntities
=
getPatientSignList
(
reqVo
.
getPhone
(),
reqVo
.
getPackageOrderId
(),
signStatus
,
status
);
signStatus
,
status
);
if
(!
patientSignEntities
.
isEmpty
())
{
if
(!
patientSignEntities
.
isEmpty
())
{
if
(!
SignStatus
.
CANCEL
.
getValue
().
equals
(
reqVo
.
getSignStatus
()))
{
//
if (!SignStatus.CANCEL.getValue().equals(reqVo.getSignStatus())) {
return
BaseResponse
.
error
(
"已经有进行中的签约或者改签医生,不能再进行签约或者改签!!!"
);
return
BaseResponse
.
error
(
"已经有进行中的签约或者改签医生,不能再进行签约或者改签!!!"
);
}
// }
PatientSignEntity
patientSignEntity
=
patientSignEntities
.
get
(
0
);
// PatientSignEntity patientSignEntity = patientSignEntities.get(0);
Date
signCreateTime
=
patientSignEntity
.
getCreateTime
();
// Date signCreateTime = patientSignEntity.getCreateTime();
if
(
signCreateTime
.
after
(
signStartTime
)
&&
signCreateTime
.
before
(
signEndTime
))
{
// log.info("");
return
BaseResponse
.
error
(
"已经有进行中的签约或者改签医生,不能再进行签约或者改签!!!"
);
// if (signCreateTime.after(signStartTime) && signCreateTime.before(signEndTime)) {
}
// return BaseResponse.error("已经有进行中的签约或者改签医生,不能再进行签约或者改签!!!");
// }
}
}
}
else
{
}
else
{
QueryWrapper
<
PatientSignEntity
>
psWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
PatientSignEntity
>
psWrapper
=
new
QueryWrapper
<>();
...
@@ -364,4 +365,24 @@ public class PatientServiceImpl implements PatientService {
...
@@ -364,4 +365,24 @@ public class PatientServiceImpl implements PatientService {
List
<
PatientSignEntity
>
patientSignEntities
=
patientSignMapper
.
selectList
(
psWrapper
);
List
<
PatientSignEntity
>
patientSignEntities
=
patientSignMapper
.
selectList
(
psWrapper
);
return
patientSignEntities
;
return
patientSignEntities
;
}
}
public
static
void
main
(
String
[]
args
)
{
Date
curDate
=
new
Date
();
Date
signEndTime
=
DateUtils
.
getAfterDay
(
curDate
,
CommonConstants
.
DAY
);
Date
signStartTime
=
new
Date
();
try
{
signEndTime
=
DateUtils
.
parseDate
(
"2024-04-19 23:59:59"
,
DateUtils
.
FULL_FORMAT
);
signStartTime
=
DateUtils
.
parseDate
(
"2024-03-19 10:29:47"
,
DateUtils
.
FULL_FORMAT
);
Date
signCreateTime
=
DateUtils
.
parseDate
(
"2024-04-01 17:48:32"
,
DateUtils
.
FULL_FORMAT
);
if
(
signCreateTime
.
after
(
signStartTime
)
&&
signCreateTime
.
before
(
signEndTime
))
{
System
.
out
.
println
(
"xxxxx"
);
}
System
.
out
.
println
(
"wwwww"
);
}
catch
(
Exception
e
)
{
}
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论