| | |
| | | <if test="residenceprovince != null and residenceprovince != ''">and ResidenceProvince = |
| | | #{residenceprovince} |
| | | </if> |
| | | <if test="terminationCase != null">and termination_case = |
| | | #{terminationCase} |
| | | </if> |
| | | <if test="residenceprovincename != null and residenceprovincename != ''">and ResidenceProvinceName like |
| | | concat('%', #{residenceprovincename}, '%') |
| | | </if> |
| | |
| | | <if test="infoname != null ">and infoName = #{infoname}</if> |
| | | <if test="infophone != null ">and infoPhone = #{infophone}</if> |
| | | <if test="createBy != null ">and `service_donatebaseinfo`.create_by = #{createBy}</if> |
| | | <if test="starttime != null ">and ReportTime >= #{starttime}</if> |
| | | <if test="endtime != null ">and ReportTime <= #{endtime}</if> |
| | | <if test="starttime != null ">and donatetime >= #{starttime}</if> |
| | | <if test="endtime != null ">and donatetime <= #{endtime}</if> |
| | | <if test="nativeplace != null and nativeplace != ''">and NativePlace = #{nativeplace}</if> |
| | | <if test="city != null and city != ''">and `base_organization`.`City` = #{city}</if> |
| | | <if test="deptid != null ">and deptid = #{deptid}</if> |
| | |
| | | <if test="businessarea != null ">and businessarea = #{businessarea}</if> |
| | | <if test="donatetime != null ">and donatetime = #{donatetime}</if> |
| | | <if test="donateno != null ">and donateno = #{donateno}</if> |
| | | <if test="workflow != null ">and workflow = #{workflow}</if> |
| | | </where> |
| | | |
| | | order by ReportTime desc |
| | |
| | | inner join base_organization o on b.TreatmentHospitalNo = o.OrganizationID |
| | | <where> |
| | | AND b.del_flag=0 |
| | | <if test="starttime != null ">and b.ReportTime >= #{starttime}</if> |
| | | <if test="endtime != null ">and b.ReportTime <= #{endtime}</if> |
| | | <if test="starttime != null ">and b.donatetime >= #{starttime}</if> |
| | | <if test="endtime != null ">and b.donatetime <= #{endtime}</if> |
| | | <if test="city != null and city != ''">and o.City = #{city}</if> |
| | | <if test="reporterno != null and reporterno != ''">and b.ReporterNo = #{reporterno}</if> |
| | | </where> |
| | |
| | | AND d.OrganGetTime <= #{endtime} |
| | | </select> |
| | | |
| | | </mapper> |
| | | </mapper> |