첫 탭 active로 수정, 건축코드일때 쿼리문 수정
parent
8acdf81a02
commit
55440a9afc
|
|
@ -92,7 +92,7 @@ function StandardCodeList(props) {
|
||||||
const [resultCnt, setResultCnt] = useState(0);
|
const [resultCnt, setResultCnt] = useState(0);
|
||||||
|
|
||||||
/* 탭 */
|
/* 탭 */
|
||||||
const [activeTab, setActiveTab] = useState('10');
|
const [activeTab, setActiveTab] = useState(10);
|
||||||
|
|
||||||
const handleTabClick = (tabName) => {
|
const handleTabClick = (tabName) => {
|
||||||
setActiveTab(tabName);
|
setActiveTab(tabName);
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,14 @@
|
||||||
<where>
|
<where>
|
||||||
a.parent_group_seq = a2.seq
|
a.parent_group_seq = a2.seq
|
||||||
and a2.parent_seq = a3.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} || '%'
|
and a.group_full_cd like #{listCode} || '%'
|
||||||
</if>
|
</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 != ''">
|
<if test="searchWrd != null and searchWrd != ''">
|
||||||
and a.group_nm like '%' || #{searchWrd} || '%'
|
and a.group_nm like '%' || #{searchWrd} || '%'
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue