테이블 수정한거 일단 커밋

This commit is contained in:
주수현
2025-06-17 13:56:17 +09:00
parent d7b8ea0488
commit 2d25f8ed5c
3 changed files with 17 additions and 13 deletions

View File

@@ -13,8 +13,8 @@ public class ResearchersHouseholdVisitDto {
private String householdNum;
private String ownerName;
private String visitDate;
private String managementType;
private String content;
private String isGiftSentFlag;
private String memo;
private LocalDateTime createdAt;
}

View File

@@ -111,20 +111,22 @@
<select id="visitHouseholdList">
select
rhv.id,
rhv.admin_seq,
rhh.admin_seq,
rhv.household_seq,
h.household_num,
h.owner_name,
rhv.visit_date,
rhv.memo,
rhv.content,
rhv.management_type,
case rhv.is_gift_sent when false then '전달완료' when true then '-' end is_gift_sent_flag,
rhv.created_at
from researcher_household_visit rhv
join household h on rhv.household_seq = h.seq
join admin a on a.seq = rhv.admin_seq
from household_visit rhv
join researcher_has_household rhh on rhh.household_seq = rhv.household_seq
join household h on rhh.household_seq = h.seq
join admin a on a.seq = rhh.admin_seq
where rhv.is_deleted = false
<if test="seq > 0">
and rhv.admin_seq = #{seq}
and rhh.admin_seq = #{seq}
</if>
<if test="searchMonth != null and searchMonth != ''">
and TO_CHAR(rhv.visit_date ,'YYYYMM')= #{searchMonth}
@@ -134,10 +136,12 @@
<select id="visitHouseholdListCountAll">
select count(*)
from researcher_household_visit rhv
from household_visit rhv
join researcher_has_household rhh on rhh.household_seq = rhv.household_seq
join admin a on a.seq = rhh.admin_seq
where rhv.is_deleted = false
<if test="seq > 0">
and rhv.admin_seq = #{seq}
and rhh.admin_seq = #{seq}
</if>
<if test="searchMonth != null and searchMonth != ''">
and TO_CHAR(rhv.visit_date ,'YYYYMM')= #{searchMonth}
@@ -145,7 +149,7 @@
</select>
<update id="visitHouseholdDelete">
update researcher_household_visit
update researcher_household_visit
set is_deleted = true,
deleted_at = NOW(),
deleted_by = #{deletedBy}

View File

@@ -269,8 +269,8 @@
<td class="underline"><a href="">${ct.householdNum}</a></td>
<td>${ct.ownerName}</td>
<td>${ct.visitDate}</td>
<td>${ct.memo}</td>
<td>${ct.memo}</td>
<td>${ct.managementType}</td>
<td>${ct.content}</td>
<td>${ct.createdAt}</td>
<td>${ct.isGiftSentFlag}</td>
</tr>