From b1d7844cb525a36b1e0e193e9e96a2531d4badeb Mon Sep 17 00:00:00 2001
From: 이민희 <mhlee@maprex.co.kr>
Date: 화, 22 2월 2022 14:23:26 +0900
Subject: [PATCH] - 이슈유형 설정에 상위 이슈 업체/ISP/호스팅 상속 기능 - 워크플로우에 속해있는 부서 삭제 시 팝업 메시지 수정

---
 src/main/java/kr/wisestone/owl/web/controller/HostingFieldController.java |   40 ++++++++++++++++++++++++++++++++++------
 1 files changed, 34 insertions(+), 6 deletions(-)

diff --git a/src/main/java/kr/wisestone/owl/web/controller/HostingFieldController.java b/src/main/java/kr/wisestone/owl/web/controller/HostingFieldController.java
index b903c38..bcd8df0 100644
--- a/src/main/java/kr/wisestone/owl/web/controller/HostingFieldController.java
+++ b/src/main/java/kr/wisestone/owl/web/controller/HostingFieldController.java
@@ -1,6 +1,7 @@
 package kr.wisestone.owl.web.controller;
 
 import kr.wisestone.owl.constant.Constants;
+import kr.wisestone.owl.constant.UsePartner;
 import kr.wisestone.owl.service.HostingFieldService;
 import kr.wisestone.owl.web.condition.HostingFieldCondition;
 import kr.wisestone.owl.web.form.HostingFieldForm;
@@ -13,6 +14,7 @@
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
 import org.springframework.web.servlet.ModelAndView;
 
 import javax.servlet.http.HttpServletRequest;
@@ -25,7 +27,7 @@
     @Autowired
     private HostingFieldService HostingFieldService;
 
-    // �뾽泥� �깮�꽦
+    // �샇�뒪�똿 �깮�꽦
     @RequestMapping(value = "/hostingField/add", method = RequestMethod.POST)
     public
     @ResponseBody
@@ -37,7 +39,7 @@
         return this.setSuccessMessage(resJsonData);
     }
 
-    // �뾽泥� 議고쉶
+    // �샇�뒪�똿 議고쉶
     @RequestMapping(value = "/hostingField/find", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
     public
     @ResponseBody
@@ -50,7 +52,7 @@
         return this.setSuccessMessage(resJsonData);
     }
 
-    // �뾽泥� �긽�꽭 議고쉶
+    // �샇�뒪�똿 �긽�꽭 議고쉶
     @RequestMapping(value = "/hostingField/detail", produces = MediaType.APPLICATION_JSON_VALUE)
     public
     @ResponseBody
@@ -61,7 +63,7 @@
         return this.setSuccessMessage(resJsonData);
     }
 
-    // �뾽泥� �닔�젙
+    // �샇�뒪�똿 �닔�젙
     @RequestMapping(value = "/hostingField/modify", produces = MediaType.APPLICATION_JSON_VALUE)
     public
     @ResponseBody
@@ -73,7 +75,7 @@
         return this.setSuccessMessage(resJsonData);
     }
 
-    // �뾽泥� �궘�젣
+    // �샇�뒪�똿 �궘�젣
     @RequestMapping(value = "/hostingField/remove", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
     public
     @ResponseBody
@@ -86,11 +88,37 @@
         return this.setSuccessMessage(resJsonData);
     }
 
+    // �뾽泥�/ISP/�샇�뒪�똿 紐⑸줉 媛��졇�삤湲�
+    @RequestMapping(value = "/company/getPartnerList", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
+    public
+    @ResponseBody
+    Map<String, Object> getPartnerList(@RequestBody Map<String, Map<String, Object>> params) {
+        Map<String, Object> resJsonData = new HashMap<>();
+        resJsonData.put(Constants.REQ_KEY_CONTENT, UsePartner.getPartnerList());
 
-    // �뾽泥� �뿊�� �떎�슫濡쒕뱶
+        return this.setSuccessMessage(resJsonData);
+    }
+
+    // �샇�뒪�똿 �뿊�� �떎�슫濡쒕뱶
     @RequestMapping(value = "/hostingField/downloadExcel", method = RequestMethod.POST)
     public ModelAndView downloadExcel(HttpServletRequest request, Model model) {
         return this.HostingFieldService.downloadExcel(request, model);
     }
+
+    //  �샇�뒪�똿 Import �슜 �뿊�� �뀥�뵆由� �떎�슫濡쒕뱶
+    @RequestMapping(value = "/hostingField/downloadExcelTemplate", method = RequestMethod.POST)
+    public ModelAndView downloadExcelImport(HttpServletRequest request, Model model) {
+        return this.HostingFieldService.downloadExcelTemplate(request, model);
+    }
+
+    //  �샇�뒪�똿 �뿊�� �벑濡�
+    @RequestMapping(value = "/hostingField/importExcel", method = RequestMethod.POST)
+    public @ResponseBody Map<String, Object> importExcel(MultipartHttpServletRequest request) throws Exception {
+        Map<String, Object> resJsonData = new HashMap<>();
+
+        this.HostingFieldService.importExcel(request.getFile("file"));
+
+        return this.setSuccessMessage(resJsonData);
+    }
 }
 

--
Gitblit v1.8.0