Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
B
byh-family-doctor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
包
包
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
杨凯
byh-family-doctor
Commits
30fe4858
提交
30fe4858
authored
5月 11, 2024
作者:
luzhangjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:病例相关接口
上级
33292030
显示空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
542 行增加
和
20 行删除
+542
-20
InsertPatientMedicalRecordDTO.java
...mily/doctor/common/dto/InsertPatientMedicalRecordDTO.java
+42
-0
InvalidMedicalRecordDTO.java
...hui/family/doctor/common/dto/InvalidMedicalRecordDTO.java
+15
-0
UpdatePatientMedicalRecordDTO.java
...mily/doctor/common/dto/UpdatePatientMedicalRecordDTO.java
+38
-0
InsertPatientMedicalRecordVO.java
...family/doctor/common/vo/InsertPatientMedicalRecordVO.java
+11
-0
PatientMedicalRecordVO.java
...yihui/family/doctor/common/vo/PatientMedicalRecordVO.java
+93
-0
PatientMedicalRecordController.java
...tor/server/controller/PatientMedicalRecordController.java
+71
-0
PatientMedicalRecordEntity.java
...mily/doctor/server/entity/PatientMedicalRecordEntity.java
+78
-0
PatientMedicalRecordMapper.java
...mily/doctor/server/mapper/PatientMedicalRecordMapper.java
+14
-0
PatientSignMapper.java
...iyihui/family/doctor/server/mapper/PatientSignMapper.java
+2
-0
PatientMedicalRecordService.java
...ly/doctor/server/service/PatientMedicalRecordService.java
+26
-0
PatientMedicalRecordServiceImpl.java
.../server/service/impl/PatientMedicalRecordServiceImpl.java
+127
-0
PatientSignMapper.xml
...or-server/src/main/resources/mapper/PatientSignMapper.xml
+25
-20
没有找到文件。
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/dto/InsertPatientMedicalRecordDTO.java
0 → 100644
浏览文件 @
30fe4858
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
dto
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotBlank
;
@Data
public
class
InsertPatientMedicalRecordDTO
{
@ApiModelProperty
(
"签约id"
)
@NotBlank
(
message
=
"签约id不能为空"
)
private
String
admId
;
@NotBlank
(
message
=
"患者id不能为空"
)
@ApiModelProperty
(
"患者id"
)
private
String
patientId
;
@NotBlank
(
message
=
"主诉不能为空"
)
@ApiModelProperty
(
"主诉"
)
private
String
mainSuit
;
@NotBlank
(
message
=
"诊断不能为空"
)
@ApiModelProperty
(
"诊断"
)
private
String
diagnosis
;
@ApiModelProperty
(
"现病史"
)
private
String
currentHistory
;
@ApiModelProperty
(
"既往史"
)
private
String
pastHistory
;
@ApiModelProperty
(
"过敏史"
)
private
String
allergyHistory
;
@ApiModelProperty
(
"其他病史"
)
private
String
othersHistory
;
@ApiModelProperty
(
"其他"
)
private
String
remark
;
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/dto/InvalidMedicalRecordDTO.java
0 → 100644
浏览文件 @
30fe4858
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
dto
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotBlank
;
@Data
public
class
InvalidMedicalRecordDTO
{
@NotBlank
(
message
=
"病历ID不能为空"
)
@ApiModelProperty
(
"病历ID"
)
private
String
id
;
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/dto/UpdatePatientMedicalRecordDTO.java
0 → 100644
浏览文件 @
30fe4858
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
dto
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotBlank
;
@Data
public
class
UpdatePatientMedicalRecordDTO
{
@ApiModelProperty
(
"病历ID"
)
@NotBlank
(
message
=
"病历ID不能为空"
)
private
String
id
;
@NotBlank
(
message
=
"主诉不能为空"
)
@ApiModelProperty
(
"主诉"
)
private
String
mainSuit
;
@NotBlank
(
message
=
"诊断不能为空"
)
@ApiModelProperty
(
"诊断"
)
private
String
diagnosis
;
@ApiModelProperty
(
"现病史"
)
private
String
currentHistory
;
@ApiModelProperty
(
"既往史"
)
private
String
pastHistory
;
@ApiModelProperty
(
"过敏史"
)
private
String
allergyHistory
;
@ApiModelProperty
(
"其他病史"
)
private
String
othersHistory
;
@ApiModelProperty
(
"其他"
)
private
String
remark
;
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/vo/InsertPatientMedicalRecordVO.java
0 → 100644
浏览文件 @
30fe4858
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
vo
;
import
lombok.Data
;
@Data
public
class
InsertPatientMedicalRecordVO
{
/**
* 新增病历ID
*/
private
String
recordId
;
}
family-doctor-common/src/main/java/com/ebaiyihui/family/doctor/common/vo/PatientMedicalRecordVO.java
0 → 100644
浏览文件 @
30fe4858
package
com
.
ebaiyihui
.
family
.
doctor
.
common
.
vo
;
import
lombok.Data
;
import
java.util.Date
;
@Data
public
class
PatientMedicalRecordVO
{
/**
* 主键
*/
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
;
/**
* 患者医生科室信息
*/
private
InfoVo
infoVo
;
@Data
public
static
class
InfoVo
{
private
String
doctorId
;
private
String
doctorName
;
private
String
deptId
;
private
String
deptName
;
private
String
patientUserId
;
private
String
patientName
;
private
String
patientNo
;
private
String
patientGender
;
private
String
patientPhone
;
private
String
patientCredNo
;
};
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/controller/PatientMedicalRecordController.java
0 → 100644
浏览文件 @
30fe4858
package
com
.
ebaiyihui
.
family
.
doctor
.
server
.
controller
;
import
com.ebaiyihui.family.doctor.common.dto.InsertPatientMedicalRecordDTO
;
import
com.ebaiyihui.family.doctor.common.dto.InvalidMedicalRecordDTO
;
import
com.ebaiyihui.family.doctor.common.dto.UpdatePatientMedicalRecordDTO
;
import
com.ebaiyihui.family.doctor.common.vo.InsertPatientMedicalRecordVO
;
import
com.ebaiyihui.family.doctor.common.vo.PatientMedicalRecordVO
;
import
com.ebaiyihui.family.doctor.server.service.PatientMedicalRecordService
;
import
com.ebaiyihui.framework.response.BaseResponse
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.Objects
;
@RestController
@RequestMapping
(
"/medicalRecord"
)
@Api
(
tags
=
"患者病历API"
)
public
class
PatientMedicalRecordController
{
@Autowired
private
PatientMedicalRecordService
patientMedicalRecordService
;
@PostMapping
(
"/insert"
)
@ApiOperation
(
value
=
"新建复诊病历"
,
notes
=
"医生开具复诊病历"
)
public
BaseResponse
<
InsertPatientMedicalRecordVO
>
insert
(
@RequestBody
@Validated
InsertPatientMedicalRecordDTO
dto
,
BindingResult
bindingResult
)
{
if
(
bindingResult
.
hasErrors
())
{
return
BaseResponse
.
error
(
Objects
.
requireNonNull
(
bindingResult
.
getFieldError
()).
getDefaultMessage
());
}
return
patientMedicalRecordService
.
insertPatientMedicalRecord
(
dto
);
}
@PostMapping
(
"/update"
)
@ApiOperation
(
value
=
"修改复诊病历"
,
notes
=
"医生修改复诊病历"
)
public
BaseResponse
<
InsertPatientMedicalRecordVO
>
update
(
@RequestBody
@Validated
UpdatePatientMedicalRecordDTO
dto
,
BindingResult
bindingResult
)
{
if
(
bindingResult
.
hasErrors
())
{
return
BaseResponse
.
error
(
Objects
.
requireNonNull
(
bindingResult
.
getFieldError
()).
getDefaultMessage
());
}
return
patientMedicalRecordService
.
updatePatientMedicalRecord
(
dto
);
}
@PostMapping
(
"/invalid"
)
@ApiOperation
(
value
=
"开具处方失效病历"
,
notes
=
"开具处方失效病历"
)
public
BaseResponse
<
Objects
>
invalid
(
@RequestBody
@Validated
InvalidMedicalRecordDTO
dto
,
BindingResult
bindingResult
)
{
if
(
bindingResult
.
hasErrors
())
{
return
BaseResponse
.
error
(
Objects
.
requireNonNull
(
bindingResult
.
getFieldError
()).
getDefaultMessage
());
}
return
patientMedicalRecordService
.
invalidMedicalRecord
(
dto
);
}
@PostMapping
(
"/detail"
)
@ApiOperation
(
value
=
"复诊病历详情"
,
notes
=
"复诊病历详情"
)
public
BaseResponse
<
PatientMedicalRecordVO
>
detail
(
@RequestBody
@Validated
InvalidMedicalRecordDTO
dto
,
BindingResult
bindingResult
)
{
if
(
bindingResult
.
hasErrors
())
{
return
BaseResponse
.
error
(
Objects
.
requireNonNull
(
bindingResult
.
getFieldError
()).
getDefaultMessage
());
}
return
patientMedicalRecordService
.
detailMedicalRecord
(
dto
);
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/entity/PatientMedicalRecordEntity.java
0 → 100644
浏览文件 @
30fe4858
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
0 → 100644
浏览文件 @
30fe4858
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
);
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/mapper/PatientSignMapper.java
浏览文件 @
30fe4858
...
@@ -18,4 +18,6 @@ import java.util.List;
...
@@ -18,4 +18,6 @@ import java.util.List;
public
interface
PatientSignMapper
extends
BaseMapper
<
PatientSignEntity
>
{
public
interface
PatientSignMapper
extends
BaseMapper
<
PatientSignEntity
>
{
List
<
ImInfoListResVo
>
queryImInfoList
(
ImInfoListDocReqDTO
param
);
List
<
ImInfoListResVo
>
queryImInfoList
(
ImInfoListDocReqDTO
param
);
PatientSignEntity
queryByAdmId
(
String
admId
);
}
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/PatientMedicalRecordService.java
0 → 100644
浏览文件 @
30fe4858
package
com
.
ebaiyihui
.
family
.
doctor
.
server
.
service
;
import
com.ebaiyihui.family.doctor.common.dto.InsertPatientMedicalRecordDTO
;
import
com.ebaiyihui.family.doctor.common.dto.InvalidMedicalRecordDTO
;
import
com.ebaiyihui.family.doctor.common.dto.UpdatePatientMedicalRecordDTO
;
import
com.ebaiyihui.family.doctor.common.vo.InsertPatientMedicalRecordVO
;
import
com.ebaiyihui.family.doctor.common.vo.PatientMedicalRecordVO
;
import
com.ebaiyihui.framework.response.BaseResponse
;
import
java.util.Objects
;
/**
* 患者病历Service
*/
public
interface
PatientMedicalRecordService
{
BaseResponse
<
InsertPatientMedicalRecordVO
>
insertPatientMedicalRecord
(
InsertPatientMedicalRecordDTO
dto
);
BaseResponse
<
InsertPatientMedicalRecordVO
>
updatePatientMedicalRecord
(
UpdatePatientMedicalRecordDTO
dto
);
BaseResponse
<
Objects
>
invalidMedicalRecord
(
InvalidMedicalRecordDTO
dto
);
BaseResponse
<
PatientMedicalRecordVO
>
detailMedicalRecord
(
InvalidMedicalRecordDTO
dto
);
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/PatientMedicalRecordServiceImpl.java
0 → 100644
浏览文件 @
30fe4858
package
com
.
ebaiyihui
.
family
.
doctor
.
server
.
service
.
impl
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.ebaiyihui.family.doctor.common.dto.InsertPatientMedicalRecordDTO
;
import
com.ebaiyihui.family.doctor.common.dto.InvalidMedicalRecordDTO
;
import
com.ebaiyihui.family.doctor.common.dto.UpdatePatientMedicalRecordDTO
;
import
com.ebaiyihui.family.doctor.common.vo.InsertPatientMedicalRecordVO
;
import
com.ebaiyihui.family.doctor.common.vo.PatientInfoVo
;
import
com.ebaiyihui.family.doctor.common.vo.PatientMedicalRecordVO
;
import
com.ebaiyihui.family.doctor.server.entity.PatientEntity
;
import
com.ebaiyihui.family.doctor.server.entity.PatientMedicalRecordEntity
;
import
com.ebaiyihui.family.doctor.server.entity.PatientSignEntity
;
import
com.ebaiyihui.family.doctor.server.exception.BusinessException
;
import
com.ebaiyihui.family.doctor.server.mapper.PatientMapper
;
import
com.ebaiyihui.family.doctor.server.mapper.PatientMedicalRecordMapper
;
import
com.ebaiyihui.family.doctor.server.mapper.PatientSignMapper
;
import
com.ebaiyihui.family.doctor.server.service.PatientMedicalRecordService
;
import
com.ebaiyihui.family.doctor.server.util.IDCardUtil
;
import
com.ebaiyihui.family.doctor.server.util.UUIDUtil
;
import
com.ebaiyihui.framework.response.BaseResponse
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Objects
;
@Service
@Slf4j
public
class
PatientMedicalRecordServiceImpl
implements
PatientMedicalRecordService
{
@Autowired
private
PatientMedicalRecordMapper
patientMedicalRecordMapper
;
@Autowired
private
PatientMapper
patientMapper
;
@Autowired
private
PatientSignMapper
patientSignMapper
;
@Override
public
BaseResponse
<
InsertPatientMedicalRecordVO
>
insertPatientMedicalRecord
(
InsertPatientMedicalRecordDTO
dto
)
{
log
.
info
(
"医生开具复诊病历入参:{}"
,
dto
.
toString
());
PatientMedicalRecordEntity
entity
=
new
PatientMedicalRecordEntity
();
BeanUtils
.
copyProperties
(
dto
,
entity
);
entity
.
setId
(
UUIDUtil
.
getUUID
());
entity
.
setRecordStatus
(
1
);
patientMedicalRecordMapper
.
insert
(
entity
);
InsertPatientMedicalRecordVO
vo
=
new
InsertPatientMedicalRecordVO
();
vo
.
setRecordId
(
String
.
valueOf
(
entity
.
getId
()));
return
BaseResponse
.
success
(
vo
);
}
@Override
public
BaseResponse
<
InsertPatientMedicalRecordVO
>
updatePatientMedicalRecord
(
UpdatePatientMedicalRecordDTO
dto
)
{
log
.
info
(
"医生修改复诊病历入参:{}"
,
dto
.
toString
());
if
(
StringUtils
.
isEmpty
(
dto
.
getId
())){
throw
new
BusinessException
(
"修改xid不能为空"
);
}
PatientMedicalRecordEntity
recordEntity
=
patientMedicalRecordMapper
.
getByIdAndStatus
(
dto
.
getId
(),
1
);
if
(
ObjectUtil
.
isNull
(
recordEntity
)){
throw
new
BusinessException
(
"未找到该病历,或病例失效"
);
}
PatientMedicalRecordEntity
entity
=
new
PatientMedicalRecordEntity
();
BeanUtils
.
copyProperties
(
dto
,
entity
);
patientMedicalRecordMapper
.
updateById
(
entity
);
InsertPatientMedicalRecordVO
vo
=
new
InsertPatientMedicalRecordVO
();
vo
.
setRecordId
(
String
.
valueOf
(
entity
.
getId
()));
return
BaseResponse
.
success
(
vo
);
}
@Override
public
BaseResponse
<
Objects
>
invalidMedicalRecord
(
InvalidMedicalRecordDTO
dto
)
{
log
.
info
(
"开具处方失效病历入参:{}"
,
dto
.
toString
());
if
(
StringUtils
.
isEmpty
(
dto
.
getId
())){
throw
new
BusinessException
(
"病历id不能未空"
);
}
PatientMedicalRecordEntity
recordEntity
=
patientMedicalRecordMapper
.
getByIdAndStatus
(
dto
.
getId
(),
1
);
if
(
ObjectUtil
.
isNull
(
recordEntity
)){
throw
new
BusinessException
(
"未找到该病历,或病例失效"
);
}
PatientMedicalRecordEntity
entity
=
new
PatientMedicalRecordEntity
();
entity
.
setId
(
dto
.
getId
());
entity
.
setRecordStatus
(
0
);
patientMedicalRecordMapper
.
updateById
(
entity
);
return
BaseResponse
.
success
();
}
@Override
public
BaseResponse
<
PatientMedicalRecordVO
>
detailMedicalRecord
(
InvalidMedicalRecordDTO
dto
)
{
log
.
info
(
"病历详情入参:{}"
,
dto
.
toString
());
if
(
StringUtils
.
isEmpty
(
dto
.
getId
())){
throw
new
BusinessException
(
"病历id不能未空"
);
}
PatientMedicalRecordEntity
entity
=
patientMedicalRecordMapper
.
getByIdAndStatus
(
dto
.
getId
(),
1
);
if
(
ObjectUtil
.
isNull
(
entity
)){
throw
new
BusinessException
(
"未找到该病历,或病例失效"
);
}
PatientMedicalRecordVO
vo
=
new
PatientMedicalRecordVO
();
BeanUtils
.
copyProperties
(
entity
,
vo
);
// 查询患者,医生,科室信息
PatientMedicalRecordVO
.
InfoVo
infoVo
=
new
PatientMedicalRecordVO
.
InfoVo
();
PatientEntity
patientEntity
=
patientMapper
.
selectById
(
entity
.
getPatientId
());
if
(
ObjectUtil
.
isNotNull
(
patientEntity
)){
infoVo
.
setPatientName
(
patientEntity
.
getPatientName
());
infoVo
.
setPatientGender
(
String
.
valueOf
(
patientEntity
.
getGender
()));
infoVo
.
setPatientNo
(
patientEntity
.
getCredNo
());
infoVo
.
setPatientPhone
(
patientEntity
.
getPhone
());
infoVo
.
setPatientUserId
(
patientEntity
.
getUserId
());
infoVo
.
setPatientCredNo
(
patientEntity
.
getCredNo
());
}
PatientSignEntity
patientSignEntity
=
patientSignMapper
.
queryByAdmId
(
entity
.
getAdmId
());
if
(
ObjectUtil
.
isNotNull
(
patientSignEntity
)){
infoVo
.
setDeptId
(
String
.
valueOf
(
patientSignEntity
.
getDeptId
()));
infoVo
.
setDeptName
(
patientSignEntity
.
getDeptName
());
infoVo
.
setDoctorId
(
String
.
valueOf
(
patientSignEntity
.
getDoctorId
()));
infoVo
.
setDoctorName
(
patientSignEntity
.
getDoctorName
());
}
vo
.
setInfoVo
(
infoVo
);
return
BaseResponse
.
success
(
vo
);
}
}
family-doctor-server/src/main/resources/mapper/PatientSignMapper.xml
浏览文件 @
30fe4858
...
@@ -24,20 +24,25 @@
...
@@ -24,20 +24,25 @@
order by ps.create_time asc
order by ps.create_time asc
LIMIT #{pageNum}, #{pageSize}
LIMIT #{pageNum}, #{pageSize}
</select>
</select>
<select
id=
"queryByAdmId"
resultType=
"com.ebaiyihui.family.doctor.server.entity.PatientSignEntity"
>
select *
from patient_sign ps
where ps.adm_id = #{admId}
</select>
<!-- <select id="getImInfoTotal" parameterType="com.ebaiyihui.family.doctor.common.dto.ImInfoListDocReqDTO"-->
<!-- <select id="getImInfoTotal" parameterType="com.ebaiyihui.family.doctor.common.dto.ImInfoListDocReqDTO"-->
<!-- resultType="java.lang.Integer">-->
<!-- resultType="java.lang.Integer">-->
<!-- select count(*)-->
<!-- select count(*)-->
<!-- from patient_sign ps-->
<!-- from patient_sign ps-->
<!-- where ps.doctor_id=#{doctorId}-->
<!-- where ps.doctor_id=#{doctorId}-->
<!-- and ps.sign_status in(1,2) and ps.status = 2-->
<!-- and ps.sign_status in(1,2) and ps.status = 2-->
<!-- <if test="keyWord!=null and keyWord!=''">-->
<!-- <if test="keyWord!=null and keyWord!=''">-->
<!-- and ps.patient_name like concat('%',#{keyWord},'%')-->
<!-- and ps.patient_name like concat('%',#{keyWord},'%')-->
<!-- </if>-->
<!-- </if>-->
<!-- <if test="appCode!=null and appCode!=''">-->
<!-- <if test="appCode!=null and appCode!=''">-->
<!-- and ps.app_code=#{appCode}-->
<!-- and ps.app_code=#{appCode}-->
<!-- </if>-->
<!-- </if>-->
<!-- </select>-->
<!-- </select>-->
</mapper>
</mapper>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论