sinake
2026-10-10 2d7a2367a2dad1d9a2a8306a05ca08d7951d20ee
ruoyi-project/src/main/resources/mapper/project/ServiceDeathinfoMapper.xml
@@ -50,7 +50,12 @@
               update_time,
               judgment_description,
               ext_content,
               state
               state,
               heartDeathTime
               heartDeathReason
               heartDeathJudgeDoctO
               heartDeathJudgeDoctT
               heartDeathJudgeAnnex
        from service_deathinfo
    </sql>
@@ -90,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,
@@ -111,7 +117,13 @@
        sdi.RememberAnnex as rememberannex,
        sdi.ResponsibleUserID as responsibleuserid,
        sdi.ResponsibleUserName as responsibleusername,
        sdi.state
        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
@@ -139,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>