From 916a3cbabe4e50062fce61ff6f2f5d46c05dfbd1 Mon Sep 17 00:00:00 2001
From: 이민희 <mhlee@maprex.co.kr>
Date: 목, 17 3월 2022 17:47:45 +0900
Subject: [PATCH] - api로 이슈 추가 시 url/ip로 업체 찾는 코드 수정

---
 src/main/webapp/scripts/components/ispField/ispField.service.js |   35 +++++++++++++++++++++++++++++++++--
 1 files changed, 33 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/scripts/components/ispField/ispField.service.js b/src/main/webapp/scripts/components/ispField/ispField.service.js
index b3a2c09..af75847 100644
--- a/src/main/webapp/scripts/components/ispField/ispField.service.js
+++ b/src/main/webapp/scripts/components/ispField/ispField.service.js
@@ -6,13 +6,44 @@
 define([
     'app'
 ], function (app) {
-    app.factory("IspField", ['$http', '$log', function ($http, $log) {
+    app.factory("IspField", ['$http', '$log', '$upload', function ($http, $log, $upload) {
         return {
             find : function (conditions) {
-                return $http.post("IspField/find", conditions).then(function (response) {
+                return $http.post("ispField/find", conditions).then(function (response) {
                     $log.debug("ISP �븘�뱶 紐⑸줉 �뜲�씠�꽣 : ", response);
                     return response;
                 });
+            },
+            add : function (conditions) {
+                return $http.post("ispField/add", conditions).then(function (response) {
+                    $log.debug("IspField �깮�꽦 寃곌낵 : ", response);
+                    return response;
+                });
+            },
+            modify : function (conditions) {
+                return $http.post("ispField/modify", conditions).then(function (response) {
+                    $log.debug("IspField �닔�젙 寃곌낵 : ", response);
+                    return response;
+                });
+            },
+            detail : function (conditions) {
+                return $http.post("ispField/detail", conditions).then(function (response) {
+                    $log.debug("IspField �긽�꽭 : ", response);
+                    return response;
+                });
+            },
+            removes : function (conditions) {
+                return $http.post("ispField/remove", conditions).then(function (response) {
+                    $log.debug("IspField �궘�젣 寃곌낵 : ", response);
+                    return response;
+                });
+            },
+            importExcel : function (conditions) {
+                conditions.url = "ispField/importExcel";
+                return $upload.upload(conditions).then(function (response) {
+                    $log.debug("ispField Import 寃곌낵 : ", response);
+                    return response;
+                });
             }
         }
     }

--
Gitblit v1.8.0