코드리스트 중분류 수정, 미사용 변수 제거

cks
유민형 2023-12-07 17:24:51 +09:00
parent f45e5c820b
commit 3e4443b28c
2 changed files with 2 additions and 12 deletions

View File

@ -3,10 +3,6 @@ import {Link, useLocation, useParams} from 'react-router-dom';
import * as EgovNet from 'api/egovFetch';
import URL from 'constants/url';
import {NOTICE_BBS_ID} from 'config';
import {itemIdxByPage} from 'utils/calc';
import {StandardCodeListModal, StandardCodeListModalTable} from './StandardCodeListModal'
import {AiFillFileMarkdown, AiFillStar} from "react-icons/ai";
@ -77,8 +73,6 @@ function StandardCodeList(props) {
const category2Ref = 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 || {
pageIndex: 1,
@ -88,9 +82,6 @@ function StandardCodeList(props) {
searchWrd: ''
});// ||
const [masterBoard, setMasterBoard] = useState({});
const [paginationInfo, setPaginationInfo] = useState({});
const [listTag, setListTag] = useState([]);
/* 검색기능 추가 변수*/
const [listdata, setlistdata] = useState([]);
@ -128,7 +119,6 @@ function StandardCodeList(props) {
requestOptions,
(resp) => {
setMasterBoard(resp.result.tnDocumentInfo);
setPaginationInfo(resp.result.paginationInfo);
/*검색을 위한 리스트 state에 저장*/
setlistdata(resp.result.resultList);
setCategoryList(resp.result.categoryList);
@ -281,7 +271,7 @@ function StandardCodeList(props) {
<div className="middleCategory">{item.middleCategory}</div>
<div className="kcscCd">{item.kcscCd}</div>
<div className="groupNm">{item.groupNm}</div>
<div className="Revisionhistory"><a className="vieweratag" href={'#'} onClick={showhandling} data-groupseq={item.groupSeq}>개정이력</a></div>
<div className="Revisionhistory"><a className="vieweratag" onClick={showhandling} data-groupseq={item.groupSeq}>개정이력</a></div>
<div className="fille">{item.contentcount > 0 ? <a className="vieweratag" href={"/standardCode/viewer/" + item.kcscCd}>내용보기</a> : null}</div>
<div className="viewer">{item.docFileGrpId == null ? null :
<a href={"https://www.kcsc.re.kr/file/DownloadGrp/" + item.docFileGrpId}><AiFillFileMarkdown/></a>}</div>

View File

@ -163,7 +163,7 @@ public class StandardCodeController extends BaseController {
System.out.println("@@@ tab : " + tnDocumentInfo.getTab());
if (!tnDocumentInfo.getCategory1().isEmpty()) {
tnDocumentInfo.setListCode(tnDocumentInfo.getTab() + tnDocumentInfo.getCategory1());
tnDocumentInfo.setListCode(tnDocumentInfo.getTab() + tnDocumentInfo.getCategory1() + tnDocumentInfo.getCategory2());
}
Integer groupFullCd = standardCodeService.selectStandardCodeGroupSeq(tnDocumentInfo.getTab() + tnDocumentInfo.getCategory1());