Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
B
byh-family-doctor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
包
包
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
杨凯
byh-family-doctor
Commits
bc5f3904
提交
bc5f3904
authored
5月 29, 2024
作者:
luzhangjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:修正错误
上级
488ef697
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
19 行增加
和
6 行删除
+19
-6
OrderListReqDTO.java
...m/ebaiyihui/family/doctor/common/dto/OrderListReqDTO.java
+1
-2
OrderListResVo.java
...com/ebaiyihui/family/doctor/common/vo/OrderListResVo.java
+4
-0
OrderManagementServiceImpl.java
...octor/server/service/impl/OrderManagementServiceImpl.java
+1
-1
PatientSignMapper.xml
...or-server/src/main/resources/mapper/PatientSignMapper.xml
+13
-3
没有找到文件。
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/dto/OrderListReqDTO.java
浏览文件 @
bc5f3904
...
@@ -35,7 +35,6 @@ public class OrderListReqDTO extends PageDTO {
...
@@ -35,7 +35,6 @@ public class OrderListReqDTO extends PageDTO {
@ApiModelProperty
(
"结束时间"
)
@ApiModelProperty
(
"结束时间"
)
private
String
endTime
;
private
String
endTime
;
@NotNull
(
message
=
"订单类型不能为空"
)
@ApiModelProperty
(
"订单类型 1-签约订单 2-值班医生问诊订单"
)
@ApiModelProperty
(
"订单类型 1-签约订单 2-值班医生问诊订单"
)
private
String
singStatus
;
private
Integer
singStatus
=
1
;
}
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/vo/OrderListResVo.java
浏览文件 @
bc5f3904
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
vo
;
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
vo
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -16,9 +17,11 @@ public class OrderListResVo {
...
@@ -16,9 +17,11 @@ public class OrderListResVo {
private
String
admId
;
private
String
admId
;
@ApiModelProperty
(
"创建时间"
)
@ApiModelProperty
(
"创建时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
createTime
;
private
Date
createTime
;
@ApiModelProperty
(
"更新时间"
)
@ApiModelProperty
(
"更新时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
updateTime
;
private
Date
updateTime
;
@ApiModelProperty
(
"平台code"
)
@ApiModelProperty
(
"平台code"
)
...
@@ -70,6 +73,7 @@ public class OrderListResVo {
...
@@ -70,6 +73,7 @@ public class OrderListResVo {
private
String
packageOrderId
;
private
String
packageOrderId
;
@ApiModelProperty
(
"签名结束时间"
)
@ApiModelProperty
(
"签名结束时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
signEndTime
;
private
Date
signEndTime
;
@ApiModelProperty
(
"签约关联id"
)
@ApiModelProperty
(
"签约关联id"
)
...
...
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/OrderManagementServiceImpl.java
浏览文件 @
bc5f3904
...
@@ -137,7 +137,7 @@ public class OrderManagementServiceImpl implements OrderManagementService {
...
@@ -137,7 +137,7 @@ public class OrderManagementServiceImpl implements OrderManagementService {
orderInfo
.
setPatientName
(
patient
.
getPatientName
());
orderInfo
.
setPatientName
(
patient
.
getPatientName
());
orderInfo
.
setPatientAge
(
IDCardUtil
.
getAge
(
patient
.
getCredNo
()));
orderInfo
.
setPatientAge
(
IDCardUtil
.
getAge
(
patient
.
getCredNo
()));
orderInfo
.
setDoctorPhone
(
doctorInfo
.
getData
().
getPhoneNum
());
orderInfo
.
setDoctorPhone
(
doctorInfo
.
getData
().
getPhoneNum
());
orderInfo
.
setDoctor
Phon
e
(
patientSignEntity
.
getDoctorName
());
orderInfo
.
setDoctor
Nam
e
(
patientSignEntity
.
getDoctorName
());
orderInfo
.
setDoctorTitle
(
doctorInfo
.
getData
().
getTitle
());
orderInfo
.
setDoctorTitle
(
doctorInfo
.
getData
().
getTitle
());
orderInfo
.
setHospital
(
patientSignEntity
.
getOrganName
());
orderInfo
.
setHospital
(
patientSignEntity
.
getOrganName
());
orderInfo
.
setFirstDepartment
(
patientSignEntity
.
getDeptName
());
orderInfo
.
setFirstDepartment
(
patientSignEntity
.
getDeptName
());
...
...
family-doctor-server/src/main/resources/mapper/PatientSignMapper.xml
浏览文件 @
bc5f3904
...
@@ -7,13 +7,23 @@
...
@@ -7,13 +7,23 @@
patient_phone, cred_no, doctor_id, doctor_name,dept_id, dept_name, sign_status, sub_status,
patient_phone, cred_no, doctor_id, doctor_name,dept_id, dept_name, sign_status, sub_status,
status, package_order_id, sign_end_time, sign_id,clinic_code
status, package_order_id, sign_end_time, sign_id,clinic_code
</sql>
</sql>
<select
id=
"countSumOrder"
resultType=
"com.ebaiyihui.family.doctor.common.vo.QueryOrderTotalVo"
>
<select
id=
"countSumOrder"
parameterType=
"com.ebaiyihui.family.doctor.common.dto.OrderListReqDTO"
resultType=
"com.ebaiyihui.family.doctor.common.vo.QueryOrderTotalVo"
>
SELECT
SELECT
COUNT(*) AS sumOrder,
COUNT(*) AS sumOrder,
SUM(CASE WHEN status = 2 THEN 1 ELSE 0 END) AS sumProcessing,
SUM(CASE WHEN status = 2 THEN 1 ELSE 0 END) AS sumProcessing,
SUM(CASE WHEN status = 3 THEN 1 ELSE 0 END) AS sumCompleted
SUM(CASE WHEN status = 3 THEN 1 ELSE 0 END) AS sumCompleted
FROM
FROM
patient_sign;
patient_sign
where 1 = 1
<if
test=
"singStatus!=null and singStatus!=''"
>
<if
test=
"singStatus == 1"
>
and sign_status = 1 or sign_status = 2
</if>
<if
test=
"singStatus == 2"
>
and sign_status = 3
</if>
</if>
</select>
</select>
<select
id=
"orderList"
parameterType=
"com.ebaiyihui.family.doctor.common.dto.OrderListReqDTO"
<select
id=
"orderList"
parameterType=
"com.ebaiyihui.family.doctor.common.dto.OrderListReqDTO"
...
@@ -52,7 +62,7 @@
...
@@ -52,7 +62,7 @@
and sign_status = 3
and sign_status = 3
</if>
</if>
</if>
</if>
order by create_time
a
sc
order by create_time
de
sc
LIMIT #{pageNum}, #{pageSize}
LIMIT #{pageNum}, #{pageSize}
</select>
</select>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论