sinake
2026-10-28 34599c2b887dd98d822cb993125920817505cd6d
ruoyi-project/src/main/resources/mapper/project/ServiceRelativesconfirmationMapper.xml
@@ -276,6 +276,7 @@
        sd.InpatientNo as inpatientno,
        sd.extracontent as extracontent,
        sd.RecordState as recordstate,
        sd.DonationCategory as donationcategory,
        sd.Sex as sex,
        sd.Age as age,
        sd.BloodType as bloodtype,
@@ -314,6 +315,7 @@
        LEFT JOIN service_relativesconfirmation sr ON sd.ID = sr.InfoID and sd.del_flag = 0
        AND sr.del_flag = 0
        <where>
            sd.termination_case = 0
            <if test="infoid != null">AND sd.ID = #{infoid}</if>
            <if test="recordstate != null and recordstate != ''">AND sd.RecordState = #{recordstate}</if>
            <if test="caseNo != null and caseNo != ''">AND sd.case_no = #{caseNo}</if>
@@ -339,7 +341,7 @@
                and sr.SignDate &lt;= #{endSigndate}
            </if>
        </where>
        order by sd.InpatientNo desc
        order by sd.ReportTime desc
        <if test="pageNum != null and pageSize != null">limit #{pageNum},#{pageSize}</if>
    </select>