|
|
|
@ -4,6 +4,7 @@ |
|
|
|
<resultMap id="BaseResultMap" type="com.ccsens.system.domain.po.DockPatientVisitInfo"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="id_card" jdbcType="VARCHAR" property="idCard" /> |
|
|
|
<result column="patient_no" jdbcType="VARCHAR" property="patientNo" /> |
|
|
|
<result column="visit_type" jdbcType="VARCHAR" property="visitType" /> |
|
|
|
<result column="visit_no" jdbcType="VARCHAR" property="visitNo" /> |
|
|
|
<result column="age" jdbcType="INTEGER" property="age" /> |
|
|
|
@ -106,13 +107,13 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, id_card, visit_type, visit_no, age, department, doctor, admission_date, admission_count, |
|
|
|
bed_number, discharge_date, admission_method, discharge_method, height, weight, tz, |
|
|
|
temperature, blood_pressure_shrink, blood_pressure_diastole, pulse, creatinine, oxygen_saturation, |
|
|
|
albumin, total_protein, vitamin_d3, hematocrit, dimer, smoking_history, smoking_year, |
|
|
|
smoking_quit, smoking_quit_year, drink_history, drink_year, drink_quit, drink_quit_year, |
|
|
|
has_allergy, allergy_drug, create_by, create_time, update_by, update_time, del_flag, |
|
|
|
remark, sync |
|
|
|
id, id_card, patient_no, visit_type, visit_no, age, department, doctor, admission_date, |
|
|
|
admission_count, bed_number, discharge_date, admission_method, discharge_method, |
|
|
|
height, weight, tz, temperature, blood_pressure_shrink, blood_pressure_diastole, |
|
|
|
pulse, creatinine, oxygen_saturation, albumin, total_protein, vitamin_d3, hematocrit, |
|
|
|
dimer, smoking_history, smoking_year, smoking_quit, smoking_quit_year, drink_history, |
|
|
|
drink_year, drink_quit, drink_quit_year, has_allergy, allergy_drug, create_by, create_time, |
|
|
|
update_by, update_time, del_flag, remark, sync |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.system.domain.po.DockPatientVisitInfoExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
|
@ -145,36 +146,38 @@ |
|
|
|
</if> |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.system.domain.po.DockPatientVisitInfo"> |
|
|
|
insert into dock_patient_visit_info (id, id_card, visit_type, |
|
|
|
visit_no, age, department, |
|
|
|
doctor, admission_date, admission_count, |
|
|
|
bed_number, discharge_date, admission_method, |
|
|
|
discharge_method, height, weight, |
|
|
|
tz, temperature, blood_pressure_shrink, |
|
|
|
blood_pressure_diastole, pulse, creatinine, |
|
|
|
oxygen_saturation, albumin, total_protein, |
|
|
|
vitamin_d3, hematocrit, dimer, |
|
|
|
smoking_history, smoking_year, smoking_quit, |
|
|
|
smoking_quit_year, drink_history, drink_year, |
|
|
|
drink_quit, drink_quit_year, has_allergy, |
|
|
|
allergy_drug, create_by, create_time, |
|
|
|
update_by, update_time, del_flag, |
|
|
|
remark, sync) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{idCard,jdbcType=VARCHAR}, #{visitType,jdbcType=VARCHAR}, |
|
|
|
#{visitNo,jdbcType=VARCHAR}, #{age,jdbcType=INTEGER}, #{department,jdbcType=VARCHAR}, |
|
|
|
#{doctor,jdbcType=VARCHAR}, #{admissionDate,jdbcType=TIMESTAMP}, #{admissionCount,jdbcType=INTEGER}, |
|
|
|
#{bedNumber,jdbcType=VARCHAR}, #{dischargeDate,jdbcType=TIMESTAMP}, #{admissionMethod,jdbcType=VARCHAR}, |
|
|
|
#{dischargeMethod,jdbcType=VARCHAR}, #{height,jdbcType=DECIMAL}, #{weight,jdbcType=DECIMAL}, |
|
|
|
#{tz,jdbcType=DECIMAL}, #{temperature,jdbcType=DECIMAL}, #{bloodPressureShrink,jdbcType=INTEGER}, |
|
|
|
#{bloodPressureDiastole,jdbcType=INTEGER}, #{pulse,jdbcType=INTEGER}, #{creatinine,jdbcType=DECIMAL}, |
|
|
|
#{oxygenSaturation,jdbcType=DECIMAL}, #{albumin,jdbcType=DECIMAL}, #{totalProtein,jdbcType=DECIMAL}, |
|
|
|
#{vitaminD3,jdbcType=DECIMAL}, #{hematocrit,jdbcType=DECIMAL}, #{dimer,jdbcType=DECIMAL}, |
|
|
|
#{smokingHistory,jdbcType=TINYINT}, #{smokingYear,jdbcType=INTEGER}, #{smokingQuit,jdbcType=TINYINT}, |
|
|
|
#{smokingQuitYear,jdbcType=INTEGER}, #{drinkHistory,jdbcType=TINYINT}, #{drinkYear,jdbcType=INTEGER}, |
|
|
|
#{drinkQuit,jdbcType=TINYINT}, #{drinkQuitYear,jdbcType=INTEGER}, #{hasAllergy,jdbcType=TINYINT}, |
|
|
|
#{allergyDrug,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|
|
|
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=TINYINT}, |
|
|
|
#{remark,jdbcType=VARCHAR}, #{sync,jdbcType=VARCHAR}) |
|
|
|
insert into dock_patient_visit_info (id, id_card, patient_no, |
|
|
|
visit_type, visit_no, age, |
|
|
|
department, doctor, admission_date, |
|
|
|
admission_count, bed_number, discharge_date, |
|
|
|
admission_method, discharge_method, height, |
|
|
|
weight, tz, temperature, |
|
|
|
blood_pressure_shrink, blood_pressure_diastole, |
|
|
|
pulse, creatinine, oxygen_saturation, |
|
|
|
albumin, total_protein, vitamin_d3, |
|
|
|
hematocrit, dimer, smoking_history, |
|
|
|
smoking_year, smoking_quit, smoking_quit_year, |
|
|
|
drink_history, drink_year, drink_quit, |
|
|
|
drink_quit_year, has_allergy, allergy_drug, |
|
|
|
create_by, create_time, update_by, |
|
|
|
update_time, del_flag, remark, |
|
|
|
sync) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{idCard,jdbcType=VARCHAR}, #{patientNo,jdbcType=VARCHAR}, |
|
|
|
#{visitType,jdbcType=VARCHAR}, #{visitNo,jdbcType=VARCHAR}, #{age,jdbcType=INTEGER}, |
|
|
|
#{department,jdbcType=VARCHAR}, #{doctor,jdbcType=VARCHAR}, #{admissionDate,jdbcType=TIMESTAMP}, |
|
|
|
#{admissionCount,jdbcType=INTEGER}, #{bedNumber,jdbcType=VARCHAR}, #{dischargeDate,jdbcType=TIMESTAMP}, |
|
|
|
#{admissionMethod,jdbcType=VARCHAR}, #{dischargeMethod,jdbcType=VARCHAR}, #{height,jdbcType=DECIMAL}, |
|
|
|
#{weight,jdbcType=DECIMAL}, #{tz,jdbcType=DECIMAL}, #{temperature,jdbcType=DECIMAL}, |
|
|
|
#{bloodPressureShrink,jdbcType=INTEGER}, #{bloodPressureDiastole,jdbcType=INTEGER}, |
|
|
|
#{pulse,jdbcType=INTEGER}, #{creatinine,jdbcType=DECIMAL}, #{oxygenSaturation,jdbcType=DECIMAL}, |
|
|
|
#{albumin,jdbcType=DECIMAL}, #{totalProtein,jdbcType=DECIMAL}, #{vitaminD3,jdbcType=DECIMAL}, |
|
|
|
#{hematocrit,jdbcType=DECIMAL}, #{dimer,jdbcType=DECIMAL}, #{smokingHistory,jdbcType=TINYINT}, |
|
|
|
#{smokingYear,jdbcType=INTEGER}, #{smokingQuit,jdbcType=TINYINT}, #{smokingQuitYear,jdbcType=INTEGER}, |
|
|
|
#{drinkHistory,jdbcType=TINYINT}, #{drinkYear,jdbcType=INTEGER}, #{drinkQuit,jdbcType=TINYINT}, |
|
|
|
#{drinkQuitYear,jdbcType=INTEGER}, #{hasAllergy,jdbcType=TINYINT}, #{allergyDrug,jdbcType=VARCHAR}, |
|
|
|
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, |
|
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=TINYINT}, #{remark,jdbcType=VARCHAR}, |
|
|
|
#{sync,jdbcType=VARCHAR}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.system.domain.po.DockPatientVisitInfo"> |
|
|
|
insert into dock_patient_visit_info |
|
|
|
@ -185,6 +188,9 @@ |
|
|
|
<if test="idCard != null"> |
|
|
|
id_card, |
|
|
|
</if> |
|
|
|
<if test="patientNo != null"> |
|
|
|
patient_no, |
|
|
|
</if> |
|
|
|
<if test="visitType != null"> |
|
|
|
visit_type, |
|
|
|
</if> |
|
|
|
@ -319,6 +325,9 @@ |
|
|
|
<if test="idCard != null"> |
|
|
|
#{idCard,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="patientNo != null"> |
|
|
|
#{patientNo,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="visitType != null"> |
|
|
|
#{visitType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
@ -462,6 +471,9 @@ |
|
|
|
<if test="record.idCard != null"> |
|
|
|
id_card = #{record.idCard,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.patientNo != null"> |
|
|
|
patient_no = #{record.patientNo,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.visitType != null"> |
|
|
|
visit_type = #{record.visitType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
@ -597,6 +609,7 @@ |
|
|
|
update dock_patient_visit_info |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
id_card = #{record.idCard,jdbcType=VARCHAR}, |
|
|
|
patient_no = #{record.patientNo,jdbcType=VARCHAR}, |
|
|
|
visit_type = #{record.visitType,jdbcType=VARCHAR}, |
|
|
|
visit_no = #{record.visitNo,jdbcType=VARCHAR}, |
|
|
|
age = #{record.age,jdbcType=INTEGER}, |
|
|
|
@ -649,6 +662,9 @@ |
|
|
|
<if test="idCard != null"> |
|
|
|
id_card = #{idCard,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="patientNo != null"> |
|
|
|
patient_no = #{patientNo,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="visitType != null"> |
|
|
|
visit_type = #{visitType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
@ -781,6 +797,7 @@ |
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.system.domain.po.DockPatientVisitInfo"> |
|
|
|
update dock_patient_visit_info |
|
|
|
set id_card = #{idCard,jdbcType=VARCHAR}, |
|
|
|
patient_no = #{patientNo,jdbcType=VARCHAR}, |
|
|
|
visit_type = #{visitType,jdbcType=VARCHAR}, |
|
|
|
visit_no = #{visitNo,jdbcType=VARCHAR}, |
|
|
|
age = #{age,jdbcType=INTEGER}, |
|
|
|
|