2022-11-29 14:07 조정종결목록 상세에서 리스트로 이동시 페이지 오류 수정
This commit is contained in:
parent
f2169f87e2
commit
026f66f827
@ -124,9 +124,20 @@ public class AdjClsMgrController {
|
|||||||
@RequestMapping(value = "/kccadr/adjclsmgr/adjCloseMangeList.do")
|
@RequestMapping(value = "/kccadr/adjclsmgr/adjCloseMangeList.do")
|
||||||
// public String adjCloseMangeList(@ModelAttribute("adjClsMgrVO") AdjClsMgrVO adjClsMgrVO, ModelMap model) throws Exception {
|
// public String adjCloseMangeList(@ModelAttribute("adjClsMgrVO") AdjClsMgrVO adjClsMgrVO, ModelMap model) throws Exception {
|
||||||
public String search(@RequestParam Map<String, Object> commandMap, ModelMap model) throws Exception {
|
public String search(@RequestParam Map<String, Object> commandMap, ModelMap model) throws Exception {
|
||||||
|
try{
|
||||||
log.debug("commandMap : {}", commandMap);
|
log.debug("commandMap : {}", commandMap);
|
||||||
log.debug("commandMap.isEmpty() : {}", commandMap.isEmpty());
|
log.debug("commandMap.isEmpty() : {}", commandMap.isEmpty());
|
||||||
|
|
||||||
|
//기본값설정
|
||||||
|
commandMap.put("rangeView", "kcc_adr_advc");
|
||||||
|
String searchWrd = (String) commandMap.get("q");
|
||||||
|
|
||||||
|
if (searchWrd==null) {
|
||||||
|
commandMap.put("q", ":");
|
||||||
|
searchWrd = (String) commandMap.get("q");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if(commandMap.isEmpty()) {
|
if(commandMap.isEmpty()) {
|
||||||
commandMap.put("q", ":");
|
commandMap.put("q", ":");
|
||||||
commandMap.put("rangeView", "kcc_adr_advc");
|
commandMap.put("rangeView", "kcc_adr_advc");
|
||||||
@ -135,8 +146,6 @@ public class AdjClsMgrController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
String searchWrd = (String) commandMap.get("q");
|
|
||||||
|
|
||||||
log.info(" + searchWrd :: [{}]", searchWrd);
|
log.info(" + searchWrd :: [{}]", searchWrd);
|
||||||
if (searchWrd!= null && !("").equals(searchWrd)) {
|
if (searchWrd!= null && !("").equals(searchWrd)) {
|
||||||
searchService.search(commandMap, model);
|
searchService.search(commandMap, model);
|
||||||
@ -169,18 +178,46 @@ public class AdjClsMgrController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String q = (String) commandMap.get("q");
|
String q = (String) commandMap.get("q");
|
||||||
|
try {
|
||||||
if(q.length() == 1 && ":".equals(q))
|
if(q.length() == 1 && ":".equals(q))
|
||||||
{
|
{
|
||||||
commandMap.put("q", "");
|
commandMap.put("q", "");
|
||||||
}
|
}
|
||||||
|
}catch(Exception ex) {
|
||||||
|
commandMap.put("q", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
model.addAttribute("commandMap", commandMap);
|
model.addAttribute("commandMap", commandMap);
|
||||||
model.addAttribute("totalRecordCount", totalRecordCount);
|
model.addAttribute("totalRecordCount", totalRecordCount);
|
||||||
|
}catch(Exception ex) {
|
||||||
|
ex.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return "/kccadr/adjclsmgr/adjCloseMangeList";
|
return "/kccadr/adjclsmgr/adjCloseMangeList";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 서류 발급 요청 승인/반려
|
||||||
|
*/
|
||||||
|
//@RequestMapping("/kccadr/adjclsmgr/docIssReqSave.do")
|
||||||
|
@RequestMapping(value = "/kccadr/adjclsmgr/solrDataImportAjax.do")
|
||||||
|
public ModelAndView solrDataImport(
|
||||||
|
HttpServletRequest request
|
||||||
|
) throws Exception {
|
||||||
|
ModelAndView modelAndView = new ModelAndView();
|
||||||
|
modelAndView.setViewName("jsonView");
|
||||||
|
|
||||||
|
//core name data import
|
||||||
|
searchService.coreImport("kcc_adr_advc");
|
||||||
|
|
||||||
|
modelAndView.addObject("result", KccadrConstants.SUCCESS);
|
||||||
|
|
||||||
|
return modelAndView;
|
||||||
|
}
|
||||||
|
|
||||||
@RequestMapping(value = "/kccadr/adjclsmgr/adjCloseMangeDetail.do")
|
@RequestMapping(value = "/kccadr/adjclsmgr/adjCloseMangeDetail.do")
|
||||||
public String adjCloseMangeDetail(@ModelAttribute("info") PgrCmmVO cmmVO, ModelMap model) throws Exception {
|
public String adjCloseMangeDetail(@ModelAttribute("info") PgrCmmVO cmmVO, ModelMap model) throws Exception {
|
||||||
|
|||||||
@ -183,6 +183,12 @@ public class SearchServiceImpl implements InitializingBean, SearchService {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void coreImport(String p_coreName) throws Exception {
|
||||||
|
this.solrDataImport(p_coreName);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
private List<Map<String, Object>> getResultList(SOLR_CORE core, Set<String> fieldSet, Map<String, Object> commandMap){
|
private List<Map<String, Object>> getResultList(SOLR_CORE core, Set<String> fieldSet, Map<String, Object> commandMap){
|
||||||
List<Map<String, Object>> resultList = new ArrayList<Map<String, Object>>();
|
List<Map<String, Object>> resultList = new ArrayList<Map<String, Object>>();
|
||||||
|
|
||||||
@ -241,6 +247,37 @@ public class SearchServiceImpl implements InitializingBean, SearchService {
|
|||||||
return resultList;
|
return resultList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//solr dataimport 용
|
||||||
|
private void solrDataImport(
|
||||||
|
String p_coreName
|
||||||
|
){
|
||||||
|
//Globals.Solr.url=http://localhost:8983/solr
|
||||||
|
String serverUrl = SERVER_URL.endsWith("/") ? SERVER_URL : SERVER_URL + "/";
|
||||||
|
serverUrl = serverUrl + p_coreName;
|
||||||
|
|
||||||
|
HttpSolrClient client = null;
|
||||||
|
SolrQuery query = new SolrQuery();
|
||||||
|
query.set("qt", "/dataimport");
|
||||||
|
query.set("command", "full-import");
|
||||||
|
|
||||||
|
log.debug(" ++ serverUrl :: {} , query :: {}", serverUrl, query);
|
||||||
|
try {
|
||||||
|
client = new HttpSolrClient(serverUrl);
|
||||||
|
client.setConnectionTimeout(1000);
|
||||||
|
QueryResponse rsp = client.query(query);
|
||||||
|
|
||||||
|
System.out.println("rsp.getElapsedTime()");
|
||||||
|
System.out.println(rsp.getElapsedTime());
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
System.out.println("Exception Occured!!!");
|
||||||
|
e.printStackTrace();
|
||||||
|
} finally {
|
||||||
|
IOUtils.closeQuietly(client);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
private SolrQuery makeQuery(SOLR_CORE core, Map<String, Object> commandMap, Set<String> fieldSet){
|
private SolrQuery makeQuery(SOLR_CORE core, Map<String, Object> commandMap, Set<String> fieldSet){
|
||||||
SolrQuery query = new SolrQuery();
|
SolrQuery query = new SolrQuery();
|
||||||
|
|
||||||
|
|||||||
@ -34,4 +34,6 @@ public interface SearchService {
|
|||||||
|
|
||||||
public void search(Map<String, Object> commandMap, ModelMap model) throws Exception;
|
public void search(Map<String, Object> commandMap, ModelMap model) throws Exception;
|
||||||
|
|
||||||
|
public void coreImport(String p_coreName) throws Exception;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1045,7 +1045,8 @@
|
|||||||
<!-- <td><p>접수연월일 + 3개월</p></td> -->
|
<!-- <td><p>접수연월일 + 3개월</p></td> -->
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<c:if test="${info.statCd eq '309010' }">
|
|
||||||
|
<c:if test="${info.statCd eq '400000'}">
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row" class=""><p>조정부</p></th>
|
<th scope="row" class=""><p>조정부</p></th>
|
||||||
<td>
|
<td>
|
||||||
@ -1063,8 +1064,32 @@
|
|||||||
<th scope="row" class=""><p>장소</p></th>
|
<th scope="row" class=""><p>장소</p></th>
|
||||||
<td><p><c:out value="${info.appPlace}"/></p></td>
|
<td><p><c:out value="${info.appPlace}"/></p></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th>조정 조사관</th>
|
||||||
|
<td>
|
||||||
|
<p>
|
||||||
|
<c:out value="${info.adrAdmNm }"></c:out>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<th>진행상태</th>
|
||||||
|
<td>
|
||||||
|
<p>
|
||||||
|
<kc:code codeId="CC013" code="${info.sbmtTy}"/>
|
||||||
|
|
||||||
|
<!-- <kc:code codeId="CC041" code="${info.statCd}"/> -->
|
||||||
|
<!-- <c:out value="${info.statCd }"></c:out> -->
|
||||||
|
<!-- <c:if test="${not empty sbmtStatus}"> -->
|
||||||
|
<!-- (<kc:code codeId="CC041" code="${sbmtStatus}"/> 결재 대기 중) -->
|
||||||
|
<!-- </c:if> -->
|
||||||
|
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</c:if>
|
</c:if>
|
||||||
|
|
||||||
|
|
||||||
<c:if test="${info.sbmtTy eq KccadrConstants.ADR_CLOSE_APPR_REQ}">
|
<c:if test="${info.sbmtTy eq KccadrConstants.ADR_CLOSE_APPR_REQ}">
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row" class=""><p>조정결과</p></th>
|
<th scope="row" class=""><p>조정결과</p></th>
|
||||||
|
|||||||
@ -973,6 +973,16 @@ function getPageUrl(idx) {
|
|||||||
<%-- <th scope="row" class=""><p>장소</p></th>
|
<%-- <th scope="row" class=""><p>장소</p></th>
|
||||||
<td><p><c:out value="${info.appPlace}"/></p></td> --%>
|
<td><p><c:out value="${info.appPlace}"/></p></td> --%>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th colspan="2">조정 조사관</th>
|
||||||
|
<td colspan="3">
|
||||||
|
<p>
|
||||||
|
<c:out value="${info.adrAdmNm }"></c:out>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<%-- 조정기일 통지서요청(205010) 이후 결재 요청일 경우 조정기일 정보 노출_이준호_220222 --%>
|
<%-- 조정기일 통지서요청(205010) 이후 결재 요청일 경우 조정기일 정보 노출_이준호_220222 --%>
|
||||||
<c:if test="${info.sbmtTy*1 ge KccadrConstants.ADR_APP_NTC_REQ*1}"><%-- 205010 --%>
|
<c:if test="${info.sbmtTy*1 ge KccadrConstants.ADR_APP_NTC_REQ*1}"><%-- 205010 --%>
|
||||||
<c:forEach var="list" begin="0" end="4" varStatus="listStatus">
|
<c:forEach var="list" begin="0" end="4" varStatus="listStatus">
|
||||||
@ -1037,14 +1047,14 @@ function getPageUrl(idx) {
|
|||||||
</c:if>
|
</c:if>
|
||||||
<c:if test="${info.sbmtTy eq KccadrConstants.ADR_CLOSE_APPR_REQ}">
|
<c:if test="${info.sbmtTy eq KccadrConstants.ADR_CLOSE_APPR_REQ}">
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row" class=""><p>조정결과</p></th>
|
<th colspan="2" scope="row" class=""><p>조정결과</p></th>
|
||||||
<th>
|
<td>
|
||||||
<p>
|
<p>
|
||||||
<%-- <c:out value='${info.adrResult}' /> --%>
|
<%-- <c:out value='${info.adrResult}' /> --%>
|
||||||
<%-- <kc:code codeId="CC023" code="${info.adrResult}"/> --%>
|
<%-- <kc:code codeId="CC023" code="${info.adrResult}"/> --%>
|
||||||
${endResult}
|
${endResult}
|
||||||
</p>
|
</p>
|
||||||
</th>
|
</td>
|
||||||
<td colspan="3">
|
<td colspan="3">
|
||||||
<p>
|
<p>
|
||||||
${memoVO.adrAdmMemo}
|
${memoVO.adrAdmMemo}
|
||||||
|
|||||||
@ -52,9 +52,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function fncGoList(){
|
function fncGoList(){
|
||||||
var detailForm = document.detailForm ;
|
var listForm = document.listForm ;
|
||||||
detailForm.action = "<c:url value='/kccadr/adjclsmgr/adjCloseMangeList.do'/>";
|
listForm.action = "<c:url value='/kccadr/adjclsmgr/adjCloseMangeList.do'/>";
|
||||||
detailForm.submit();
|
listForm.submit();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 기일통지서, 기일변경통지서 상세페이지 이동
|
// 기일통지서, 기일변경통지서 상세페이지 이동
|
||||||
@ -129,6 +129,14 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<form:form id="listForm" name="listForm" commandName="cmmVO" method="post" >
|
||||||
|
|
||||||
|
<input type="hidden" name="searchKeyword" value=""/>
|
||||||
|
<input type="hidden" name="pageIndex" value="<c:out value='${info.pageIndex}'/>"/>
|
||||||
|
<input type="hidden" name="searchSortCnd" value="<c:out value="${info.searchSortCnd}" />" />
|
||||||
|
<input type="hidden" name="searchSortOrd" value="<c:out value="${info.searchSortOrd}" />" />
|
||||||
|
<input type="hidden" name="pageUnit" value="<c:out value="${info.pageUnit}" />" />
|
||||||
|
</form:form>
|
||||||
<form:form id="detailForm" name="detailForm" commandName="cmmVO" method="post" >
|
<form:form id="detailForm" name="detailForm" commandName="cmmVO" method="post" >
|
||||||
|
|
||||||
<input type="hidden" name="searchKeyword" value=""/>
|
<input type="hidden" name="searchKeyword" value=""/>
|
||||||
|
|||||||
@ -275,9 +275,13 @@
|
|||||||
<!-- //하단 버튼 -->
|
<!-- //하단 버튼 -->
|
||||||
|
|
||||||
<!-- page -->
|
<!-- page -->
|
||||||
|
<c:if test="${not empty paginationInfo}">
|
||||||
|
|
||||||
<div class="page">
|
<div class="page">
|
||||||
<ui:pagination paginationInfo = "${paginationInfo}" type="image" jsFunction="linkPage" />
|
<ui:pagination paginationInfo = "${paginationInfo}" type="image" jsFunction="linkPage" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</c:if>
|
||||||
<!-- //page -->
|
<!-- //page -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -131,11 +131,12 @@ function goToEntDetailNotice(){
|
|||||||
<p><c:out value="${info.adrCost}" />
|
<p><c:out value="${info.adrCost}" />
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
<th>종결상태</th>
|
<th>장소</th>
|
||||||
<td>
|
<td>
|
||||||
<p><kc:code codeId="CC013" code="${info.finalStatCd}"/>
|
<p><c:out value="${info.appPlace}"/>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>조정부</th>
|
<th>조정부</th>
|
||||||
@ -153,11 +154,16 @@ function goToEntDetailNotice(){
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>조정 조사관</th>
|
<th>조정 조사관</th>
|
||||||
<td colspan="3">
|
<td>
|
||||||
<p>
|
<p>
|
||||||
<c:out value="${info.adrAdmNm}" />
|
<c:out value="${info.adrAdmNm}" />
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
|
<th>종결상태</th>
|
||||||
|
<td>
|
||||||
|
<p><kc:code codeId="CC013" code="${info.finalStatCd}"/>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@ -33,6 +33,13 @@
|
|||||||
<link rel="stylesheet" href="/kccadrPb/adm/css/dashboard.css">
|
<link rel="stylesheet" href="/kccadrPb/adm/css/dashboard.css">
|
||||||
<script type="text/javaScript" language="javascript">
|
<script type="text/javaScript" language="javascript">
|
||||||
|
|
||||||
|
$(document).ready(function(){
|
||||||
|
|
||||||
|
fncAvoideReg();
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
//상세화면 - 조정진행관리, 조정종결관리 구분
|
//상세화면 - 조정진행관리, 조정종결관리 구분
|
||||||
function fncGoDetail(adrSeq, adrSn, type) {
|
function fncGoDetail(adrSeq, adrSn, type) {
|
||||||
if(type == 'C'){ //조정 처리 현황
|
if(type == 'C'){ //조정 처리 현황
|
||||||
@ -53,6 +60,30 @@
|
|||||||
listForm.submit();
|
listForm.submit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function fncAvoideReg() {
|
||||||
|
//var data = new FormData();
|
||||||
|
//data.append('avoidReqYn', chk)
|
||||||
|
$.ajax({
|
||||||
|
type : "POST",
|
||||||
|
url : "/kccadr/adjclsmgr/solrDataImportAjax.do",
|
||||||
|
data : {"aaa":"bbb"},
|
||||||
|
dataType : 'json',
|
||||||
|
async : false,
|
||||||
|
/*
|
||||||
|
processData : false,
|
||||||
|
contentType : false,
|
||||||
|
cache : false,
|
||||||
|
*/
|
||||||
|
success : function(returnData, status) {
|
||||||
|
console.log("DO WELL : data import");
|
||||||
|
|
||||||
|
},
|
||||||
|
error : function(e) {
|
||||||
|
console.log("ERROR : data import", e);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user