| | |
| | | <result property="currentHospital" column="current_hospital"/> |
| | | <result property="terminationType" column="termination_type"/> |
| | | <result property="extracontent" column="extracontent"/> |
| | | <result property="entryTime" column="entry_time"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceDonatebaseinfoVo"> |
| | |
| | | </select> |
| | | <select id="getDonateBaseCountThisYear" resultType="java.lang.Integer"> |
| | | select count(*) from service_donatebaseinfo b |
| | | inner join base_organization o on b.TreatmentHospitalNo = o.OrganizationID |
| | | left join base_organization o on b.TreatmentHospitalNo = o.OrganizationID |
| | | <where> |
| | | AND b.del_flag=0 |
| | | <if test="starttime != null ">and b.donatetime >= #{starttime}</if> |
| | |
| | | </select> |
| | | <select id="getAllDonateBaseInfoByTime" resultType="com.ruoyi.project.domain.ServiceDonatebaseinfo"> |
| | | select * from service_donatebaseinfo b |
| | | inner join base_organization o on b.TreatmentHospitalNo = o.OrganizationID |
| | | left join base_organization o on b.TreatmentHospitalNo = o.OrganizationID |
| | | <where> |
| | | <if test="starttime != null ">and b.ReportTime >= #{starttime}</if> |
| | | <if test="caseNo != null ">and b.case_no >= #{caseNo}</if> |
| | |
| | | <select id="getDistrictDonate" resultType="java.lang.String"> |
| | | select o.city |
| | | from service_donatebaseinfo b |
| | | inner join base_organization o on o.organizationid = b.treatmenthospitalno |
| | | left join base_organization o on o.organizationid = b.treatmenthospitalno |
| | | where (b.RecordState = '0' or b.RecordState = '1' or b.RecordState = '2') |
| | | </select> |
| | | <select id="getDistrictComplete" resultType="java.lang.String"> |
| | | select o.city |
| | | from service_donatebaseinfo b |
| | | inner join service_donatecompletioninfo d on d.infoid = b.id |
| | | inner join base_organization o on o.organizationid = b.treatmenthospitalno |
| | | left join base_organization o on o.organizationid = b.treatmenthospitalno |
| | | where d.CompleteTime > 0 |
| | | </select> |
| | | <select id="getDistrictOrgans" resultType="java.lang.String"> |
| | | select o.city |
| | | from service_donatebaseinfo b |
| | | inner join service_donateorgan d on d.infoid = b.id |
| | | inner join base_organization o on o.organizationid = b.treatmenthospitalno |
| | | left join base_organization o on o.organizationid = b.treatmenthospitalno |
| | | where d.OrganGetTime > 0 |
| | | </select> |
| | | <select id="getDonateNameById" resultType="java.lang.String"> |
| | |
| | | <select id="getDistrictDonateByTime" resultType="java.lang.String"> |
| | | select o.city |
| | | from service_donatebaseinfo b |
| | | inner join base_organization o on o.organizationid = b.treatmenthospitalno |
| | | left join base_organization o on o.organizationid = b.treatmenthospitalno |
| | | where (b.RecordState = '0' or b.RecordState = '1' or b.RecordState = '2') |
| | | and b.ReportTime >= #{starttime} |
| | | and b.ReportTime <= #{endtime} |
| | |
| | | select o.city |
| | | from service_donatebaseinfo b |
| | | inner join service_donatecompletioninfo d on d.infoid = b.id |
| | | inner join base_organization o on o.organizationid = b.treatmenthospitalno |
| | | left join base_organization o on o.organizationid = b.treatmenthospitalno |
| | | where d.del_flag = 0 |
| | | and d.CompleteTime >= #{starttime} |
| | | and d.CompleteTime <= #{endtime} |
| | |
| | | <select id="gettreatmenthospitalnoCompleteByTime" resultType="java.lang.String"> |
| | | select b.treatmenthospitalno from service_donatebaseinfo b |
| | | inner join service_donatecompletioninfo d on d.infoid=b.id |
| | | inner join base_organization o on o.organizationid=b.treatmenthospitalno |
| | | left join base_organization o on o.organizationid=b.treatmenthospitalno |
| | | <where> |
| | | d.del_flag=0 |
| | | <if test="starttime != null ">and d.CompleteTime >= #{starttime}</if> |
| | |
| | | select o.city |
| | | from service_donatebaseinfo b |
| | | inner join service_donateorgan d on d.infoid = b.id |
| | | inner join base_organization o on o.organizationid = b.treatmenthospitalno |
| | | left join base_organization o on o.organizationid = b.treatmenthospitalno |
| | | WHERE d.del_flag = 0 |
| | | AND d.OrganGetTime IS NOT NULL |
| | | AND d.OrganGetTime >= #{starttime} |