기준코드 리스트 작업중
parent
7a294aaf5b
commit
63c3c1fbcc
|
|
@ -283,13 +283,18 @@ public class StandardCodeController {
|
||||||
paginationInfo.setRecordCountPerPage(propertyService.getInt("Globals.pageUnit"));
|
paginationInfo.setRecordCountPerPage(propertyService.getInt("Globals.pageUnit"));
|
||||||
paginationInfo.setPageSize(propertyService.getInt("Globals.pageSize"));
|
paginationInfo.setPageSize(propertyService.getInt("Globals.pageSize"));
|
||||||
|
|
||||||
|
System.out.println("@@@ pageIndex : " + tnDocumentInfoVO.getPageIndex());
|
||||||
|
|
||||||
|
tnDocumentInfoVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||||
|
tnDocumentInfoVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||||
|
tnDocumentInfoVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||||
|
|
||||||
Map<String, Object> resultMap = standardCodeListService.selectStandardCodeList(tnDocumentInfoVO);
|
Map<String, Object> resultMap = standardCodeListService.selectStandardCodeList(tnDocumentInfoVO);
|
||||||
|
|
||||||
int totCnt = Integer.parseInt((String)resultMap.get("resultCnt"));
|
int totCnt = Integer.parseInt((String)resultMap.get("resultCnt"));
|
||||||
paginationInfo.setTotalRecordCount(totCnt);
|
paginationInfo.setTotalRecordCount(totCnt);
|
||||||
|
|
||||||
resultMap.put("codeList", standardCodeListService.selectStandardCodeList(tnDocumentInfoVO));
|
resultMap.put("tnDocumentInfoVO", tnDocumentInfoVO);
|
||||||
resultMap.put("codeListCnt", totCnt);
|
|
||||||
resultMap.put("paginationInfo", paginationInfo);
|
resultMap.put("paginationInfo", paginationInfo);
|
||||||
resultMap.put("user", user);
|
resultMap.put("user", user);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ import java.util.Date;
|
||||||
@DynamicInsert
|
@DynamicInsert
|
||||||
@DynamicUpdate
|
@DynamicUpdate
|
||||||
@Table(name = "tn_document_info")
|
@Table(name = "tn_document_info")
|
||||||
public class TnDocumentInfoVO {
|
public class TnDocumentInfoVO extends TnDocumentInfo {
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "doc_info_seq")
|
@Column(name = "doc_info_seq")
|
||||||
|
|
@ -89,4 +89,16 @@ public class TnDocumentInfoVO {
|
||||||
|
|
||||||
@Schema(description = "현재페이지")
|
@Schema(description = "현재페이지")
|
||||||
private int pageIndex = 1;
|
private int pageIndex = 1;
|
||||||
|
@Schema(description = "페이지갯수")
|
||||||
|
private int pageUnit = 10;
|
||||||
|
@Schema(description = "페이지사이즈")
|
||||||
|
private int pageSize = 10;
|
||||||
|
@Schema(description = "첫페이지 인덱스")
|
||||||
|
private int firstIndex = 1;
|
||||||
|
@Schema(description = "마지막페이지 인덱스")
|
||||||
|
private int lastIndex = 1;
|
||||||
|
@Schema(description = "페이지당 레코드 개수")
|
||||||
|
private int recordCountPerPage = 10;
|
||||||
|
@Schema(description = "레코드 번호")
|
||||||
|
private int rowNo = 0;
|
||||||
}
|
}
|
||||||
|
|
@ -60,7 +60,7 @@ spring.mvc.pathmatch.matching-strategy=ant_path_matcher
|
||||||
#file path\uc758 default \uac12\uc740 \ud504\ub85c\uc81d\ud2b8 root \uacbd\ub85c\uc774\ubbc0\ub85c \uc6d0\ud558\uc2dc\ub294 \uacbd\ub85c\ub85c \ubcc0\uacbd\ud558\uc5ec \uc0ac\uc6a9\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.
|
#file path\uc758 default \uac12\uc740 \ud504\ub85c\uc81d\ud2b8 root \uacbd\ub85c\uc774\ubbc0\ub85c \uc6d0\ud558\uc2dc\ub294 \uacbd\ub85c\ub85c \ubcc0\uacbd\ud558\uc5ec \uc0ac\uc6a9\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.
|
||||||
#TRACE > DEBUG > INFO > WARN > ERROR
|
#TRACE > DEBUG > INFO > WARN > ERROR
|
||||||
logging.scan=false
|
logging.scan=false
|
||||||
logging.root.level=ERROR
|
logging.root.level=DEBUG
|
||||||
logging.file.name=backend
|
logging.file.name=backend
|
||||||
logging.file.path=./log
|
logging.file.path=./log
|
||||||
logging.rollingpolicy.maxFileSize=1MB
|
logging.rollingpolicy.maxFileSize=1MB
|
||||||
|
|
|
||||||
|
|
@ -71,8 +71,8 @@
|
||||||
FROM
|
FROM
|
||||||
tn_document_info
|
tn_document_info
|
||||||
WHERE 1 = 1
|
WHERE 1 = 1
|
||||||
and doc_info_seq = '5243'
|
|
||||||
ORDER BY doc_info_seq desc
|
ORDER BY doc_info_seq desc
|
||||||
|
LIMIT #{recordCountPerPage} OFFSET #{firstIndex}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectStandardCodeListCnt" parameterType="egovframework.dbnt.kcsc.standardCode.entity.TnDocumentInfoVO" resultType="int">
|
<select id="selectStandardCodeListCnt" parameterType="egovframework.dbnt.kcsc.standardCode.entity.TnDocumentInfoVO" resultType="int">
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@ function EgovPaging(props) {
|
||||||
const otherPage = <li key={i}>
|
const otherPage = <li key={i}>
|
||||||
<button onClick={e => {props.moveToPage(i)}}>{i}</button>
|
<button onClick={e => {props.moveToPage(i)}}>{i}</button>
|
||||||
</li>;
|
</li>;
|
||||||
|
console.log("@@@ otherpage : " + otherPage);
|
||||||
paginationTag.push(otherPage);
|
paginationTag.push(otherPage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,11 +45,13 @@ function StandardCodeList(props) {
|
||||||
EgovNet.requestFetch(retrieveListURL,
|
EgovNet.requestFetch(retrieveListURL,
|
||||||
requestOptions,
|
requestOptions,
|
||||||
(resp) => {
|
(resp) => {
|
||||||
setMasterBoard(resp.result.codeList);
|
setMasterBoard(resp.result.tnDocumentInfoVO);
|
||||||
setPaginationInfo(resp.result.paginationInfo);
|
setPaginationInfo(resp.result.paginationInfo);
|
||||||
|
|
||||||
let mutListTag = [];
|
let mutListTag = [];
|
||||||
mutListTag.push(<p className="no_data" key="0">검색된 결과가 없습니다.</p>); // 게시판 목록 초기값
|
mutListTag.push(<p className="no_data" key="0">검색된 결과가 없습니다.</p>); // 게시판 목록 초기값
|
||||||
const resultCnt = parseInt(resp.result.codeListCnt);
|
|
||||||
|
const resultCnt = parseInt(resp.result.resultCnt);
|
||||||
const currentPageNo = resp.result.paginationInfo.currentPageNo;
|
const currentPageNo = resp.result.paginationInfo.currentPageNo;
|
||||||
const pageSize = resp.result.paginationInfo.pageSize;
|
const pageSize = resp.result.paginationInfo.pageSize;
|
||||||
console.log(resp)
|
console.log(resp)
|
||||||
|
|
@ -64,6 +66,7 @@ function StandardCodeList(props) {
|
||||||
state={{
|
state={{
|
||||||
docInfoSeq: item.docInfoSeq,
|
docInfoSeq: item.docInfoSeq,
|
||||||
docNm: item.docNm,
|
docNm: item.docNm,
|
||||||
|
kcscCode: item.kcscCode,
|
||||||
searchCondition: searchCondition
|
searchCondition: searchCondition
|
||||||
}}
|
}}
|
||||||
key={listIdx}
|
key={listIdx}
|
||||||
|
|
@ -165,11 +168,14 @@ function StandardCodeList(props) {
|
||||||
{/* <!-- 게시판목록 --> */}
|
{/* <!-- 게시판목록 --> */}
|
||||||
<div className="board_list BRD002">
|
<div className="board_list BRD002">
|
||||||
<div className="head">
|
<div className="head">
|
||||||
<span>번호</span>
|
<span>대분류</span>
|
||||||
<span>제목</span>
|
<span>중분류</span>
|
||||||
<span>작성자</span>
|
<span>코드번호</span>
|
||||||
<span>작성일</span>
|
<span>코드명</span>
|
||||||
<span>조회수</span>
|
<span>개정이력</span>
|
||||||
|
<span>보기</span>
|
||||||
|
<span>다운로드</span>
|
||||||
|
<span>즐겨찾기</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="result">
|
<div className="result">
|
||||||
{listTag}
|
{listTag}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue