76 lines
4.8 KiB
XML
76 lines
4.8 KiB
XML
|
|
<?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.xinelu.manage.mapper.patientinfo.PatientAllInfoViewMapper">
|
||
|
|
|
||
|
|
<resultMap type="PatientAllInfoView" id="PatientAllInfoViewResult">
|
||
|
|
<result property="patientId" column="patient_id"/>
|
||
|
|
<result property="patientName" column="patient_name"/>
|
||
|
|
<result property="patientPhone" column="patient_phone"/>
|
||
|
|
<result property="familyMemberPhone" column="family_member_phone"/>
|
||
|
|
<result property="birthDate" column="birth_date"/>
|
||
|
|
<result property="cardNo" column="card_no"/>
|
||
|
|
<result property="sex" column="sex"/>
|
||
|
|
<result property="address" column="address"/>
|
||
|
|
<result property="patientType" column="patient_type"/>
|
||
|
|
<result property="patientVisitRecordId" column="patient_visit_record_id"/>
|
||
|
|
<result property="visitMethod" column="visit_method"/>
|
||
|
|
<result property="visitDate" column="visit_date"/>
|
||
|
|
<result property="hospitalAgencyName" column="hospital_agency_name"/>
|
||
|
|
<result property="campusAgencyName" column="campus_agency_name"/>
|
||
|
|
<result property="departmentName" column="department_name"/>
|
||
|
|
<result property="wardName" column="ward_name"/>
|
||
|
|
<result property="attendingPhysicianName" column="attending_physician_name"/>
|
||
|
|
<result property="mainDiagnosis" column="main_diagnosis"/>
|
||
|
|
<result property="admissionTime" column="admission_time"/>
|
||
|
|
<result property="dischargeTime" column="discharge_time"/>
|
||
|
|
<result property="hospitalizationDays" column="hospitalization_days"/>
|
||
|
|
<result property="inHospitalInfo" column="in_hospital_info"/>
|
||
|
|
<result property="outHospitalInfo" column="out_hospital_info"/>
|
||
|
|
<result property="visitSerialNumber" column="visit_serial_number"/>
|
||
|
|
<result property="inHospitalNumber" column="in_hospital_number"/>
|
||
|
|
<result property="responsibleNurse" column="responsible_nurse"/>
|
||
|
|
<result property="surgicalName" column="surgical_name"/>
|
||
|
|
<result property="surgicalRecord" column="surgical_record"/>
|
||
|
|
<result property="signPatientRecordId" column="sign_patient_record_id"/>
|
||
|
|
<result property="paymentStatus" column="payment_status"/>
|
||
|
|
<result property="healthManageName" column="health_manage_name"/>
|
||
|
|
<result property="serviceStatus" column="service_status"/>
|
||
|
|
<result property="signStatus" column="sign_status"/>
|
||
|
|
<result property="billingDoctorName" column="billing_doctor_name"/>
|
||
|
|
<result property="signTime" column="sign_time"/>
|
||
|
|
<result property="packageName" column="package_name"/>
|
||
|
|
<result property="packagePaymentStatus" column="package_payment_status"/>
|
||
|
|
<result property="packagePrice" column="package_price"/>
|
||
|
|
<result property="serviceStartTime" column="service_start_time"/>
|
||
|
|
<result property="serviceEndTime" column="service_end_time"/>
|
||
|
|
<result property="packageTerm" column="package_term"/>
|
||
|
|
<result property="packageTermUnit" column="package_term_unit"/>
|
||
|
|
</resultMap>
|
||
|
|
|
||
|
|
<sql id="selectPatientAllInfoViewVo">
|
||
|
|
select patient_id, patient_name, patient_phone, family_member_phone, birth_date, card_no, sex, address, patient_type, patient_visit_record_id, visit_method, visit_date, hospital_agency_name, campus_agency_name, department_name, ward_name, attending_physician_name, main_diagnosis, admission_time, discharge_time, hospitalization_days, in_hospital_info, out_hospital_info, visit_serial_number, in_hospital_number, responsible_nurse, surgical_name, surgical_record, sign_patient_record_id, payment_status, health_manage_name, service_status, sign_status, billing_doctor_name, sign_time, package_name, package_payment_status, package_price, service_start_time, service_end_time, package_term, package_term_unit from patient_all_info_view
|
||
|
|
</sql>
|
||
|
|
|
||
|
|
<select id="selectPatientAllInfoViewList" parameterType="PatientAllInfoView" resultMap="PatientAllInfoViewResult">
|
||
|
|
<include refid="selectPatientAllInfoViewVo" />
|
||
|
|
<where>
|
||
|
|
<if test="patientId != null ">
|
||
|
|
and patient_id = #{patientId}
|
||
|
|
</if>
|
||
|
|
<if test="patientVisitRecordId != null ">
|
||
|
|
and patient_visit_record_id = #{patientVisitRecordId}
|
||
|
|
</if>
|
||
|
|
<if test="signPatientRecordId != null ">
|
||
|
|
and sign_patient_record_id = #{signPatientRecordId}
|
||
|
|
</if>
|
||
|
|
</where>
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="selectPatientAllInfoViewByPatientId" parameterType="Long" resultMap="PatientAllInfoViewResult">
|
||
|
|
<include refid="selectPatientAllInfoViewVo" />
|
||
|
|
where patient_id = #{patientId}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
</mapper>
|