비밀번호 힌트 목록 불러오기

This commit is contained in:
yoon 2025-02-06 14:21:31 +09:00
parent 856dd1b618
commit 7b32de158b
3 changed files with 19 additions and 2 deletions

View File

@ -31,5 +31,7 @@ public interface commoncodMapper {
List<MapDto> getMbtiList();
List<MapDto> getPwhintList();
int updateColorYon(String color);
}

View File

@ -43,6 +43,9 @@ public class commoncodService {
public List<MapDto> getMbtiList() {
return commoncodmapper.getMbtiList();
}
public List<MapDto> getPwhintList() {
return commoncodmapper.getPwhintList();
}
}

View File

@ -46,7 +46,7 @@
<select id="getMbtiList" resultType="Map">
SELECT
CMNCODVAL
CMNCODVAL
,CMNCODNAM
FROM
commoncod
@ -56,6 +56,18 @@
CMNCODODR != 0
</select>
<select id="getPwhintList" resultType="Map">
SELECT
CMNCODVAL
,CMNCODNAM
FROM
commoncod
WHERE
CMNCODLV1 = 800
AND
CMNCODODR != 0
</select>
<update id="updateColorYon" parameterType="String">
UPDATE commoncod
SET CMNCODYON = 1