코드정리

This commit is contained in:
KNKIM 2021-12-17 16:00:27 +09:00
parent 03338e26c1
commit f2570f3ed3
3 changed files with 4 additions and 4 deletions

View File

@ -177,8 +177,8 @@ public class ReadServiceImpl implements ReadService {
readVO.setResultCode(resVO.getResultCode()); readVO.setResultCode(resVO.getResultCode());
readVO.setResultMessage(resVO.getResultMessage()); readVO.setResultMessage(resVO.getResultMessage());
// 대출예약번호/일자 설정 (rsrvId) // 신청 처리 정보
if(StringUtil.startsWithIgnoreCase(resVO.getResultCode(), "S")) { if(resVO.isSuccess()) {
readVO.setHopeReqPridDtmFrom(StringUtil.formatDateStr(resVO.getInfoItem("hopeReqPridDtmFrom", ""),"")); readVO.setHopeReqPridDtmFrom(StringUtil.formatDateStr(resVO.getInfoItem("hopeReqPridDtmFrom", ""),""));
readVO.setHopeReqPridDtmTo(StringUtil.formatDateStr(resVO.getInfoItem("hopeReqPridDtmTo", ""),"")); readVO.setHopeReqPridDtmTo(StringUtil.formatDateStr(resVO.getInfoItem("hopeReqPridDtmTo", ""),""));
readVO.setReqId(resVO.getInfoItem("reqId", "")); // 열람신청번호 readVO.setReqId(resVO.getInfoItem("reqId", "")); // 열람신청번호

View File

@ -56,7 +56,7 @@ public class DataApiResVO extends DataApiVO {
*/ */
public boolean isSuccess() { public boolean isSuccess() {
if(StringUtil.isEmpty(resultCode)) return false; if(StringUtil.isEmpty(resultCode)) return false;
return (resultCode.trim().charAt(0) == 'S'); return (resultCode.trim().charAt(0) == 'S' || resultCode.trim().charAt(0) == 's');
} }
} }

View File

@ -16,7 +16,7 @@ import nlib.util.StringUtil;
* <pre> * <pre>
* @Class Name : DataApiReqVO.java * @Class Name : DataApiReqVO.java
* *
* @Description : RESTful API 요청 VO * @Description : RESTful API 송수신 공통 정보 VO
* *
* *
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021) * @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)