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
... | ... | @@ -577,7 +577,7 @@ |
| 577 | 577 |
*/ |
| 578 | 578 |
@RequestMapping(value = {"/uss/ion/apikey/UserAPIInsertAPIKEYAjax.do"})
|
| 579 | 579 |
public ModelAndView UserAPIInsertAPIKEYAjax( |
| 580 |
- //@RequestParam("mberId") String p_mberId,
|
|
| 580 |
+ @RequestParam("mberId") String p_mberId,
|
|
| 581 | 581 |
Model model) throws Exception {
|
| 582 | 582 |
|
| 583 | 583 |
ModelAndView modelAndView = new ModelAndView(); |
... | ... | @@ -588,13 +588,12 @@ |
| 588 | 588 |
String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId()); |
| 589 | 589 |
System.out.println("1111111111112");
|
| 590 | 590 |
ApiKeyVO apiKeyVO = new ApiKeyVO(); |
| 591 |
- apiKeyVO.setMberId(userId); |
|
| 591 |
+ apiKeyVO.setMberId(p_mberId); |
|
| 592 | 592 |
apiKeyVO.setUseYn("A");
|
| 593 | 593 |
apiKeyVO.setAccessKey("");
|
| 594 | 594 |
|
| 595 | 595 |
//키 생성 없이 신청서만 생성한다. |
| 596 |
- //난수 |
|
| 597 |
- /* |
|
| 596 |
+ //난수 |
|
| 598 | 597 |
String p_make_apikey; |
| 599 | 598 |
List<ApiKeyVO> resultList = new ArrayList<ApiKeyVO>(); |
| 600 | 599 |
do {
|
... | ... | @@ -605,8 +604,7 @@ |
| 605 | 604 |
apiKeyVO.setAccessKey(p_make_apikey); |
| 606 | 605 |
resultList = apiKeyMngService.selectCheckApiKeyDup(apiKeyVO); |
| 607 | 606 |
|
| 608 |
- }while(resultList.size()>=1); |
|
| 609 |
- */ |
|
| 607 |
+ }while(resultList.size()>=1); |
|
| 610 | 608 |
|
| 611 | 609 |
//step3.create user and api key |
| 612 | 610 |
apiKeyVO.setLastUpdusrId(userId); |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?