관심자료 페이지 개발 및 관심추가기능 소장자료 컨트롤러와 분리
This commit is contained in:
parent
1e089133a3
commit
a1b237ca27
@ -7,6 +7,16 @@ public class PagingVO {
|
|||||||
int pageIndex = 1; /* 페이지 번호 */
|
int pageIndex = 1; /* 페이지 번호 */
|
||||||
int pageSize = DEFAULT_PAGE_SIZE; /* 페이지 크기 (1페이지당 보여줄 자료건수) */
|
int pageSize = DEFAULT_PAGE_SIZE; /* 페이지 크기 (1페이지당 보여줄 자료건수) */
|
||||||
int totRecordCount; /* 총건수 */
|
int totRecordCount; /* 총건수 */
|
||||||
|
int pageStart = 0; /* 시작번호 (limit용)*/
|
||||||
|
|
||||||
|
|
||||||
|
public int getPageStart() {
|
||||||
|
return pageStart;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPageStart(int pageStart) {
|
||||||
|
this.pageStart = pageStart;
|
||||||
|
}
|
||||||
|
|
||||||
public int getPageIndex() {
|
public int getPageIndex() {
|
||||||
return pageIndex;
|
return pageIndex;
|
||||||
|
|||||||
10
src/main/java/nlib/col/service/CartService.java
Normal file
10
src/main/java/nlib/col/service/CartService.java
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
package nlib.col.service;
|
||||||
|
|
||||||
|
import nlib.restful.service.DataApiReqVO;
|
||||||
|
import nlib.restful.service.DataApiResVO;
|
||||||
|
|
||||||
|
public interface CartService
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -1,6 +1,8 @@
|
|||||||
|
|
||||||
package nlib.col.service;
|
package nlib.col.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import nlib.restful.service.DataApiReqVO;
|
import nlib.restful.service.DataApiReqVO;
|
||||||
import nlib.restful.service.DataApiResVO;
|
import nlib.restful.service.DataApiResVO;
|
||||||
|
|
||||||
@ -18,9 +20,8 @@ public interface CollectionService
|
|||||||
|
|
||||||
public DataApiResVO selectItemInfo(DataApiReqVO reqVO);
|
public DataApiResVO selectItemInfo(DataApiReqVO reqVO);
|
||||||
|
|
||||||
public DataApiResVO listInterests(DataApiReqVO reqVO);
|
public RisVO selectRisInfo(RisVO vo);
|
||||||
|
|
||||||
public DataApiResVO deleteInterest(DataApiReqVO reqVO);
|
|
||||||
|
|
||||||
|
public List<DeptVO> selectOrgList(CollectionVO vo);
|
||||||
|
|
||||||
}
|
}
|
||||||
100
src/main/java/nlib/col/service/CollectionVO.java
Normal file
100
src/main/java/nlib/col/service/CollectionVO.java
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
package nlib.col.service;
|
||||||
|
|
||||||
|
import nlib.cmm.service.PagingVO;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* @Class Name : CollectionVO.java
|
||||||
|
*
|
||||||
|
* @Description : 소장자료 관련 VO
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
||||||
|
*
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* @ ------------ -------- ---------------------------
|
||||||
|
* @ 수정일 수정자 수정내용
|
||||||
|
* @ ------------ -------- ---------------------------
|
||||||
|
* @ 2021. 9. 23. JSYOO 최초 생성
|
||||||
|
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @author 이씨플라자 * DIGITALSHIP JSYOO
|
||||||
|
* @since 2021. 9. 28.
|
||||||
|
* @version 1.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class CollectionVO extends PagingVO {
|
||||||
|
|
||||||
|
private String masterId; /* 마스터id */
|
||||||
|
private int mbInterestId; /* 관심 id */
|
||||||
|
private String mbInfoId; /* 회원 id */
|
||||||
|
private String title; /* 제목 */
|
||||||
|
private String rprsThumbUrl; /* 대표썸네일URL */
|
||||||
|
private String useYn; /* 사용여부 */
|
||||||
|
private String regDd; /* 등록일자 */
|
||||||
|
private String mngOrgNm; /* 관리처리과명 */
|
||||||
|
private String mngOrgCd; /* 관리처리과코드 */
|
||||||
|
|
||||||
|
public String getMasterId() {
|
||||||
|
return masterId;
|
||||||
|
}
|
||||||
|
public void setMasterId(String masterId) {
|
||||||
|
this.masterId = masterId;
|
||||||
|
}
|
||||||
|
public int getMbInterestId() {
|
||||||
|
return mbInterestId;
|
||||||
|
}
|
||||||
|
public void setMbInterestId(int mbInterestId) {
|
||||||
|
this.mbInterestId = mbInterestId;
|
||||||
|
}
|
||||||
|
public void setMbInterestId(String mbInterestId) {
|
||||||
|
this.mbInterestId = Integer.parseInt(mbInterestId);
|
||||||
|
}
|
||||||
|
public String getMbInfoId() {
|
||||||
|
return mbInfoId;
|
||||||
|
}
|
||||||
|
public void setMbInfoId(String mbInfoId) {
|
||||||
|
this.mbInfoId = mbInfoId;
|
||||||
|
}
|
||||||
|
public String getTitle() {
|
||||||
|
return title;
|
||||||
|
}
|
||||||
|
public void setTitle(String title) {
|
||||||
|
this.title = title;
|
||||||
|
}
|
||||||
|
public String getRprsThumbUrl() {
|
||||||
|
return rprsThumbUrl;
|
||||||
|
}
|
||||||
|
public void setRprsThumbUrl(String rprsThumbUrl) {
|
||||||
|
this.rprsThumbUrl = rprsThumbUrl;
|
||||||
|
}
|
||||||
|
public String getUseYn() {
|
||||||
|
return useYn;
|
||||||
|
}
|
||||||
|
public void setUseYn(String useYn) {
|
||||||
|
this.useYn = useYn;
|
||||||
|
}
|
||||||
|
public String getRegDd() {
|
||||||
|
return regDd;
|
||||||
|
}
|
||||||
|
public void setRegDd(String regDd) {
|
||||||
|
this.regDd = regDd;
|
||||||
|
}
|
||||||
|
public String getMngOrgNm() {
|
||||||
|
return mngOrgNm;
|
||||||
|
}
|
||||||
|
public void setMngOrgNm(String mngOrgNm) {
|
||||||
|
this.mngOrgNm = mngOrgNm;
|
||||||
|
}
|
||||||
|
public String getMngOrgCd() {
|
||||||
|
return mngOrgCd;
|
||||||
|
}
|
||||||
|
public void setMngOrgCd(String mngOrgCd) {
|
||||||
|
this.mngOrgCd = mngOrgCd;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
244
src/main/java/nlib/col/service/DeptVO.java
Normal file
244
src/main/java/nlib/col/service/DeptVO.java
Normal file
@ -0,0 +1,244 @@
|
|||||||
|
package nlib.col.service;
|
||||||
|
|
||||||
|
import nlib.cmm.service.PagingVO;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* @Class Name : DeptVO.java
|
||||||
|
*
|
||||||
|
* @Description : 부서(문화원) VO
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
||||||
|
*
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* @ ------------ -------- ---------------------------
|
||||||
|
* @ 수정일 수정자 수정내용
|
||||||
|
* @ ------------ -------- ---------------------------
|
||||||
|
* @ 2021. 9. 30. JSYOO 최초 생성
|
||||||
|
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @author 이씨플라자 * DIGITALSHIP JSYOO
|
||||||
|
* @since 2021. 9. 30.
|
||||||
|
* @version 1.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class DeptVO {
|
||||||
|
private String deptSeq; /* 조직코드 */
|
||||||
|
private String orgCd; /* 처리과코드 */
|
||||||
|
private String deptNm; /* 조직명 */
|
||||||
|
private String deptAbbrNm; /* 조직약칭 */
|
||||||
|
private String hupperDeptSeq; /* 최상위조직코드 */
|
||||||
|
private String upDeptSeq; /* 상위조직코드 */
|
||||||
|
private String topDeptYn; /* 최상위여부 */
|
||||||
|
private String deptLv; /* 기관레벨-차수 */
|
||||||
|
private String sortSeq; /* 서열 */
|
||||||
|
private String closeFlag; /* 폐지여부(0:미폐지, 1:폐지) */
|
||||||
|
private String chngRsn; /* 변경사유 */
|
||||||
|
private String applyStartYmd; /* 적용시작일 */
|
||||||
|
private String applyCloseYmd; /* 적용종료일 */
|
||||||
|
private String syncYn; /* RMS연계여부 */
|
||||||
|
private String useYn; /* 사용여부 */
|
||||||
|
private String regId; /* 등록자 */
|
||||||
|
private String regDd; /* 등록일자 */
|
||||||
|
private String modId; /* 수정자 */
|
||||||
|
private String modDd; /* 수정일자 */
|
||||||
|
private String regionCd; /* 지역 */
|
||||||
|
private String remark; /* 비고 */
|
||||||
|
private String cloudId; /* 클라우드ID */
|
||||||
|
private String zipCode; /* 우편번호 */
|
||||||
|
private String address; /* 주소 */
|
||||||
|
private String addressDetail; /* 상세주소 */
|
||||||
|
private String phoneNo; /* 전화번호 */
|
||||||
|
private String faxNo; /* 팩스번호 */
|
||||||
|
private String latitude; /* 위도 */
|
||||||
|
private String longitude; /* 경도 */
|
||||||
|
private String domainHostNm; /* 도메인호스트명 */
|
||||||
|
|
||||||
|
public String getDeptSeq() {
|
||||||
|
return deptSeq;
|
||||||
|
}
|
||||||
|
public void setDeptSeq(String deptSeq) {
|
||||||
|
this.deptSeq = deptSeq;
|
||||||
|
}
|
||||||
|
public String getOrgCd() {
|
||||||
|
return orgCd;
|
||||||
|
}
|
||||||
|
public void setOrgCd(String orgCd) {
|
||||||
|
this.orgCd = orgCd;
|
||||||
|
}
|
||||||
|
public String getDeptNm() {
|
||||||
|
return deptNm;
|
||||||
|
}
|
||||||
|
public void setDeptNm(String deptNm) {
|
||||||
|
this.deptNm = deptNm;
|
||||||
|
}
|
||||||
|
public String getDeptAbbrNm() {
|
||||||
|
return deptAbbrNm;
|
||||||
|
}
|
||||||
|
public void setDeptAbbrNm(String deptAbbrNm) {
|
||||||
|
this.deptAbbrNm = deptAbbrNm;
|
||||||
|
}
|
||||||
|
public String getHupperDeptSeq() {
|
||||||
|
return hupperDeptSeq;
|
||||||
|
}
|
||||||
|
public void setHupperDeptSeq(String hupperDeptSeq) {
|
||||||
|
this.hupperDeptSeq = hupperDeptSeq;
|
||||||
|
}
|
||||||
|
public String getUpDeptSeq() {
|
||||||
|
return upDeptSeq;
|
||||||
|
}
|
||||||
|
public void setUpDeptSeq(String upDeptSeq) {
|
||||||
|
this.upDeptSeq = upDeptSeq;
|
||||||
|
}
|
||||||
|
public String getTopDeptYn() {
|
||||||
|
return topDeptYn;
|
||||||
|
}
|
||||||
|
public void setTopDeptYn(String topDeptYn) {
|
||||||
|
this.topDeptYn = topDeptYn;
|
||||||
|
}
|
||||||
|
public String getDeptLv() {
|
||||||
|
return deptLv;
|
||||||
|
}
|
||||||
|
public void setDeptLv(String deptLv) {
|
||||||
|
this.deptLv = deptLv;
|
||||||
|
}
|
||||||
|
public String getSortSeq() {
|
||||||
|
return sortSeq;
|
||||||
|
}
|
||||||
|
public void setSortSeq(String sortSeq) {
|
||||||
|
this.sortSeq = sortSeq;
|
||||||
|
}
|
||||||
|
public String getCloseFlag() {
|
||||||
|
return closeFlag;
|
||||||
|
}
|
||||||
|
public void setCloseFlag(String closeFlag) {
|
||||||
|
this.closeFlag = closeFlag;
|
||||||
|
}
|
||||||
|
public String getChngRsn() {
|
||||||
|
return chngRsn;
|
||||||
|
}
|
||||||
|
public void setChngRsn(String chngRsn) {
|
||||||
|
this.chngRsn = chngRsn;
|
||||||
|
}
|
||||||
|
public String getApplyStartYmd() {
|
||||||
|
return applyStartYmd;
|
||||||
|
}
|
||||||
|
public void setApplyStartYmd(String applyStartYmd) {
|
||||||
|
this.applyStartYmd = applyStartYmd;
|
||||||
|
}
|
||||||
|
public String getApplyCloseYmd() {
|
||||||
|
return applyCloseYmd;
|
||||||
|
}
|
||||||
|
public void setApplyCloseYmd(String applyCloseYmd) {
|
||||||
|
this.applyCloseYmd = applyCloseYmd;
|
||||||
|
}
|
||||||
|
public String getSyncYn() {
|
||||||
|
return syncYn;
|
||||||
|
}
|
||||||
|
public void setSyncYn(String syncYn) {
|
||||||
|
this.syncYn = syncYn;
|
||||||
|
}
|
||||||
|
public String getUseYn() {
|
||||||
|
return useYn;
|
||||||
|
}
|
||||||
|
public void setUseYn(String useYn) {
|
||||||
|
this.useYn = useYn;
|
||||||
|
}
|
||||||
|
public String getRegId() {
|
||||||
|
return regId;
|
||||||
|
}
|
||||||
|
public void setRegId(String regId) {
|
||||||
|
this.regId = regId;
|
||||||
|
}
|
||||||
|
public String getRegDd() {
|
||||||
|
return regDd;
|
||||||
|
}
|
||||||
|
public void setRegDd(String regDd) {
|
||||||
|
this.regDd = regDd;
|
||||||
|
}
|
||||||
|
public String getModId() {
|
||||||
|
return modId;
|
||||||
|
}
|
||||||
|
public void setModId(String modId) {
|
||||||
|
this.modId = modId;
|
||||||
|
}
|
||||||
|
public String getModDd() {
|
||||||
|
return modDd;
|
||||||
|
}
|
||||||
|
public void setModDd(String modDd) {
|
||||||
|
this.modDd = modDd;
|
||||||
|
}
|
||||||
|
public String getRegionCd() {
|
||||||
|
return regionCd;
|
||||||
|
}
|
||||||
|
public void setRegionCd(String regionCd) {
|
||||||
|
this.regionCd = regionCd;
|
||||||
|
}
|
||||||
|
public String getRemark() {
|
||||||
|
return remark;
|
||||||
|
}
|
||||||
|
public void setRemark(String remark) {
|
||||||
|
this.remark = remark;
|
||||||
|
}
|
||||||
|
public String getCloudId() {
|
||||||
|
return cloudId;
|
||||||
|
}
|
||||||
|
public void setCloudId(String cloudId) {
|
||||||
|
this.cloudId = cloudId;
|
||||||
|
}
|
||||||
|
public String getZipCode() {
|
||||||
|
return zipCode;
|
||||||
|
}
|
||||||
|
public void setZipCode(String zipCode) {
|
||||||
|
this.zipCode = zipCode;
|
||||||
|
}
|
||||||
|
public String getAddress() {
|
||||||
|
return address;
|
||||||
|
}
|
||||||
|
public void setAddress(String address) {
|
||||||
|
this.address = address;
|
||||||
|
}
|
||||||
|
public String getAddressDetail() {
|
||||||
|
return addressDetail;
|
||||||
|
}
|
||||||
|
public void setAddressDetail(String addressDetail) {
|
||||||
|
this.addressDetail = addressDetail;
|
||||||
|
}
|
||||||
|
public String getPhoneNo() {
|
||||||
|
return phoneNo;
|
||||||
|
}
|
||||||
|
public void setPhoneNo(String phoneNo) {
|
||||||
|
this.phoneNo = phoneNo;
|
||||||
|
}
|
||||||
|
public String getFaxNo() {
|
||||||
|
return faxNo;
|
||||||
|
}
|
||||||
|
public void setFaxNo(String faxNo) {
|
||||||
|
this.faxNo = faxNo;
|
||||||
|
}
|
||||||
|
public String getLatitude() {
|
||||||
|
return latitude;
|
||||||
|
}
|
||||||
|
public void setLatitude(String latitude) {
|
||||||
|
this.latitude = latitude;
|
||||||
|
}
|
||||||
|
public String getLongitude() {
|
||||||
|
return longitude;
|
||||||
|
}
|
||||||
|
public void setLongitude(String longitude) {
|
||||||
|
this.longitude = longitude;
|
||||||
|
}
|
||||||
|
public String getDomainHostNm() {
|
||||||
|
return domainHostNm;
|
||||||
|
}
|
||||||
|
public void setDomainHostNm(String domainHostNm) {
|
||||||
|
this.domainHostNm = domainHostNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
20
src/main/java/nlib/col/service/InterestService.java
Normal file
20
src/main/java/nlib/col/service/InterestService.java
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
package nlib.col.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import nlib.restful.service.DataApiReqVO;
|
||||||
|
import nlib.restful.service.DataApiResVO;
|
||||||
|
|
||||||
|
public interface InterestService
|
||||||
|
{
|
||||||
|
public List<CollectionVO> listInterests(CollectionVO vo);
|
||||||
|
|
||||||
|
public int countListInterests(CollectionVO vo);
|
||||||
|
|
||||||
|
public void deleteInterests(List<Integer> mbInterestIdList, String mbInfoId);
|
||||||
|
|
||||||
|
public void insertInterest(CollectionVO vo);
|
||||||
|
|
||||||
|
public int countInterest(CollectionVO vo);
|
||||||
|
|
||||||
|
}
|
||||||
10
src/main/java/nlib/col/service/ReserveService.java
Normal file
10
src/main/java/nlib/col/service/ReserveService.java
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
package nlib.col.service;
|
||||||
|
|
||||||
|
import nlib.restful.service.DataApiReqVO;
|
||||||
|
import nlib.restful.service.DataApiResVO;
|
||||||
|
|
||||||
|
public interface ReserveService
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -28,61 +28,69 @@ import java.io.Serializable;
|
|||||||
public class RisVO implements Serializable {
|
public class RisVO implements Serializable {
|
||||||
|
|
||||||
/* 기존 지역 n 문화 사이트 RIS 항목 */
|
/* 기존 지역 n 문화 사이트 RIS 항목 */
|
||||||
private String TY; /* 참조유형 (ex: BOOK) */
|
private String typeDivCd; /* 참조유형 TY */
|
||||||
private String TI; /* 표제 (ex: 수원사랑 259호) */
|
private String title; /* 제목 TI */
|
||||||
private String AB; /* 요약 */
|
private String subTitle; /* 부제목 T2 */
|
||||||
private String DA; /* 날짜 */
|
private String creatYyyy; /* 생산일자 (YYYY) PY */
|
||||||
private String PY; /* 발행 년도 (YYYY) */
|
private String keyword; /* 키워드 (ex: 수원사랑) KW */
|
||||||
private String LA; /* 언어 (ex: Korean) */
|
|
||||||
private String UR; /* URL */
|
private String UR; /* URL */
|
||||||
private String KW; /* 키워드 (ex: 수원사랑) */
|
|
||||||
private String T2; /* 보조제목 (ex: 수원사랑 259호) */
|
/*private String AB; 요약
|
||||||
private String ER; /* 참조의 끝(비어있고 마지막 태그 여야 함) */
|
private String DA; 날짜
|
||||||
|
private String LA; 언어 (ex: Korean) */
|
||||||
|
|
||||||
/* RIS 추가 항목 */
|
/* RIS 추가 항목 */
|
||||||
private String ID; /* 자료번호 */
|
private String masterId; /* 자료번호 ID */
|
||||||
private String T3; /* 자료제목 */
|
|
||||||
private String M3; /* 주제분야명 */
|
private String M3; /* 주제분야명 */
|
||||||
private String L4; /* 썸네일이미지 URL */
|
private String rprsThumbUrl; /* 썸네일이미지 URL L4 */
|
||||||
private String M1; /* 관리 번호 */
|
private String stakrmMngNo; /* 관리번호 M1 */
|
||||||
private String PB; /* 저자명 */
|
private String producer; /* 생산자(저자) A1 */
|
||||||
private String LB; /* 상표 */
|
private String orgNm; /* 생산기관명 PP */
|
||||||
|
|
||||||
public String getTY() {
|
public String getTypeDivCd() {
|
||||||
return TY;
|
return typeDivCd;
|
||||||
}
|
}
|
||||||
public void setTY(String tY) {
|
public String getTy() {
|
||||||
TY = tY;
|
return typeDivCd;
|
||||||
}
|
}
|
||||||
public String getTI() {
|
public void setTypeDivCd(String typeDivCd) {
|
||||||
return TI;
|
this.typeDivCd = typeDivCd;
|
||||||
}
|
}
|
||||||
public void setTI(String tI) {
|
public String getTitle() {
|
||||||
TI = tI;
|
return title;
|
||||||
}
|
}
|
||||||
public String getAB() {
|
public String getTt() {
|
||||||
return AB;
|
return title;
|
||||||
}
|
}
|
||||||
public void setAB(String aB) {
|
public void setTitle(String title) {
|
||||||
AB = aB;
|
this.title = title;
|
||||||
}
|
}
|
||||||
public String getDA() {
|
public String getSubTitle() {
|
||||||
return DA;
|
return subTitle;
|
||||||
}
|
}
|
||||||
public void setDA(String dA) {
|
public String getT2() {
|
||||||
DA = dA;
|
return subTitle;
|
||||||
}
|
}
|
||||||
public String getPY() {
|
public void setSubTitle(String subTitle) {
|
||||||
return PY;
|
this.subTitle = subTitle;
|
||||||
}
|
}
|
||||||
public void setPY(String pY) {
|
public String getCreatYyyy() {
|
||||||
PY = pY;
|
return creatYyyy;
|
||||||
}
|
}
|
||||||
public String getLA() {
|
public String getPy() {
|
||||||
return LA;
|
return creatYyyy;
|
||||||
}
|
}
|
||||||
public void setLA(String lA) {
|
public void setCreatYyyy(String creatYyyy) {
|
||||||
LA = lA;
|
this.creatYyyy = creatYyyy;
|
||||||
|
}
|
||||||
|
public String getKeyword() {
|
||||||
|
return keyword;
|
||||||
|
}
|
||||||
|
public String getKw() {
|
||||||
|
return keyword;
|
||||||
|
}
|
||||||
|
public void setKeyword(String keyword) {
|
||||||
|
this.keyword = keyword;
|
||||||
}
|
}
|
||||||
public String getUR() {
|
public String getUR() {
|
||||||
return UR;
|
return UR;
|
||||||
@ -90,35 +98,14 @@ public class RisVO implements Serializable {
|
|||||||
public void setUR(String uR) {
|
public void setUR(String uR) {
|
||||||
UR = uR;
|
UR = uR;
|
||||||
}
|
}
|
||||||
public String getKW() {
|
public String getMasterId() {
|
||||||
return KW;
|
return masterId;
|
||||||
}
|
}
|
||||||
public void setKW(String kW) {
|
public String getId() {
|
||||||
KW = kW;
|
return masterId;
|
||||||
}
|
}
|
||||||
public String getT2() {
|
public void setMasterId(String masterId) {
|
||||||
return T2;
|
this.masterId = masterId;
|
||||||
}
|
|
||||||
public void setT2(String t2) {
|
|
||||||
T2 = t2;
|
|
||||||
}
|
|
||||||
public String getER() {
|
|
||||||
return ER;
|
|
||||||
}
|
|
||||||
public void setER(String eR) {
|
|
||||||
ER = eR;
|
|
||||||
}
|
|
||||||
public String getID() {
|
|
||||||
return ID;
|
|
||||||
}
|
|
||||||
public void setID(String iD) {
|
|
||||||
ID = iD;
|
|
||||||
}
|
|
||||||
public String getT3() {
|
|
||||||
return T3;
|
|
||||||
}
|
|
||||||
public void setT3(String t3) {
|
|
||||||
T3 = t3;
|
|
||||||
}
|
}
|
||||||
public String getM3() {
|
public String getM3() {
|
||||||
return M3;
|
return M3;
|
||||||
@ -126,30 +113,40 @@ public class RisVO implements Serializable {
|
|||||||
public void setM3(String m3) {
|
public void setM3(String m3) {
|
||||||
M3 = m3;
|
M3 = m3;
|
||||||
}
|
}
|
||||||
public String getL4() {
|
public String getRprsThumbUrl() {
|
||||||
return L4;
|
return rprsThumbUrl;
|
||||||
}
|
}
|
||||||
public void setL4(String l4) {
|
public String getL4() {
|
||||||
L4 = l4;
|
return rprsThumbUrl;
|
||||||
|
}
|
||||||
|
public void setRprsThumbUrl(String rprsThumbUrl) {
|
||||||
|
this.rprsThumbUrl = rprsThumbUrl;
|
||||||
|
}
|
||||||
|
public String getStakrmMngNo() {
|
||||||
|
return stakrmMngNo;
|
||||||
}
|
}
|
||||||
public String getM1() {
|
public String getM1() {
|
||||||
return M1;
|
return stakrmMngNo;
|
||||||
}
|
}
|
||||||
public void setM1(String m1) {
|
public void setStakrmMngNo(String stakrmMngNo) {
|
||||||
M1 = m1;
|
this.stakrmMngNo = stakrmMngNo;
|
||||||
}
|
}
|
||||||
public String getPB() {
|
public String getProducer() {
|
||||||
return PB;
|
return producer;
|
||||||
}
|
}
|
||||||
public void setPB(String pB) {
|
public String getA1() {
|
||||||
PB = pB;
|
return producer;
|
||||||
}
|
}
|
||||||
public String getLB() {
|
public void setProducer(String producer) {
|
||||||
return LB;
|
this.producer = producer;
|
||||||
}
|
}
|
||||||
public void setLB(String lB) {
|
public String getOrgNm() {
|
||||||
LB = lB;
|
return orgNm;
|
||||||
|
}
|
||||||
|
public String getPp() {
|
||||||
|
return orgNm;
|
||||||
|
}
|
||||||
|
public void setOrgNm(String orgNm) {
|
||||||
|
this.orgNm = orgNm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
16
src/main/java/nlib/col/service/impl/CartDAO.java
Normal file
16
src/main/java/nlib/col/service/impl/CartDAO.java
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
package nlib.col.service.impl;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import nlib.restful.DataApi;
|
||||||
|
import nlib.restful.service.DataApiReqVO;
|
||||||
|
import nlib.restful.service.DataApiResVO;
|
||||||
|
|
||||||
|
@Repository("cartDAO")
|
||||||
|
public class CartDAO extends DataApi
|
||||||
|
{
|
||||||
|
private static final Logger log = LoggerFactory.getLogger(CartDAO.class);
|
||||||
|
|
||||||
|
}
|
||||||
20
src/main/java/nlib/col/service/impl/CartServiceImpl.java
Normal file
20
src/main/java/nlib/col/service/impl/CartServiceImpl.java
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
package nlib.col.service.impl;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import nlib.col.service.CartService;
|
||||||
|
import nlib.restful.service.DataApiReqVO;
|
||||||
|
import nlib.restful.service.DataApiResVO;
|
||||||
|
|
||||||
|
@Service("cartService")
|
||||||
|
public class CartServiceImpl implements CartService
|
||||||
|
{
|
||||||
|
private static final Logger log = LoggerFactory.getLogger(CartServiceImpl.class);
|
||||||
|
|
||||||
|
@Resource(name="cartDAO")
|
||||||
|
private CartDAO cartDAO;
|
||||||
|
}
|
||||||
@ -1,35 +1,47 @@
|
|||||||
|
|
||||||
package nlib.col.service.impl;
|
package nlib.col.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import nlib.bbs.service.impl.BoardDAOApi;
|
import nlib.col.service.CollectionVO;
|
||||||
|
import nlib.col.service.DeptVO;
|
||||||
|
import nlib.col.service.RisVO;
|
||||||
import nlib.restful.DataApi;
|
import nlib.restful.DataApi;
|
||||||
import nlib.restful.service.DataApiReqVO;
|
import nlib.restful.service.DataApiReqVO;
|
||||||
import nlib.restful.service.DataApiResVO;
|
import nlib.restful.service.DataApiResVO;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import egovframework.com.cmm.service.impl.EgovComAbstractDAO;
|
||||||
|
import egovframework.rte.psl.dataaccess.mapper.Mapper;
|
||||||
|
import nlib.cmm.service.NotificationVO;
|
||||||
|
import nlib.cmm.service.NlibProperty;
|
||||||
|
import nlib.user.service.NlibLoginVO;
|
||||||
|
import nlib.util.StringUtil;
|
||||||
@Repository("collectionDAO")
|
@Repository("collectionDAO")
|
||||||
public class CollectionDAO extends DataApi
|
public class CollectionDAO extends EgovComAbstractDAO
|
||||||
{
|
{
|
||||||
private static final Logger log = LoggerFactory.getLogger(CollectionDAO.class);
|
private static final Logger log = LoggerFactory.getLogger(CollectionDAO.class);
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* 주 자원의 URI
|
*//**
|
||||||
*/
|
|
||||||
public static final String RESOURCE_URI = "/uac/service/col";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 소장 자료 목록을 조회한다.
|
* 소장 자료 목록을 조회한다.
|
||||||
*
|
*
|
||||||
* @param reqVO
|
* @param reqVO
|
||||||
* @return
|
* @return
|
||||||
*/
|
*//*
|
||||||
public DataApiResVO listItems(DataApiReqVO reqVO) {
|
public DataApiResVO listItems(DataApiReqVO reqVO) {
|
||||||
reqVO.setReqUrl(RESOURCE_URI + "/listItems/list");
|
reqVO.setReqUrl(RESOURCE_URI + "/listItems/list");
|
||||||
return get(reqVO);
|
return get(reqVO);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
public DataApiResVO insertInterest(DataApiReqVO reqVO) {
|
public DataApiResVO insertInterest(DataApiReqVO reqVO) {
|
||||||
return null;
|
return null;
|
||||||
@ -52,25 +64,26 @@ public class CollectionDAO extends DataApi
|
|||||||
*
|
*
|
||||||
* @param reqVO
|
* @param reqVO
|
||||||
* @return
|
* @return
|
||||||
*/
|
*//*
|
||||||
public DataApiResVO selectItemInfo(DataApiReqVO reqVO) {
|
public DataApiResVO selectItemInfo(DataApiReqVO reqVO) {
|
||||||
reqVO.setReqUrl(RESOURCE_URI + "/listItems");
|
}*/
|
||||||
return get(reqVO);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* 관심 자료 목록을 조회한다.
|
|
||||||
*
|
|
||||||
* @param reqVO
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public DataApiResVO listInterests(DataApiReqVO reqVO) {
|
|
||||||
reqVO.setReqUrl(RESOURCE_URI + "/interests/list");
|
|
||||||
return get(reqVO);
|
|
||||||
}
|
|
||||||
|
|
||||||
public DataApiResVO deleteInterest(DataApiReqVO reqVO) {
|
public DataApiResVO deleteInterest(DataApiReqVO reqVO) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* RIS파일 다운로드 데이터를 조회한다.
|
||||||
|
* @param vo
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public RisVO selectRisInfo(RisVO vo) {
|
||||||
|
return selectOne("CollectionDAO.selectRisInfo", vo);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 문화원 목록 조회
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public List<DeptVO> selectOrgList(CollectionVO vo) {
|
||||||
|
return selectList("CollectionDAO.selectOrgList",vo);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -1,6 +1,8 @@
|
|||||||
|
|
||||||
package nlib.col.service.impl;
|
package nlib.col.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
@ -8,6 +10,9 @@ import org.slf4j.LoggerFactory;
|
|||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import nlib.col.service.CollectionService;
|
import nlib.col.service.CollectionService;
|
||||||
|
import nlib.col.service.CollectionVO;
|
||||||
|
import nlib.col.service.DeptVO;
|
||||||
|
import nlib.col.service.RisVO;
|
||||||
import nlib.restful.service.DataApiReqVO;
|
import nlib.restful.service.DataApiReqVO;
|
||||||
import nlib.restful.service.DataApiResVO;
|
import nlib.restful.service.DataApiResVO;
|
||||||
|
|
||||||
@ -26,7 +31,7 @@ public class CollectionServiceImpl implements CollectionService
|
|||||||
* @see nlib.col.service.CollectionService#listItems(nlib.restful.service.DataApiReqVO)
|
* @see nlib.col.service.CollectionService#listItems(nlib.restful.service.DataApiReqVO)
|
||||||
*/
|
*/
|
||||||
public DataApiResVO listItems(DataApiReqVO reqVO) {
|
public DataApiResVO listItems(DataApiReqVO reqVO) {
|
||||||
return collectionDAO.listItems(reqVO);
|
return ((CollectionService) collectionDAO).listItems(reqVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
public DataApiResVO insertInterest(DataApiReqVO reqVO) {
|
public DataApiResVO insertInterest(DataApiReqVO reqVO) {
|
||||||
@ -51,21 +56,24 @@ public class CollectionServiceImpl implements CollectionService
|
|||||||
* @see nlib.col.service.CollectionService#selectItemInfo(nlib.restful.service.DataApiReqVO)
|
* @see nlib.col.service.CollectionService#selectItemInfo(nlib.restful.service.DataApiReqVO)
|
||||||
*/
|
*/
|
||||||
public DataApiResVO selectItemInfo(DataApiReqVO reqVO) {
|
public DataApiResVO selectItemInfo(DataApiReqVO reqVO) {
|
||||||
return collectionDAO.selectItemInfo(reqVO);
|
return ((CollectionService) collectionDAO).selectItemInfo(reqVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 관심 자료 목록을 조회한다.
|
* RIS파일 다운로드 데이터를 조회한다.
|
||||||
*
|
|
||||||
* (non-Javadoc)
|
* (non-Javadoc)
|
||||||
* @see nlib.col.service.CollectionService#listInterests(nlib.restful.service.DataApiReqVO)
|
* @see nlib.col.service.CollectionService#selectRisInfo(nlib.col.service.CollectionVO)
|
||||||
*/
|
*/
|
||||||
public DataApiResVO listInterests(DataApiReqVO reqVO) {
|
public RisVO selectRisInfo(RisVO vo) {
|
||||||
return collectionDAO.listInterests(reqVO);
|
return collectionDAO.selectRisInfo(vo);
|
||||||
}
|
}
|
||||||
|
|
||||||
public DataApiResVO deleteInterest(DataApiReqVO reqVO) {
|
/*
|
||||||
return null;
|
* 문화원 목록 조회
|
||||||
|
* (non-Javadoc)
|
||||||
|
* @see nlib.col.service.CollectionService#selectOrgList()
|
||||||
|
*/
|
||||||
|
public List<DeptVO> selectOrgList(CollectionVO vo) {
|
||||||
|
return collectionDAO.selectOrgList(vo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
63
src/main/java/nlib/col/service/impl/InterestDAO.java
Normal file
63
src/main/java/nlib/col/service/impl/InterestDAO.java
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
package nlib.col.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import egovframework.com.cmm.service.impl.EgovComAbstractDAO;
|
||||||
|
import nlib.col.service.CollectionVO;
|
||||||
|
import nlib.restful.DataApi;
|
||||||
|
import nlib.restful.service.DataApiReqVO;
|
||||||
|
import nlib.restful.service.DataApiResVO;
|
||||||
|
|
||||||
|
@Repository("interestDAO")
|
||||||
|
public class InterestDAO extends EgovComAbstractDAO
|
||||||
|
{
|
||||||
|
private static final Logger log = LoggerFactory.getLogger(InterestDAO.class);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 관심 자료 목록을 조회한다.
|
||||||
|
*
|
||||||
|
* @param CollectionVO
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public List<CollectionVO> listInterests(CollectionVO vo) {
|
||||||
|
return selectList("InterestDAO.listInterests", vo);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 관심 자료 목록의 개수를 조회한다.
|
||||||
|
*
|
||||||
|
* @param CollectionVO
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public int countListInterests(CollectionVO vo) {
|
||||||
|
return selectOne("InterestDAO.countListInterests", vo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 관심자료 목록 삭제
|
||||||
|
* @param masterIdList
|
||||||
|
*/
|
||||||
|
public void deleteInterests(CollectionVO vo) {
|
||||||
|
delete("InterestDAO.deleteInterests", vo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 관심자료 추가시 중복체크용 count
|
||||||
|
* @param vo
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public int countInterest(CollectionVO vo) {
|
||||||
|
return selectOne("InterestDAO.countInterest",vo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 관심자료 추가
|
||||||
|
* @param vo
|
||||||
|
*/
|
||||||
|
public void insertInterest(CollectionVO vo) {
|
||||||
|
insert("InterestDAO.insertInterest",vo);
|
||||||
|
}
|
||||||
|
}
|
||||||
73
src/main/java/nlib/col/service/impl/InterestServiceImpl.java
Normal file
73
src/main/java/nlib/col/service/impl/InterestServiceImpl.java
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
package nlib.col.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import nlib.col.service.CartService;
|
||||||
|
import nlib.col.service.CollectionVO;
|
||||||
|
import nlib.col.service.InterestService;
|
||||||
|
import nlib.restful.service.DataApiReqVO;
|
||||||
|
import nlib.restful.service.DataApiResVO;
|
||||||
|
|
||||||
|
@Service("interestService")
|
||||||
|
public class InterestServiceImpl implements InterestService
|
||||||
|
{
|
||||||
|
private static final Logger log = LoggerFactory.getLogger(InterestServiceImpl.class);
|
||||||
|
|
||||||
|
@Resource(name="interestDAO")
|
||||||
|
private InterestDAO interestDAO;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 관심자료 목록을 조회한다.
|
||||||
|
*
|
||||||
|
* (non-Javadoc)
|
||||||
|
* @see nlib.col.service.CollectionService#listInterests(nlib.restful.service.DataApiReqVO)
|
||||||
|
*/
|
||||||
|
public List<CollectionVO> listInterests(CollectionVO vo) {
|
||||||
|
return interestDAO.listInterests(vo);
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
* 관심자료목록의 총 개수를 조회한다.
|
||||||
|
* (non-Javadoc)
|
||||||
|
* @see nlib.col.service.CollectionService#countListInterests(nlib.col.service.CollectionVO)
|
||||||
|
*/
|
||||||
|
public int countListInterests(CollectionVO vo) {
|
||||||
|
return interestDAO.countListInterests(vo);
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
* 관심자료 목록 삭제
|
||||||
|
* (non-Javadoc)
|
||||||
|
* @see nlib.col.service.CollectionService#deleteInterests(java.util.List)
|
||||||
|
*/
|
||||||
|
public void deleteInterests(List<Integer> mbInterestIdList,String mbInfoId) {
|
||||||
|
CollectionVO vo = new CollectionVO();
|
||||||
|
vo.setMbInfoId(mbInfoId);
|
||||||
|
|
||||||
|
for(Integer mbInterestId : mbInterestIdList) {
|
||||||
|
vo.setMbInterestId(mbInterestId);
|
||||||
|
interestDAO.deleteInterests(vo);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
* 관심자료 추가시 중복체크용 count
|
||||||
|
* (non-Javadoc)
|
||||||
|
* @see nlib.col.service.CollectionService#countInterest(nlib.col.service.CollectionVO)
|
||||||
|
*/
|
||||||
|
public int countInterest(CollectionVO vo) {
|
||||||
|
return interestDAO.countInterest(vo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 관심자료 추가
|
||||||
|
* (non-Javadoc)
|
||||||
|
* @see nlib.col.service.CollectionService#insertInterest(nlib.col.service.CollectionVO)
|
||||||
|
*/
|
||||||
|
public void insertInterest(CollectionVO vo) {
|
||||||
|
interestDAO.insertInterest(vo);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
package nlib.col.service.impl;
|
package nlib.col.service.impl;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|||||||
16
src/main/java/nlib/col/service/impl/ReserveDAO.java
Normal file
16
src/main/java/nlib/col/service/impl/ReserveDAO.java
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
package nlib.col.service.impl;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import nlib.restful.DataApi;
|
||||||
|
import nlib.restful.service.DataApiReqVO;
|
||||||
|
import nlib.restful.service.DataApiResVO;
|
||||||
|
|
||||||
|
@Repository("reserveDAO")
|
||||||
|
public class ReserveDAO extends DataApi
|
||||||
|
{
|
||||||
|
private static final Logger log = LoggerFactory.getLogger(ReserveDAO.class);
|
||||||
|
|
||||||
|
}
|
||||||
20
src/main/java/nlib/col/service/impl/ReserveServiceImpl.java
Normal file
20
src/main/java/nlib/col/service/impl/ReserveServiceImpl.java
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
package nlib.col.service.impl;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import nlib.col.service.ReserveService;
|
||||||
|
import nlib.restful.service.DataApiReqVO;
|
||||||
|
import nlib.restful.service.DataApiResVO;
|
||||||
|
|
||||||
|
@Service("reserveService")
|
||||||
|
public class ReserveServiceImpl implements ReserveService
|
||||||
|
{
|
||||||
|
private static final Logger log = LoggerFactory.getLogger(ReserveServiceImpl.class);
|
||||||
|
|
||||||
|
@Resource(name="reserveDAO")
|
||||||
|
private ReserveDAO reserveDAO;
|
||||||
|
}
|
||||||
48
src/main/java/nlib/col/web/CartController.java
Normal file
48
src/main/java/nlib/col/web/CartController.java
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
package nlib.col.web;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
|
||||||
|
import nlib.cmm.NlibCommonController;
|
||||||
|
import nlib.cmm.service.CodeService;
|
||||||
|
import nlib.cmm.service.NlibProperty;
|
||||||
|
import nlib.col.service.RentService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* @Class Name : CartController.java
|
||||||
|
*
|
||||||
|
* @Description : 소장자료 카트 컨트롤러
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
||||||
|
*
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* @ ------------ -------- ---------------------------
|
||||||
|
* @ 수정일 수정자 수정내용
|
||||||
|
* @ ------------ -------- ---------------------------
|
||||||
|
* @ 2021. 10. 01. JSYOO 최초 생성
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @author 이씨플라자 * DIGITALSHIP JSYOO
|
||||||
|
* @since 2021. 10. 01.
|
||||||
|
* @version 1.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
public class CartController extends NlibCommonController
|
||||||
|
{
|
||||||
|
private static final Logger log = LoggerFactory.getLogger(CartController.class);
|
||||||
|
static final String DEFUALT_PAGE_SIZE = NlibProperty.getProperty("list.paging.page.size");
|
||||||
|
|
||||||
|
@Resource(name = "rentService")
|
||||||
|
private RentService rentService;
|
||||||
|
|
||||||
|
@Resource(name = "codeService")
|
||||||
|
private CodeService codeService;
|
||||||
|
|
||||||
|
}
|
||||||
@ -1,12 +1,19 @@
|
|||||||
|
|
||||||
package nlib.col.web;
|
package nlib.col.web;
|
||||||
|
|
||||||
|
import java.io.ByteArrayInputStream;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.io.OutputStream;
|
||||||
|
import java.net.URLEncoder;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
@ -17,15 +24,25 @@ import org.springframework.ui.ModelMap;
|
|||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
||||||
|
import nlib.bbs.service.ArticleVO;
|
||||||
import nlib.cmm.NlibCommonController;
|
import nlib.cmm.NlibCommonController;
|
||||||
import nlib.cmm.service.CodeService;
|
import nlib.cmm.service.CodeService;
|
||||||
import nlib.cmm.service.NlibProperty;
|
import nlib.cmm.service.NlibProperty;
|
||||||
import nlib.col.service.CollectionService;
|
import nlib.col.service.CollectionService;
|
||||||
|
import nlib.col.service.CollectionVO;
|
||||||
|
import nlib.col.service.DeptVO;
|
||||||
|
import nlib.col.service.RisVO;
|
||||||
import nlib.restful.service.DataApiReqVO;
|
import nlib.restful.service.DataApiReqVO;
|
||||||
import nlib.restful.service.DataApiResVO;
|
import nlib.restful.service.DataApiResVO;
|
||||||
|
import nlib.user.service.NlibLoginVO;
|
||||||
import nlib.util.StringUtil;
|
import nlib.util.StringUtil;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author JSYOO
|
||||||
|
*
|
||||||
|
*/
|
||||||
@Controller
|
@Controller
|
||||||
public class CollectionController extends NlibCommonController
|
public class CollectionController extends NlibCommonController
|
||||||
{
|
{
|
||||||
@ -100,21 +117,74 @@ public class CollectionController extends NlibCommonController
|
|||||||
return makeResponseEntityJson(retMap);
|
return makeResponseEntityJson(retMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ModelMap insertInterest(HttpServletRequest req) {
|
|
||||||
return null;
|
/**
|
||||||
|
* RIS파일 다운로드
|
||||||
|
* @param vo
|
||||||
|
* @throws IOException
|
||||||
|
*/
|
||||||
|
@RequestMapping(value="/collection/risDownload.do")
|
||||||
|
public void risDownload(HttpServletRequest request,HttpServletResponse response) throws IOException {
|
||||||
|
RisVO vo = new RisVO();
|
||||||
|
vo.setMasterId(request.getParameter("masterId"));
|
||||||
|
|
||||||
|
vo = collectionService.selectRisInfo(vo);
|
||||||
|
|
||||||
|
response.setContentType("text/plain");
|
||||||
|
|
||||||
|
String fileName = vo.getTt();
|
||||||
|
String Ty="";
|
||||||
|
// 브라우저 별 한글 인코딩
|
||||||
|
String header = request.getHeader("User-Agent");
|
||||||
|
if (header.contains("Edge")){
|
||||||
|
fileName = URLEncoder.encode(fileName, "UTF-8").replaceAll("\\+", "%20");
|
||||||
|
response.setHeader("Content-Disposition", "attachment;filename=\"" + fileName + ".ris;\"");
|
||||||
|
} else if (header.contains("MSIE") || header.contains("Trident")) { // IE 11버전부터 Trident로 변경되었기때문에 추가해준다.
|
||||||
|
fileName = URLEncoder.encode(fileName, "UTF-8").replaceAll("\\+", "%20");
|
||||||
|
response.setHeader("Content-Disposition", "attachment;filename=" + fileName + ".ris;");
|
||||||
|
} else if (header.contains("Chrome")) {
|
||||||
|
fileName = URLEncoder.encode(fileName, "UTF-8").replaceAll("\\+", "%20");
|
||||||
|
response.setHeader("Content-Disposition", "attachment; filename=\"" + fileName + ".ris\"");
|
||||||
|
} else if (header.contains("Opera")) {
|
||||||
|
fileName = new String(fileName.getBytes("UTF-8"), "ISO-8859-1");
|
||||||
|
response.setHeader("Content-Disposition", "attachment; filename=\"" + fileName + ".ris\"");
|
||||||
|
} else if (header.contains("Firefox")) {
|
||||||
|
fileName = new String(fileName.getBytes("UTF-8"), "ISO-8859-1");
|
||||||
|
response.setHeader("Content-Disposition", "attachment; filename=" + fileName + ".ris");
|
||||||
}
|
}
|
||||||
|
|
||||||
public ModelMap reserveItem(HttpServletRequest req) {
|
|
||||||
return null;
|
Ty = StringUtil.getString(vo.getTy(), "");
|
||||||
|
|
||||||
|
if(Ty.length() > 3)
|
||||||
|
{
|
||||||
|
Ty.replace("IT_", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
public ModelMap viewOriginalCopy(HttpServletRequest req) {
|
String s = "TY - " + Ty;
|
||||||
return null;
|
s+= "\nTI - " + StringUtil.getString(vo.getTt(), "");
|
||||||
|
s+= "\nPY - " + StringUtil.getString(vo.getPy(), "");
|
||||||
|
s+= "\nKW - " + StringUtil.getString(vo.getKw(), "");
|
||||||
|
s+= "\nT2 - " + StringUtil.getString(vo.getT2(), "");
|
||||||
|
s+= "\nA1 - " + StringUtil.getString(vo.getA1(), "");
|
||||||
|
s+= "\nPP - " + StringUtil.getString(vo.getPp(), "");
|
||||||
|
s+= "\nM1 - " + StringUtil.getString(vo.getM1(), "");
|
||||||
|
s+= "\nL4 - " + StringUtil.getString(vo.getL4(), "");
|
||||||
|
s+= "\nER - ";
|
||||||
|
|
||||||
|
InputStream input = new ByteArrayInputStream(s.getBytes("UTF8"));
|
||||||
|
|
||||||
|
int read = 0;
|
||||||
|
byte[] bytes = new byte[1024];
|
||||||
|
OutputStream os = response.getOutputStream();
|
||||||
|
|
||||||
|
while ((read = input.read(bytes)) != -1) {
|
||||||
|
os.write(bytes, 0, read);
|
||||||
|
}
|
||||||
|
os.flush();
|
||||||
|
os.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
public ModelMap requestViewingItem(HttpServletRequest req) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* 소장자료 상세 내용 조회한다.
|
* 소장자료 상세 내용 조회한다.
|
||||||
*
|
*
|
||||||
@ -160,70 +230,4 @@ public class CollectionController extends NlibCommonController
|
|||||||
|
|
||||||
return "nlib/collection/selectItemInfo";
|
return "nlib/collection/selectItemInfo";
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* 관심 자료 화면을 호출한다.
|
|
||||||
*
|
|
||||||
* @param req
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@RequestMapping("/collection/listInterests.do")
|
|
||||||
public String listInterests(HttpServletRequest req, Authentication authentication, @RequestParam Map<String, String> paramMap, ModelMap model) throws Exception {
|
|
||||||
String searchKeyword = paramMap.get("searchKeyword");
|
|
||||||
String pageIndex = StringUtil.getString(paramMap.get("pageIndex"), "1");
|
|
||||||
String pageSize = StringUtil.getString(paramMap.get("pageSize") , DEFUALT_PAGE_SIZE);
|
|
||||||
|
|
||||||
// 페이징 사이즈 코드 목록 조회 (DB방식으로 변경 2021.08.06 KNKIM)
|
|
||||||
List<HashMap<String,String>> pageSizeCodes = codeService.listCodes("PAGE_SIZE_OPTION");
|
|
||||||
|
|
||||||
// 반환 정보
|
|
||||||
model.addAttribute("pageIndex" , pageIndex);
|
|
||||||
model.addAttribute("pageSize" , pageSize);
|
|
||||||
model.addAttribute("searchKeyword", searchKeyword);
|
|
||||||
model.addAttribute("pageSizeCodes", pageSizeCodes);
|
|
||||||
return "nlib/collection/listInterests";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 관심 자료를 조회한다.
|
|
||||||
*
|
|
||||||
* @param req
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@RequestMapping(value="/collection/listInterestsAjax.do")
|
|
||||||
public ResponseEntity<String> listInterestsAjax(HttpServletRequest req,
|
|
||||||
Authentication authentication, @RequestBody Map<String, String> paramMap) {
|
|
||||||
|
|
||||||
String searchKeyword = paramMap.get("searchKeyword");
|
|
||||||
String pageIndex = StringUtil.getString(paramMap.get("pageIndex"), "1");
|
|
||||||
String pageSize = StringUtil.getString(paramMap.get("pageSize") , DEFUALT_PAGE_SIZE);
|
|
||||||
|
|
||||||
//-------------------------------
|
|
||||||
// REQ VO 구성
|
|
||||||
//-------------------------------
|
|
||||||
DataApiReqVO reqVO = new DataApiReqVO();
|
|
||||||
reqVO.setPageIndex(pageIndex);
|
|
||||||
reqVO.setPageSize(pageSize);
|
|
||||||
reqVO.addInfoItem("searchKeyword", searchKeyword);
|
|
||||||
|
|
||||||
// 요청
|
|
||||||
DataApiResVO resVO = collectionService.listInterests(reqVO);
|
|
||||||
|
|
||||||
//-------------------------------
|
|
||||||
// JSON변환 응답 처리
|
|
||||||
//-------------------------------
|
|
||||||
// JS-GRID 페이징 처리를 포함한 응답값 처리
|
|
||||||
// {data: [{...}],
|
|
||||||
// itemsCount: 255
|
|
||||||
// }
|
|
||||||
HashMap<String, Object> retMap = new HashMap<String, Object>();
|
|
||||||
retMap.put("data", resVO.getList());
|
|
||||||
retMap.put("itemsCount", resVO.getRecordTotCount());
|
|
||||||
|
|
||||||
return makeResponseEntityJson(retMap);
|
|
||||||
}
|
|
||||||
public ModelMap deleteInterest(HttpServletRequest req) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
174
src/main/java/nlib/col/web/InterestController.java
Normal file
174
src/main/java/nlib/col/web/InterestController.java
Normal file
@ -0,0 +1,174 @@
|
|||||||
|
package nlib.col.web;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.http.ResponseEntity;
|
||||||
|
import org.springframework.security.core.Authentication;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
||||||
|
import nlib.cmm.NlibCommonController;
|
||||||
|
import nlib.cmm.service.CodeService;
|
||||||
|
import nlib.cmm.service.NlibProperty;
|
||||||
|
import nlib.col.service.CollectionService;
|
||||||
|
import nlib.col.service.CollectionVO;
|
||||||
|
import nlib.col.service.DeptVO;
|
||||||
|
import nlib.col.service.InterestService;
|
||||||
|
import nlib.col.service.RentService;
|
||||||
|
import nlib.user.service.NlibLoginVO;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* @Class Name : InterestController.java
|
||||||
|
*
|
||||||
|
* @Description : 관심자료 컨트롤러
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
||||||
|
*
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* @ ------------ -------- ---------------------------
|
||||||
|
* @ 수정일 수정자 수정내용
|
||||||
|
* @ ------------ -------- ---------------------------
|
||||||
|
* @ 2021. 10. 01. JSYOO 최초 생성
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @author 이씨플라자 * DIGITALSHIP JSYOO
|
||||||
|
* @since 2021. 10. 01.
|
||||||
|
* @version 1.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
public class InterestController extends NlibCommonController
|
||||||
|
{
|
||||||
|
private static final Logger log = LoggerFactory.getLogger(InterestController.class);
|
||||||
|
static final String DEFUALT_PAGE_SIZE = NlibProperty.getProperty("list.paging.page.size");
|
||||||
|
|
||||||
|
@Resource(name = "interestService")
|
||||||
|
private InterestService interestService;
|
||||||
|
|
||||||
|
@Resource(name = "collectionService")
|
||||||
|
private CollectionService collectionService;
|
||||||
|
|
||||||
|
@Resource(name = "codeService")
|
||||||
|
private CodeService codeService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 관심 자료 화면을 호출한다.
|
||||||
|
*
|
||||||
|
* @param req
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping("/interest/listInterests.do")
|
||||||
|
public String listInterests(HttpServletRequest req, Authentication authentication,
|
||||||
|
@RequestParam Map<String, String> paramMap,
|
||||||
|
CollectionVO searchCollectionVO, ModelMap model) throws Exception {
|
||||||
|
|
||||||
|
List<DeptVO> vo = new ArrayList();
|
||||||
|
|
||||||
|
//사용자 정보를 가져온다.
|
||||||
|
NlibLoginVO loginVO = getNlibLoginVO(authentication);
|
||||||
|
|
||||||
|
searchCollectionVO.setMbInfoId(loginVO.getMbInfoId());
|
||||||
|
|
||||||
|
//문화원 목록 조회
|
||||||
|
vo = collectionService.selectOrgList(searchCollectionVO);
|
||||||
|
|
||||||
|
model.addAttribute("deptList",vo);
|
||||||
|
model.addAttribute("searchCollection", searchCollectionVO);
|
||||||
|
return "nlib/collection/listInterests";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 관심 자료를 조회한다.
|
||||||
|
*
|
||||||
|
* @param req
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(value="/interest/listInterestsAjax.do")
|
||||||
|
public ResponseEntity<String> listInterestsAjax(HttpServletRequest req,
|
||||||
|
Authentication authentication, @RequestBody CollectionVO searchCollectionVO) {
|
||||||
|
|
||||||
|
if(searchCollectionVO.getPageIndex() < 1) searchCollectionVO.setPageIndex(1);
|
||||||
|
if(searchCollectionVO.getPageSize() < 1) searchCollectionVO.setPageSize(DEFUALT_PAGE_SIZE);
|
||||||
|
|
||||||
|
int totalCount= 0;
|
||||||
|
//사용자 정보를 가져온다.
|
||||||
|
NlibLoginVO loginVO = getNlibLoginVO(authentication);
|
||||||
|
|
||||||
|
searchCollectionVO.setMbInfoId(loginVO.getMbInfoId());
|
||||||
|
searchCollectionVO.setPageStart((searchCollectionVO.getPageIndex()-1) * searchCollectionVO.getPageSize());
|
||||||
|
List<CollectionVO> List = new ArrayList();
|
||||||
|
|
||||||
|
// 요청
|
||||||
|
List = interestService.listInterests(searchCollectionVO);
|
||||||
|
totalCount = interestService.countListInterests(searchCollectionVO);
|
||||||
|
|
||||||
|
//-------------------------------
|
||||||
|
// JSON변환 응답 처리
|
||||||
|
//-------------------------------
|
||||||
|
// JS-GRID 페이징 처리를 포함한 응답값 처리
|
||||||
|
// {data: [{...}],
|
||||||
|
// itemsCount: 255
|
||||||
|
// }
|
||||||
|
HashMap<String, Object> retMap = new HashMap<String, Object>();
|
||||||
|
retMap.put("data", List);
|
||||||
|
retMap.put("itemsCount", totalCount);
|
||||||
|
|
||||||
|
return makeResponseEntityJson(retMap);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 관심자료 목록 삭제
|
||||||
|
* @param masterIdList
|
||||||
|
*/
|
||||||
|
@RequestMapping(value="/interest/deleteInterests.ajax")
|
||||||
|
@ResponseBody
|
||||||
|
public void deleteInterests(@RequestParam(value="mbInterestIdList[]") List<Integer> mbInterestIdList,Authentication authentication) {
|
||||||
|
NlibLoginVO loginVO = getNlibLoginVO(authentication);
|
||||||
|
interestService.deleteInterests(mbInterestIdList,loginVO.getMbInfoId());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 관심자료 추가
|
||||||
|
* @param masterIdList
|
||||||
|
*/
|
||||||
|
@RequestMapping(value="/interest/insertInterest.ajax")
|
||||||
|
@ResponseBody
|
||||||
|
public String insertInterest(@RequestParam(value="masterId") String masterId,HttpServletResponse response,Authentication authentication,HttpServletRequest request) {
|
||||||
|
NlibLoginVO loginVO = getNlibLoginVO(authentication);
|
||||||
|
|
||||||
|
CollectionVO vo = new CollectionVO();
|
||||||
|
vo.setMbInfoId(loginVO.getMbInfoId());
|
||||||
|
vo.setMasterId(masterId);
|
||||||
|
|
||||||
|
int count = 0;
|
||||||
|
String message = "";
|
||||||
|
count = interestService.countInterest(vo);
|
||||||
|
|
||||||
|
//중복된 관심자료가 있을시
|
||||||
|
if(count > 0)
|
||||||
|
{
|
||||||
|
message="이미 추가된 관심자료입니다.";
|
||||||
|
}else {
|
||||||
|
interestService.insertInterest(vo);
|
||||||
|
message="관심자료에 추가되었습니다.";
|
||||||
|
}
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
48
src/main/java/nlib/col/web/ReserveController.java
Normal file
48
src/main/java/nlib/col/web/ReserveController.java
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
package nlib.col.web;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
|
||||||
|
import nlib.cmm.NlibCommonController;
|
||||||
|
import nlib.cmm.service.CodeService;
|
||||||
|
import nlib.cmm.service.NlibProperty;
|
||||||
|
import nlib.col.service.RentService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* @Class Name : ReserveController.java
|
||||||
|
*
|
||||||
|
* @Description : 자료열람 컨트롤러
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
||||||
|
*
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* @ ------------ -------- ---------------------------
|
||||||
|
* @ 수정일 수정자 수정내용
|
||||||
|
* @ ------------ -------- ---------------------------
|
||||||
|
* @ 2021. 10. 01. JSYOO 최초 생성
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @author 이씨플라자 * DIGITALSHIP JSYOO
|
||||||
|
* @since 2021. 10. 01.
|
||||||
|
* @version 1.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
public class ReserveController extends NlibCommonController
|
||||||
|
{
|
||||||
|
private static final Logger log = LoggerFactory.getLogger(ReserveController.class);
|
||||||
|
static final String DEFUALT_PAGE_SIZE = NlibProperty.getProperty("list.paging.page.size");
|
||||||
|
|
||||||
|
@Resource(name = "rentService")
|
||||||
|
private RentService rentService;
|
||||||
|
|
||||||
|
@Resource(name = "codeService")
|
||||||
|
private CodeService codeService;
|
||||||
|
|
||||||
|
}
|
||||||
@ -19,6 +19,9 @@
|
|||||||
<typeAlias alias="NotificationVO" type="nlib.cmm.service.NotificationVO" />
|
<typeAlias alias="NotificationVO" type="nlib.cmm.service.NotificationVO" />
|
||||||
<typeAlias alias="ArticleVO" type="nlib.bbs.service.ArticleVO" />
|
<typeAlias alias="ArticleVO" type="nlib.bbs.service.ArticleVO" />
|
||||||
<typeAlias alias="AttachFileVO" type="nlib.bbs.service.AttachFileVO" />
|
<typeAlias alias="AttachFileVO" type="nlib.bbs.service.AttachFileVO" />
|
||||||
|
<typeAlias alias="RisVO" type="nlib.col.service.RisVO" />
|
||||||
|
<typeAlias alias="CollectionVO" type="nlib.col.service.CollectionVO" />
|
||||||
|
<typeAlias alias="DeptVO" type="nlib.col.service.DeptVO" />
|
||||||
|
|
||||||
</typeAliases>
|
</typeAliases>
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,40 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?><!--Converted at: Wed May 11 15:49:38 KST 2016-->
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="CollectionDAO">
|
||||||
|
|
||||||
|
<select id="selectRisInfo" parameterType="RisVO" resultType="RisVO">
|
||||||
|
/* CollectionDAO.selectRisInfo RIS다운로드를 위한 자료 정보 조회 */
|
||||||
|
SELECT
|
||||||
|
*
|
||||||
|
FROM
|
||||||
|
RG_MASTER RM
|
||||||
|
WHERE 1=1
|
||||||
|
AND MASTER_ID = #{masterId}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectOrgList" parameterType="CollectionVO" resultType="DeptVO" >
|
||||||
|
/* CollectionDAO.selectOrgList 문화원 목록 조회 */
|
||||||
|
<![CDATA[
|
||||||
|
SELECT
|
||||||
|
ORG_CD
|
||||||
|
,DEPT_NM
|
||||||
|
FROM
|
||||||
|
SM_DEPT SD
|
||||||
|
INNER JOIN
|
||||||
|
RG_MASTER RM
|
||||||
|
ON SD.ORG_CD = RM.MNG_ORG_CD
|
||||||
|
INNER JOIN
|
||||||
|
MB_INTEREST MI
|
||||||
|
ON RM.MASTER_ID = MI.MASTER_ID
|
||||||
|
WHERE 1=1
|
||||||
|
AND SD.USE_YN = "Y"
|
||||||
|
AND SD.CLOSE_FLAG = "0"
|
||||||
|
AND IFNULL(NULLIF(SD.APPLY_START_YMD,''),"99999999") < date_format(NOW(), '%Y%m%d')
|
||||||
|
AND IFNULL(NULLIF(SD.APPLY_CLOSE_YMD,''),"99999999") > date_format(NOW(), '%Y%m%d')
|
||||||
|
AND MI.USE_YN = "Y"
|
||||||
|
AND MI.MB_INFO_ID = #{mbInfoId}
|
||||||
|
GROUP BY ORG_CD,DEPT_NM
|
||||||
|
]]>
|
||||||
|
</select>
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,85 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?><!--Converted at: Wed May 11 15:49:38 KST 2016-->
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="InterestDAO">
|
||||||
|
|
||||||
|
<select id="listInterests" parameterType="CollectionVO" resultType="CollectionVO">
|
||||||
|
/* CollectionDAO.listInterests 관심자료 목록조회 */
|
||||||
|
SELECT
|
||||||
|
MI.MB_INTEREST_ID
|
||||||
|
,RM.MASTER_ID
|
||||||
|
,RM.TITLE
|
||||||
|
,IFNULL(RM.RPRS_THUMB_URL,"") RPRS_THUMB_URL
|
||||||
|
,IFNULL(SD.DEPT_NM,"") MNG_ORG_NM
|
||||||
|
FROM
|
||||||
|
RG_MASTER RM
|
||||||
|
INNER JOIN
|
||||||
|
MB_INTEREST MI
|
||||||
|
ON RM.MASTER_ID =MI.MASTER_ID
|
||||||
|
LEFT OUTER JOIN
|
||||||
|
SM_DEPT SD
|
||||||
|
ON SD.ORG_CD = RM.MNG_ORG_CD
|
||||||
|
WHERE 1=1
|
||||||
|
AND MI.MB_INFO_ID = #{mbInfoId}
|
||||||
|
AND MI.USE_YN = "Y"
|
||||||
|
<if test='mngOrgCd != null and !mngOrgCd.equals("")'>
|
||||||
|
AND MNG_ORG_CD = #{mngOrgCd}
|
||||||
|
</if>
|
||||||
|
ORDER BY MI.MB_INTEREST_ID DESC
|
||||||
|
LIMIT #{pageStart},#{pageSize}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="countListInterests" parameterType="CollectionVO" resultType="Integer">
|
||||||
|
/* CollectionDAO.countListInterests 관심자료 목록 개수 조회 */
|
||||||
|
SELECT
|
||||||
|
COUNT(*)
|
||||||
|
FROM
|
||||||
|
RG_MASTER RM
|
||||||
|
INNER JOIN
|
||||||
|
MB_INTEREST MI
|
||||||
|
ON RM.MASTER_ID =MI.MASTER_ID
|
||||||
|
WHERE 1=1
|
||||||
|
AND MI.MB_INFO_ID = #{mbInfoId}
|
||||||
|
AND USE_YN = "Y"
|
||||||
|
<if test='mngOrgCd != null and !mngOrgCd.equals("")'>
|
||||||
|
AND MNG_ORG_CD = #{mngOrgCd}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<update id="deleteInterests" parameterType="CollectionVO">
|
||||||
|
/* CollectionDAO.deleteInterests 관심자료 삭제 */
|
||||||
|
UPDATE
|
||||||
|
MB_INTEREST
|
||||||
|
SET
|
||||||
|
USE_YN="N"
|
||||||
|
WHERE 1=1
|
||||||
|
AND MB_INTEREST_ID = #{mbInterestId}
|
||||||
|
AND MB_INFO_ID = #{mbInfoId}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<insert id="insertInterest" parameterType="CollectionVO">
|
||||||
|
/* CollectionDAO.insertInterest 관심자료 추가 */
|
||||||
|
<selectKey resultType="Integer" keyProperty="mbInterestId" order="BEFORE">
|
||||||
|
SELECT MAX(MB_INTEREST_ID)+1 FROM MB_INTEREST;
|
||||||
|
</selectKey>
|
||||||
|
INSERT INTO
|
||||||
|
MB_INTEREST
|
||||||
|
VALUES
|
||||||
|
(#{mbInterestId},#{mbInfoId},#{masterId},NOW(),"Y");
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<select id="countInterest" parameterType="CollectionVO" resultType="Integer">
|
||||||
|
/* CollectionDAO.countInterest 관심자료 count(중복확인) */
|
||||||
|
SELECT
|
||||||
|
COUNT(*)
|
||||||
|
FROM
|
||||||
|
RG_MASTER RM
|
||||||
|
INNER JOIN
|
||||||
|
MB_INTEREST MI
|
||||||
|
ON RM.MASTER_ID = MI.MASTER_ID
|
||||||
|
WHERE 1=1
|
||||||
|
AND MI.MASTER_ID = #{masterId}
|
||||||
|
AND MI.MB_INFO_ID = #{mbInfoId}
|
||||||
|
AND MI.USE_YN = "Y"
|
||||||
|
</select>
|
||||||
|
</mapper>
|
||||||
@ -2,7 +2,7 @@
|
|||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="nlib.user.service.impl.MemberDAO">
|
<mapper namespace="nlib.user.service.impl.MemberDAO">
|
||||||
<resultMap type="nlib.user.service.NlibLoginVO" id="NlibLoginVO">
|
<!-- <resultMap type="nlib.user.service.NlibLoginVO" id="NlibLoginVO">
|
||||||
<result column="MB_INFO_ID" property="mbInfoId"/>
|
<result column="MB_INFO_ID" property="mbInfoId"/>
|
||||||
<result column="LOGIN_USER_ID" property="loginUserId"/>
|
<result column="LOGIN_USER_ID" property="loginUserId"/>
|
||||||
<result column="NAME" property="name"/>
|
<result column="NAME" property="name"/>
|
||||||
@ -19,10 +19,10 @@
|
|||||||
<result column="JOIN_DATE" property="joinDate"/>
|
<result column="JOIN_DATE" property="joinDate"/>
|
||||||
<result column="IP" property="IP"/>
|
<result column="IP" property="IP"/>
|
||||||
<result column="LAST_ACCESS_DD" property="lastAccessDd"/>
|
<result column="LAST_ACCESS_DD" property="lastAccessDd"/>
|
||||||
</resultMap>
|
</resultMap> -->
|
||||||
|
|
||||||
<!-- 회원가입 -->
|
<!-- 회원가입 -->
|
||||||
<insert id="insertMemberInfo" parameterType="nlib.user.service.NlibLoginVO">
|
<insert id="insertMemberInfo" parameterType="NlibLoginVO">
|
||||||
<selectKey resultType="java.lang.String" keyProperty="mbInfoId" order="BEFORE">
|
<selectKey resultType="java.lang.String" keyProperty="mbInfoId" order="BEFORE">
|
||||||
SELECT CONCAT(LEFT(MAX(MB_INFO_ID),2),
|
SELECT CONCAT(LEFT(MAX(MB_INFO_ID),2),
|
||||||
LPAD(RIGHT(MAX(MB_INFO_ID),9)+1,9,0)) FROM MB_INFO;
|
LPAD(RIGHT(MAX(MB_INFO_ID),9)+1,9,0)) FROM MB_INFO;
|
||||||
@ -79,7 +79,7 @@
|
|||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<!-- 비밀번호 변경 -->
|
<!-- 비밀번호 변경 -->
|
||||||
<update id="changePassword" parameterType="nlib.user.service.NlibLoginVO">
|
<update id="changePassword" parameterType="NlibLoginVO">
|
||||||
UPDATE
|
UPDATE
|
||||||
MB_INFO
|
MB_INFO
|
||||||
SET
|
SET
|
||||||
@ -119,7 +119,7 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 회원가입시 입력한 휴대폰번호와 일치하는 계정이 있는지 체크 -->
|
<!-- 회원가입시 입력한 휴대폰번호와 일치하는 계정이 있는지 체크 -->
|
||||||
<select id="selectAlreadySignUpMobile" parameterType="nlib.user.service.NlibLoginVO" resultMap="NlibLoginVO">
|
<select id="selectAlreadySignUpMobile" parameterType="NlibLoginVO" resultType="NlibLoginVO">
|
||||||
SELECT
|
SELECT
|
||||||
MB_INFO_ID
|
MB_INFO_ID
|
||||||
,LOGIN_USER_ID
|
,LOGIN_USER_ID
|
||||||
@ -183,7 +183,7 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 회원 탈퇴 -->
|
<!-- 회원 탈퇴 -->
|
||||||
<update id="deleteMembership" parameterType="nlib.user.service.NlibLoginVO">
|
<update id="deleteMembership" parameterType="NlibLoginVO">
|
||||||
/* deleteMembership */
|
/* deleteMembership */
|
||||||
UPDATE
|
UPDATE
|
||||||
MB_INFO
|
MB_INFO
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -10,7 +10,7 @@
|
|||||||
<li><a href="#" onclick="javascript:location.href='${pageContext.request.contextPath}/board/listFAQs.do';">자주하는질문</a></li>
|
<li><a href="#" onclick="javascript:location.href='${pageContext.request.contextPath}/board/listFAQs.do';">자주하는질문</a></li>
|
||||||
<li><a href="#" onclick="javascript:location.href='${pageContext.request.contextPath}/bbs/listFaqs.do';">자주하는질문(DB)</a></li>
|
<li><a href="#" onclick="javascript:location.href='${pageContext.request.contextPath}/bbs/listFaqs.do';">자주하는질문(DB)</a></li>
|
||||||
<li><a href="#" onclick="javascript:location.href='${pageContext.request.contextPath}/board/listQnAs.do';">묻고답하기</a></li>
|
<li><a href="#" onclick="javascript:location.href='${pageContext.request.contextPath}/board/listQnAs.do';">묻고답하기</a></li>
|
||||||
<li><a href="#" onclick="javascript:location.href='${pageContext.request.contextPath}/bbs/listQnas.do';">묻고답하기(DB)</a></li>
|
<li><a href="#" onclick="javascript:location.href='${pageContext.request.contextPath}/bbs/listQnas.do';">Q&A(DB)</a></li>
|
||||||
<li><a href="#" onclick="javascript:location.href='${pageContext.request.contextPath}/inform/selectNCultureLocationInfo.do';">찾아오시는길</a></li>
|
<li><a href="#" onclick="javascript:location.href='${pageContext.request.contextPath}/inform/selectNCultureLocationInfo.do';">찾아오시는길</a></li>
|
||||||
|
|
||||||
<!-- 자료검색 -->
|
<!-- 자료검색 -->
|
||||||
@ -22,7 +22,7 @@
|
|||||||
<li><a href="#" onclick="javascript:location.href='${pageContext.request.contextPath}/rent/listRentItems.do';">대출</a></li>
|
<li><a href="#" onclick="javascript:location.href='${pageContext.request.contextPath}/rent/listRentItems.do';">대출</a></li>
|
||||||
<li><a href="#" onclick="javascript:location.href='${pageContext.request.contextPath}/rent/listReservations.do';">예약</a></li>
|
<li><a href="#" onclick="javascript:location.href='${pageContext.request.contextPath}/rent/listReservations.do';">예약</a></li>
|
||||||
<li><a href="#" onclick="javascript:location.href='${pageContext.request.contextPath}/rent/listRequestsForViewingItem.do';">열람요청</a></li>
|
<li><a href="#" onclick="javascript:location.href='${pageContext.request.contextPath}/rent/listRequestsForViewingItem.do';">열람요청</a></li>
|
||||||
<li><a href="#" onclick="javascript:location.href='${pageContext.request.contextPath}/collection/listInterests.do';">관심자료</a></li>
|
<li><a href="#" onclick="javascript:location.href='${pageContext.request.contextPath}/interest/listInterests.do';">관심자료</a></li>
|
||||||
<li><a href="#" onclick="javascript:location.href='${pageContext.request.contextPath}/cmm/listNotifications.do';">알림</a></li>
|
<li><a href="#" onclick="javascript:location.href='${pageContext.request.contextPath}/cmm/listNotifications.do';">알림</a></li>
|
||||||
|
|
||||||
<!-- 개발자용 메뉴 -->
|
<!-- 개발자용 메뉴 -->
|
||||||
|
|||||||
@ -125,4 +125,101 @@ function fn_layerPopFormSubmit(formName, display) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 콜백
|
function fn_isEmpty(value) {
|
||||||
|
if(value == null) return true;
|
||||||
|
if(typeof value == "undefined") return true;
|
||||||
|
if(typeof value == "string" && value == "") return true;
|
||||||
|
if(Array.isArray(value) && value.length < 1) return true;
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
function fn_unescapeHtml(escapedStr) {
|
||||||
|
var doc = new DOMParser().parseFromString(escapedStr, "text/html");
|
||||||
|
return doc.documentElement.textContent;
|
||||||
|
}
|
||||||
|
|
||||||
|
function fn_lengthBytes(s) {
|
||||||
|
if(s != undefined && s != "") {
|
||||||
|
for(b=i=0;c=s.charCodeAt(i++);b+=c>>11?3:c>>7?2:1);
|
||||||
|
return b;
|
||||||
|
} else {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function fn_extractContentText(html) {
|
||||||
|
return new DOMParser().parseFromString(html, "text/html").documentElement.textContent;
|
||||||
|
}
|
||||||
|
|
||||||
|
function risShow(risId){
|
||||||
|
var tag = document.createElement("div");
|
||||||
|
|
||||||
|
tag.class="popup pop-user-set pop-export";
|
||||||
|
tag.id = "export-data";
|
||||||
|
tag.style="style='display: none;'";
|
||||||
|
|
||||||
|
document.body.prepend(tag);
|
||||||
|
|
||||||
|
document.getElementById("export-data").className="popup pop-user-set pop-export";
|
||||||
|
|
||||||
|
var html="";
|
||||||
|
html+='<div class="pop-wrap">';
|
||||||
|
html+='<div class="pop-inner-wrap">';
|
||||||
|
html+='<h1>서지정보 내보내기 (Export)</h1>';
|
||||||
|
html+='<div class="guide export first">';
|
||||||
|
html+='<div class="guide-title underline">서지정보 내보내기 안내</div>';
|
||||||
|
html+='<div class="guide-contents">';
|
||||||
|
html+='<p>지역N문화 포털은 콘텐츠 생산자 및 연구자들을 위해 서지정보 내보내기 기능을 제공하고 있습니다.</p>';
|
||||||
|
html+='<ul class="dot-list type1 blank-type2">';
|
||||||
|
html+='<li>서지정보 내용<br>: 형식, 제목, 저자, 시리즈, 언어, URL, 태그</li>';
|
||||||
|
html+='<li>제공 포멧<br>: RIS : Search Information System (*.ris)</li>';
|
||||||
|
html+='<li>RIS 지원 서지관리 프로그램<br>: EndNote, Mendeley, Zotero) 외</li>';
|
||||||
|
html+='</ul>';
|
||||||
|
html+='</div>';
|
||||||
|
html+='</div>';
|
||||||
|
html+='<div class="guide program next">';
|
||||||
|
html+='<div class="guide-title underline">서지관리 프로그램 안내</div>';
|
||||||
|
html+='<div class="guide-contents">';
|
||||||
|
html+='<p>서지관리 프로그램은 문헌 및 온라인 콘텐츠 등 자료를 관리하고 공유하는데 사용됩니다.</p>';
|
||||||
|
html+='<p class="caution">※ 해당 프로그램은 소속기관 또는 개인 가입이 필요할 수 있으며, 지역N문화 포털은 링크만 제공하고 직접 서비스를 제공하지 않습니다.</p>';
|
||||||
|
html+='<ul class="dot-list type1 blank-type1">';
|
||||||
|
html+='<li>Zotero (www.zotero.com) / 한글 메뉴 지원 (o), 300MB 용량 무료 (초과 유료)</li>';
|
||||||
|
html+='<li>EndNote (www.endnote.com) / 한글 메뉴 지원 (x) , 2G 용량 무료 (초과유료)</li>';
|
||||||
|
html+='<li>Mendeley (www.mendeley.com) / 한글 메뉴 지원 (x), 2G 용량 무료 (초과유료)</li>';
|
||||||
|
html+='</ul>';
|
||||||
|
html+='</div>';
|
||||||
|
html+='</div>';
|
||||||
|
html+='<div class="btn-wrap">';
|
||||||
|
html+='<button class="btn btn-color" id="risExport" onclick="risDownload(\''+risId+'\');">내보내기</button>';
|
||||||
|
html+='<button class="btn btn-gray" onclick="risClose();">닫기</button>';
|
||||||
|
html+='</div>';
|
||||||
|
html+='</div>';
|
||||||
|
html+='<div class="week-no-show">';
|
||||||
|
html+='<div class="check"><input type="checkbox" id="e-week-no"><label for="e-week-no">일주일간 보지 않기</label></div>';
|
||||||
|
html+='</div>';
|
||||||
|
html+='</div>';
|
||||||
|
|
||||||
|
$("#export-data").append(html);
|
||||||
|
}
|
||||||
|
|
||||||
|
function risClose(){
|
||||||
|
$("#export-data").remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
function risDownload(risId){
|
||||||
|
$("#masterId").val(risId);
|
||||||
|
|
||||||
|
document.interestsForm.action="/collection/risDownload.do";
|
||||||
|
document.interestsForm.submit();
|
||||||
|
}
|
||||||
|
|
||||||
|
function insertInterest(masterId){
|
||||||
|
$.ajax({
|
||||||
|
type: "post",
|
||||||
|
url: "/interest/insertInterest.ajax",
|
||||||
|
data: {"masterId" : masterId}
|
||||||
|
}).done(function(result){
|
||||||
|
alert(result);
|
||||||
|
});
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user