Merge branch 'susu' into dev

This commit is contained in:
주수현
2025-06-20 08:38:47 +09:00
50 changed files with 803 additions and 204 deletions

View File

@@ -148,8 +148,31 @@
</if>
</select>
<select id="visitHouseholdDetail">
select
rhv.id,
rhv.household_seq,
rhv.visit_date,
rhv.content,
rhv.management_type,
rhv.is_gift_sent as is_gift_sent_flag,
rhv.created_at
from household_visit rhv
where rhv.is_deleted = false and rhv.id = #{id}
</select>
<update id="updateVisitHousehold">
update household_visit
set visit_date = #{visitDate},
content = #{content},
management_type = #{managementType},
is_gift_sent = #{isGiftSent},
<include refid="common.fields.UpdateBaseSet" />
where id = #{id}
</update>
<update id="visitHouseholdDelete">
update researcher_household_visit
update household_visit
set is_deleted = true,
deleted_at = NOW(),
deleted_by = #{deletedBy}