myname 2023-06-21
2023-06-21 15:10 API KEY 사용자 생성 수정
@10bf899c93796cb86eaa32b7c44a4ec75ea4b1cd
src/main/java/itn/let/mjo/apikey/web/ApiKeyMngController.java
--- src/main/java/itn/let/mjo/apikey/web/ApiKeyMngController.java
+++ src/main/java/itn/let/mjo/apikey/web/ApiKeyMngController.java
@@ -577,7 +577,7 @@
      */
     @RequestMapping(value = {"/uss/ion/apikey/UserAPIInsertAPIKEYAjax.do"})
     public ModelAndView UserAPIInsertAPIKEYAjax(
-    		//@RequestParam("mberId") String p_mberId, 
+    		@RequestParam("mberId") String p_mberId, 
     		Model model) throws Exception {
     	    	
     	ModelAndView modelAndView = new ModelAndView();
@@ -588,13 +588,12 @@
         	String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId());
         	System.out.println("1111111111112");
     		ApiKeyVO apiKeyVO = new ApiKeyVO();
-    		apiKeyVO.setMberId(userId);
+    		apiKeyVO.setMberId(p_mberId);
     		apiKeyVO.setUseYn("A");
     		apiKeyVO.setAccessKey("");
 
     		//키 생성 없이 신청서만 생성한다.
-    		//난수
-    		/*
+    		//난수    		
     		String p_make_apikey;
     		List<ApiKeyVO> resultList = new ArrayList<ApiKeyVO>();
     		do {
@@ -605,8 +604,7 @@
         		apiKeyVO.setAccessKey(p_make_apikey);
         		resultList = apiKeyMngService.selectCheckApiKeyDup(apiKeyVO);
         		
-    		}while(resultList.size()>=1);
-    		*/
+    		}while(resultList.size()>=1);    		
     		    		
     		//step3.create user and api key
     		apiKeyVO.setLastUpdusrId(userId);
Add a comment
List