|
@@ -1,7 +1,5 @@
|
|
|
package com.lemon.lifecenter.controller;
|
|
|
|
|
|
-import java.io.UnsupportedEncodingException;
|
|
|
-import java.net.URLEncoder;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
@@ -11,11 +9,11 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
import com.lemon.lifecenter.common.LifeCenterConfigVO;
|
|
@@ -23,12 +21,10 @@ import com.lemon.lifecenter.common.LifeCenterController;
|
|
|
import com.lemon.lifecenter.common.LifeCenterFunction;
|
|
|
import com.lemon.lifecenter.common.LifeCenterPaging;
|
|
|
import com.lemon.lifecenter.common.LifeCenterSessionController;
|
|
|
-
|
|
|
import com.lemon.lifecenter.dto.ApiManagerDTO;
|
|
|
-import com.lemon.lifecenter.dto.CooperationDTO;
|
|
|
import com.lemon.lifecenter.service.ApiManagerService;
|
|
|
|
|
|
-@RestController
|
|
|
+@Controller
|
|
|
@RequestMapping("/apiManager")
|
|
|
public class ApiManagerController extends LifeCenterController {
|
|
|
private final Logger logger = LoggerFactory.getLogger(this.getClass());
|
|
@@ -106,4 +102,19 @@ public class ApiManagerController extends LifeCenterController {
|
|
|
|
|
|
//return "redirect:/cooperation/info?cooperativeCode="+dto.getCooperativeCode();
|
|
|
}
|
|
|
+
|
|
|
+ @RequestMapping( value = "/accept", method = RequestMethod.POST)
|
|
|
+ public String updateUseYnApiManager(
|
|
|
+ @ModelAttribute("dto") final ApiManagerDTO dto,
|
|
|
+ HttpServletRequest request,HttpServletResponse response) {
|
|
|
+ String sesId = LifeCenterSessionController.getSession( request, "sesId" );
|
|
|
+ //dto.setCreateBy(sesId);
|
|
|
+
|
|
|
+ service.updateUseYnApiManager(dto);
|
|
|
+
|
|
|
+ LifeCenterFunction.scriptMessage( response, "alertBox({ txt: '협력병원이 등록되었습니다.', callBack : function(){ location.href='/apiManager/list'; } });" );
|
|
|
+ return "/common/blank";
|
|
|
+
|
|
|
+ //return "redirect:/cooperation/info?cooperativeCode="+dto.getCooperativeCode();
|
|
|
+ }
|
|
|
}
|