| | |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="name" column="name"/> |
| | | <result property="caseno" column="caseno"/> |
| | | <result property="sort" column="sort"/> |
| | | <result property="organStartTime" column="organ_start_time"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceDonationwitnessorganVo"> |
| | | select ID, |
| | | InfoID, |
| | | sort, |
| | | DonorNo, |
| | | organ_start_time, |
| | | OrganNo, |
| | |
| | | <include refid="selectServiceDonationwitnessorganVo"/> |
| | | <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 != ''">and IsDGF = #{isdgf}</if> |
| | | <if test="organStartTime != null">and organ_start_time = #{organStartTime}</if> |
| | | </where> |
| | | <!-- 2026-10-23:按器官排队序号排序(空的排最后,再按主键兜底) --> |
| | | order by (sort is null or sort = 0), sort asc, ID asc |
| | | </select> |
| | | |
| | | </mapper> |