<?xml version="1.0" encoding="UTF-8" ?> 
 | 
<!DOCTYPE mapper 
 | 
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
 | 
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> 
 | 
<mapper namespace="com.ruoyi.project.mapper.ServiceDonationwitnessorganMapper"> 
 | 
  
 | 
    <resultMap type="com.ruoyi.project.domain.ServiceDonationwitnessorgan" id="ServiceDonationwitnessorganResult"> 
 | 
        <result property="id" column="ID"/> 
 | 
        <result property="infoid" column="InfoID"/> 
 | 
        <result property="donorno" column="DonorNo"/> 
 | 
        <result property="organno" column="OrganNo"/> 
 | 
        <result property="organname" column="OrganName"/> 
 | 
        <result property="organnumber" column="OrganNumber"/> 
 | 
        <result property="organstate" column="OrganState"/> 
 | 
        <result property="notgetreason" column="notgetreason"/> 
 | 
        <result property="organgettime" column="OrganGetTime"/> 
 | 
        <result property="organgetdoct" column="OrganGetDoct"/> 
 | 
        <result property="gainhospitalno" column="GainHospitalNo"/> 
 | 
        <result property="gainhospitalname" column="GainHospitalName"/> 
 | 
        <result property="isbiopsybefore" column="IsBiopsyBefore"/> 
 | 
        <result property="isbiopsyafter" column="IsBiopsyAfter"/> 
 | 
        <result property="ismarginalorgan" column="IsMarginalOrgan"/> 
 | 
        <result property="ispathogenpositive" column="IsPathogenPositive"/> 
 | 
        <result property="ispnf" column="IsPNF"/> 
 | 
        <result property="isdgf" column="IsDGF"/> 
 | 
        <result property="createBy" column="create_by"/> 
 | 
        <result property="createTime" column="create_time"/> 
 | 
        <result property="updateBy" column="update_by"/> 
 | 
        <result property="updateTime" column="update_time"/> 
 | 
        <result property="name" column="name"/> 
 | 
        <result property="caseno" column="caseno"/> 
 | 
    </resultMap> 
 | 
  
 | 
    <sql id="selectServiceDonationwitnessorganVo"> 
 | 
        select ID, 
 | 
               InfoID, 
 | 
               DonorNo, 
 | 
               OrganNo, 
 | 
               OrganName, 
 | 
               OrganNumber, 
 | 
               OrganState, 
 | 
               notgetreason, 
 | 
               OrganGetTime, 
 | 
               OrganGetDoct, 
 | 
               GainHospitalNo, 
 | 
               GainHospitalName, 
 | 
               IsBiopsyBefore, 
 | 
               IsBiopsyAfter, 
 | 
               IsMarginalOrgan, 
 | 
               IsPathogenPositive, 
 | 
               IsPNF, 
 | 
               IsDGF, 
 | 
               del_flag, 
 | 
               create_by, 
 | 
               create_time, 
 | 
               update_by, 
 | 
               caseno, 
 | 
               name, 
 | 
               update_time 
 | 
        from service_donationwitnessorgan 
 | 
    </sql> 
 | 
  
 | 
    <select id="selectServiceDonationwitnessorganList" 
 | 
            parameterType="com.ruoyi.project.domain.ServiceDonationwitnessorgan" 
 | 
            resultMap="ServiceDonationwitnessorganResult"> 
 | 
        <include refid="selectServiceDonationwitnessorganVo"/> 
 | 
        <where> 
 | 
            <if test="infoid != null ">and InfoID = #{infoid}</if> 
 | 
            <if test="donorno != null  and donorno != ''">and DonorNo = #{donorno}</if> 
 | 
            <if test="organno != null  and organno != ''">and OrganNo = #{organno}</if> 
 | 
            <if test="organname != null  and organname != ''">and OrganName like concat('%', #{organname}, '%')</if> 
 | 
            <if test="organnumber != null  and organnumber != ''">and OrganNumber = #{organnumber}</if> 
 | 
            <if test="organstate != null  and organstate != ''">and OrganState = #{organstate}</if> 
 | 
            <if test="notgetreason != null  and notgetreason != ''">and notgetreason = #{notgetreason}</if> 
 | 
            <if test="organgettime != null ">and OrganGetTime = #{organgettime}</if> 
 | 
            <if test="organgetdoct != null  and organgetdoct != ''">and OrganGetDoct = #{organgetdoct}</if> 
 | 
            <if test="gainhospitalno != null  and gainhospitalno != ''">and GainHospitalNo = #{gainhospitalno}</if> 
 | 
            <if test="gainhospitalname != null  and gainhospitalname != ''">and GainHospitalName like concat('%', 
 | 
                #{gainhospitalname}, '%') 
 | 
            </if> 
 | 
            <if test="isbiopsybefore != null  and isbiopsybefore != ''">and IsBiopsyBefore = #{isbiopsybefore}</if> 
 | 
            <if test="isbiopsyafter != null  and isbiopsyafter != ''">and IsBiopsyAfter = #{isbiopsyafter}</if> 
 | 
            <if test="ismarginalorgan != null  and ismarginalorgan != ''">and IsMarginalOrgan = #{ismarginalorgan}</if> 
 | 
            <if test="ispathogenpositive != null  and ispathogenpositive != ''">and IsPathogenPositive = 
 | 
                #{ispathogenpositive} 
 | 
            </if> 
 | 
            <if test="ispnf != null  and ispnf != ''">and IsPNF = #{ispnf}</if> 
 | 
            <if test="isdgf != null  and isdgf != ''">and IsDGF = #{isdgf}</if> 
 | 
        </where> 
 | 
    </select> 
 | 
  
 | 
</mapper> 
 |