기준코드 리스트 작업중

cks
유민형 2023-10-31 10:41:21 +09:00
parent 7a294aaf5b
commit 63c3c1fbcc
6 changed files with 36 additions and 12 deletions

View File

@ -283,13 +283,18 @@ public class StandardCodeController {
paginationInfo.setRecordCountPerPage(propertyService.getInt("Globals.pageUnit"));
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);
int totCnt = Integer.parseInt((String)resultMap.get("resultCnt"));
paginationInfo.setTotalRecordCount(totCnt);
resultMap.put("codeList", standardCodeListService.selectStandardCodeList(tnDocumentInfoVO));
resultMap.put("codeListCnt", totCnt);
resultMap.put("tnDocumentInfoVO", tnDocumentInfoVO);
resultMap.put("paginationInfo", paginationInfo);
resultMap.put("user", user);

View File

@ -17,7 +17,7 @@ import java.util.Date;
@DynamicInsert
@DynamicUpdate
@Table(name = "tn_document_info")
public class TnDocumentInfoVO {
public class TnDocumentInfoVO extends TnDocumentInfo {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "doc_info_seq")
@ -89,4 +89,16 @@ public class TnDocumentInfoVO {
@Schema(description = "현재페이지")
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;
}

View File

@ -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.
#TRACE > DEBUG > INFO > WARN > ERROR
logging.scan=false
logging.root.level=ERROR
logging.root.level=DEBUG
logging.file.name=backend
logging.file.path=./log
logging.rollingpolicy.maxFileSize=1MB

View File

@ -71,8 +71,8 @@
FROM
tn_document_info
WHERE 1 = 1
and doc_info_seq = '5243'
ORDER BY doc_info_seq desc
LIMIT #{recordCountPerPage} OFFSET #{firstIndex}
</select>
<select id="selectStandardCodeListCnt" parameterType="egovframework.dbnt.kcsc.standardCode.entity.TnDocumentInfoVO" resultType="int">

View File

@ -44,6 +44,7 @@ function EgovPaging(props) {
const otherPage = <li key={i}>
<button onClick={e => {props.moveToPage(i)}}>{i}</button>
</li>;
console.log("@@@ otherpage : " + otherPage);
paginationTag.push(otherPage);
}
}

View File

@ -45,11 +45,13 @@ function StandardCodeList(props) {
EgovNet.requestFetch(retrieveListURL,
requestOptions,
(resp) => {
setMasterBoard(resp.result.codeList);
setMasterBoard(resp.result.tnDocumentInfoVO);
setPaginationInfo(resp.result.paginationInfo);
let mutListTag = [];
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 pageSize = resp.result.paginationInfo.pageSize;
console.log(resp)
@ -64,6 +66,7 @@ function StandardCodeList(props) {
state={{
docInfoSeq: item.docInfoSeq,
docNm: item.docNm,
kcscCode: item.kcscCode,
searchCondition: searchCondition
}}
key={listIdx}
@ -165,11 +168,14 @@ function StandardCodeList(props) {
{/* <!-- 게시판목록 --> */}
<div className="board_list BRD002">
<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 className="result">
{listTag}