| | |
| | | |
| | | <resultMap type="com.ruoyi.project.domain.ServiceDonatebaseinfo" id="ServiceDonatebaseinfoResult"> |
| | | <result property="id" column="ID"/> |
| | | <result property="caseNo" column="case_no"/> |
| | | <result property="name" column="Name"/> |
| | | <result property="sex" column="Sex"/> |
| | | <result property="idcardtype" column="IDCardType"/> |
| | |
| | | <result property="firstMedicalInstitution" column="first_medical_institution"/> |
| | | <result property="currentDept" column="current_dept"/> |
| | | <result property="firstDept" column="first_dept"/> |
| | | <result property="reportId" column="report_id"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceDonatebaseinfoVo"> |
| | |
| | | service_donatebaseinfo.del_flag = 0 |
| | | <if test="name != null and name != ''">and Name like concat('%', #{name}, '%')</if> |
| | | <if test="sex != null ">and Sex = #{sex}</if> |
| | | <if test="caseNo != null ">and service_donatebaseinfo.case_no = #{caseNo}</if> |
| | | <if test="idcardtype != null ">and IDCardType = #{idcardtype}</if> |
| | | <if test="idcardno != null and idcardno != ''">and IDCardNo = #{idcardno}</if> |
| | | <if test="age != null ">and Age = #{age}</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> |
| | | <if test="reportId != null ">and report_id = #{reportId}</if> |
| | | </where> |
| | | |
| | | order by ReportTime desc |
| | |
| | | <where> |
| | | AND b.del_flag=0 |
| | | <if test="starttime != null ">and b.donatetime >= #{starttime}</if> |
| | | <if test="caseNo != null ">and b.case_no >= #{caseNo}</if> |
| | | <if test="reportId != null ">and b.report_id = #{reportId}</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> |
| | |
| | | inner 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> |
| | | <if test="endtime != null ">and b.ReportTime <= #{endtime}</if> |
| | | <if test="city != null and city != ''">and o.City = #{city}</if> |
| | | <if test="reporterno != null and reporterno != ''">and b.ReporterNo = #{reporterno}</if> |
| | |
| | | <if test="endtime != null ">and d.CompleteTime <= #{endtime}</if> |
| | | <if test="city != null and city != ''">and o.City = #{city}</if> |
| | | <if test="reporterno != null and reporterno != ''">and b.ReporterNo = #{reporterno}</if> |
| | | <if test="caseNo != null ">and b.case_no >= #{caseNo}</if> |
| | | </where> |
| | | </select> |
| | | |