휴가 삭제 수정

This commit is contained in:
dyhj625 2025-03-27 09:56:17 +09:00
parent 4fdc97fde5
commit 01f936a407
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,6 @@ public class localvacaService {
vacation.put("id", existingId);
localvacaMapper.updateVacation(vacation);
} else {
System.out.println(vacation);
// 기존 휴가가 없으면 새롭게 추가
localvacaMapper.insertVacation(vacation);
}

View File

@ -13,6 +13,7 @@
SELECT LOCVACSEQ
FROM localvaca
WHERE MEMBERSEQ = #{userId} AND LOCVACUDT = #{date}
AND LOCVACRMM IS NULL
</select>
<!-- 휴가 수정 (기존 데이터가 존재하는 경우) -->
@ -22,7 +23,7 @@
WHERE LOCVACSEQ = #{id}
</update>
<!-- 여러 개의 휴가 삭제 -->
<!-- 여러 개의 휴가 삭제 -->
<delete id="deleteVacation">
DELETE FROM localvaca
WHERE LOCVACSEQ IN