TextSense 상태 확인 버튼 수행 시 디비 데이터 상태값 업데이트 되도록 수정
This commit is contained in:
parent
215d327772
commit
8b723d8128
@ -19,4 +19,7 @@ public interface TextSenseService {
|
|||||||
//TextSense Callback 데이터 내용 업데이트 해주기
|
//TextSense Callback 데이터 내용 업데이트 해주기
|
||||||
public void updateTextSenseCallbackData(TextSenseVO textSenseVO) throws Exception;
|
public void updateTextSenseCallbackData(TextSenseVO textSenseVO) throws Exception;
|
||||||
|
|
||||||
|
//TextSense Status Update
|
||||||
|
public void updateTextSenseStatus(TextSenseVO textSenseVO) throws Exception;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -87,4 +87,15 @@ public class TextSenseDAO extends EgovAbstractDAO{
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//TextSense Status Update
|
||||||
|
public void updateTextSenseStatus(TextSenseVO textSenseVO) throws Exception{
|
||||||
|
try {
|
||||||
|
|
||||||
|
update("textSenseDAO.updateTextSenseStatus", textSenseVO);
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
System.out.println("updateTextSenseStatus Service DAO Error !!! " + e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -99,4 +99,17 @@ public class TextSenseServiceImpl implements TextSenseService{
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//TextSense Status Update
|
||||||
|
@Override
|
||||||
|
public void updateTextSenseStatus(TextSenseVO textSenseVO) throws Exception{
|
||||||
|
try {
|
||||||
|
|
||||||
|
textSenseDAO.updateTextSenseStatus(textSenseVO);
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
System.out.println("updateTextSenseStatus Service Impl Error !!! " + e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -376,6 +376,14 @@ public class TextSenseController {
|
|||||||
|
|
||||||
String resultStatus = resultJson.get("status").toString();
|
String resultStatus = resultJson.get("status").toString();
|
||||||
|
|
||||||
|
TextSenseVO resUpdateVO = new TextSenseVO();
|
||||||
|
|
||||||
|
resUpdateVO.setId(textSenseVO.getId());
|
||||||
|
resUpdateVO.setStatus(resultStatus);
|
||||||
|
|
||||||
|
|
||||||
|
textSenseService.updateTextSenseStatus(resUpdateVO);
|
||||||
|
|
||||||
modelAndView.addObject("result", "success");
|
modelAndView.addObject("result", "success");
|
||||||
modelAndView.addObject("textSenseSts", resultStatus);
|
modelAndView.addObject("textSenseSts", resultStatus);
|
||||||
|
|
||||||
|
|||||||
@ -131,5 +131,13 @@
|
|||||||
|
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
<update id="textSenseDAO.updateTextSenseStatus" parameterClass="TextSenseVO">
|
||||||
|
|
||||||
|
UPDATE ADR_TEXTSENSE_OCR SET
|
||||||
|
STATUS = #status#
|
||||||
|
WHERE ID = #id#
|
||||||
|
|
||||||
|
</update>
|
||||||
|
|
||||||
|
|
||||||
</sqlMap>
|
</sqlMap>
|
||||||
@ -91,7 +91,7 @@ function fncTextSenseStatus(id){
|
|||||||
if(textSenseSts == 'SUCCESS'){
|
if(textSenseSts == 'SUCCESS'){
|
||||||
|
|
||||||
alert("OCR 변환이 정상적으로 처리되었습니다.");
|
alert("OCR 변환이 정상적으로 처리되었습니다.");
|
||||||
return false;
|
location.reload();
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user