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
@@ -37,6 +37,9 @@ public class LayoutSyncHistoryService extends AbstractDataService<LayoutSyncHist
if (StringUtils.isNotBlank(search.getSearchEndDate())) {
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();
@@ -3,7 +3,6 @@ package com.eactive.eai.rms.onl.manage.rule.layoutsync;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.StringReader;
import java.text.ParseException;
@@ -681,59 +680,46 @@ public class LayoutSyncController extends OnlBaseAnnotationController implements
// // 요청 전문
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()];
int resultSet =0;
int total = 0;
try {
resultSet = sis.readLine(arg, 0, arg.length);
while(resultSet != -1) {
total += resultSet;
resultSet = sis.readLine(arg, total, 1024);
}
String jsonContent = "";
int resultSet = sis.readLine(arg, 0, arg.length);
while(resultSet != -1) {
total += resultSet;
resultSet = sis.readLine(arg, total, 1024);
}
jsonContent = new String(arg, "EUC-KR");
param.put("recvData", jsonContent);
JSONObject json = (JSONObject) JSONValue.parse(jsonContent);
param.put("recvData", new String(arg, "EUC-KR"));
} catch(Exception e) {
logger.error("MessageSync.err - don't read the JSON File - " + new String(arg, "EUC-KR"), e);
param.put("recvData", "");
}
//syncLayout(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("ResultMessage", "S".equals(param.get("prcssRslt"))?"성공":param.get("prcssRsltCmnt"));
} catch( Exception e ) {
logger.error("", e);
try {
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("ResultMessage", e.getMessage() );
results.put("ResultMessage", e.getMessage());
}
if( param.get("logPrcssSeqno") == null ) {
param.put("logPrcssSeqno", UUIDGenerator.getUUID());
param.put("ServiceName", "MessageSync");
param.put("RecvAmndHMS", recvTime);
param.put("serviceName", "MessageSync");
param.put("recvAmndHMS", recvTime);
}
param.put("PrcssRslt", "F");
param.put("PrcssRsltCmnt", StringUtils.cuttings(CommonUtil.getArrayString(e.getStackTrace(), "\n"), 4000)[0]);
param.put("prcssRslt", "F");
param.put("prcssRsltCmnt", e.getMessage());
//param.put("prcssRsltCmnt", StringUtils.cuttings(CommonUtil.getArrayString(e.getStackTrace(), "\n"), 4000)[0]);
service.addLayoutSyncLog(param);
} catch(Exception ee) {
ee.printStackTrace();
}
@@ -11,4 +11,7 @@ public class LayoutSyncHistoryUISearch {
private String searchStartDate;
private String searchEndDate;
/* 처리 결과 (S/F, 공백=전체) */
private String searchPrcssRslt;
}