| | |
| | | <result property="infectious" column="Infectious"/> |
| | | <result property="infectiousOther" column="Infectious_Other"/> |
| | | <result property="patientstate" column="PatientState"/> |
| | | <result property="reporterno" column="ReporterNo"/> |
| | | <result property="reportername" column="ReporterName"/> |
| | | <result property="reporterphone" column="ReporterPhone"/> |
| | | <result property="reporttime" column="ReportTime"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | |
| | | <result property="deptName" column="dept_name"/> |
| | | <result property="deptNo" column="dept_no"/> |
| | | <result property="isTransport" column="is_transport"/> |
| | | <result property="gscScore" column="gsc_score"/> |
| | | <result property="gcsScore" column="gcs_score"/> |
| | | <result property="rhYin" column="rh_yin"/> |
| | | <result property="bloodType" column="blood_type"/> |
| | | <result property="coordinatorName" column="coordinator_name"/> |
| | | <result property="coordinatorNo" column="coordinator_no"/> |
| | | <result property="infoName" column="info_name"/> |
| | | <result property="infoNo" column="info_no"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceDonatebaseinfoReportVo"> |
| | | select ID, |
| | | case_no, |
| | | coordinator_name, |
| | | coordinator_no, |
| | | info_name, |
| | | info_no, |
| | | blood_type, |
| | | rh_yin, |
| | | report_status, |
| | | gsc_score, |
| | | gcs_score, |
| | | Name, |
| | | Sex, |
| | | IDCardType, |
| | |
| | | Infectious, |
| | | Infectious_Other, |
| | | PatientState, |
| | | ReporterNo, |
| | | ReporterName, |
| | | ReporterPhone, |
| | | ReportTime, |
| | | del_flag, |
| | |
| | | <include refid="selectServiceDonatebaseinfoReportVo"/> |
| | | <where> |
| | | <if test="caseNo != null and caseNo != ''">and case_no = #{caseNo}</if> |
| | | <if test="gscScore != null and gscScore != ''">and gsc_score = #{gscScore}</if> |
| | | <if test="coordinatorName != null ">and coordinator_name like concat('%', #{coordinatorName}, '%')</if> |
| | | <if test="coordinatorNo != null ">and coordinator_no = #{coordinatorNo}</if> |
| | | <if test="infoName != null ">and info_name like concat('%', #{infoName}, '%')</if> |
| | | <if test="infoNo != null ">and info_no = #{infoNo}</if> |
| | | <if test="gcsScore != null and gcsScore != ''">and gcs_score = #{gcsScore}</if> |
| | | <if test="reportStatus != null and reportStatus != ''">and report_status = #{reportStatus}</if> |
| | | <if test="name != null and name != ''">and Name like concat('%', #{name}, '%')</if> |
| | | <if test="sex != null and sex != ''">and Sex = #{sex}</if> |
| | |
| | | <if test="infectious != null and infectious != ''">and Infectious = #{infectious}</if> |
| | | <if test="infectiousOther != null and infectiousOther != ''">and Infectious_Other = #{infectiousOther}</if> |
| | | <if test="patientstate != null and patientstate != ''">and PatientState = #{patientstate}</if> |
| | | <if test="reporterno != null and reporterno != ''">and ReporterNo = #{reporterno}</if> |
| | | <if test="reportername != null and reportername != ''">and ReporterName like concat('%', #{reportername}, |
| | | '%') |
| | | </if> |
| | | <if test="reporterphone != null and reporterphone != ''">and ReporterPhone = #{reporterphone}</if> |
| | | <if test="reporttime != null ">and ReportTime = #{reporttime}</if> |
| | | <if test="terminationCase != null ">and termination_case = #{terminationCase}</if> |
| | |
| | | <if test="deptNo != null and deptNo != ''">and dept_no = #{deptNo}</if> |
| | | <if test="deptName != null and deptName != ''">and dept_name = #{deptName}</if> |
| | | <if test="isTransport != null and isTransport != ''">and is_transport = #{isTransport}</if> |
| | | <if test="rhYin != null and rhYin != ''">and rh_yin = #{rhYin}</if> |
| | | <if test="bloodType != null and bloodType != ''">and blood_type = #{bloodType}</if> |
| | | </where> |
| | | </select> |
| | | |