이지우 - 사건 종료일 일괄 수정 처리 작업 중
This commit is contained in:
parent
e86d8c1dd3
commit
efccea3344
@ -1,8 +1,11 @@
|
||||
package kcc.com.uss.ion.cu.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface CaseUtilService {
|
||||
|
||||
public String updateAutoEndDt(CaseUtilVO caseUtilVO) throws Exception;
|
||||
public CaseUtilVO selectCaseInfo(CaseUtilVO caseUtilVO) throws Exception;
|
||||
public void updateCaseEndDt(CaseUtilVO caseUtilVO) throws Exception;
|
||||
public List<String> selectAutoEndDtTarget() throws Exception;
|
||||
}
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
package kcc.com.uss.ion.cu.service.Impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.EgovAbstractDAO;
|
||||
@ -16,4 +18,8 @@ public class CaseUtilDAO extends EgovAbstractDAO {
|
||||
update("caseUtilDAO.updateCaseEndDt", caseUtilVO);
|
||||
}
|
||||
|
||||
public List<String> selectAutoEndDtTarget() throws Exception{
|
||||
return (List<String>) list("caseUtilDAO.selectAutoEndDtTarget");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -2,6 +2,7 @@ package kcc.com.uss.ion.cu.service.Impl;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@ -234,4 +235,9 @@ public class CaseUtilServiceImpl extends EgovAbstractServiceImpl implements Case
|
||||
public void updateCaseEndDt(CaseUtilVO caseUtilVO) throws Exception{
|
||||
caseUtilDAO.updateCaseEndDt(caseUtilVO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> selectAutoEndDtTarget() throws Exception{
|
||||
return caseUtilDAO.selectAutoEndDtTarget();
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
package kcc.com.uss.ion.cu.web;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
@ -44,4 +45,20 @@ public class CaseUtilController {
|
||||
return new ResponseEntity<>(returnData, HttpStatus.OK);
|
||||
}
|
||||
|
||||
@RequestMapping(value="/gtm/caseUtil/updateAutoEndDtAllCaseAjax.do")
|
||||
public ResponseEntity<?> updateAutoEndDtAllCaseAjax(HttpServletRequest request, HttpSession session) throws Exception{
|
||||
Map<String, String> returnData = new HashMap<String, String>();
|
||||
List<String> test = caseUtilService.selectAutoEndDtTarget();
|
||||
/*String failCaseNo = caseUtilService.updateAutoEndDt(caseUtilVO);
|
||||
if(failCaseNo.isEmpty()) {
|
||||
returnData.put("result", "success");
|
||||
}else {
|
||||
returnData.put("result", "fail");
|
||||
returnData.put("failCaseNo", failCaseNo);
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
return new ResponseEntity<>(returnData, HttpStatus.OK);
|
||||
}
|
||||
}
|
||||
|
||||
@ -598,8 +598,8 @@ public class BaseController {
|
||||
"5411000000".equals(emap.get("codeNo")) || "5511000000".equals(emap.get("codeNo")) ||
|
||||
"5611000000".equals(emap.get("codeNo")) || "5811000000".equals(emap.get("codeNo"))
|
||||
){
|
||||
params.put("sql", "nanumMasterEndDt2");
|
||||
bservice.update(params);
|
||||
/*params.put("sql", "nanumMasterEndDt2");
|
||||
bservice.update(params);*/
|
||||
}
|
||||
|
||||
if(emap2.get("mediationEndDt") == null || SeedUtils.setReplaceNull(emap2.get("mediationEndDt")).equals("")){
|
||||
@ -619,9 +619,9 @@ public class BaseController {
|
||||
}
|
||||
|
||||
pendencyPeriod = ((endDt.getTime() - caseDate.getTime()) / currDay) - appReqTerm +1;
|
||||
params.put("pendencyPeriod", pendencyPeriod);
|
||||
/*params.put("pendencyPeriod", pendencyPeriod);
|
||||
params.put("sql", "nanumMasterPendencyPeriodUp");
|
||||
bservice.update(params);
|
||||
bservice.update(params);*/
|
||||
|
||||
|
||||
}else if("5223000000".equals(emap.get("codeNo")) || "5323000000".equals(emap.get("codeNo"))
|
||||
|
||||
@ -65,4 +65,23 @@
|
||||
WHERE
|
||||
CASE_NO = #caseNo#
|
||||
</update>
|
||||
|
||||
<select id="caseUtilDAO.selectAutoEndDtTarget" resultClass="string">
|
||||
SELECT
|
||||
cm.CASE_NO AS caseNo
|
||||
FROM
|
||||
C_MASTER cm
|
||||
WHERE
|
||||
cm.MEDIATION_END_DT IS NULL
|
||||
AND cm.CASE_END = 'Y'
|
||||
AND EXISTS (
|
||||
SELECT 1
|
||||
FROM C_DLBRTMTR cd
|
||||
WHERE cd.CASE_NO = cm.CASE_NO
|
||||
UNION
|
||||
SELECT 1
|
||||
FROM C_ENDMTR ce
|
||||
WHERE ce.CASE_NO = cm.CASE_NO
|
||||
)
|
||||
</select>
|
||||
</sqlMap>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user