| | |
| | | |
| | | <resultMap type="com.ruoyi.project.domain.ServiceDonateorgan" id="ServiceDonateorganResult"> |
| | | <result property="id" column="ID"/> |
| | | <result property="baseId" column="base_id"/> |
| | | <result property="infoid" column="InfoID"/> |
| | | <result property="donorno" column="DonorNo"/> |
| | | <result property="organno" column="OrganNo"/> |
| | |
| | | <result property="ispathogenpositive" column="IsPathogenPositive"/> |
| | | <result property="ispnf" column="IsPNF"/> |
| | | <result property="isdgf" column="IsDGF"/> |
| | | <result property="del_flag" column="del_flag"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="updateBy" column="update_by"/> |
| | |
| | | |
| | | <sql id="selectServiceDonateorganVo"> |
| | | select ID, |
| | | base_id, |
| | | InfoID, |
| | | DonorNo, |
| | | OrganNo, |
| | |
| | | resultMap="ServiceDonateorganResult"> |
| | | <include refid="selectServiceDonateorganVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="infoid != null ">and InfoID = #{infoid}</if> |
| | | <if test="baseId != null ">and base_id = #{baseId}</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> |
| | |
| | | and OrganGetTime <= #{endtime} |
| | | </select> |
| | | <select id="getDistinctOrgansCount" resultType="com.ruoyi.project.domain.vo.DistinctOrgansCount"> |
| | | select count(*) as gainsum,ifnull(sum( CASE WHEN transplantstate = 3 THEN 1 ELSE 0 END ),0) as abandonCount from service_donatecomporgan d |
| | | select count(*) as gainsum,ifnull(sum( CASE WHEN transplantstate = 3 THEN 1 ELSE 0 END ),0) as abandonCount from |
| | | service_donatecomporgan d |
| | | inner join service_donatebaseinfo b on b.id = d.InfoID |
| | | inner join base_organization o on b.TreatmentHospitalNo = o.OrganizationID |
| | | where d.OrganNo = #{organno} |