feat: 梅州三院手麻视图采集
parent
ec311f57aa
commit
dce5abdc3e
@ -0,0 +1,36 @@
|
|||||||
|
package com.docus.server.mzsy.entity;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 梅州三院检验、检查、心电等报告视图
|
||||||
|
*
|
||||||
|
* @author YongBin Wen
|
||||||
|
* @date 2024/8/16 14:39
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel("梅州三院手麻报告视图")
|
||||||
|
public class MzsyShoumaReportDataView {
|
||||||
|
|
||||||
|
@ApiModelProperty("住院号")
|
||||||
|
private String zyh;
|
||||||
|
|
||||||
|
@ApiModelProperty("住院次数")
|
||||||
|
private String zycs;
|
||||||
|
|
||||||
|
@ApiModelProperty("文件路径 HTTP路径")
|
||||||
|
private String filePath;
|
||||||
|
|
||||||
|
@ApiModelProperty("报告标题")
|
||||||
|
private String fileTitle;
|
||||||
|
|
||||||
|
@ApiModelProperty("申请单号")
|
||||||
|
private String requestNo;
|
||||||
|
|
||||||
|
@ApiModelProperty("归档时间")
|
||||||
|
private Date archiveTime;
|
||||||
|
}
|
@ -0,0 +1,26 @@
|
|||||||
|
package com.docus.server.mzsy.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.docus.server.mzsy.entity.MzsyShoumaReportDataView;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author YongBin Wen
|
||||||
|
* @date 2024/8/16 14:42
|
||||||
|
*/
|
||||||
|
@DS("mzsy-shouma")
|
||||||
|
@Mapper
|
||||||
|
public interface MzsyShoumaReportDataViewMapper {
|
||||||
|
/**
|
||||||
|
* 根据患者住院号和住院次数和额外条件查询手麻视图数据
|
||||||
|
*
|
||||||
|
* @param inpatientNo 住院号
|
||||||
|
* @param admissTimes 住院次数
|
||||||
|
* @param extCondition 额外条件
|
||||||
|
* @return 视图数据
|
||||||
|
*/
|
||||||
|
List<MzsyShoumaReportDataView> findByinpNoAndTimesAndOtherCondition(@Param("inpatientNo") String inpatientNo, @Param("admissTimes")String admissTimes, @Param("ext") String extCondition);
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.docus.server.mzsy.mapper.MzsyShoumaReportDataViewMapper">
|
||||||
|
|
||||||
|
|
||||||
|
<select id="findByinpNoAndTimesAndOtherCondition"
|
||||||
|
resultType="com.docus.server.mzsy.entity.MzsyShoumaReportDataView">
|
||||||
|
select
|
||||||
|
住院号 as zyh,
|
||||||
|
住院次数 as zycs,
|
||||||
|
报告文件路径 as filePath,
|
||||||
|
报告标题 as fileTitle,
|
||||||
|
归档时间 as archiveTime,
|
||||||
|
申请单号 as requestNo
|
||||||
|
from dbo.V_病历共享
|
||||||
|
where 住院号=#{inpatientNo}
|
||||||
|
and 住院次数=#{admissTimes}
|
||||||
|
<if test="ext != null and ext != ''">
|
||||||
|
${ext}
|
||||||
|
</if>
|
||||||
|
order by 归档时间 asc
|
||||||
|
</select>
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue