sinake
8 天以前 222df20f3bd705fe84f1b9373cc6c7e9c7dd0763
ruoyi-project/src/main/resources/mapper/project/ServiceDeathinfoMapper.xml
@@ -49,7 +49,13 @@
               update_by,
               update_time,
               judgment_description,
               ext_content
               ext_content,
               state,
               heartDeathTime
               heartDeathReason
               heartDeathJudgeDoctO
               heartDeathJudgeDoctT
               heartDeathJudgeAnnex
        from service_deathinfo
    </sql>
@@ -89,6 +95,7 @@
        sd.case_no AS caseNo,
        sd.InpatientNo AS inpatientno,
        sd.extracontent AS extracontent,
        sd.DonationCategory as donationcategory,
        sd.Name AS NAME,
        sd.RecordState AS recordstate,
        sd.Sex AS sex,
@@ -109,15 +116,22 @@
        sdi.IsRestoreRemains as isrestoreremains,
        sdi.RememberAnnex as rememberannex,
        sdi.ResponsibleUserID as responsibleuserid,
        sdi.ResponsibleUserName as responsibleusername
        sdi.ResponsibleUserName as responsibleusername,
        sdi.state,
        sdi.heartDeathTime as heartdeathtime,
        sdi.heartDeathReason as heartdeathreason,
        sdi.heartDeathJudgeDoctO as heartdeathjudgedocto,
        sdi.heartDeathJudgeDoctT as heartdeathjudgedoctt,
        sdi.heartDeathJudgeAnnex as heartdeathjudgeannex,
        sdi.ext_Content as extContent
        FROM
        service_donatebaseinfo sd
        LEFT JOIN service_deathinfo sdi ON sd.ID = sdi.InfoID
        AND sd.del_flag = 0
        AND sdi.del_flag = 0
        AND sdi.ID IS NOT NULL
        <where>
            sd.termination_case = 0
            sd.termination_case = 0 AND sd.del_flag = 0
            <if test="infoid != null ">and sd.ID = #{infoid}</if>
            <if test="inpatientno != null ">and sd.InpatientNo = #{inpatientno}</if>
            <if test="caseNo != null  and caseNo != ''">and sd.case_no = #{caseNo}</if>
@@ -137,8 +151,11 @@
            <if test="responsibleusername != null  and responsibleusername != ''">and sd.ResponsibleUserName like
                concat('%',#{responsibleusername}, '%')
            </if>
            <if test="state != null  and state != ''">and sdi.state = #{state}</if>
            <if test="startDeathtime != null and endDeathtime != null ">and sdi.DeathTime BETWEEN  #{startDeathtime} and  #{endDeathtime}</if>
        </where>
        order by sd.InpatientNo desc
        <if test="pageNum != null and pageSize != null">limit #{pageNum},#{pageSize}</if>
    </select>