[BO] 임가현황, 조사원현황 엑셀 다운로드 작업 중 (1)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
df.town, /* 읍면동 */
|
||||
df.available_area, /* 가능면적 */
|
||||
df.crop_name, /* 재배작물명 */
|
||||
df.crop_code, /* 작물부호 */
|
||||
df.land_area, /* 면적 */
|
||||
df.main_yield, /* 주생산물 수확량 */
|
||||
CASE
|
||||
|
||||
@@ -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>
|
||||
@@ -35,7 +35,10 @@
|
||||
and a.account_disabled = #{searchAccountDisabled}
|
||||
</if>
|
||||
group by a.seq
|
||||
LIMIT #{size} OFFSET #{page}*#{size}
|
||||
|
||||
<if test="isPaging">
|
||||
LIMIT #{size} OFFSET #{page}*#{size}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="countAll" parameterType="app.module.admin.usecase.researcher.adpaters.web.model.ResearchersListReqVO" resultType="long">
|
||||
@@ -92,9 +95,17 @@
|
||||
rd.code_text AS region_detail_code_name,
|
||||
il.code_text AS industry_large_code_name,
|
||||
im.code_text AS industry_middle_code_name,
|
||||
case h.is_panel when false then '유지' when true then '탈락' end panel_flag
|
||||
case h.is_panel when false then '유지' when true then '탈락' end panel_flag,
|
||||
h.owner_age,
|
||||
h.address,
|
||||
h.industry_sub_middle,
|
||||
h.industry_detail,
|
||||
h.usage_type,
|
||||
a.name AS researcherName,
|
||||
a.phone AS researcherPhone
|
||||
from household h
|
||||
join researcher_has_household rhh ON h.seq = rhh.household_seq and rhh.is_deleted = false
|
||||
join admin a ON a.seq = rhh.admin_seq and a.is_deleted = false
|
||||
left join uicode rm ON rm.parent_id = 'code.region.main' AND rm.id = h.region_main_code
|
||||
left join uicode rs ON rs.parent_id = 'code.region.sub' AND rs.id = h.region_sub_code
|
||||
left join uicode rd ON rd.id = h.region_detail_code
|
||||
@@ -104,7 +115,10 @@
|
||||
<if test="seq > 0">
|
||||
and rhh.admin_seq = #{seq}
|
||||
</if>
|
||||
LIMIT #{size} OFFSET #{page}*#{size}
|
||||
|
||||
<if test="isPaging">
|
||||
LIMIT #{size} OFFSET #{page}*#{size}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="mappingHouseholdListCountAll">
|
||||
|
||||
Reference in New Issue
Block a user