첫 탭 active로 수정, 건축코드일때 쿼리문 수정

cks
유민형 2023-12-14 14:41:46 +09:00
parent 8acdf81a02
commit 55440a9afc
2 changed files with 7 additions and 2 deletions

View File

@ -92,7 +92,7 @@ function StandardCodeList(props) {
const [resultCnt, setResultCnt] = useState(0);
/* 탭 */
const [activeTab, setActiveTab] = useState('10');
const [activeTab, setActiveTab] = useState(10);
const handleTabClick = (tabName) => {
setActiveTab(tabName);

View File

@ -7,9 +7,14 @@
<where>
a.parent_group_seq = a2.seq
and a2.parent_seq = a3.seq
<if test="listCode != null and listCode != ''">
<if test="listCode != 102041 and listCode != null and listCode != ''">
and a.group_full_cd like #{listCode} || '%'
</if>
<if test="listCode == 102041">
and (a.group_full_cd like 102041 || '%'
or a.group_full_cd like 102042 || '%'
or a.group_full_cd like 102043 || '%')
</if>
<if test="searchWrd != null and searchWrd != ''">
and a.group_nm like '%' || #{searchWrd} || '%'
</if>