| ÎļþÃû´Ó smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml ÐÞ¸Ä |
| | |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.PatArchiveMapper"> |
| | | <mapper namespace="com.ruoyi.patarchive.mapper.PatArchiveMapper"> |
| | | |
| | | <resultMap type="com.ruoyi.common.core.domain.entity.PatArchive" id="PatArchiveResult"> |
| | | <result property="id" column="id"/> |
| | |
| | | </resultMap> |
| | | |
| | | |
| | | <resultMap type="com.smartor.domain.PatArchiveOthreInfo" id="PatArchiveOthreInfoResult"> |
| | | <resultMap type="com.ruoyi.patarchive.domain.PatArchiveOthreInfo" id="PatArchiveOthreInfoResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="notrequiredFlag" column="notrequired_flag"/> |
| | | <result property="notrequiredreason" column="notrequiredreason"/> |
| | |
| | | </select> |
| | | |
| | | |
| | | <select id="patInfoByContion" parameterType="com.smartor.domain.PatArchiveReq" resultMap="PatArchiveResult"> |
| | | <select id="patInfoByContion" parameterType="com.ruoyi.patarchive.domain.PatArchiveReq" resultMap="PatArchiveResult"> |
| | | select |
| | | a.id, |
| | | a.age_unit, |
| | |
| | | </foreach> |
| | | </update> |
| | | |
| | | <select id="selectPatArchiveInfoByAllhosp" parameterType="com.smartor.domain.PatArchiveReq" |
| | | <select id="selectPatArchiveInfoByAllhosp" parameterType="com.ruoyi.patarchive.domain.PatArchiveReq" |
| | | resultMap="PatArchiveOthreInfoResult"> |
| | | |
| | | SELECT |
| | |
| | | </select> |
| | | |
| | | |
| | | <select id="selectPatArchiveInfoByInhosp" parameterType="com.smartor.domain.PatArchiveReq" |
| | | <select id="selectPatArchiveInfoByInhosp" parameterType="com.ruoyi.patarchive.domain.PatArchiveReq" |
| | | resultMap="PatArchiveOthreInfoResult"> |
| | | select |
| | | a.id, |
| | |
| | | |
| | | </select> |
| | | |
| | | <select id="selectPatArchiveInfoByOuthosp" parameterType="com.smartor.domain.PatArchiveReq" |
| | | <select id="selectPatArchiveInfoByOuthosp" parameterType="com.ruoyi.patarchive.domain.PatArchiveReq" |
| | | resultMap="PatArchiveOthreInfoResult"> |
| | | select |
| | | a.id, |
| | |
| | | <if test="pageSize != null and pageNum != null">limit ${pageSize} OFFSET ${pageNum}</if> |
| | | </select> |
| | | |
| | | <select id="selectPatArchiveInfoByPhysical" parameterType="com.smartor.domain.PatArchiveReq" |
| | | <select id="selectPatArchiveInfoByPhysical" parameterType="com.ruoyi.patarchive.domain.PatArchiveReq" |
| | | resultMap="PatArchiveOthreInfoResult"> |
| | | |
| | | select |
| | |
| | | <if test="pageSize != null and pageNum != null">limit ${pageSize} OFFSET ${pageNum}</if> |
| | | </select> |
| | | |
| | | <select id="selectPatArchiveInfoByInhospQC" parameterType="com.smartor.domain.PatArchiveReq" |
| | | <select id="selectPatArchiveInfoByInhospQC" parameterType="com.ruoyi.patarchive.domain.PatArchiveReq" |
| | | resultMap="PatArchiveOthreInfoResult"> |
| | | select * from ( |
| | | select |
| | |
| | | ) as tmp |
| | | </select> |
| | | |
| | | <!-- <select id="selectPatArchiveInfoByOuthospQC" parameterType="com.smartor.domain.PatArchiveReq"--> |
| | | <!-- <select id="selectPatArchiveInfoByOuthospQC" parameterType="com.ruoyi.patarchive.domain.PatArchiveReq"--> |
| | | <!-- resultMap="PatArchiveOthreInfoResult">--> |
| | | |
| | | <!-- select--> |
| | |
| | | <!-- <if test="pageSize != null and pageNum != null">limit ${pageSize} OFFSET ${pageNum}</if>--> |
| | | <!-- </select>--> |
| | | |
| | | <select id="selectPatArchiveInfoByPhysicalQC" parameterType="com.smartor.domain.PatArchiveReq" |
| | | <select id="selectPatArchiveInfoByPhysicalQC" parameterType="com.ruoyi.patarchive.domain.PatArchiveReq" |
| | | resultMap="PatArchiveOthreInfoResult"> |
| | | |
| | | select |
| | |
| | | </select> |
| | | |
| | | <!-- ä½é¢æ£è
æ»æ°ç»è®¡ï¼å»éï¼ --> |
| | | <select id="countPatArchiveInfoByInhospQC" parameterType="com.smartor.domain.PatArchiveReq" resultType="long"> |
| | | <select id="countPatArchiveInfoByInhospQC" parameterType="com.ruoyi.patarchive.domain.PatArchiveReq" resultType="long"> |
| | | SELECT COUNT(DISTINCT d.patid) |
| | | FROM pat_med_inhosp d |
| | | WHERE 1=1 |
| | |
| | | </select> |
| | | |
| | | <!-- é¨è¯æ£è
æ»æ°ç»è®¡ï¼å»éï¼ --> |
| | | <!-- <select id="countPatArchiveInfoByOuthospQC" parameterType="com.smartor.domain.PatArchiveReq" resultType="long">--> |
| | | <!-- <select id="countPatArchiveInfoByOuthospQC" parameterType="com.ruoyi.patarchive.domain.PatArchiveReq" resultType="long">--> |
| | | <!-- SELECT COUNT(DISTINCT a.id)--> |
| | | <!-- FROM pat_med_outhosp d--> |
| | | <!-- JOIN pat_archive a ON a.id = d.patid--> |
| | |
| | | <!-- </select>--> |
| | | |
| | | <!-- 使£æ£è
æ»æ°ç»è®¡ï¼å»éï¼ --> |
| | | <select id="countPatArchiveInfoByPhysicalQC" parameterType="com.smartor.domain.PatArchiveReq" resultType="long"> |
| | | <select id="countPatArchiveInfoByPhysicalQC" parameterType="com.ruoyi.patarchive.domain.PatArchiveReq" resultType="long"> |
| | | SELECT COUNT(DISTINCT a.id) |
| | | FROM pat_med_physical d |
| | | JOIN pat_archive a ON a.id = d.patid |