Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
B
byh-family-doctor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
包
包
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
杨凯
byh-family-doctor
Commits
33a5d0c7
提交
33a5d0c7
authored
5月 28, 2024
作者:
luzhangjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:综管订单列表
上级
378b5a85
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
239 行增加
和
103 行删除
+239
-103
OrderListReqDTO.java
...m/ebaiyihui/family/doctor/common/dto/OrderListReqDTO.java
+34
-0
OrderListResVo.java
...com/ebaiyihui/family/doctor/common/vo/OrderListResVo.java
+81
-0
QueryOrderTotalVo.java
.../ebaiyihui/family/doctor/common/vo/QueryOrderTotalVo.java
+23
-0
OrderManagementController.java
...y/doctor/server/controller/OrderManagementController.java
+33
-0
PatientMedicalRecordEntity.java
...mily/doctor/server/entity/PatientMedicalRecordEntity.java
+0
-78
PatientMedicalRecordMapper.java
...mily/doctor/server/mapper/PatientMedicalRecordMapper.java
+0
-17
PatientSignMapper.java
...iyihui/family/doctor/server/mapper/PatientSignMapper.java
+7
-0
PatientSignService.java
...ihui/family/doctor/server/service/PatientSignService.java
+4
-8
PatientSignServiceImpl.java
...ly/doctor/server/service/impl/PatientSignServiceImpl.java
+12
-0
PatientSignMapper.xml
...or-server/src/main/resources/mapper/PatientSignMapper.xml
+45
-0
没有找到文件。
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/dto/OrderListReqDTO.java
0 → 100644
浏览文件 @
33a5d0c7
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
dto
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
/**
* 管理端订单列表入参
*/
@EqualsAndHashCode
(
callSuper
=
true
)
@Data
public
class
OrderListReqDTO
extends
PageDTO
{
@ApiModelProperty
(
"搜索参数"
)
private
String
keyWord
;
@ApiModelProperty
(
"医院code"
)
private
String
appCode
;
@ApiModelProperty
(
"订单状态"
)
private
String
orderStatus
;
@ApiModelProperty
(
"科室名称"
)
private
String
deptName
;
@ApiModelProperty
(
"1订单开始时间/2订单结束时间"
)
private
String
timeType
;
@ApiModelProperty
(
"开始时间"
)
private
String
beginTime
;
@ApiModelProperty
(
"结束时间"
)
private
String
endTime
;
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/vo/OrderListResVo.java
0 → 100644
浏览文件 @
33a5d0c7
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
vo
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.Date
;
@Data
public
class
OrderListResVo
{
@ApiModelProperty
(
"主键id"
)
private
Long
id
;
@ApiModelProperty
(
"签约编号"
)
private
String
admId
;
@ApiModelProperty
(
"创建时间"
)
private
Date
createTime
;
@ApiModelProperty
(
"更新时间"
)
private
Date
updateTime
;
@ApiModelProperty
(
"平台code"
)
private
String
appCode
;
@ApiModelProperty
(
"组织id"
)
private
Long
organId
;
@ApiModelProperty
(
"组织名称"
)
private
String
organName
;
@ApiModelProperty
(
"患者id"
)
private
String
patientId
;
@ApiModelProperty
(
"患者im用户id"
)
private
String
patientUserId
;
@ApiModelProperty
(
"患者名称"
)
private
String
patientName
;
@ApiModelProperty
(
"患者手机号码"
)
private
String
patientPhone
;
@ApiModelProperty
(
"身份证号码"
)
private
String
credNo
;
@ApiModelProperty
(
"医生id"
)
private
Long
doctorId
;
@ApiModelProperty
(
"医生名称"
)
private
String
doctorName
;
@ApiModelProperty
(
"部门id"
)
private
Long
deptId
;
@ApiModelProperty
(
"部门名称"
)
private
String
deptName
;
@ApiModelProperty
(
"签约状态1.未签约2.已签约3:已解约"
)
private
Integer
signStatus
;
@ApiModelProperty
(
"改签状态1、正常2、已改签"
)
private
Integer
subStatus
;
@ApiModelProperty
(
"业务状态2:进行中3:已完成4:已过期"
)
private
Integer
status
;
@ApiModelProperty
(
"权益包id"
)
private
String
packageOrderId
;
@ApiModelProperty
(
"签名结束时间"
)
private
Date
signEndTime
;
@ApiModelProperty
(
"签约关联id"
)
private
Long
signId
;
@ApiModelProperty
(
"云his挂号编号"
)
private
String
clinicCode
;
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/vo/QueryOrderTotalVo.java
0 → 100644
浏览文件 @
33a5d0c7
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
vo
;
import
lombok.Data
;
import
lombok.ToString
;
@Data
@ToString
public
class
QueryOrderTotalVo
{
/**
* 总计
*/
private
Integer
sumOrder
;
/**
* 完成订单
*/
private
Integer
sumCompleted
;
/**
* 进行中订单
*/
private
Integer
sumProcessing
;
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/controller/OrderManagementController.java
0 → 100644
浏览文件 @
33a5d0c7
package
com
.
ebaiyihui
.
family
.
doctor
.
server
.
controller
;
import
com.ebaiyihui.family.doctor.common.dto.OrderListReqDTO
;
import
com.ebaiyihui.family.doctor.common.vo.OrderListResVo
;
import
com.ebaiyihui.family.doctor.server.service.PatientSignService
;
import
com.ebaiyihui.family.doctor.server.util.PageUtil
;
import
com.ebaiyihui.framework.response.BaseResponse
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
/**
* 问诊订单管理
*/
@Slf4j
@RestController
@RequestMapping
(
"/singOrder"
)
@Api
(
tags
=
"家庭医生订单管理API"
)
public
class
OrderManagementController
{
@Autowired
private
PatientSignService
patientSignService
;
@ApiOperation
(
"管理端订单列表"
)
@PostMapping
(
"/v1/orderList"
)
public
BaseResponse
<
PageUtil
<
OrderListResVo
>>
orderList
(
@RequestBody
OrderListReqDTO
param
)
{
return
patientSignService
.
orderList
(
param
);
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/entity/PatientMedicalRecordEntity.java
deleted
100644 → 0
浏览文件 @
378b5a85
package
com
.
ebaiyihui
.
family
.
doctor
.
server
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
java.util.Date
;
@Data
@TableName
(
value
=
"patient_medical_record"
)
public
class
PatientMedicalRecordEntity
{
/**
* 主键
*/
private
String
id
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
/**
* 签约id
*/
private
String
admId
;
/**
* 患者id
*/
private
String
patientId
;
/**
* 主述
*/
private
String
mainSuit
;
/**
* 诊断
*/
private
String
diagnosis
;
/**
* 现病史
*/
private
String
currentHistory
;
/**
* 既往史
*/
private
String
pastHistory
;
/**
* 过敏史
*/
private
String
allergyHistory
;
/**
* 其他病史
*/
private
String
othersHistory
;
/**
* 其他
*/
private
String
remark
;
/**
* 病例状态 1生效/0失效
*/
private
Integer
recordStatus
;
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/mapper/PatientMedicalRecordMapper.java
deleted
100644 → 0
浏览文件 @
378b5a85
package
com
.
ebaiyihui
.
family
.
doctor
.
server
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.ebaiyihui.family.doctor.server.entity.PatientMedicalRecordEntity
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Select
;
@Mapper
public
interface
PatientMedicalRecordMapper
extends
BaseMapper
<
PatientMedicalRecordEntity
>
{
@Select
(
"select * from patient_medical_record where id = #{id} and record_status = #{status}"
)
PatientMedicalRecordEntity
getByIdAndStatus
(
String
id
,
int
status
);
@Select
(
"select * from patient_medical_record where adm_id = #{id} and record_status = 1"
)
PatientMedicalRecordEntity
getByAdmId
(
String
admId
);
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/mapper/PatientSignMapper.java
浏览文件 @
33a5d0c7
...
@@ -2,7 +2,10 @@ package com.ebaiyihui.family.doctor.server.mapper;
...
@@ -2,7 +2,10 @@ package com.ebaiyihui.family.doctor.server.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.ebaiyihui.family.doctor.common.dto.ImInfoListDocReqDTO
;
import
com.ebaiyihui.family.doctor.common.dto.ImInfoListDocReqDTO
;
import
com.ebaiyihui.family.doctor.common.dto.OrderListReqDTO
;
import
com.ebaiyihui.family.doctor.common.vo.ImInfoListResVo
;
import
com.ebaiyihui.family.doctor.common.vo.ImInfoListResVo
;
import
com.ebaiyihui.family.doctor.common.vo.OrderListResVo
;
import
com.ebaiyihui.family.doctor.common.vo.QueryOrderTotalVo
;
import
com.ebaiyihui.family.doctor.server.entity.PatientSignEntity
;
import
com.ebaiyihui.family.doctor.server.entity.PatientSignEntity
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
...
@@ -20,4 +23,8 @@ public interface PatientSignMapper extends BaseMapper<PatientSignEntity> {
...
@@ -20,4 +23,8 @@ public interface PatientSignMapper extends BaseMapper<PatientSignEntity> {
List
<
ImInfoListResVo
>
queryImInfoList
(
ImInfoListDocReqDTO
param
);
List
<
ImInfoListResVo
>
queryImInfoList
(
ImInfoListDocReqDTO
param
);
PatientSignEntity
queryByAdmId
(
String
admId
);
PatientSignEntity
queryByAdmId
(
String
admId
);
List
<
OrderListResVo
>
orderList
(
OrderListReqDTO
param
);
QueryOrderTotalVo
countSumOrder
();
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/PatientSignService.java
浏览文件 @
33a5d0c7
package
com
.
ebaiyihui
.
family
.
doctor
.
server
.
service
;
package
com
.
ebaiyihui
.
family
.
doctor
.
server
.
service
;
import
com.ebaiyihui.family.doctor.common.dto.ImAccountReqDTO
;
import
com.ebaiyihui.family.doctor.common.dto.*
;
import
com.ebaiyihui.family.doctor.common.dto.ImInfoDetailDocReqDTO
;
import
com.ebaiyihui.family.doctor.common.vo.*
;
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.ImInfoDetailDocResVo
;
import
com.ebaiyihui.family.doctor.common.vo.ImInfoListResVo
;
import
com.ebaiyihui.family.doctor.common.vo.ImInfoResVo
;
import
com.ebaiyihui.family.doctor.server.entity.PatientSignEntity
;
import
com.ebaiyihui.family.doctor.server.entity.PatientSignEntity
;
import
com.ebaiyihui.family.doctor.server.util.PageUtil
;
import
com.ebaiyihui.family.doctor.server.util.PageUtil
;
import
com.ebaiyihui.framework.response.BaseResponse
;
import
com.ebaiyihui.framework.response.BaseResponse
;
...
@@ -53,4 +47,6 @@ public interface PatientSignService {
...
@@ -53,4 +47,6 @@ public interface PatientSignService {
int
updateById
(
PatientSignEntity
patientSignEntity
);
int
updateById
(
PatientSignEntity
patientSignEntity
);
BaseResponse
<
String
>
queryMasterUrl
(
MasterUrlDTO
reqVo
);
BaseResponse
<
String
>
queryMasterUrl
(
MasterUrlDTO
reqVo
);
BaseResponse
<
PageUtil
<
OrderListResVo
>>
orderList
(
OrderListReqDTO
param
);
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/PatientSignServiceImpl.java
浏览文件 @
33a5d0c7
...
@@ -347,6 +347,18 @@ public class PatientSignServiceImpl implements PatientSignService {
...
@@ -347,6 +347,18 @@ public class PatientSignServiceImpl implements PatientSignService {
return
BaseResponse
.
success
(
resulStr
);
return
BaseResponse
.
success
(
resulStr
);
}
}
@Override
public
BaseResponse
<
PageUtil
<
OrderListResVo
>>
orderList
(
OrderListReqDTO
param
)
{
param
.
setPageNum
((
param
.
getPageNum
()
-
1
)
*
param
.
getPageSize
());
List
<
OrderListResVo
>
records
=
patientSignMapper
.
orderList
(
param
);
PageUtil
<
OrderListResVo
>
pageUtil
=
new
PageUtil
<>();
pageUtil
.
setList
(
records
);
QueryOrderTotalVo
totalVo
=
patientSignMapper
.
countSumOrder
();
pageUtil
.
setObject
(
totalVo
);
return
BaseResponse
.
success
(
pageUtil
);
}
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/resources/mapper/PatientSignMapper.xml
浏览文件 @
33a5d0c7
...
@@ -2,6 +2,51 @@
...
@@ -2,6 +2,51 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.ebaiyihui.family.doctor.server.mapper.PatientSignMapper"
>
<mapper
namespace=
"com.ebaiyihui.family.doctor.server.mapper.PatientSignMapper"
>
<sql
id=
"Base_Column_List"
>
id, adm_id, create_time, update_time, app_code, organ_id, organ_name, patient_user_id, patient_id, patient_name,
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
</sql>
<select
id=
"countSumOrder"
resultType=
"com.ebaiyihui.family.doctor.common.vo.QueryOrderTotalVo"
>
SELECT
COUNT(*) AS sumOrder,
SUM(CASE WHEN status = 2 THEN 1 ELSE 0 END) AS sumProcessing,
SUM(CASE WHEN status = 3 THEN 1 ELSE 0 END) AS sumCompleted
FROM
patient_sign;
</select>
<select
id=
"orderList"
parameterType=
"com.ebaiyihui.family.doctor.common.dto.OrderListReqDTO"
resultType=
"com.ebaiyihui.family.doctor.common.vo.OrderListResVo"
>
select
<include
refid=
"Base_Column_List"
/>
from patient_sign
where 1=1
<if
test=
"keyWord!=null and keyWord!=''"
>
and patient_name like concat('%',#{keyWord},'%')
or patient_phone like concat('%',#{keyWord},'%')
or id like concat('%',#{keyWord},'%')
</if>
<if
test=
"appCode!=null and appCode!=''"
>
and app_code = #{appCode}
</if>
<if
test=
"orderStatus!=null and orderStatus!=''"
>
and status = #{orderStatus}
</if>
<if
test=
"deptName!=null and deptName!=''"
>
and dept_name like concat('%',#{deptName},'%')
</if>
<if
test=
"timeType!=null and timeType!=''"
>
<if
test=
"timeType == 1"
>
and create_time BETWEEN #{startTime} AND #{endTime}
</if>
<if
test=
"timeType == 2"
>
and sign_end_time BETWEEN #{startTime} AND #{endTime}
</if>
</if>
order by create_time asc
LIMIT #{pageNum}, #{pageSize}
</select>
<select
id=
"queryImInfoList"
parameterType=
"com.ebaiyihui.family.doctor.common.dto.ImInfoListDocReqDTO"
<select
id=
"queryImInfoList"
parameterType=
"com.ebaiyihui.family.doctor.common.dto.ImInfoListDocReqDTO"
resultType=
"com.ebaiyihui.family.doctor.common.vo.ImInfoListResVo"
>
resultType=
"com.ebaiyihui.family.doctor.common.vo.ImInfoListResVo"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论