sinake
10 天以前 d5a5416a0e4b1e52c7805e3efc28eec40ab95782
ruoyi-project/src/main/resources/mapper/project/ServiceDeathinfoMapper.xml
@@ -47,7 +47,15 @@
               create_by,
               create_time,
               update_by,
               update_time
               update_time,
               judgment_description,
               ext_content,
               state,
               heartDeathTime
               heartDeathReason
               heartDeathJudgeDoctO
               heartDeathJudgeDoctT
               heartDeathJudgeAnnex
        from service_deathinfo
    </sql>
@@ -107,7 +115,14 @@
        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
@@ -135,8 +150,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>