| | |
| | | (SELECT COUNT(*) FROM service_donationwitnessorgan WHERE del_flag=0 AND OrganState=4) totalRecycle |
| | | </select> |
| | | |
| | | <select id="organList" parameterType="com.ruoyi.project.domain.ServiceTotals" |
| | | resultType="organList"> |
| | | SELECT a.id,a.case_no,a.NAME,a.RegisterCountyName,YEAR(a.donatetime) donateYear,b.OrganName,b.transplantstate, |
| | | b.TransplantTime,b.Name,b.TransplantDoct,b.HospitalName,c.OrganGetTime,c.notgetreason |
| | | FROM service_donatebaseinfo a LEFT JOIN service_donatecomporgan b ON a.ID=b.InfoID |
| | | 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="startTime != null and startTime != ''">and a.donatetime>=#{startTime}</if> |
| | | <if test="endTime != null and endTime != ''">and a.donatetime <= #{endTime}</if> |
| | | </where> |
| | | |
| | | </select> |
| | | |
| | | <select id="organCount" parameterType="com.ruoyi.project.domain.ServiceTotals" |
| | | resultType="Long"> |
| | | SELECT count(*) |
| | | FROM service_donatebaseinfo a LEFT JOIN service_donatecomporgan b ON a.ID=b.InfoID |
| | | 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="startTime != null and startTime != ''">and a.donatetime>=#{startTime}</if> |
| | | <if test="endTime != null and endTime != ''">and a.donatetime <= #{endTime}</if> |
| | | </where> |
| | | |
| | | </select> |
| | | |
| | | </mapper> |