상태 코드 처리 구현
This commit is contained in:
parent
44b50c772a
commit
23d7a25842
@ -107,20 +107,14 @@ public class CollectionVO extends PagingVO {
|
|||||||
protected String regId; /* 등록자ID */
|
protected String regId; /* 등록자ID */
|
||||||
protected String modId; /* 변경자ID */
|
protected String modId; /* 변경자ID */
|
||||||
protected String mUseYn; /* 관심여부 */
|
protected String mUseYn; /* 관심여부 */
|
||||||
protected String digitalReadYn; /**/
|
protected String digitalReadYn; /* 디지털열람여부 */
|
||||||
public String getDigitalReadYn() {
|
|
||||||
return digitalReadYn;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDigitalReadYn(String digitalReadYn) {
|
|
||||||
this.digitalReadYn = digitalReadYn;
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------
|
//--------------------------------------------
|
||||||
// 카트/관심 항목
|
// 카트/관심 항목
|
||||||
//--------------------------------------------
|
//--------------------------------------------
|
||||||
protected int mbInterestId; /* 관심 id */
|
protected int mbInterestId; /* 관심 id */
|
||||||
protected String mbInfoId; /* 회원 id */
|
protected String mbInfoId; /* 회원 id */
|
||||||
protected String mbCartId; /* 카트ID */
|
protected String mbCartId; /* 카트ID */
|
||||||
protected String cartTypeCd; /* 카트유형코드 */
|
protected String cartTypeCd; /* 카트유형코드 */
|
||||||
protected String cartProcDivCd; /* 카트처리구분코드 */
|
protected String cartProcDivCd; /* 카트처리구분코드 */
|
||||||
@ -134,8 +128,8 @@ public class CollectionVO extends PagingVO {
|
|||||||
protected String bookLtRvStatusNm; /* 대출상태구분코드명 */
|
protected String bookLtRvStatusNm; /* 대출상태구분코드명 */
|
||||||
protected String rsrvExpctDd; /* 대출예약만료일자 */
|
protected String rsrvExpctDd; /* 대출예약만료일자 */
|
||||||
protected String rtnDd; /* 반납일자 */
|
protected String rtnDd; /* 반납일자 */
|
||||||
protected String rsrvDivCd; /* 대출/예약 신청구분코드 */
|
protected String rsrvDivCd; /* 대출/예약 신청구분코드 */
|
||||||
protected String rsrvDivNm; /* 대출/예약 신청구분코드명 */
|
protected String rsrvDivNm; /* 대출/예약 신청구분코드명 */
|
||||||
|
|
||||||
//--------------------------------------------
|
//--------------------------------------------
|
||||||
// 열람관련
|
// 열람관련
|
||||||
@ -167,11 +161,34 @@ public class CollectionVO extends PagingVO {
|
|||||||
// 각종 상태 제공 서비스
|
// 각종 상태 제공 서비스
|
||||||
//---------------------------------------------
|
//---------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 기본 공개 여부를 리턴한다.
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public boolean isPub() {
|
||||||
|
|
||||||
|
// 사용여부
|
||||||
|
if(StringUtil.getString(useYn, "Y").equalsIgnoreCase("N")) return false;
|
||||||
|
|
||||||
|
// 공개여부 (공개, 부분공개 포함)
|
||||||
|
if(StringUtil.getString(openDivCd, "3").equals("3")) return false;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 방문열람 가능여부를 리턴한다.
|
* 방문열람 가능여부를 리턴한다.
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public boolean canRead() {
|
public boolean isAbleRead() {
|
||||||
|
|
||||||
|
// 기본공개
|
||||||
|
if(!isPub()) return false;
|
||||||
|
|
||||||
|
// 열람여부
|
||||||
|
if(StringUtil.getString(operReadRangeCd, "03").equals("03")) return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -179,7 +196,14 @@ public class CollectionVO extends PagingVO {
|
|||||||
* 대출 가능여부를 리턴한다.
|
* 대출 가능여부를 리턴한다.
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public boolean canRent() {
|
public boolean isAbleRent() {
|
||||||
|
|
||||||
|
// 기본공개
|
||||||
|
if(!isPub()) return false;
|
||||||
|
|
||||||
|
// 대출구분
|
||||||
|
if(StringUtil.getString(operOutRangeCd, "02").equals("02")) return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -187,7 +211,17 @@ public class CollectionVO extends PagingVO {
|
|||||||
* 온라인열람 가능여부를 리턴한다.
|
* 온라인열람 가능여부를 리턴한다.
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public boolean canOnline() {
|
public boolean isAbleOnline() {
|
||||||
|
|
||||||
|
// 기본공개
|
||||||
|
if(!isPub()) return false;
|
||||||
|
|
||||||
|
// 디지털열람여부
|
||||||
|
if(!StringUtil.getString(digitalReadYn, "N").equalsIgnoreCase("Y")) return false;
|
||||||
|
|
||||||
|
// 인터페이스ID 존재
|
||||||
|
if(StringUtil.isEmpty(interfaceId)) return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -195,7 +229,17 @@ public class CollectionVO extends PagingVO {
|
|||||||
* 기타 가능여부를 리턴한다.
|
* 기타 가능여부를 리턴한다.
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public boolean canOther() {
|
public boolean isAbleOther() {
|
||||||
|
|
||||||
|
// 기본공개
|
||||||
|
if(!isPub()) return false;
|
||||||
|
|
||||||
|
// 방문열람여부
|
||||||
|
if(isAbleRead()) return false;
|
||||||
|
|
||||||
|
// 대출여부
|
||||||
|
if(isAbleRent()) return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -203,7 +247,14 @@ public class CollectionVO extends PagingVO {
|
|||||||
* 현재 방문열람 가능여부를 리턴한다.
|
* 현재 방문열람 가능여부를 리턴한다.
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public boolean canReadNow() {
|
public boolean isAbleReadNow() {
|
||||||
|
|
||||||
|
// 방문열람 가능 자료
|
||||||
|
if(!isAbleRead()) return false;
|
||||||
|
|
||||||
|
// 이용상태코드 확인
|
||||||
|
if(!":01:04:05:06:".contains(":" + StringUtil.getString(useStatus, "00") + ":")) return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -211,15 +262,22 @@ public class CollectionVO extends PagingVO {
|
|||||||
* 현재 대출(신청 또는 예약) 가능여부를 리턴한다.
|
* 현재 대출(신청 또는 예약) 가능여부를 리턴한다.
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public boolean canRentNow() {
|
public boolean isAbleRentNow() {
|
||||||
return canRentAppNow() || canRentResNow();
|
return isAbleRentAppNow() || isAbleRentResNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 현재 대출 [신청] 가능여부를 리턴한다.
|
* 현재 대출 [신청] 가능여부를 리턴한다.
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public boolean canRentAppNow() {
|
public boolean isAbleRentAppNow() {
|
||||||
|
|
||||||
|
// 대출 가능 자료
|
||||||
|
if(!isAbleRent()) return false;
|
||||||
|
|
||||||
|
// 이용상태코드 확인
|
||||||
|
if(!":01:".contains(":" + StringUtil.getString(useStatus, "00") + ":")) return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -227,7 +285,14 @@ public class CollectionVO extends PagingVO {
|
|||||||
* 현재 대출 [예약] 가능여부를 리턴한다.
|
* 현재 대출 [예약] 가능여부를 리턴한다.
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public boolean canRentResNow() {
|
public boolean isAbleRentResNow() {
|
||||||
|
|
||||||
|
// 대출 가능 자료
|
||||||
|
if(!isAbleRent()) return false;
|
||||||
|
|
||||||
|
// 이용상태코드 확인
|
||||||
|
if(!":02:".contains(":" + StringUtil.getString(useStatus, "00") + ":")) return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -235,7 +300,14 @@ public class CollectionVO extends PagingVO {
|
|||||||
* 현재 온라인열람 가능여부를 리턴한다.
|
* 현재 온라인열람 가능여부를 리턴한다.
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public boolean canOnlineNow() {
|
public boolean isAbleOnlineNow() {
|
||||||
|
|
||||||
|
// 대출 가능 자료
|
||||||
|
if(!isAbleOnline()) return false;
|
||||||
|
|
||||||
|
// 이용상태코드 확인
|
||||||
|
if(!":07:".contains(":" + StringUtil.getString(useStatus, "00") + ":")) return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -952,5 +1024,12 @@ public class CollectionVO extends PagingVO {
|
|||||||
this.domainHostNm = domainHostNm;
|
this.domainHostNm = domainHostNm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getDigitalReadYn() {
|
||||||
|
return digitalReadYn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDigitalReadYn(String digitalReadYn) {
|
||||||
|
this.digitalReadYn = digitalReadYn;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user