| | |
| | | LEFT JOIN service_donatecompletioninfo b ON b.InfoID=a.id |
| | | <where> |
| | | a.del_flag=0 |
| | | <if test="area != null and area != ''">and a.RegisterCountyName>=#{area}</if> |
| | | <if test="area != null and area != ''">and a.RegisterCountyName=#{area}</if> |
| | | <if test="startTime != null and startTime != ''">and a.donatetime>=#{startTime}</if> |
| | | <if test="endTime != null and endTime != ''">and a.donatetime <= #{endTime}</if> |
| | | </where> |
| | |
| | | LEFT JOIN service_donatecompletioninfo b ON b.InfoID=a.id |
| | | <where> |
| | | a.del_flag=0 |
| | | <if test="area != null and area != ''">and a.RegisterCountyName>=#{area}</if> |
| | | <if test="area != null and area != ''">and a.RegisterCountyName=#{area}</if> |
| | | <if test="startTime != null and startTime != ''">and a.donatetime>=#{startTime}</if> |
| | | <if test="endTime != null and endTime != ''">and a.donatetime <= #{endTime}</if> |
| | | </where> |
| | |
| | | LEFT JOIN service_donatecompletioninfo b ON b.InfoID=a.id |
| | | <where> |
| | | a.del_flag=0 |
| | | <if test="area != null and area != ''">and a.RegisterCountyName>=#{area}</if> |
| | | <if test="area != null and area != ''">and a.RegisterCountyName=#{area}</if> |
| | | <if test="startTime != null and startTime != ''">and a.donatetime>=#{startTime}</if> |
| | | <if test="endTime != null and endTime != ''">and a.donatetime <= #{endTime}</if> |
| | | </where> |
| | |
| | | <if test="area != null and area != ''"> |
| | | and a.InfoID in (select id FROM service_donatecompletioninfo where RegisterCountyName>=#{area} ) |
| | | </if> |
| | | <if test="area != null and area != ''">and c.RegisterCountyName>=#{area}</if> |
| | | <if test="organName != null and organName != ''">and a.OrganName>=#{organName}</if> |
| | | <if test="area != null and area != ''">and c.RegisterCountyName=#{area}</if> |
| | | <if test="organName != null and organName != ''">and a.OrganName=#{organName}</if> |
| | | <if test="startTime != null and startTime != ''">and a.organ_start_time>=#{startTime}</if> |
| | | <if test="endTime != null and endTime != ''">and a.organ_start_time <= #{endTime}</if> |
| | | </where> |
| | |
| | | <if test="area != null and area != ''"> |
| | | and a.InfoID in (select id FROM service_donatecompletioninfo where RegisterCountyName>=#{area} ) |
| | | </if> |
| | | <if test="organName != null and organName != ''">and a.OrganName>=#{organName}</if> |
| | | <if test="organName != null and organName != ''">and a.OrganName=#{organName}</if> |
| | | <if test="startTime != null and startTime != ''">and a.organ_start_time>=#{startTime}</if> |
| | | <if test="endTime != null and endTime != ''">and a.organ_start_time <= #{endTime}</if> |
| | | </where> |
| | |
| | | <if test="area != null and area != ''"> |
| | | and a.InfoID in (select id FROM service_donatecompletioninfo where RegisterCountyName>=#{area} ) |
| | | </if> |
| | | <if test="organName != null and organName != ''">and a.OrganName>=#{organName}</if> |
| | | <if test="organName != null and organName != ''">and a.OrganName=#{organName}</if> |
| | | <if test="startTime != null and startTime != ''">and a.organ_start_time>=#{startTime}</if> |
| | | <if test="endTime != null and endTime != ''">and a.organ_start_time <= #{endTime}</if> |
| | | </where> |
| | |
| | | LEFT JOIN service_deathinfo d ON d.InfoID=a.id |
| | | <where> |
| | | a.del_flag=0 |
| | | <if test="area != null and area != ''">and a.RegisterCountyName>=#{area}</if> |
| | | <if test="area != null and area != ''">and a.RegisterCountyName=#{area}</if> |
| | | <if test="startTime != null and startTime != ''">and a.donatetime>=#{startTime}</if> |
| | | <if test="endTime != null and endTime != ''">and a.donatetime <= #{endTime}</if> |
| | | </where> |
| | |
| | | LEFT JOIN service_deathinfo d ON d.InfoID=a.id |
| | | <where> |
| | | a.del_flag=0 |
| | | <if test="area != null and area != ''">and a.RegisterCountyName>=#{area}</if> |
| | | <if test="area != null and area != ''">and a.RegisterCountyName=#{area}</if> |
| | | <if test="startTime != null and startTime != ''">and a.donatetime>=#{startTime}</if> |
| | | <if test="endTime != null and endTime != ''">and a.donatetime <= #{endTime}</if> |
| | | </where> |
| | |
| | | LEFT JOIN service_donationwitnessorgan c ON a.ID=c.InfoID |
| | | <where> |
| | | a.del_flag=0 AND b.del_flag=0 AND c.del_flag=0 |
| | | <if test="organName != null and organName != ''">and b.OrganName>=#{organName}</if> |
| | | <if test="area != null and area != ''">and a.RegisterCountyName>=#{area}</if> |
| | | <if test="organName != null and organName != ''">and b.OrganName=#{organName}</if> |
| | | <if test="area != null and area != ''">and a.RegisterCountyName=#{area}</if> |
| | | <if test="startTime != null and startTime != ''">and a.donatetime>=#{startTime}</if> |
| | | <if test="endTime != null and endTime != ''">and a.donatetime <= #{endTime}</if> |
| | | </where> |
| | |
| | | LEFT JOIN service_donationwitnessorgan c ON a.ID=c.InfoID |
| | | <where> |
| | | a.del_flag=0 AND b.del_flag=0 AND c.del_flag=0 |
| | | <if test="organName != null and organName != ''">and b.OrganName>=#{organName}</if> |
| | | <if test="area != null and area != ''">and a.RegisterCountyName>=#{area}</if> |
| | | <if test="organName != null and organName != ''">and b.OrganName=#{organName}</if> |
| | | <if test="area != null and area != ''">and a.RegisterCountyName=#{area}</if> |
| | | <if test="startTime != null and startTime != ''">and a.donatetime>=#{startTime}</if> |
| | | <if test="endTime != null and endTime != ''">and a.donatetime <= #{endTime}</if> |
| | | </where> |