<?xml version="1.0" encoding="UTF-8" ?>
|
<!DOCTYPE mapper
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="com.ruoyi.project.mapper.ServiceTransportMapper">
|
|
<resultMap type="com.ruoyi.project.domain.ServiceTransport" id="ServiceTransportResult">
|
<result property="id" column="id"/>
|
<result property="reportId" column="report_id"/>
|
<result property="caseNo" column="case_no"/>
|
<result property="patName" column="pat_name"/>
|
<result property="sex" column="sex"/>
|
<result property="age" column="age"/>
|
<result property="diagnosisname" column="DiagnosisName"/>
|
<result property="treatmentHospitalName" column="Treatment_hospital_name"/>
|
<result property="treatmentDeptName" column="Treatment_dept_name"/>
|
<result property="transportStartTime" column="transport_start_time"/>
|
<result property="transportStartPlace" column="transport_start_place"/>
|
<result property="contactPerson" column="Contact_person"/>
|
<result property="doctor" column="doctor"/>
|
<result property="doctorPhone" column="doctor_phone"/>
|
<result property="nurse" column="nurse"/>
|
<result property="nursePhone" column="nurse_phone"/>
|
<result property="driver" column="driver"/>
|
<result property="driverPhone" column="driver_phone"/>
|
<result property="icuDoctor" column="icu_doctor"/>
|
<result property="icuDoctorPhone" column="icu_doctor_phone"/>
|
<result property="delFlag" column="del_flag"/>
|
<result property="remark" column="remark"/>
|
<result property="transitStatus" column="transit_status"/>
|
<result property="createTime" column="create_time"/>
|
<result property="createBy" column="create_by"/>
|
<result property="updateTime" column="update_time"/>
|
<result property="updateBy" column="update_by"/>
|
</resultMap>
|
|
<sql id="selectServiceTransportVo">
|
select id,
|
report_id,
|
case_no,
|
pat_name,
|
transit_status,
|
remark,
|
sex,
|
age,
|
DiagnosisName,
|
Treatment_hospital_name,
|
Treatment_dept_name,
|
transport_start_time,
|
transport_start_place,
|
Contact_person,
|
doctor,
|
doctor_phone,
|
nurse,
|
nurse_phone,
|
driver,
|
driver_phone,
|
icu_doctor,
|
icu_doctor_phone,
|
del_flag,
|
create_time,
|
create_by,
|
update_time,
|
update_by
|
from service_transport
|
</sql>
|
|
<select id="selectServiceTransportList" parameterType="com.ruoyi.project.domain.ServiceTransport"
|
resultMap="ServiceTransportResult">
|
<include refid="selectServiceTransportVo"/>
|
<where>
|
<if test="caseNo != null and caseNo != ''">and case_no = #{caseNo}</if>
|
<if test="patName != null and patName != ''">and pat_name like concat('%', #{patName}, '%')</if>
|
<if test="sex != null and sex != ''">and sex = #{sex}</if>
|
<if test="reportId != null ">and report_id = #{reportId}</if>
|
<if test="age != null ">and age = #{age}</if>
|
<if test="diagnosisname != null and diagnosisname != ''">and DiagnosisName like concat('%',
|
#{diagnosisname}, '%')
|
</if>
|
<if test="treatmentHospitalName != null and treatmentHospitalName != ''">and Treatment_hospital_name like
|
concat('%', #{treatmentHospitalName}, '%')
|
</if>
|
<if test="treatmentDeptName != null and treatmentDeptName != ''">and Treatment_dept_name like concat('%',
|
#{treatmentDeptName}, '%')
|
</if>
|
<if test="transportStartTime != null ">and transport_start_time = #{transportStartTime}</if>
|
<if test="transportStartPlace != null and transportStartPlace != ''">and transport_start_place =
|
#{transportStartPlace}
|
</if>
|
<if test="contactPerson != null and contactPerson != ''">and Contact_person = #{contactPerson}</if>
|
<if test="doctor != null and doctor != ''">and doctor = #{doctor}</if>
|
<if test="doctorPhone != null and doctorPhone != ''">and doctor_phone = #{doctorPhone}</if>
|
<if test="nurse != null and nurse != ''">and nurse = #{nurse}</if>
|
<if test="nursePhone != null and nursePhone != ''">and nurse_phone = #{nursePhone}</if>
|
<if test="driver != null and driver != ''">and driver = #{driver}</if>
|
<if test="driverPhone != null and driverPhone != ''">and driver_phone = #{driverPhone}</if>
|
<if test="icuDoctor != null and icuDoctor != ''">and icu_doctor = #{icuDoctor}</if>
|
<if test="icuDoctorPhone != null and icuDoctorPhone != ''">and icu_doctor_phone = #{icuDoctorPhone}</if>
|
<if test="transitStatus != null ">and transit_status = #{transitStatus}</if>
|
<if test="remark != null ">and remark = #{remark}</if>
|
</where>
|
</select>
|
|
</mapper>
|