Explorar o código

patient_symptom -> patient_symptom_sim 으로 관련 데이터 모두 수정

maengje %!s(int64=4) %!d(string=hai) anos
pai
achega
0673bfaab9

+ 1 - 1
src/main/java/com/lemon/lifecenter/dto/PatientSymptomDTO.java

@@ -1,6 +1,6 @@
 package com.lemon.lifecenter.dto;
 
-public class PatientSymptomDTO {
+public class PatientSymptomSimDTO {
 	
 	private String coughCheck;
 	private String dyspneaCheck;	

+ 0 - 18
src/main/java/com/lemon/lifecenter/mapper/PatientSymptomMapper.java

@@ -1,18 +0,0 @@
-package com.lemon.lifecenter.mapper;
-
-import java.util.List;
-
-import org.apache.ibatis.annotations.Mapper;
-import org.springframework.stereotype.Repository;
-
-import com.lemon.lifecenter.dto.PatientSymptomDTO;
-
-@Repository
-@Mapper
-public interface PatientSymptomMapper {
-
-public void insertSymptom(PatientSymptomDTO dto);
-	
-	public int selectSymptomCount(PatientSymptomDTO dto);
-	public List<PatientSymptomDTO> selectSymptomList(PatientSymptomDTO dto);
-}

+ 18 - 0
src/main/java/com/lemon/lifecenter/mapper/PatientSymptomSimMapper.java

@@ -0,0 +1,18 @@
+package com.lemon.lifecenter.mapper;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Mapper;
+import org.springframework.stereotype.Repository;
+
+import com.lemon.lifecenter.dto.PatientSymptomSimDTO;
+
+@Repository
+@Mapper
+public interface PatientSymptomSimMapper {
+
+public void insertSymptom(PatientSymptomSimDTO dto);
+	
+	public int selectSymptomCount(PatientSymptomSimDTO dto);
+	public List<PatientSymptomSimDTO> selectSymptomList(PatientSymptomSimDTO dto);
+}

+ 6 - 6
src/main/java/com/lemon/lifecenter/service/PHRService.java

@@ -7,10 +7,10 @@ import org.springframework.stereotype.Service;
 
 import com.lemon.lifecenter.dto.PatientPHRHistoryDTO;
 import com.lemon.lifecenter.dto.PatientPHRLatestDTO;
-import com.lemon.lifecenter.dto.PatientSymptomDTO;
+import com.lemon.lifecenter.dto.PatientSymptomSimDTO;
 import com.lemon.lifecenter.mapper.PatientPHRHistoryMapper;
 import com.lemon.lifecenter.mapper.PatientPHRLatestMapper;
-import com.lemon.lifecenter.mapper.PatientSymptomMapper;
+import com.lemon.lifecenter.mapper.PatientSymptomSimMapper;
 
 @Service
 public class PHRService {
@@ -22,7 +22,7 @@ public class PHRService {
 	private PatientPHRLatestMapper mapperPHRLatest;
 	
 	@Autowired
-	private PatientSymptomMapper mapperSymptom;
+	private PatientSymptomSimMapper mapperSymptom;
 	
 	public void insertPHR(PatientPHRHistoryDTO dto) {
 		mapperHistory.insertPHRHistory(dto);
@@ -62,15 +62,15 @@ public class PHRService {
         return mapperHistory.selectPHRHistoryList(dto);
     }
     
-    public void insertSymptom(PatientSymptomDTO dto) {
+    public void insertSymptom(PatientSymptomSimDTO dto) {
     	mapperSymptom.insertSymptom(dto);
     }
     
-    public int selectSymptomCount(PatientSymptomDTO dto) {
+    public int selectSymptomCount(PatientSymptomSimDTO dto) {
         return mapperSymptom.selectSymptomCount(dto);
     }
     
-    public List<PatientSymptomDTO> selectSymptomList(PatientSymptomDTO dto) {
+    public List<PatientSymptomSimDTO> selectSymptomList(PatientSymptomSimDTO dto) {
         return mapperSymptom.selectSymptomList(dto);
     }
 }

+ 4 - 4
src/main/resources/mybatis/mapper/patient/patientSymptom.xml

@@ -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