강석 최 2023-10-26 11:44:23 +09:00
commit 4a166496a2
14 changed files with 713 additions and 2 deletions

View File

@ -3,7 +3,11 @@ package egovframework.dbnt.kcsc.standardCode;
import egovframework.com.cmm.ResponseCode;
import egovframework.com.cmm.service.ResultVO;
import egovframework.com.cmm.LoginVO;
import egovframework.dbnt.kcsc.standardCode.entity.TnDocumentInfoVO;
import egovframework.dbnt.kcsc.standardCode.service.StandardCodeListService;
import egovframework.dbnt.kcsc.standardCode.service.StandardCodeService;
import egovframework.let.cop.bbs.service.BoardVO;
import org.egovframe.rte.fdl.property.EgovPropertyService;
import org.egovframe.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
import egovframework.dbnt.kcsc.standardCode.service.StandardCodeVO;
@ -16,6 +20,7 @@ import lombok.RequiredArgsConstructor;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;
@ -210,8 +215,14 @@ public class StandardCodeController {
resultVO.setResultMessage(ResponseCode.SUCCESS.getMessage());
return resultVO;
}*/
@Resource(name = "propertiesService")
protected EgovPropertyService propertyService;
private final StandardCodeService standardCodeService;
private final StandardCodeListService standardCodeListService;
@Operation(
summary = "건설기준코드 트리 조회",
@ -232,6 +243,7 @@ public class StandardCodeController {
return resultVO;
}
@Operation(
summary = "건설기준코드 내용 조회",
description = "건설기준코드 내용 조회",
@ -250,4 +262,40 @@ public class StandardCodeController {
resultVO.setResult(resultMap);
return resultVO;
}
@Operation(
summary = "건설기준코드 리스트 조회",
description = "건설기준코드 리스트 조회",
tags = {"StandardCodeController"}
)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "조회 성공"),
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님")
})
@PostMapping(value = "/selectStandardCodeList.do", consumes = MediaType.APPLICATION_JSON_VALUE)
public ResultVO selectStandardCodeList(@RequestBody TnDocumentInfoVO tnDocumentInfoVO, @AuthenticationPrincipal LoginVO user)
throws Exception {
ResultVO resultVO = new ResultVO();
PaginationInfo paginationInfo = new PaginationInfo();
paginationInfo.setCurrentPageNo(tnDocumentInfoVO.getPageIndex());
paginationInfo.setRecordCountPerPage(propertyService.getInt("Globals.pageUnit"));
paginationInfo.setPageSize(propertyService.getInt("Globals.pageSize"));
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("paginationInfo", paginationInfo);
resultMap.put("user", user);
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
resultVO.setResultMessage(ResponseCode.SUCCESS.getMessage());
resultVO.setResult(resultMap);
return resultVO;
}
}

View File

@ -0,0 +1,88 @@
package egovframework.dbnt.kcsc.standardCode.entity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
import java.util.Date;
@Getter
@Setter
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "tn_document_info")
public class TnDocumentInfo {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "doc_info_seq")
private int docInfoSeq;
@Column(name = "group_seq", nullable = false)
private int groupSeq;
@Column(name = "kcsc_cd")
private String kcscCd;
@Column(name = "old_kcsc_cd")
private String oldKcscCd;
@Column(name = "doc_nm", nullable = false)
private String docNm;
@Column(name = "doc_yr", nullable = false)
private String docYr;
@Column(name = "doc_cycl", nullable = false)
private int docCycl;
@Column(name = "doc_er", nullable = false)
private String docEr;
@Column(name = "estb_ymd")
@Temporal(TemporalType.DATE)
private Date estbYmd;
@Column(name = "rvsn_ymd")
@Temporal(TemporalType.DATE)
private Date rvsnYmd;
@Column(name = "doc_rev_hist_seq")
private int docRevHistSeq;
@Column(name = "doc_brief", length = 1000)
private String docBrief;
@Column(name = "doc_rvsn_remark", length = 1000)
private String docRvsnRemark;
@Column(name = "doc_consider", length = 255)
private String docConsider;
@Column(name = "doc_advice", length = 255)
private String docAdvice;
@Column(name = "doc_dept", length = 255)
private String docDept;
@Column(name = "doc_relation", length = 255)
private String docRelation;
@Column(name = "doc_publish", length = 255)
private String docPublish;
@Column(name = "aplcn_bgng_ymd")
@Temporal(TemporalType.DATE)
private Date aplcnBgngYmd;
@Column(name = "aplcn_end_ymd")
@Temporal(TemporalType.DATE)
private Date aplcnEndYmd;
@Column(name = "doc_order", nullable = false)
private int docOrder;
@Column(name = "last_yn", nullable = false)
private char lastYn;
@Column(name = "doc_file_grp_id")
private String docFileGrpId;
@Column(name = "rvsn_file_grp_id")
private String rvsnFileGrpId;
@Column(name = "frst_crt_id", nullable = false)
private String frstCrtId;
@Column(name = "frst_crt_dt", nullable = false)
@Temporal(TemporalType.TIMESTAMP)
private Date frstCrtDt;
@Column(name = "last_chg_id")
private String lastChgId;
@Column(name = "last_chg_dt")
@Temporal(TemporalType.TIMESTAMP)
private Date lastChgDt;
@Column(name = "use_yn", nullable = false)
private char useYn;
@Column(name = "old_seq")
private Integer oldSeq;
}

View File

@ -0,0 +1,92 @@
package egovframework.dbnt.kcsc.standardCode.entity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
import java.util.Date;
@Getter
@Setter
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "tn_document_info")
public class TnDocumentInfoVO {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "doc_info_seq")
private int docInfoSeq;
@Column(name = "group_seq", nullable = false)
private int groupSeq;
@Column(name = "kcsc_cd")
private String kcscCd;
@Column(name = "old_kcsc_cd")
private String oldKcscCd;
@Column(name = "doc_nm", nullable = false)
private String docNm;
@Column(name = "doc_yr", nullable = false)
private String docYr;
@Column(name = "doc_cycl", nullable = false)
private int docCycl;
@Column(name = "doc_er", nullable = false)
private String docEr;
@Column(name = "estb_ymd")
@Temporal(TemporalType.DATE)
private Date estbYmd;
@Column(name = "rvsn_ymd")
@Temporal(TemporalType.DATE)
private Date rvsnYmd;
@Column(name = "doc_rev_hist_seq")
private int docRevHistSeq;
@Column(name = "doc_brief", length = 1000)
private String docBrief;
@Column(name = "doc_rvsn_remark", length = 1000)
private String docRvsnRemark;
@Column(name = "doc_consider", length = 255)
private String docConsider;
@Column(name = "doc_advice", length = 255)
private String docAdvice;
@Column(name = "doc_dept", length = 255)
private String docDept;
@Column(name = "doc_relation", length = 255)
private String docRelation;
@Column(name = "doc_publish", length = 255)
private String docPublish;
@Column(name = "aplcn_bgng_ymd")
@Temporal(TemporalType.DATE)
private Date aplcnBgngYmd;
@Column(name = "aplcn_end_ymd")
@Temporal(TemporalType.DATE)
private Date aplcnEndYmd;
@Column(name = "doc_order", nullable = false)
private int docOrder;
@Column(name = "last_yn", nullable = false)
private char lastYn;
@Column(name = "doc_file_grp_id")
private String docFileGrpId;
@Column(name = "rvsn_file_grp_id")
private String rvsnFileGrpId;
@Column(name = "frst_crt_id", nullable = false)
private String frstCrtId;
@Column(name = "frst_crt_dt", nullable = false)
@Temporal(TemporalType.TIMESTAMP)
private Date frstCrtDt;
@Column(name = "last_chg_id")
private String lastChgId;
@Column(name = "last_chg_dt")
@Temporal(TemporalType.TIMESTAMP)
private Date lastChgDt;
@Column(name = "use_yn", nullable = false)
private char useYn;
@Column(name = "old_seq")
private Integer oldSeq;
@Schema(description = "현재페이지")
private int pageIndex = 1;
}

View File

@ -0,0 +1,15 @@
package egovframework.dbnt.kcsc.standardCode.mapper;
import egovframework.dbnt.kcsc.standardCode.entity.TnDocumentInfo;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface StandardCodeMapper {
List<TnDocumentInfo> selectStandardCodeList(TnDocumentInfo tnDocumentInfo);
Integer selectStandardCodeListCnt(TnDocumentInfo tnDocumentInfo);
}

View File

@ -0,0 +1,8 @@
package egovframework.dbnt.kcsc.standardCode.repository;
import egovframework.dbnt.kcsc.standardCode.entity.TnDocumentInfo;
import org.springframework.data.jpa.repository.JpaRepository;
public interface TnDocumentInfoRepository extends JpaRepository<TnDocumentInfo, Integer> {
}

View File

@ -0,0 +1,40 @@
package egovframework.dbnt.kcsc.standardCode.service;
import egovframework.dbnt.kcsc.standardCode.entity.TnDocumentInfo;
import egovframework.dbnt.kcsc.standardCode.entity.TnDocumentInfoVO;
import egovframework.let.cop.bbs.service.Board;
import egovframework.let.cop.bbs.service.BoardVO;
import java.util.Map;
/**
*
* @author
* @since 2009.03.19
* @version 1.0
* @see
*
* <pre>
* << (Modification Information) >>
*
*
* ------- -------- ---------------------------
* 2009.03.19
* 2011.08.31 JJY 릿
*
* </pre>
*/
public interface StandardCodeListService {
/**
* .
* @return
*
* @param
* @param
* @exception Exception Exception
*/
public Map<String, Object> selectStandardCodeList(TnDocumentInfoVO tnDocumentInfoVO)
throws Exception;
}

View File

@ -1,14 +1,16 @@
package egovframework.dbnt.kcsc.standardCode.service;
import egovframework.dbnt.kcsc.standardCode.entity.TnDocumentGroup;
import egovframework.dbnt.kcsc.standardCode.entity.TnDocumentInfo;
import egovframework.dbnt.kcsc.standardCode.repository.TnDocumentContentRepository;
import egovframework.dbnt.kcsc.standardCode.repository.TnDocumentGroupRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@Service
@Transactional
@RequiredArgsConstructor
public class StandardCodeService {
private final TnDocumentGroupRepository tnDocumentGroupRepository;
@ -21,4 +23,13 @@ public class StandardCodeService {
public List<StandardCodeContentInterface> selectStandardCodeDocument(StandardCodeVO param) {
return tnDocumentContentRepository.getRecentFullContextByContent(param.getDocCode(), param.getDocPart());
}
/*public List<TnDocumentInfo> selectStandardCodeList(TnDocumentInfo tnDocumentInfo) {
return standardCodeMapper.selectStandardCodeList(tnDocumentInfo);
}
public Integer selectStandardCodeListCnt(TnDocumentInfo tnDocumentInfo) {
return standardCodeMapper.selectStandardCodeListCnt(tnDocumentInfo);
}*/
}

View File

@ -0,0 +1,55 @@
package egovframework.dbnt.kcsc.standardCode.service.impl;
import egovframework.dbnt.kcsc.standardCode.entity.TnDocumentInfoVO;
import egovframework.let.cop.bbs.service.Board;
import egovframework.let.cop.bbs.service.BoardVO;
import org.egovframe.rte.psl.dataaccess.EgovAbstractMapper;
import org.springframework.stereotype.Repository;
import java.util.Iterator;
import java.util.List;
/**
*
* @author
* @since 2009.03.19
* @version 1.0
* @see
*
* <pre>
* << (Modification Information) >>
*
*
* ------- -------- ---------------------------
* 2009.03.19
* 2011.08.31 JJY 릿
*
* </pre>
*/
@Repository("StandardCodeListDAO")
public class StandardCodeListDAO extends EgovAbstractMapper {
/**
* .
*
* @param
* @return
* @throws Exception
*/
@SuppressWarnings("unchecked")
public List<TnDocumentInfoVO> selectStandardCodeList(TnDocumentInfoVO tnDocumentInfoVO) throws Exception {
return (List<TnDocumentInfoVO>) list("StandardCodeListDAO.selectStandardCodeList", tnDocumentInfoVO);
}
/**
* .
*
* @param
* @return
* @throws Exception
*/
public int selectStandardCodeListCnt(TnDocumentInfoVO tnDocumentInfoVO) throws Exception {
return (Integer)selectOne("StandardCodeListDAO.selectStandardCodeListCnt", tnDocumentInfoVO);
}
}

View File

@ -0,0 +1,64 @@
package egovframework.dbnt.kcsc.standardCode.service.impl;
import egovframework.com.cmm.service.EgovFileMngService;
import egovframework.com.cmm.service.FileVO;
import egovframework.dbnt.kcsc.standardCode.entity.TnDocumentInfoVO;
import egovframework.dbnt.kcsc.standardCode.service.StandardCodeListService;
import egovframework.let.cop.bbs.service.Board;
import egovframework.let.cop.bbs.service.BoardVO;
import egovframework.let.cop.bbs.service.EgovBBSManageService;
import egovframework.let.cop.bbs.service.impl.BBSManageDAO;
import egovframework.let.utl.fcc.service.EgovDateUtil;
import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl;
import org.egovframe.rte.fdl.property.EgovPropertyService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.*;
/**
*
* @author
* @since 2009.03.19
* @version 1.0
* @see
*
* <pre>
* << (Modification Information) >>
*
*
* ------- -------- ---------------------------
* 2009.03.19
* 2011.08.31 JJY 릿
*
* </pre>
*/
@Service("StandardCodeListService")
public class StandardCodeListServiceImpl extends EgovAbstractServiceImpl implements StandardCodeListService {
@Resource(name = "StandardCodeListDAO")
private StandardCodeListDAO standardCodeListDAO;
/**
* .
*
* @see
*/
@Override
public Map<String, Object> selectStandardCodeList(TnDocumentInfoVO tnDocumentInfoVO) throws Exception {
List<TnDocumentInfoVO> list = standardCodeListDAO.selectStandardCodeList(tnDocumentInfoVO);
List<TnDocumentInfoVO> result = new ArrayList<TnDocumentInfoVO>();
result = list;
int cnt = standardCodeListDAO.selectStandardCodeListCnt(tnDocumentInfoVO);
Map<String, Object> map = new HashMap<String, Object>();
map.put("resultList", result);
map.put("resultCnt", Integer.toString(cnt));
return map;
}
}

View File

@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="StandardCodeListDAO">
<resultMap id="TnDocumentInfo" type="egovframework.dbnt.kcsc.standardCode.entity.TnDocumentInfoVO">
<result property="docInfoSeq" column="doc_info_seq" />
<result property="useYn" column="use_yn" />
<result property="rvsnYmd" column="rvsn_ymd" />
<result property="rvsnFileGrpId" column="rvsn_file_grp_id" />
<result property="oldSeq" column="old_seq" />
<result property="oldKcscCd" column="old_kcsc_cd" />
<result property="lastYn" column="last_yn" />
<result property="lastChgId" column="last_chg_id" />
<result property="lastChgDt" column="last_chg_dt" />
<result property="kcscCd" column="kcsc_cd" />
<result property="groupSeq" column="group_seq" />
<result property="frstCrtId" column="frst_crt_id" />
<result property="frstCrtDt" column="frst_crt_dt" />
<result property="estbYmd" column="estb_ymd" />
<result property="docYr" column="doc_yr" />
<result property="docRvsnRemark" column="doc_rvsn_remark" />
<result property="docRevHistSeq" column="doc_rev_hist_seq" />
<result property="docRelation" column="doc_relation" />
<result property="docPublish" column="doc_publish" />
<result property="docOrder" column="doc_order" />
<result property="docNm" column="doc_nm" />
<result property="docFileGrpId" column="doc_file_grp_id" />
<result property="docEr" column="doc_er" />
<result property="docDept" column="doc_dept" />
<result property="docCycl" column="doc_cycl" />
<result property="docConsider" column="doc_consider" />
<result property="docBrief" column="doc_brief" />
<result property="docAdvice" column="doc_advice" />
<result property="aplcnEndYmd" column="aplcn_end_ymd" />
<result property="aplcnBgngYmd" column="aplcn_bgng_ymd" />
</resultMap>
<select id="selectStandardCodeList" parameterType="egovframework.dbnt.kcsc.standardCode.entity.TnDocumentInfoVO" resultMap="TnDocumentInfo">
SELECT
doc_info_seq,
use_yn,
rvsn_ymd,
rvsn_file_grp_id,
old_seq,
old_kcsc_cd,
last_yn,
last_chg_id,
last_chg_dt,
kcsc_cd,
group_seq,
frst_crt_id,
frst_crt_dt,
estb_ymd,
doc_yr,
doc_rvsn_remark,
doc_rev_hist_seq,
doc_relation,
doc_publish,
doc_order,
doc_nm,
doc_file_grp_id,
doc_er,
doc_dept,
doc_cycl,
doc_consider,
doc_brief,
doc_advice,
aplcn_end_ymd,
aplcn_bgng_ymd
FROM
tn_document_info
WHERE 1 = 1
and doc_info_seq = '5243'
ORDER BY doc_info_seq desc
</select>
<select id="selectStandardCodeListCnt" parameterType="egovframework.dbnt.kcsc.standardCode.entity.TnDocumentInfoVO" resultType="int">
SELECT count(*)
FROM
tn_document_info
WHERE 1 = 1
</select>
</mapper>

View File

@ -77,6 +77,7 @@ const URL = {
//기준코드
STANDARD_CODE_LIST : "/standardCode/list", //건설기준코드/리스트
STANDARD_CODE_DETAIL : "/standardCode/detail", //건설기준코드/리스트
STANDARD_CODE_VIEWER : "/standardCode/viewer", //건설기준코드/뷰어
STANDARD_CODE_VIEWER_LINK : "/standardCode/viewer/:linkedDocCode", //건설기준코드/뷰어/새 창 링크
}

View File

@ -108,7 +108,7 @@ function EgovMain(props) {
{/*<img src="/assets/images/img_simple_main.png" alt="단순 홈페이지 전자정부 표준프레임워크의 경량환경 내부업무에 대한 최신 정보와 기술을 제공하고 있습니다." />*/}
<h3>건설기준코드 검색</h3>
<Row className="justify-content-md-center">
<Col xs={3}><Button variant="secondary">공통코드</Button></Col>
<Col xs={3}><Button variant="secondary"><a href="/standardCode/list" title="공통코드">공통코드</a></Button></Col>
<Col xs={3}><Button variant="secondary">지반코드</Button></Col>
<Col xs={3}><Button variant="secondary">구조코드</Button></Col>
<Col xs={3}><Button variant="secondary">내진코드</Button></Col>

View File

@ -0,0 +1,200 @@
import React, { useState, useEffect, useCallback, useRef } from 'react';
import { Link, useLocation } from 'react-router-dom';
import * as EgovNet from 'api/egovFetch';
import URL from 'constants/url';
import { NOTICE_BBS_ID } from 'config';
import { default as EgovLeftNav } from 'components/leftmenu/EgovLeftNavInform';
import EgovPaging from 'components/EgovPaging';
import { itemIdxByPage } from 'utils/calc';
function StandardCodeList(props) {
console.group("StandardCodeList");
console.log("[Start] StandardCodeList ------------------------------");
console.log("StandardCodeList [props] : ", props);
const location = useLocation();
console.log("StandardCodeList [location] : ", location);
const cndRef = useRef();
const wrdRef = useRef();
const bbsId = location.state?.bbsId || NOTICE_BBS_ID;
// eslint-disable-next-line no-unused-vars
const [searchCondition, setSearchCondition] = useState(location.state?.searchCondition || { bbsId: bbsId, pageIndex: 1, searchCnd: '0', searchWrd: '' });// ||
const [masterBoard, setMasterBoard] = useState({});
const [paginationInfo, setPaginationInfo] = useState({});
const [listTag, setListTag] = useState([]);
const retrieveList = useCallback((searchCondition) => {
console.groupCollapsed("StandardCodeList.retrieveList()");
const retrieveListURL = '/standardCode/selectStandardCodeList.do';
const requestOptions = {
method: "POST",
headers: {
'Content-type': 'application/json',
},
body: JSON.stringify(searchCondition)
}
EgovNet.requestFetch(retrieveListURL,
requestOptions,
(resp) => {
setMasterBoard(resp.result.codeList);
setPaginationInfo(resp.result.paginationInfo);
let mutListTag = [];
mutListTag.push(<p className="no_data" key="0">검색된 결과가 없습니다.</p>); //
const resultCnt = parseInt(resp.result.codeListCnt);
const currentPageNo = resp.result.paginationInfo.currentPageNo;
const pageSize = resp.result.paginationInfo.pageSize;
//
resp.result.codeList.forEach(function (item, index) {
if (index === 0) mutListTag = []; //
const listIdx = itemIdxByPage(resultCnt , currentPageNo, pageSize, index);
mutListTag.push(
<Link
to={{pathname: URL.STANDARD_CODE_DETAIL}}
state={{
docInfoSeq: item.docInfoSeq,
docNm: item.docNm,
searchCondition: searchCondition
}}
key={listIdx}
className="list_item" >
<div>{listIdx}</div>
{(item.replyLc * 1 ? true : false) &&
<div className="al reply">
{item.docNm}
</div>}
{(item.replyLc * 1 ? false : true) &&
<div className="al">
{item.docNm}
</div>}
<div>{item.frstRegisterNm}</div>
<div>{item.frstRegisterPnttm}</div>
<div>{item.inqireCo}</div>
</Link>
);
});
setListTag(mutListTag);
},
function (resp) {
console.log("err response : ", resp);
}
);
console.groupEnd("StandardCodeList.retrieveList()");
},[]);
useEffect(() => {
retrieveList(searchCondition);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
console.log("------------------------------StandardCodeList [End]");
console.groupEnd("StandardCodeList");
return (
<div className="container">
<div className="c_wrap">
{/* <!-- Location --> */}
<div className="location">
<ul>
<li><Link to={URL.MAIN} className="home">Home</Link></li>
<li><Link to='#'>건설기준코드</Link></li>
<li>{masterBoard && masterBoard.bbsNm}</li>
</ul>
</div>
{/* <!--// Location --> */}
<div className="layout">
{/* <!-- Navigation --> */}
<EgovLeftNav></EgovLeftNav>
{/* <!--// Navigation --> */}
<div className="contents NOTICE_LIST" id="contents">
{/* <!-- 본문 --> */}
<div className="top_tit">
<h1 className="tit_1">건설기준코드</h1>
</div>
<h2 className="tit_2">설계기준, 표준시방서 내용을 열람할 있습니다.</h2>
{/* <!-- 검색조건 --> */}
<div className="condition">
<ul>
<li className="third_1 L">
<label className="f_select" htmlFor="sel1">
<select id="sel1" title="조건" defaultValue={searchCondition.searchCnd} ref={cndRef}
onChange={e => {
cndRef.current.value = e.target.value;
}}
>
<option value="0">제목</option>
<option value="1">내용</option>
<option value="2">작성자</option>
</select>
</label>
</li>
<li className="third_2 R">
<span className="f_search w_500">
<input type="text" name="" defaultValue={searchCondition.searchWrd} placeholder="" ref={wrdRef}
onChange={e => {
wrdRef.current.value = e.target.value;
}}
/>
<button type="button"
onClick={() => {
retrieveList({ ...searchCondition, pageIndex: 1, searchCnd: cndRef.current.value, searchWrd: wrdRef.current.value });
}}>조회</button>
</span>
</li>
<li>
<Link to={URL.INFORM_NOTICE_CREATE} state={{bbsId: bbsId}} className="btn btn_blue_h46 pd35">등록</Link>
</li>
</ul>
</div>
{/* <!--// 검색조건 --> */}
{/* <!-- 게시판목록 --> */}
<div className="board_list BRD002">
<div className="head">
<span>번호</span>
<span>제목</span>
<span>작성자</span>
<span>작성일</span>
<span>조회수</span>
</div>
<div className="result">
{listTag}
</div>
</div>
{/* <!--// 게시판목록 --> */}
<div className="board_bot">
{/* <!-- Paging --> */}
<EgovPaging pagination={paginationInfo} moveToPage={passedPage => {
retrieveList({ ...searchCondition, pageIndex: passedPage, searchCnd: cndRef.current.value, searchWrd: wrdRef.current.value })
}} />
{/* <!--/ Paging --> */}
</div>
{/* <!--// 본문 --> */}
</div>
</div>
</div>
</div>
);
}
export default StandardCodeList;

View File

@ -70,6 +70,7 @@ import CodeViewer from 'pages/standardCode/viewer';
import * as EgovNet from 'api/egovFetch'; // jwt
import initPage from 'js/ui';
import StandardCodeList from "../pages/standardCode/StandardCodeList";
const RootRoutes = () => {
//useLocation /admin/~ ( 1) */}
@ -229,6 +230,9 @@ const SecondRoutes = () => {
<Route path={URL.STANDARD_CODE_VIEWER} element={<CodeViewer mode={CODE.MODE_READ} />} />
<Route path={URL.STANDARD_CODE_VIEWER_LINK} element={<CodeViewer mode={CODE.MODE_READ} />} />
{/*기준코드리스트*/}
<Route path={URL.STANDARD_CODE_LIST} element={<StandardCodeList />} />
</Routes>
<EgovFooter />
<EgovInfoPopup />