|
|
@ -49,6 +49,7 @@ |
|
|
<result column="diagnosis_date" jdbcType="VARCHAR" property="diagnosisDate" /> |
|
|
<result column="diagnosis_date" jdbcType="VARCHAR" property="diagnosisDate" /> |
|
|
<result column="bmi" jdbcType="VARCHAR" property="bmi" /> |
|
|
<result column="bmi" jdbcType="VARCHAR" property="bmi" /> |
|
|
<result column="visit_type" jdbcType="VARCHAR" property="visitType" /> |
|
|
<result column="visit_type" jdbcType="VARCHAR" property="visitType" /> |
|
|
|
|
|
<result column="dept_id" jdbcType="BIGINT" property="deptId" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<where> |
|
|
<where> |
|
|
@ -115,7 +116,7 @@ |
|
|
admission_method, admission_method_other, bed_number, discharge_date, discharge_method, |
|
|
admission_method, admission_method_other, bed_number, discharge_date, discharge_method, |
|
|
tz, temperature, systolic_pressure, diastolic_pressure, pulse, creatinine, oxygen_saturation, |
|
|
tz, temperature, systolic_pressure, diastolic_pressure, pulse, creatinine, oxygen_saturation, |
|
|
albumin, total_protein, vitamin_d3, hematocrit, dimer, diagnosis_type, is_main_diagnosis, |
|
|
albumin, total_protein, vitamin_d3, hematocrit, dimer, diagnosis_type, is_main_diagnosis, |
|
|
diagnosis_code, diagnosis_name, diagnosis_date, bmi, visit_type |
|
|
diagnosis_code, diagnosis_name, diagnosis_date, bmi, visit_type, dept_id |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByExample" parameterType="com.ccsens.system.domain.po.PmsPatientBodyExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="com.ccsens.system.domain.po.PmsPatientBodyExample" resultMap="BaseResultMap"> |
|
|
select |
|
|
select |
|
|
@ -164,7 +165,7 @@ |
|
|
vitamin_d3, hematocrit, dimer, |
|
|
vitamin_d3, hematocrit, dimer, |
|
|
diagnosis_type, is_main_diagnosis, diagnosis_code, |
|
|
diagnosis_type, is_main_diagnosis, diagnosis_code, |
|
|
diagnosis_name, diagnosis_date, bmi, |
|
|
diagnosis_name, diagnosis_date, bmi, |
|
|
visit_type) |
|
|
visit_type, dept_id) |
|
|
values (#{id,jdbcType=BIGINT}, #{patientId,jdbcType=BIGINT}, #{height,jdbcType=VARCHAR}, |
|
|
values (#{id,jdbcType=BIGINT}, #{patientId,jdbcType=BIGINT}, #{height,jdbcType=VARCHAR}, |
|
|
#{weight,jdbcType=VARCHAR}, #{waistline,jdbcType=VARCHAR}, #{bloodPressureShrink,jdbcType=VARCHAR}, |
|
|
#{weight,jdbcType=VARCHAR}, #{waistline,jdbcType=VARCHAR}, #{bloodPressureShrink,jdbcType=VARCHAR}, |
|
|
#{bloodPressureDiastole,jdbcType=VARCHAR}, #{restingHeartRate,jdbcType=VARCHAR}, |
|
|
#{bloodPressureDiastole,jdbcType=VARCHAR}, #{restingHeartRate,jdbcType=VARCHAR}, |
|
|
@ -181,7 +182,7 @@ |
|
|
#{vitaminD3,jdbcType=VARCHAR}, #{hematocrit,jdbcType=VARCHAR}, #{dimer,jdbcType=VARCHAR}, |
|
|
#{vitaminD3,jdbcType=VARCHAR}, #{hematocrit,jdbcType=VARCHAR}, #{dimer,jdbcType=VARCHAR}, |
|
|
#{diagnosisType,jdbcType=VARCHAR}, #{isMainDiagnosis,jdbcType=VARCHAR}, #{diagnosisCode,jdbcType=VARCHAR}, |
|
|
#{diagnosisType,jdbcType=VARCHAR}, #{isMainDiagnosis,jdbcType=VARCHAR}, #{diagnosisCode,jdbcType=VARCHAR}, |
|
|
#{diagnosisName,jdbcType=VARCHAR}, #{diagnosisDate,jdbcType=VARCHAR}, #{bmi,jdbcType=VARCHAR}, |
|
|
#{diagnosisName,jdbcType=VARCHAR}, #{diagnosisDate,jdbcType=VARCHAR}, #{bmi,jdbcType=VARCHAR}, |
|
|
#{visitType,jdbcType=VARCHAR}) |
|
|
#{visitType,jdbcType=VARCHAR}, #{deptId,jdbcType=BIGINT}) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.system.domain.po.PmsPatientBody"> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.system.domain.po.PmsPatientBody"> |
|
|
insert into pms_patient_body |
|
|
insert into pms_patient_body |
|
|
@ -327,6 +328,9 @@ |
|
|
<if test="visitType != null"> |
|
|
<if test="visitType != null"> |
|
|
visit_type, |
|
|
visit_type, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="deptId != null"> |
|
|
|
|
|
dept_id, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="id != null"> |
|
|
<if test="id != null"> |
|
|
@ -470,6 +474,9 @@ |
|
|
<if test="visitType != null"> |
|
|
<if test="visitType != null"> |
|
|
#{visitType,jdbcType=VARCHAR}, |
|
|
#{visitType,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="deptId != null"> |
|
|
|
|
|
#{deptId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
<select id="countByExample" parameterType="com.ccsens.system.domain.po.PmsPatientBodyExample" resultType="java.lang.Long"> |
|
|
<select id="countByExample" parameterType="com.ccsens.system.domain.po.PmsPatientBodyExample" resultType="java.lang.Long"> |
|
|
@ -622,6 +629,9 @@ |
|
|
<if test="record.visitType != null"> |
|
|
<if test="record.visitType != null"> |
|
|
visit_type = #{record.visitType,jdbcType=VARCHAR}, |
|
|
visit_type = #{record.visitType,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="record.deptId != null"> |
|
|
|
|
|
dept_id = #{record.deptId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
@ -675,7 +685,8 @@ |
|
|
diagnosis_name = #{record.diagnosisName,jdbcType=VARCHAR}, |
|
|
diagnosis_name = #{record.diagnosisName,jdbcType=VARCHAR}, |
|
|
diagnosis_date = #{record.diagnosisDate,jdbcType=VARCHAR}, |
|
|
diagnosis_date = #{record.diagnosisDate,jdbcType=VARCHAR}, |
|
|
bmi = #{record.bmi,jdbcType=VARCHAR}, |
|
|
bmi = #{record.bmi,jdbcType=VARCHAR}, |
|
|
visit_type = #{record.visitType,jdbcType=VARCHAR} |
|
|
visit_type = #{record.visitType,jdbcType=VARCHAR}, |
|
|
|
|
|
dept_id = #{record.deptId,jdbcType=BIGINT} |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
</if> |
|
|
</if> |
|
|
@ -821,6 +832,9 @@ |
|
|
<if test="visitType != null"> |
|
|
<if test="visitType != null"> |
|
|
visit_type = #{visitType,jdbcType=VARCHAR}, |
|
|
visit_type = #{visitType,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="deptId != null"> |
|
|
|
|
|
dept_id = #{deptId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
|
@ -871,7 +885,8 @@ |
|
|
diagnosis_name = #{diagnosisName,jdbcType=VARCHAR}, |
|
|
diagnosis_name = #{diagnosisName,jdbcType=VARCHAR}, |
|
|
diagnosis_date = #{diagnosisDate,jdbcType=VARCHAR}, |
|
|
diagnosis_date = #{diagnosisDate,jdbcType=VARCHAR}, |
|
|
bmi = #{bmi,jdbcType=VARCHAR}, |
|
|
bmi = #{bmi,jdbcType=VARCHAR}, |
|
|
visit_type = #{visitType,jdbcType=VARCHAR} |
|
|
visit_type = #{visitType,jdbcType=VARCHAR}, |
|
|
|
|
|
dept_id = #{deptId,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
|
</mapper> |
|
|
</mapper> |