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,
@@ -299,7 +300,7 @@
        sr.ResponsibleUserID as responsibleuserid,
        sr.CoordinatedUserIDO as coordinateduserido,
        sr.CoordinatedUserNameO as coordinatedusernameo,
        sr.CoordinatedUserNameT as coordinateduseridt,
        sr.CoordinatedUserNameT as coordinatedusernamet,
        sr.ResponsibleUserID as responsibleuserid,
        sr.nation as nation,
        sr.occupation as occupation,
@@ -307,11 +308,14 @@
        sr.assessannex as assessannex,
        sr.education as education,
        sr.relativeconfirmationsignname,
        sr.relativeidcardno
        sr.relativeidcardno,
        sr.state,
        sr.other_family_members
        FROM service_donatebaseinfo sd
        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>
@@ -337,8 +341,9 @@
                and sr.SignDate &lt;= #{endSigndate}
            </if>
        </where>
        order by sr.id desc,sd.id desc
        order by sd.ReportTime desc
        <if test="pageNum != null and pageSize != null">limit #{pageNum},#{pageSize}</if>
    </select>
</mapper>