쿼리 수정

This commit is contained in:
kangsunlee
2025-07-25 15:30:55 +09:00
parent 690ed42df7
commit fc50855e15
2 changed files with 1 additions and 11 deletions

View File

@@ -27,10 +27,5 @@ public class GetHouseholdsStatus {
private Boolean isGiftSent; private Boolean isGiftSent;
private String researcherName; private String researcherName;
private String researcherPhone; private String researcherPhone;
private Integer ownerAge;
private String address;
private String industrySubMiddle;
private String industryDetail;
private String usageType;
private Integer total; private Integer total;
} }

View File

@@ -79,12 +79,7 @@
vs.second_visit_date AS secondVisitDate, vs.second_visit_date AS secondVisitDate,
COALESCE(vs.is_gift_sent, false) AS isGiftSent, COALESCE(vs.is_gift_sent, false) AS isGiftSent,
r.researcher_name AS researcherName, r.researcher_name AS researcherName,
r.researcher_phone AS researcherPhone, r.researcher_phone AS researcherPhone
h.owner_age, /* 엑셀용 */
h.address, /* 엑셀용 */
h.industry_sub_middle, /* 엑셀용 */
h.industry_detail, /* 엑셀용 */
h.usage_type /* 엑셀용 */
FROM v_household_with_code h FROM v_household_with_code h
CROSS JOIN total_days td CROSS JOIN total_days td
LEFT JOIN daily_progress dp ON h.seq = dp.household_seq LEFT JOIN daily_progress dp ON h.seq = dp.household_seq