sinake
9 天以前 9822e79febb5f30635035dc13538ce36a09d92e1
ruoyi-project/src/main/resources/mapper/project/ServiceMedicalevaluationMapper.xml
@@ -202,6 +202,7 @@
        sb.TreatmentHospitalName,
        sb.TreatmentHospitalNo,
        sb.DonationCategory as donationcategory,
        sb.InpatientNo AS inpatientno,
        sb.DonorNo,
        sb.case_no,
        sb.Name,
@@ -221,12 +222,12 @@
        sm.assess_state
        FROM service_donatebaseinfo sb
        LEFT JOIN service_medicalevaluation sm ON sb.ID = sm.InfoID and sm.del_flag = 0
        and sb.del_flag = 0 and sm.ID is not null
         and sm.ID is not null
        <where>
            sb.termination_case = 0
            sb.termination_case = 0 and sb.del_flag = 0
            <if test="infoid != null">AND sb.ID = #{infoid}</if>
            <if test="inpatientno != null">AND sb.InpatientNo = #{inpatientno}</if>
            <if test="urrentMedicalInstitution != null">AND sb.current_medical_institution = #{urrentMedicalInstitution}</if>
            <if test="currentMedicalInstitution != null">AND sb.current_medical_institution = #{currentMedicalInstitution}</if>
            <if test="caseNo != null and caseNo != ''">AND sm.case_no = #{caseNo}</if>
            <if test="donorno != null and donorno != ''">AND sm.DonorNo = #{donorno}</if>
            <if test="diagnosisname != null and diagnosisname != ''">AND sm.DiagnosisName = #{diagnosisname}</if>
@@ -244,7 +245,7 @@
                #{treatmenthospitalname}
            </if>
        </where>
        order by sd.InpatientNo desc
        order by sb.InpatientNo desc
        <if test="pageNum != null and pageSize != null">limit #{pageNum},#{pageSize}</if>