|
@@ -1,10 +1,10 @@
|
|
|
<?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.lemon.lifecenter.mapper.PatientSymptomMapper">
|
|
|
+<mapper namespace="com.lemon.lifecenter.mapper.PatientSymptomSimMapper">
|
|
|
<insert id="insertSymptom" parameterType="PatientSymptomDTO" useGeneratedKeys="true">
|
|
|
<![CDATA[
|
|
|
- INSERT INTO patient_symptom (patient_idx, cough_check, dyspnea_check, cold_fit_check, muscle_pain_check, headache_check, sore_throat_check,
|
|
|
+ INSERT INTO patient_symptom_sim (patient_idx, cough_check, dyspnea_check, cold_fit_check, muscle_pain_check, headache_check, sore_throat_check,
|
|
|
smell_palate_check, fatigue_check, appetite_loss_check, sputum_check, ocin_check, vomiting_check, diarrhea_check, dizziness_check,
|
|
|
nose_check, etc_check, etc_content, recorded_by, create_date)
|
|
|
VALUE (#{patientIdx}, #{coughCheck}, #{dyspneaCheck}, #{coldFitCheck}, #{musclePainCheck}, #{headacheCheck}, #{soreThroatCheck},
|
|
@@ -15,7 +15,7 @@
|
|
|
<select id="selectSymptomCount" parameterType="PatientSymptomDTO" resultType="int">
|
|
|
<![CDATA[
|
|
|
SELECT count(*) AS total
|
|
|
- FROM patient_symptom
|
|
|
+ FROM patient_symptom_sim
|
|
|
WHERE patient_idx = #{patientIdx}
|
|
|
]]>
|
|
|
</select>
|
|
@@ -40,7 +40,7 @@
|
|
|
etc_check AS etcCheck,
|
|
|
etc_content AS etcContent,
|
|
|
recorded_by AS recordedBy
|
|
|
- FROM patient_symptom
|
|
|
+ FROM patient_symptom_sim
|
|
|
WHERE
|
|
|
patient_idx = #{patientIdx}
|
|
|
ORDER BY create_date DESC
|