Merge branch 'master' of http://dudgusw@vcs.iten.co.kr:9999/hylee/mjon_git
This commit is contained in:
commit
ec86bfcddc
@ -1,9 +1,12 @@
|
||||
package itn.com.cmm.util;
|
||||
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.Month;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
*
|
||||
@ -85,4 +88,25 @@ public final class DateUtil {
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @methodName : getNowDayToString
|
||||
* @author : 이호영
|
||||
* @date : 2023.08.08
|
||||
* @description : yyyy-MM-dd HH:mm:ss.S 형식을 yyyy-MM-dd HH:mm 로 변환
|
||||
* @return
|
||||
* @throws ParseException
|
||||
*/
|
||||
public static String getChangFormatS(String str) throws ParseException {
|
||||
SimpleDateFormat inputFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S"); // 원본 형식
|
||||
Date date = inputFormat.parse(str); // 문자열을 날짜 객체로 변환
|
||||
|
||||
SimpleDateFormat outputFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm"); // 원하는 출력 형식
|
||||
String formattedDate = outputFormat.format(date); // 날짜 객체를 원하는 형식의 문자열로 변환
|
||||
|
||||
return formattedDate; // 출력: 2023-08-07 09:36
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -708,7 +708,6 @@ public class ApiKeyMngController {
|
||||
@RequestParam("accessNo") String p_accessNo
|
||||
, Model model) throws Exception {
|
||||
|
||||
System.out.println("111111111111");
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
@ -716,7 +715,6 @@ public class ApiKeyMngController {
|
||||
try {
|
||||
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId());
|
||||
System.out.println("1111111111112");
|
||||
ApiKeyVO apiKeyVO = new ApiKeyVO();
|
||||
apiKeyVO.setAccessNo(p_accessNo);
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
package itn.let.uat.uia.web;
|
||||
|
||||
import java.text.ParseException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@ -14,6 +15,7 @@ import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper;
|
||||
import itn.com.cmm.LoginVO;
|
||||
import itn.com.cmm.util.DateUtil;
|
||||
import itn.com.utl.fcc.service.EgovStringUtil;
|
||||
import itn.let.mjo.apikey.service.ApiCallInfoMngService;
|
||||
import itn.let.mjo.apikey.service.ApiKeyMngService;
|
||||
@ -197,12 +199,26 @@ public class EgovMypageRESTAPIController{
|
||||
resultList = apiKeyMngService.selectApiKeyApplyStatus(apiKeyVO);
|
||||
System.out.println("=============");
|
||||
if (resultList.size()>0) {
|
||||
resultList.get(0).setFrstRegistPnttm(DateUtil.getChangFormatS(resultList.get(0).getFrstRegistPnttm()));
|
||||
resultList.get(0).setLastUpdtPnttm(DateUtil.getChangFormatS(resultList.get(0).getLastUpdtPnttm()));
|
||||
|
||||
model.addAttribute("apiVO", resultList.get(0));
|
||||
|
||||
|
||||
apiKeyVO.setAccessNo(resultList.get(0).getAccessNo());
|
||||
//api call info 정보
|
||||
List<ApiKeyVO> resultList_call = new ArrayList<ApiKeyVO>();
|
||||
resultList_call = apiCallInfoMngService.selectMberApiCallInfoList(apiKeyVO);
|
||||
resultList_call = apiCallInfoMngService.selectMberApiCallInfoList(apiKeyVO);
|
||||
System.out.println("!!!!!!!!!!!!!!!!!");
|
||||
resultList_call.forEach(t-> {
|
||||
try {
|
||||
t.setFrstRegistPnttm(DateUtil.getChangFormatS(t.getFrstRegistPnttm()));
|
||||
} catch (ParseException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
|
||||
model.addAttribute("apiCallInfoVOList", resultList_call);
|
||||
model.addAttribute("apiCallInfoVOListSize", resultList_call.size());
|
||||
|
||||
|
||||
@ -283,18 +283,21 @@ function fn_reg_user_4_apikey(){
|
||||
</td>
|
||||
<td>
|
||||
<c:choose>
|
||||
<c:when test="${result.useYn eq 'Y'}">
|
||||
<c:when test="${result.useYn eq 'Y' }">
|
||||
사용중
|
||||
</c:when>
|
||||
<c:when test="${result.useYn eq 'A'}">
|
||||
<c:when test="${result.useYn eq 'A' }">
|
||||
승인 요청
|
||||
</c:when>
|
||||
<c:when test="${result.useYn eq 'N' and result.accessKey eq ''}">
|
||||
<c:when test="${result.useYn eq 'N' and result.accessKey eq '' }">
|
||||
미승인
|
||||
</c:when>
|
||||
<c:when test="${result.useYn eq 'N' and result.accessKey ne ''}">
|
||||
<c:when test="${result.useYn eq 'N' and result.accessKey ne '' }">
|
||||
미사용
|
||||
</c:when>
|
||||
</c:when>
|
||||
<c:when test="${result.useYn eq 'W' }">
|
||||
KEY사용중지
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>프로토콜</th>
|
||||
<td>HHTP/1.1</td>
|
||||
<td>HTTP/1.1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>HOST</th>
|
||||
@ -157,7 +157,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].msgType</span></td>
|
||||
<td>메시지 타입(4 : 단문, 5 : 장문)</td>
|
||||
<td>메시지 타입(4 : 단문, 6 : 장문)</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -95,19 +95,19 @@
|
||||
<td><span class="font_b">...</span></td>
|
||||
<td>...</td>
|
||||
<td>...</td>
|
||||
<td><span class="select_o">...</span></td>
|
||||
<td><span class="select_o">X</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">callTo_100</span></td>
|
||||
<td>수신자 번호 100</td>
|
||||
<td>String</td>
|
||||
<td><span class="select_o">O</span></td>
|
||||
<td><span class="select_o">X</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">smsTxt_100</span></td>
|
||||
<td>메시지 내용 100</td>
|
||||
<td>String(1~2,000Byte)</td>
|
||||
<td><span class="select_o">O</span></td>
|
||||
<td><span class="select_o">X</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -168,7 +168,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].msgType</span></td>
|
||||
<td>메시지 타입(4 : 단문, 5 : 장문)</td>
|
||||
<td>메시지 타입(4 : 단문, 6 : 장문)</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -180,7 +180,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].msgType</span></td>
|
||||
<td>메시지 타입(4 : 단문, 5 : 장문)</td>
|
||||
<td>메시지 타입(4 : 단문, 6 : 장문)</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -172,7 +172,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].msgType</span></td>
|
||||
<td>메시지 타입(4 : 단문, 5 : 장문)</td>
|
||||
<td>메시지 타입(4 : 단문, 6 : 장문)</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -152,11 +152,24 @@ function fn_update_apikey(p_accessNo){
|
||||
function fn_insert_callInfo(p_accessNo){
|
||||
//frm = document.writeForm;
|
||||
//var p_accessNo = frm.accessNo.value;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var callInfo = $("#callInfo").val();
|
||||
if ($("#callInfo").val()==''){
|
||||
alert("호출지 정보는 필수입니다.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
var ipPattern = /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;
|
||||
|
||||
|
||||
if (!ipPattern.test(callInfo)) {
|
||||
alert("IP 형식이 아닙니다. 다시 확인하시고 입력해 주세요");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
@ -378,7 +391,7 @@ function fn_reg_user_4_apikey(){
|
||||
</td>
|
||||
<td>
|
||||
<button type="button" class="btnType btnType23" onclick="fn_delete('${apiVO.accessNo}','W'); return false;">정지</button>
|
||||
<button type="button" class="btnType btnType14" onclick="fn_update_apikey('14'); return false;">재발급</button>
|
||||
<button type="button" class="btnType btnType14" onclick="fn_update_apikey('${apiVO.accessNo}'); return false;">재발급</button>
|
||||
</td>
|
||||
</c:when>
|
||||
<c:when test="${apiVO.useYn eq 'W' }">
|
||||
@ -462,7 +475,7 @@ function fn_reg_user_4_apikey(){
|
||||
</c:choose>
|
||||
<!-- <p class="admin_info">* 대역 등록을 원하실 경우 상위 IP만 작성하시면 됩니다. ex) 192.168.255.0 ~ 192.168.255.255 대역을 등록할 경우 192.168. 255. 입력</p> -->
|
||||
<!-- <p class="admin_info">* 대역 등록을 원하실 경우 상위 IP만 작성하시면 됩니다. ex) 192.168.255.0 입력</p> -->
|
||||
<p class="admin_info">* IP는 최대 10개까지 등록 가능합니다. 단, IP 대역은 1개의 IP로 계산합니다.</p>
|
||||
<p class="admin_info">* IP는 최대 10개까지 등록 가능합니다.</p>
|
||||
<!--//사용 승인 될 경우에만 노출-->
|
||||
</div>
|
||||
<!--// API 사용 IP 관리 : IP등록 전-->
|
||||
|
||||
@ -19,7 +19,7 @@ $(document).ready(function(){
|
||||
<div class="send_top">
|
||||
<!-- tab button -->
|
||||
<c:import url="./top_tepMenu.jsp" />
|
||||
<!--// tab button -->
|
||||
<!--// tab button
|
||||
|
||||
<div class="api_guide_cont current">
|
||||
<div class="heading">
|
||||
@ -68,7 +68,7 @@ $(document).ready(function(){
|
||||
<td>문자보내기(여러명에게 동일한문자)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>sp_example_send_msgs_r1.jsp</th>
|
||||
<th>jsp_example_send_msgs_r1.jsp</th>
|
||||
<td>문자보내기(여러명에게 다른문자)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -66,7 +66,8 @@ $(document).ready(function(){
|
||||
<div class="step_con">
|
||||
<div class="icon"><img src="<c:url value='/publish/images/api_intro_cont/api_guide_03.jpg' />" alt="아이피(IP) 등록 아이콘"></div>
|
||||
<dl>
|
||||
<dt>아이피<span>(IP)</span> 등록</dt>
|
||||
<!-- <dt>아이피<span>(IP)</span> 등록</dt> -->
|
||||
<dt>아이피(IP) 등록</dt>
|
||||
<dd>문자 API를 통해 문자 발송 서버 IP 등록</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
@ -24,8 +24,8 @@
|
||||
|
||||
//회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용해주세요
|
||||
//실제서비스용
|
||||
final String mberId = "antelope"; //문자온 로그인 아이디
|
||||
final String apiKey = "5ec0a0311a7a0eb25cc9c11468ce372cd64501"; //발급받은 api key
|
||||
final String mberId = "dudgusw"; //문자온 로그인 아이디
|
||||
final String apiKey = "59d8d714ad68ae2e24e3ae2055334e3e"; //발급받은 api ke
|
||||
|
||||
//테스트용
|
||||
//String mberId = request.getParameter("p_mberId"); //문자온 로그인 아이디
|
||||
@ -33,7 +33,7 @@
|
||||
|
||||
|
||||
/******************** 전송요청 URL ********************/
|
||||
final String apiUrl = "https://api.munjaon.co.kr/api/inqry/hstryDetail"; // 전송요청 URL
|
||||
final String apiUrl = "http://localhost:8088/api/inqry/hstryDetail"; // 전송요청 URL
|
||||
|
||||
// String apiUrl = "https://apidev.munjaon.co.kr:9998/api/inqry/hstryDetail";
|
||||
/**************** 발송가능건수 예제 ******************/
|
||||
|
||||
@ -24,8 +24,8 @@
|
||||
|
||||
//회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용해주세요
|
||||
//실제서비스용
|
||||
final String mberId = "antelope"; //문자온 로그인 아이디
|
||||
final String apiKey = "5ec0a0311a7a0eb25cc9c11468ce372cd64501"; //발급받은 api key
|
||||
final String mberId = "dudgusw"; //문자온 로그인 아이디
|
||||
final String apiKey = "59d8d714ad68ae2e24e3ae2055334e3e"; //발급받은 api ke
|
||||
|
||||
//테스트용
|
||||
//String mberId = request.getParameter("p_mberId"); //문자온 로그인 아이디
|
||||
@ -33,7 +33,7 @@
|
||||
|
||||
|
||||
/******************** 전송요청 URL ********************/
|
||||
final String apiUrl = "https://api.munjaon.co.kr/api/inqry/hstry";
|
||||
final String apiUrl = "http://localhost:8088/api/inqry/hstry";
|
||||
|
||||
/**************** 발송가능건수 예제 ******************/
|
||||
System.out.println("전체발송이력");
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
//회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용해주세요
|
||||
//실제서비스용
|
||||
final String mberId = "antelope"; //문자온 로그인 아이디
|
||||
final String apiKey = "5ec0a0311a7a0eb25cc9c11468ce372cd64501"; //발급받은 api key
|
||||
final String apiKey = "59d8d714ad68ae2e24e3ae2055334e3e"; //발급받은 api key
|
||||
|
||||
|
||||
//테스트용
|
||||
|
||||
Loading…
Reference in New Issue
Block a user