IIM연동 이력 조회
eapim-admin CI / build (push) Has been cancelled

This commit is contained in:
eastargh
2026-08-21 17:25:17 +09:00
parent 48073d5d91
commit 38f89fcd7a
5 changed files with 54 additions and 50 deletions
@@ -47,14 +47,15 @@
mtype: 'POST', mtype: 'POST',
url: url, url: url,
postData: getSearchForJqgrid("cmd", "LIST"), postData: getSearchForJqgrid("cmd", "LIST"),
colNames: ['No', 'Service Name', 'Command', '레이아웃명', '연동시간', '결과'], colNames: ['No', 'Service Name', 'Command', '레이아웃명', '연동시간', '결과', '결과메세지'],
colModel: [ colModel: [
{name: 'seqno', align: 'center', width: 80, sortable: false}, {name: 'seqno', align: 'center', width: 50, sortable: false},
{name: 'serviceName', align: 'center', width: 120, sortable: false}, {name: 'serviceName', align: 'center', width: 100, sortable: false},
{name: 'command', align: 'center', width: 90, sortable: false}, {name: 'command', align: 'center', width: 80, sortable: false},
{name: 'loutName', align: 'left', width: 300, sortable: false}, {name: 'loutName', align: 'left', width: 180, sortable: false},
{name: 'recvAmndHms', align: 'center', width: 140, sortable: false}, {name: 'recvAmndHms', align: 'center', width: 140, sortable: false},
{name: 'prcssRslt', align: 'center', width: 70, sortable: false, formatter: formatPrcssRslt} {name: 'prcssRslt', align: 'center', width: 60, sortable: false, formatter: formatPrcssRslt},
{name: 'prcssRsltCmnt', align: 'left', width: 300, sortable: false}
], ],
jsonReader: {repeatitems: false}, jsonReader: {repeatitems: false},
pager: $('#pager'), pager: $('#pager'),
@@ -127,7 +128,8 @@
<table class="search_condition" cellspacing=0;> <table class="search_condition" cellspacing=0;>
<colgroup> <colgroup>
<col style="width:120px;"><col style="width:260px;"> <col style="width:120px;"><col style="width:260px;">
<col style="width:120px;"><col style="width:*;"> <col style="width:120px;"><col style="width:260px;">
<col style="width:120px;"><col style="width:260px;">
</colgroup> </colgroup>
<tbody> <tbody>
<tr> <tr>
@@ -140,6 +142,16 @@
<input type="text" name="searchEndYYYYMMDD" value="" id="endDatepicker" size="10" readonly="readonly" style="width:100px; border:1px solid #ebebec;"> <input type="text" name="searchEndYYYYMMDD" value="" id="endDatepicker" size="10" readonly="readonly" style="width:100px; border:1px solid #ebebec;">
<input type="hidden" name="searchStartDate" value=""> <input type="hidden" name="searchStartDate" value="">
<input type="hidden" name="searchEndDate" value=""> <input type="hidden" name="searchEndDate" value="">
</th>
<th>결과</th>
<td>
<div class="select-style" style="display:inline-block; margin-left:6px;">
<select name="searchPrcssRslt">
<option value="">전체</option>
<option value="S">성공</option>
<option value="F">실패</option>
</select>
</div>
</td> </td>
</tr> </tr>
</tbody> </tbody>
@@ -105,25 +105,25 @@
</colgroup> </colgroup>
<tr> <tr>
<th>No</th> <th>No</th>
<td colspan="3"><span id="seqno"></span></td> <td><span id="seqno"></span></td>
</tr>
<tr>
<th>Service Name</th> <th>Service Name</th>
<td><span id="serviceName"></span></td> <td><span id="serviceName"></span></td>
<th>Command</th>
<td><span id="command"></span></td>
</tr> </tr>
<tr> <tr>
<th>레이아웃명</th> <th>레이아웃명</th>
<td><span id="loutName"></span></td> <td><span id="loutName"></span></td>
<th>연동시간</th> <th>Command</th>
<td><span id="recvAmndHms"></span></td> <td><span id="command"></span></td>
</tr> </tr>
<tr> <tr>
<th>연동시간</th>
<td><span id="recvAmndHms"></span></td>
<th>결과</th> <th>결과</th>
<td><span id="prcssRslt"></span></td> <td><span id="prcssRslt"></span></td>
</tr>
<tr>
<th>결과메세지</th> <th>결과메세지</th>
<td><span id="prcssRsltCmnt"></span></td> <td colspan="3"><span id="prcssRsltCmnt"></span></td>
</tr> </tr>
<tr> <tr>
<th>수신데이타</th> <th>수신데이타</th>
@@ -37,6 +37,9 @@ public class LayoutSyncHistoryService extends AbstractDataService<LayoutSyncHist
if (StringUtils.isNotBlank(search.getSearchEndDate())) { if (StringUtils.isNotBlank(search.getSearchEndDate())) {
query.where(q.recvamndhms.loe(parseYYYYMMDD(search.getSearchEndDate()).atTime(23, 59, 59))); query.where(q.recvamndhms.loe(parseYYYYMMDD(search.getSearchEndDate()).atTime(23, 59, 59)));
} }
if (StringUtils.isNotBlank(search.getSearchPrcssRslt())) {
query.where(q.prcssrslt.eq(search.getSearchPrcssRslt()));
}
long totalCount = query.select(q.count()).fetchOne(); long totalCount = query.select(q.count()).fetchOne();
@@ -3,7 +3,6 @@ package com.eactive.eai.rms.onl.manage.rule.layoutsync;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.io.File; import java.io.File;
import java.io.InputStream; import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader; import java.io.Reader;
import java.io.StringReader; import java.io.StringReader;
import java.text.ParseException; import java.text.ParseException;
@@ -681,59 +680,46 @@ public class LayoutSyncController extends OnlBaseAnnotationController implements
// // 요청 전문 // // 요청 전문
sis = request.getInputStream(); sis = request.getInputStream();
JSONObject json = (JSONObject) JSONValue.parse(new InputStreamReader(sis, "EUC-KR"));
// JJB 향후제거 shkim 2020-05-13 연계 테스트 체크
//logger.error("\n\n MMI SYNC Request : " + json.toString());
// log 기록
byte[] arg = new byte[request.getContentLength()]; byte[] arg = new byte[request.getContentLength()];
int resultSet =0;
int total = 0; int total = 0;
try { String jsonContent = "";
resultSet = sis.readLine(arg, 0, arg.length); int resultSet = sis.readLine(arg, 0, arg.length);
while(resultSet != -1) { while(resultSet != -1) {
total += resultSet; total += resultSet;
resultSet = sis.readLine(arg, total, 1024); resultSet = sis.readLine(arg, total, 1024);
} }
param.put("recvData", new String(arg, "EUC-KR")); jsonContent = new String(arg, "EUC-KR");
} catch(Exception e) { param.put("recvData", jsonContent);
logger.error("MessageSync.err - don't read the JSON File - " + new String(arg, "EUC-KR"), e);
param.put("recvData", "");
} JSONObject json = (JSONObject) JSONValue.parse(jsonContent);
//syncLayout(param, recvTime, json); //syncLayout(param, recvTime, json);
syncLayoutDjb(param, recvTime, json); syncLayoutDjb(param, recvTime, json);
// results.getChild("Result").setText("S".equals(param.get("prcssRslt"))?"True":"False");
// results.getChild("ResultMessage").setText("S".equals(param.get("prcssRslt"))?"성공":param.get("prcssRsltCmnt"));
// resultS = StringUtils.toXMLString(rDoc, true);
results.put("Result", "S".equals(param.get("prcssRslt"))?"True":"False"); results.put("Result", "S".equals(param.get("prcssRslt"))?"True":"False");
results.put("ResultMessage", "S".equals(param.get("prcssRslt"))?"성공":param.get("prcssRsltCmnt")); results.put("ResultMessage", "S".equals(param.get("prcssRslt"))?"성공":param.get("prcssRsltCmnt"));
} catch( Exception e ) { } catch( Exception e ) {
logger.error("", e); logger.error("", e);
try { try {
if( results != null ) { if( results != null ) {
// results.getChild("Result").setText("False");
// results.getChild("ResultMessage").setText( e.getMessage() );
// resultS = StringUtils.toXMLString(rDoc, true);
results.put("Result", "False"); results.put("Result", "False");
results.put("ResultMessage", e.getMessage() ); results.put("ResultMessage", e.getMessage());
} }
if( param.get("logPrcssSeqno") == null ) { if( param.get("logPrcssSeqno") == null ) {
param.put("logPrcssSeqno", UUIDGenerator.getUUID()); param.put("logPrcssSeqno", UUIDGenerator.getUUID());
param.put("ServiceName", "MessageSync"); param.put("serviceName", "MessageSync");
param.put("RecvAmndHMS", recvTime); param.put("recvAmndHMS", recvTime);
} }
param.put("PrcssRslt", "F"); param.put("prcssRslt", "F");
param.put("PrcssRsltCmnt", StringUtils.cuttings(CommonUtil.getArrayString(e.getStackTrace(), "\n"), 4000)[0]); param.put("prcssRsltCmnt", e.getMessage());
//param.put("prcssRsltCmnt", StringUtils.cuttings(CommonUtil.getArrayString(e.getStackTrace(), "\n"), 4000)[0]);
service.addLayoutSyncLog(param); service.addLayoutSyncLog(param);
} catch(Exception ee) { } catch(Exception ee) {
ee.printStackTrace(); ee.printStackTrace();
} }
@@ -11,4 +11,7 @@ public class LayoutSyncHistoryUISearch {
private String searchStartDate; private String searchStartDate;
private String searchEndDate; private String searchEndDate;
/* 처리 결과 (S/F, 공백=전체) */
private String searchPrcssRslt;
} }