sinake
5 天以前 24a2f363743d8a2e4aa038635ef1d8b60a8e7131
ruoyi-project/src/main/resources/mapper/project/ServiceDonatecompletioninfoMapper.xml
@@ -183,6 +183,8 @@
        sd.treatmenthospitalno AS treatmenthospitalno,
        sd.DonorNo AS donorno,
        sd.case_no AS caseNo,
        sd.extracontent AS extracontent,
        sd.DonationCategory as donationcategory,
        sd.NAME AS name,
        sd.RecordState AS recordstate,
        sd.Sex AS sex,
@@ -209,11 +211,13 @@
        LEFT JOIN service_donatecompletioninfo sdc ON sd.ID = sdc.InfoID
        AND sd.del_flag = 0
        AND sdc.del_flag = 0
        and sdc.ID is not null
        <where>
            sd.termination_case = 0
            <if test="name != null  and name != ''">and sd.Name like concat('%', #{name}, '%')</if>
            <if test="inpatientno != null  and inpatientno != ''">and sd.inpatientno = #{inpatientno}</if>
            <if test="donorno != null  and donorno != ''">and sdc.DonorNo = #{donorno}</if>
            <if test="infoid != null">and sdc.InfoID = #{infoid}</if>
            <if test="infoid != null">and sd.id = #{infoid}</if>
        </where>
        <if test="pageNum != null and pageSize != null">limit #{pageNum},#{pageSize}</if>
    </select>