liusheng
14 小时以前 ab2884ade73fed97d1e7d7daf4b9b5b6dee83fdd
ruoyi-patarchive/src/main/resources/mapper/patarchive/PatArchiveMapper.xml
ÎļþÃû´Ó smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml ÐÞ¸Ä
@@ -2,7 +2,7 @@
<!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"/>
@@ -67,7 +67,7 @@
    </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"/>
@@ -218,7 +218,7 @@
    </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,
@@ -480,7 +480,7 @@
        </foreach>
    </update>
    <select id="selectPatArchiveInfoByAllhosp" parameterType="com.smartor.domain.PatArchiveReq"
    <select id="selectPatArchiveInfoByAllhosp" parameterType="com.ruoyi.patarchive.domain.PatArchiveReq"
            resultMap="PatArchiveOthreInfoResult">
        SELECT
@@ -549,7 +549,7 @@
    </select>
    <select id="selectPatArchiveInfoByInhosp" parameterType="com.smartor.domain.PatArchiveReq"
    <select id="selectPatArchiveInfoByInhosp" parameterType="com.ruoyi.patarchive.domain.PatArchiveReq"
            resultMap="PatArchiveOthreInfoResult">
        select
        a.id,
@@ -691,7 +691,7 @@
    </select>
    <select id="selectPatArchiveInfoByOuthosp" parameterType="com.smartor.domain.PatArchiveReq"
    <select id="selectPatArchiveInfoByOuthosp" parameterType="com.ruoyi.patarchive.domain.PatArchiveReq"
            resultMap="PatArchiveOthreInfoResult">
        select
        a.id,
@@ -784,7 +784,7 @@
        <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
@@ -875,7 +875,7 @@
        <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
@@ -1020,7 +1020,7 @@
        ) as tmp
    </select>
<!--    <select id="selectPatArchiveInfoByOuthospQC" parameterType="com.smartor.domain.PatArchiveReq"-->
<!--    <select id="selectPatArchiveInfoByOuthospQC" parameterType="com.ruoyi.patarchive.domain.PatArchiveReq"-->
<!--            resultMap="PatArchiveOthreInfoResult">-->
<!--        select-->
@@ -1111,7 +1111,7 @@
<!--        <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
@@ -1203,7 +1203,7 @@
    </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
@@ -1257,7 +1257,7 @@
    </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-->
@@ -1290,7 +1290,7 @@
<!--    </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