[BO] 수정 반영

This commit is contained in:
kangsunlee
2025-07-14 17:46:15 +09:00
parent 52b962fcf4
commit cb8525c7b2
16 changed files with 121 additions and 72 deletions

View File

@@ -37,6 +37,17 @@
WHERE id = #{visitInfoId}
</update>
<update id="updateGiftSentToFalse">
/* updateGiftSentToFalse : 동일 household_seq 의 다른 방문 중 전달여부 true → false */
UPDATE household_visit
SET is_gift_sent = false
WHERE household_seq = #{householdSeq}
AND TO_CHAR(visit_date, 'YYYYMM') = TO_CHAR(TO_DATE(#{visitDate}, 'YYYY-MM-DD'), 'YYYYMM')
AND is_gift_sent = true
AND (#{visitInfoId} IS NULL OR id != #{visitInfoId})
AND is_deleted = false
</update>
<select id="findById" resultType="java.lang.Long">
/* findById : 임가방문정보 조회 */
SELECT id