| | |
| | | <result property="organchargedesc" column="organchargedesc"/> |
| | | <result property="notgetreason" column="notgetreason"/> |
| | | <result property="transplantstate" column="transplantstate"/> |
| | | <result property="sort" column="sort"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceDonateorganVo"> |
| | |
| | | InfoID, |
| | | DonorNo, |
| | | OrganNo, |
| | | sort, |
| | | OrganName, |
| | | OrganState, |
| | | OrganNumber, |
| | |
| | | <include refid="selectServiceDonateorganVo"/> |
| | | <where> |
| | | <if test="infoid != null ">and InfoID = #{infoid}</if> |
| | | <if test="sort != null ">and sort = #{sort}</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="isdgf != null ">and isDGF = #{isdgf}</if> |
| | | |
| | | </where> |
| | | <!-- 2026-10-23:按器官排队序号排序(空的排最后,再按主键兜底) --> |
| | | order by (sort is null or sort = 0), sort asc, ID asc |
| | | </select> |
| | | <select id="getAllDonateOrgans" resultType="com.ruoyi.project.domain.ServiceDonateorgan"> |
| | | <include refid="selectServiceDonateorganVo"/> |
| | |
| | | `service_donatebaseinfo`.`ReportTime` AS `ReportTime`, |
| | | `service_donatebaseinfo`.`RecordState` AS `RecordState`, |
| | | `service_donateorgan`.`ID` AS `doID`, |
| | | `service_donateorgan`.`sort` AS `sort`, |
| | | `service_donateorgan`.`InfoID` AS `InfoID`, |
| | | `service_donateorgan`.`DonorNo` AS `doDonorNo`, |
| | | `service_donateorgan`.`OrganNo` AS `OrganNo`, |