강석 최 2023-12-14 18:00:36 +09:00
commit 9d1937a81d
2 changed files with 7 additions and 2 deletions

View File

@ -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);

View File

@ -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>