yxh
9 天以前 4ce61befa59e589985ced69e72bc5f7faf9a313e
ruoyi-project/src/main/resources/mapper/project/ServiceDonatemaintenanceMapper.xml
@@ -70,12 +70,11 @@
        FROM
        service_donatebaseinfo sd
        LEFT JOIN service_donatemaintenance sdm ON sd.ID = sdm.InfoID
        AND sd.del_flag = 0
        AND sdm.del_flag = 0
        and sdm.ID is not null
        left join service_deathinfo sdt on sd.ID = sdt.infoID and sdt.del_flag=0 and sdt.ID is not null
        <where>
            sd.termination_case = 0
            sd.del_flag = 0 and sd.termination_case = 0
            <if test="infoid != null ">and sd.ID = #{infoid}</if>
            <if test="inpatientno != null ">and sd.InpatientNo = #{inpatientno}</if>
            <if test="caseNo != null  and caseNo != ''">and case_no = #{caseNo}</if>