코드정리
This commit is contained in:
parent
03338e26c1
commit
f2570f3ed3
@ -177,8 +177,8 @@ public class ReadServiceImpl implements ReadService {
|
||||
readVO.setResultCode(resVO.getResultCode());
|
||||
readVO.setResultMessage(resVO.getResultMessage());
|
||||
|
||||
// 대출예약번호/일자 설정 (rsrvId)
|
||||
if(StringUtil.startsWithIgnoreCase(resVO.getResultCode(), "S")) {
|
||||
// 신청 처리 정보
|
||||
if(resVO.isSuccess()) {
|
||||
readVO.setHopeReqPridDtmFrom(StringUtil.formatDateStr(resVO.getInfoItem("hopeReqPridDtmFrom", ""),""));
|
||||
readVO.setHopeReqPridDtmTo(StringUtil.formatDateStr(resVO.getInfoItem("hopeReqPridDtmTo", ""),""));
|
||||
readVO.setReqId(resVO.getInfoItem("reqId", "")); // 열람신청번호
|
||||
|
||||
@ -56,7 +56,7 @@ public class DataApiResVO extends DataApiVO {
|
||||
*/
|
||||
public boolean isSuccess() {
|
||||
if(StringUtil.isEmpty(resultCode)) return false;
|
||||
return (resultCode.trim().charAt(0) == 'S');
|
||||
return (resultCode.trim().charAt(0) == 'S' || resultCode.trim().charAt(0) == 's');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -16,7 +16,7 @@ import nlib.util.StringUtil;
|
||||
* <pre>
|
||||
* @Class Name : DataApiReqVO.java
|
||||
*
|
||||
* @Description : RESTful API 요청 VO
|
||||
* @Description : RESTful API 송수신 공통 정보 VO
|
||||
*
|
||||
*
|
||||
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user