Ver código fonte

Revert "진료관리 설정 관련 컨트롤러 서비스 추가"

This reverts commit a75a23f8425f50814e109f8be3d3db641ff3dee6.
huiwon.seo 4 anos atrás
pai
commit
99cac1ae6c

+ 0 - 77
src/main/java/com/lemon/lifecenter/controller/ClinicController.java

@@ -48,7 +48,6 @@ import com.lemon.lifecenter.common.LifeCenterController;
 import com.lemon.lifecenter.common.LifeCenterFileDownload;
 import com.lemon.lifecenter.common.LifeCenterFunction;
 import com.lemon.lifecenter.common.LifeCenterSessionController;
-import com.lemon.lifecenter.dto.ClinicConfigurationDTO;
 import com.lemon.lifecenter.dto.FileDownloadDTO;
 import com.lemon.lifecenter.dto.PatientDTO;
 import com.lemon.lifecenter.dto.PatientMemoDTO;
@@ -989,81 +988,5 @@ public class ClinicController extends LifeCenterController {
             i++;
         }
     }
-	
-	@RequestMapping("/api/configuration")
-	public @ResponseBody ClinicConfigurationDTO getConfigurationAPI(
-			@RequestParam(value = "centerCode", required = true, defaultValue = "") int centerCode) {
-
-		ClinicConfigurationDTO dto = new ClinicConfigurationDTO();
-		dto.setCenterCode(centerCode);
-		
-		return clinicService.selectConfiguration(dto);
-	}
-
-	@RequestMapping(value = "/api/configuration", method = RequestMethod.POST)
-	public @ResponseBody String insertConfigurationAPI(@ModelAttribute("dto") final ClinicConfigurationDTO dto) {
-
-		try {
-			clinicService.insertConfiguration(dto);
-
-			JSONObject json = new JSONObject();
-
-			json.put("code", "00");
-			json.put("message", "");
-
-			return json.toString();
-		} catch (Exception e) {
-			JSONObject json = new JSONObject();
-
-			json.put("code", "01");
-			json.put("message", e.getLocalizedMessage());
-
-			return json.toString();
-		}
-	}
-
-	@RequestMapping(value = "/api/configuration", method = RequestMethod.DELETE)
-	public @ResponseBody String deleteConfigurationAPI(@ModelAttribute("dto") final ClinicConfigurationDTO dto) {
-
-		try {
-			clinicService.deleteConfiguration(dto);
-
-			JSONObject json = new JSONObject();
-
-			json.put("code", "00");
-			json.put("message", "");
-
-			return json.toString();
-		} catch (Exception e) {
-			JSONObject json = new JSONObject();
-
-			json.put("code", "01");
-			json.put("message", e.getLocalizedMessage());
-
-			return json.toString();
-		}
-	}
-
-	@RequestMapping(value = "/api/configuration", method = RequestMethod.PATCH)
-	public @ResponseBody String updateConfigurationAPI(@ModelAttribute("dto") final ClinicConfigurationDTO dto) {
-
-		try {
-			clinicService.updateConfiguration(dto);
-
-			JSONObject json = new JSONObject();
-
-			json.put("code", "00");
-			json.put("message", "");
-
-			return json.toString();
-		} catch (Exception e) {
-			JSONObject json = new JSONObject();
-
-			json.put("code", "01");
-			json.put("message", e.getLocalizedMessage());
-
-			return json.toString();
-		}
-  }
 }
 

+ 2 - 23
src/main/java/com/lemon/lifecenter/service/ClinicService.java

@@ -5,10 +5,8 @@ import java.util.List;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
-import com.lemon.lifecenter.dto.ClinicConfigurationDTO;
 import com.lemon.lifecenter.dto.PatientMemoDTO;
 import com.lemon.lifecenter.dto.PatientPHRLatestDTO;
-import com.lemon.lifecenter.mapper.ClinicConfigurationMapper;
 import com.lemon.lifecenter.mapper.PatientMemoMapper;
 import com.lemon.lifecenter.mapper.PatientPHRLatestMapper;
 
@@ -16,13 +14,10 @@ import com.lemon.lifecenter.mapper.PatientPHRLatestMapper;
 public class ClinicService {
 
 	 @Autowired
-     private PatientPHRLatestMapper mapperPHRLatest;
+    private PatientPHRLatestMapper mapperPHRLatest;
 	
 	 @Autowired
-	 private PatientMemoMapper mapperMemo;
-	 
-	 @Autowired
-	 private ClinicConfigurationMapper mapperConfiguration;
+	private PatientMemoMapper mapperMemo;
 	 
 	public void insertPHRLatest(PatientPHRLatestDTO dto) {
 		mapperPHRLatest.insertPHRLatest(dto);
@@ -51,20 +46,4 @@ public class ClinicService {
     public void deleteMemo(PatientMemoDTO dto) {
 		mapperMemo.deleteMemo(dto);
 	}
-    
-    public void insertConfiguration(ClinicConfigurationDTO dto) {
-    	mapperConfiguration.insertConfiguration(dto);
-    }
-    
-    public ClinicConfigurationDTO selectConfiguration(ClinicConfigurationDTO dto) {
-    	return mapperConfiguration.selectConfiguration(dto);
-    }
-    
-    public void updateConfiguration(ClinicConfigurationDTO dto) {
-    	mapperConfiguration.updateConfiguration(dto);
-    }
-    
-    public void deleteConfiguration(ClinicConfigurationDTO dto) {
-    	mapperConfiguration.deleteConfiguration(dto);
-    }
 }