sinake
7 天以前 6be76e5857faa20eca68248187bd181aa50b029b
ruoyi-project/src/main/resources/mapper/project/ServiceEthicalreviewopinionsMapper.xml
@@ -138,6 +138,9 @@
        service_ethicalreviewopinions.ConclusionOrder as conclusionorder,
        service_ethicalreviewopinions.nitiate_id as nitiateId,
        service_ethicalreviewopinions.expert_no as expertNo,
        service_ethicalreviewopinions.start_time,
        service_ethicalreviewopinions.end_time,
        service_ethicalreviewopinions.expert_type,
        service_ethicalreviewopinions.sigin as sigin
        FROM   service_donatebaseinfo
        LEFT JOIN  service_ethicalreviewopinions
@@ -155,8 +158,8 @@
            <if test="treatmenthospitalno != null  and treatmenthospitalno != ''">and
                `service_donatebaseinfo`.`TreatmentHospitalNo` = #{treatmenthospitalno}
            </if>
            <if test="recordstate != null  and recordstate != ''">and `service_donatebaseinfo`.`RecordState` =
                #{recordstate}
            <if test="recordstate != null  and recordstate != ''">
                and `service_donatebaseinfo`.`RecordState` = #{recordstate}
            </if>
            <if test="caseNo != null  and caseNo != ''">and `service_donatebaseinfo`.`case_no` =
                #{caseNo}
@@ -174,6 +177,12 @@
            <if test="workflow != null ">and `service_donatebaseinfo`.`workflow` = #{workflow}</if>
            <if test="nitiateId != null ">and `service_ethicalreviewopinions`.`nitiate_id` = #{nitiateId}</if>
            <if test="expertNo != null ">and `service_ethicalreviewopinions`.`expert_no` = #{expertNo}</if>
            <if test="receiveStatus != null  and receiveStatus != ''">
                and `service_ethicalreviewopinions`.`receive_status` in(${receiveStatus})
            </if>
            <if test="expertname != null ">and `service_ethicalreviewopinions`.`expertname` = #{expertname}</if>
            <if test="expertconclusion != null ">and `service_ethicalreviewopinions`.`expertconclusion` = #{expertconclusion}</if>
        </where>
        order by `service_ethicalreviewopinions`.`ConclusionTime` desc
@@ -219,7 +228,7 @@
            <if test="expertNo != null ">expert_no = #{expertNo}</if>
        </where>
        GROUP BY receive_status,expert_no
    </select>
</mapper>