[BO] 임가현황, 조사원현황 엑셀 다운로드 작업 중 (1)

This commit is contained in:
kangsunlee
2025-07-04 09:56:03 +09:00
parent 38a9ca2997
commit f53cab803b
23 changed files with 692 additions and 70 deletions

View File

@@ -26,7 +26,11 @@
THEN bat.unit
ELSE ui_unit.code_text
END AS unitText, /* 단위 */
bat.price AS price /* 현금(원) */
bat.price AS price, /* 현금(원) */
bat.category, /* 유형(엑셀용) */
bat.income_code, /* 수입부호(엑셀용) */
bat.expense_code, /* 지출부호(엑셀용) */
ui_crop.code_value AS cropValue /* 재배형태코드(엑셀용) */
FROM bank_auto_transfer bat
LEFT JOIN uicode ui_crop
ON ui_crop.parent_id = 'code.record.crop'
@@ -51,6 +55,9 @@
resultType="app.module.admin.usecase.household.tab.bankAutoTransfer.getBankAutoTransferRecords.ports.application.domain.GetBankAutoTransferExpenseRecords">
/* getBankAutoTransferExpenseRecords : 은행자동이체 (지출) 내역 목록 조회 */
SELECT bat.id, /* 지출 id */
bat.category, /* 유형(엑셀용) */
bat.income_code, /* 수입부호(엑셀용) */
bat.expense_code, /* 지출부호(엑셀용) */
CASE
WHEN ui_category.id = 'code.bank.input.self'
THEN bat.transfer_category

View File

@@ -23,6 +23,7 @@
df.town, /* 읍면동 */
df.available_area, /* 가능면적 */
df.crop_name, /* 재배작물명 */
df.crop_code, /* 작물부호 */
df.land_area, /* 면적 */
df.main_yield, /* 주생산물 수확량 */
CASE

View File

@@ -72,7 +72,12 @@
vs.second_visit_date AS secondVisitDate,
COALESCE(vs.is_gift_sent, false) AS isGiftSent,
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
CROSS JOIN total_days td
LEFT JOIN daily_progress dp ON h.seq = dp.household_seq
@@ -224,6 +229,9 @@
</if>
ORDER BY hvr.householdNum ASC
OFFSET #{pageable.offset} ROWS FETCH NEXT #{pageable.pageSize} ROWS ONLY
<if test="cmd.isPaging">
OFFSET #{pageable.offset} ROWS FETCH NEXT #{pageable.pageSize} ROWS ONLY
</if>
</select>
</mapper>