Merge branch 'kangsun' into 'dev'

[BO] 임가현황 작업 중 (9)

See merge request korea-research/korea-research!19
This commit is contained in:
이강선 매니저/ST
2025-06-17 12:45:59 +00:00
49 changed files with 861 additions and 97 deletions

View File

@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace="app.module.admin.usecase.household.getBankAutoTransferRecords.adapters.persistence.GetBankAutoTransferRecordsMapper">
<select id="getBankAutoTransferIncomeRecords"
resultType="app.module.admin.usecase.household.getBankAutoTransferRecords.ports.application.domain.GetBankAutoTransferIncomeRecords">
/* getBankAutoTransferIncomeRecords : 은행자동이체 (수입) 내역 목록 조회 */
SELECT bat.id, /* 수입 id */
ui_crop.code_text AS cropText, /* 재배형태 */
ui_category.code_text AS categoryText, /* 수입의 종류 (코드명) */
bat.transfer_category AS categorySelf, /* 수입의 종류 (텍스트입력) */
bat.source_purpose AS sourcePurpose, /* 수입원 */
bat.count, /* 수량 */
ui_unit.code_text AS unitText, /* 단위 */
bat.price /* 현금(원) */
FROM bank_auto_transfer bat
LEFT JOIN uicode ui_crop ON ui_crop.parent_id = 'code.record.crop' AND ui_crop.id = bat.crop_code
LEFT JOIN uicode ui_unit ON ui_unit.parent_id = 'code.record.unit' AND ui_unit.id = bat.unit_code
LEFT JOIN uicode ui_category ON ui_category.parent_id = 'code.bank.input' AND ui_category.id = bat.transfer_category_code
WHERE bat.transfer_type = 'code.bank.input'
AND bat.household_seq = #{householdSeq}
AND bat.month = #{recordMonth}
</select>
<select id="getBankAutoTransferExpenseRecords"
resultType="app.module.admin.usecase.household.getBankAutoTransferRecords.ports.application.domain.GetBankAutoTransferExpenseRecords">
/* getBankAutoTransferExpenseRecords : 은행자동이체 (지출) 내역 목록 조회 */
SELECT bat.id, /* 지출 id */
ui_category.code_text AS cropText, /* 지출의 종류 (코드명) */
bat.transfer_category AS categorySelf, /* 지출의 종류 (텍스트입력) */
bat.source_purpose AS sourcePurpose, /* 용도 */
bat.count, /* 수량 */
ui_unit.code_text AS unitText, /* 단위 */
bat.price /* 현금(원) */
FROM bank_auto_transfer bat
LEFT JOIN uicode ui_unit ON ui_unit.parent_id = 'code.record.unit' AND ui_unit.id = bat.unit_code
LEFT JOIN uicode ui_category ON ui_category.parent_id = 'code.bank.input' AND ui_category.id = bat.transfer_category_code
WHERE bat.transfer_type = 'code.bank.output'
AND bat.household_seq = #{householdSeq}
AND bat.month = #{recordMonth}
</select>
</mapper>

View File

@@ -26,12 +26,12 @@
di.is_credit, /* 외상판매여부 */
di.crop_code, /* 재배형태 코드 */
ui_crop.code_text AS crop_text, /* 재배형태 코드 텍스트 */
di.category_code, /* 수입 종류 코드 */ -- TODO(ks) : 수입의 종류 코드형태 맞는지 체크할 것
di.category_self, /* 수입 종류(직접입력) */
di.source_purpose, /* 수입원(용도) */
di.quantity, /* 수량 */
di.unit_code, /* 단위 코드 */
ui_unit.code_text AS unit_text, /* 단위 코드 텍스트 */
di.unit_self, /* 단위(직접입력) */
di.price, /* 현금 */
di.estimated_value, /* 현물평가액 */
di.updated_by, /* 최종수정자 */
@@ -77,12 +77,12 @@
SELECT de.id, /* 지출 id */
de.input_type, /* 입력구분 */
de.is_credit, /* 외상판매여부 */
de.category_code, /* 재배형태 코드 */
de.category_self, /* 지출 종류 코드 */
de.source_purpose, /* 지출원(용도) */
de.quantity, /* 수량 */
de.unit_code, /* 단위 */
ui_unit.code_text AS unit_text, /* 단위 코드 텍스트 */
de.unit_self, /* 단위(직접입력) */
de.price, /* 현금 */
de.estimated_value, /* 현물평가액 */
de.updated_by, /* 최종수정자 */

View File

@@ -3,6 +3,16 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace="app.module.admin.usecase.household.getForestProductsStatus.adapters.persistence.GetForestProductsStatusMapper">
<select id="getMonthlyStatus" resultType="java.lang.String">
/* getMonthlyStatus : 임산물 현황 등록 상태 조회 */
SELECT forest_product_status
FROM monthly_input_status mis
WHERE household_seq = #{householdSeq}
AND month = #{recordMonth}
AND is_deleted = false
</select>
<select id="getForestProductsStatus"
resultType="app.module.admin.usecase.household.getForestProductsStatus.ports.application.domain.GetForestProductsStatus">
/* getForestProductsStatus : 임가 현황의 임산물 현황 목록 조회 */
@@ -28,7 +38,7 @@
LEFT JOIN uicode ui_sub_yield ON ui_sub_yield.parent_id = 'code.record.unit' AND ui_sub_yield.id = df.sub_yield_unit_code
LEFT JOIN uicode ui_sub_sale ON ui_sub_sale.parent_id = 'code.record.unit' AND ui_sub_sale.id = df.sub_sale_unit_code
WHERE df.household_seq = #{householdSeq}
AND df.month = #{month}
AND df.month = #{recordMonth}
AND df.is_deleted = false
</select>
</mapper>

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace="app.module.admin.usecase.household.getHouseholdVisitInfos.adapters.persistence.GetHouseholdVisitInfosMapper">
<select id="getHouseholdVisitInfos"
resultType="app.module.admin.usecase.household.getHouseholdVisitInfos.ports.application.domain.GetHouseholdVisitInfos">
/* getHouseholdVisitInfos : 임가방문정보 리스트 조회 */
SELECT hv.id,
hv.visit_date,
hv.management_type,
hv.content,
hv.is_gift_sent,
hv.updated_by,
TO_CHAR(hv.updated_at, 'YYYY-MM-DD HH24:MI') AS updated_at /* 최종수정날짜 */
FROM household_visit hv
WHERE household_seq = #{householdSeq}
AND TO_CHAR(visit_date, 'YYYYMM') = #{recordMonth}
</select>
</mapper>

View File

@@ -26,6 +26,7 @@
COUNT(*) OVER () AS total
FROM (
SELECT
r.admin_seq AS adminSeq,
h.seq AS householdSeq,
h.household_num AS householdNum,
h.owner_name AS householdName,
@@ -179,6 +180,11 @@
</if>
</where>
<if test="cmd.userRole != null and cmd.userRole == 'ROLE_RESEARCHER'">
/* 조사원일 경우 매핑된 임가만 노출 */
AND hvr.adminSeq = #{cmd.adminSeq}
</if>
ORDER BY hvr.householdNum ASC
OFFSET #{pageable.offset} ROWS FETCH NEXT #{pageable.pageSize} ROWS ONLY
</select>

View File

@@ -42,25 +42,28 @@ let uiUtil = {
curPageNo = parseInt(curPageNo);
const firstPage = 0;
const isFirstPage = curPageNo === 0;
let frag1 =
`
<div class="row">
<nav class="component-pagination" aria-label="Page navigation example">
<a href="#" class="page-link pagination-item first"
<a href="#" class="page-link pagination-item first ${isFirstPage ? 'disabled' : ''}""
aria-label="First" data-target-page="${firstPage}">
<span class="hide-txt">첫 페이지로 이동</span>
</a>
<a href="#" class="page-link pagination-item prev"
<a href="#" class="page-link pagination-item prev ${isFirstPage ? 'disabled' : ''}""
aria-label="Previous" data-target-page="${curPageNo === 0 ? null : curPageNo - 1}">
<span class="hide-txt">이전 페이지로 이동</span>
</a>
`;
const pageSize = 10; // 보여줄 페이지 개수
const safeTotalPages = totalPages > 0 ? totalPages : 1;
let startPage = Math.floor(curPageNo / pageSize) * pageSize; // 시작 페이지
let endPage = Math.min(startPage + pageSize - 1, totalPages - 1); // 끝 페이지
let endPage = Math.min(startPage + pageSize - 1, safeTotalPages - 1); // 끝 페이지
let frag2 = ``;
for (let i = startPage; i <= endPage; i++) {
@@ -75,13 +78,14 @@ let uiUtil = {
}
}
const isLastPage = curPageNo === totalPages - 1 || totalPages === 0;
let frag3 =
`
<a href="#" class="page-link pagination-item next"
<a href="#" class="page-link pagination-item next ${isLastPage ? 'disabled' : ''}""
aria-label="Next" data-target-page="${curPageNo == totalPages - 1 || totalPages == 0 ? null : curPageNo + 1}">
<span class="hide-txt">다음 페이지로 이동</span>
</a>
<a href="#" class="page-link pagination-item last"
<a href="#" class="page-link pagination-item last ${isLastPage ? 'disabled' : ''}""
aria-label="Last" data-target-page="${totalPages - 1}">
<span class="hide-txt">마지막 페이지로 이동</span>
</a>
@@ -92,11 +96,18 @@ let uiUtil = {
let el = $(frag1 + frag2 + frag3);
el.find('.page-link').on('click', (evt) => {
let _this = evt.target;
let targetPage = $(_this).data('target-page');
const $link = $(evt.currentTarget);
if ($link.hasClass('disabled')) {
evt.preventDefault();
return false;
}
let targetPage = $link.data('target-page');
if (targetPage.toString() === 'null') {
return false;
}
moveHandler(targetPage);
});
@@ -446,4 +457,9 @@ const ifNullDash = (value, fallback = '-') => {
return value !== null && value !== undefined && value !== '' ? value : fallback;
}
const formatNumberWithComma = (value) => {
if (value == null || isNaN(value)) return '-';
return Number(value).toLocaleString();
}

View File

@@ -475,13 +475,110 @@
</div>
</div>
<div class="tab-content" data-tab-value="tab3">
<div class="tab-content bank-auto-transfer" data-tab-value="tab3">
<div class="content-inner">
<div class="content-inner">
<!-- 수입 -->
<section class="table-group">
<div class="table-tit-group">
<h3>수입 <strong>(<span id="bankIncomeCount">0</span>건)</strong></h3>
<div class="component-btns bottom-btn-group">
<div class="btns-row align-right">
<button type="button" class="btn small btn-secondary">
<span class=" btn-txt">삭제</span>
</button>
<button type="button" class="btn small btn-primary">
<span class="btn-txt">추가</span>
</button>
</div>
</div>
</div>
<table id="table-bank-income">
<thead>
<tr>
<th>선택</th>
<th>재배형태</th>
<th>수입의 종류</th>
<th>대상</th>
<th>수입원</th>
<th>수량</th>
<th>단위</th>
<th>현금(원)</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</section>
<!-- 지출 -->
<section class="table-group">
<div class="table-tit-group">
<h3>지출 <strong>(<span id="bankExpenseCount">0</span>건)</strong></h3>
<div class="component-btns bottom-btn-group">
<div class="btns-row align-right">
<button type="button" class="btn small btn-secondary">
<span class=" btn-txt">삭제</span>
</button>
<button type="button" class="btn small btn-primary">
<span class="btn-txt">추가</span>
</button>
</div>
</div>
</div>
<table id="table-bank-expense">
<thead>
<tr>
<th>선택</th>
<th>지출의 종류</th>
<th>용도</th>
<th>수량</th>
<th>단위</th>
<th>현금(원)</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</section>
</div>
</div>
</div>
<div class="tab-content" data-tab-value="tab4">
<div class="tab-content household-visit" data-tab-value="tab4">
<div class="content-inner">
<section class="table-group">
<div class="table-tit-group">
<h3></h3>
<div class="component-btns bottom-btn-group">
<div class="btns-row align-right">
<button type="button" class="btn small btn-secondary">
<span class=" btn-txt">삭제</span>
</button>
<button type="button" class="btn small btn-primary">
<span class="btn-txt">추가</span>
</button>
</div>
</div>
</div>
<table id="household-visit">
<thead>
<tr>
<th>선택</th>
<th>방문일</th>
<th>관리분야</th>
<th>내용</th>
<th>최종 수정자</th>
<th>답례품 전달</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</section>
</div>
</div>
</div>
@@ -530,6 +627,12 @@
className: 'gray'
}
};
const managementType = {
VISIT: "방문조사",
CALL: "전화상담",
ETC: "기타"
};
</script>
<script>
@@ -563,11 +666,11 @@
break;
case 'bank-auto-transfer': // 은행자동이체내역
console.log("은행자동이체내역");
// getAutoTransferStatus();
getBankAutoTransfer();
break;
case 'household-visit': // 임가방문정보
console.log("임가방문정보");
// getVisitStatus();
getVisitInfo();
break;
}
}
@@ -649,7 +752,7 @@
'/api/household/dailyRecordStatus',
{ recordSeq: id },
function(response) { // 성공
console.log("일계부 등록 상세 데이터~ : ", response);
console.log("일계부 등록 상세 데이터 : ", response);
gridIncomeTable(response.status.incomeStatus, response.incomes);
gridWorkTable(response.status.workStatus, response.works);
gridExpenseTable(response.status.expenseStatus, response.expenses);
@@ -672,7 +775,7 @@
$('#incomeCount').text(data.length);
if(data.length === 0) {
noData(tbody, status, 10);
noDataDaily(tbody, status, 10);
return;
}
@@ -690,13 +793,12 @@
</td>
<td>${item.isCredit ? "Y" : "N"}</td> <!-- 외상판매 -->
<td>${ifNullDash(item.cropText)}</td><!-- 재배형태 -->
<!-- TODO(ks) : 수입의 종류 코드형태로 들어오고 있음, 텍스트형태로 바뀌는 건지 체크!! -->
<td class="underline">${ifNullDash(item.categorySelf)}</td><!-- 수입의 종류 -->
<td>${ifNullDash(item.sourcePurpose)}</td><!-- 수입원 -->
<td class="align-right">${ifNullDash(item.quantity)}</td><!-- 수량 -->
<td>${ifNullDash(item.unitText)}</td><!-- 단위 -->
<td class="align-right">${ifNullDash(item.price)}</td><!-- 현금(원) -->
<td class="align-right">${ifNullDash(item.estimatedValue)}</td><!-- 현물평가액 -->
<td>${item.unitSelf != null && item.unitSelf !== '' ? item.unitSelf : ifNullDash(item.unitText)}</td><!-- 단위 -->
<td class="align-right">${formatNumberWithComma(item.price)}</td><!-- 현금(원) -->
<td class="align-right">${formatNumberWithComma(item.estimatedValue)}</td><!-- 현물평가액 -->
<td>
${item.updatedBy}<br>
(${item.updatedAt})
@@ -715,7 +817,7 @@
$('#workCount').text(data.length);
if(data.length === 0) {
noData(tbody, status, 18);
noDataDaily(tbody, status, 18);
return;
}
@@ -764,7 +866,7 @@
$('#expenseCount').text(data.length);
if(data.length === 0) {
noData(tbody, status, 9);
noDataDaily(tbody, status, 9);
return;
}
@@ -781,13 +883,12 @@
</div>
</td>
<td>${item.isCredit ? "Y" : "N"}</td> <!-- 외상 또는 카드구입 -->
<!-- TODO(ks) : 지출의 종류 코드형태로 들어오고 있음, 텍스트형태로 바뀌는 건지 체크!! -->
<td class="underline">${ifNullDash(item.categorySelf)}</td><!-- 지출의 종류 -->
<td>${ifNullDash(item.sourcePurpose)}</td><!-- 용도 -->
<td>${ifNullDash(item.quantity)}</td><!-- 수량 -->
<td>${ifNullDash(item.unitText)}</td><!-- 단위 -->
<td class="align-right">${ifNullDash(item.price)}</td><!-- 현금(원) -->
<td class="align-right">${ifNullDash(item.estimatedValue)}</td><!-- 현물평가액 -->
<td>${item.unitSelf != null && item.unitSelf !== '' ? item.unitSelf : ifNullDash(item.unitText)}</td><!-- 단위 -->
<td class="align-right">${formatNumberWithComma(item.price)}</td><!-- 현금(원) -->
<td class="align-right">${formatNumberWithComma(item.estimatedValue)}</td><!-- 현물평가액 -->
<td>
${item.updatedBy}<br>
(${item.updatedAt})
@@ -806,7 +907,7 @@
$('#powerCount').text(data.length);
if(data.length === 0) {
noData(tbody, status, 5);
noDataDaily(tbody, status, 5);
return;
}
@@ -843,7 +944,7 @@
$('#forestryCount').text(data.length);
if(data.length === 0) {
noData(tbody, status, 7);
noDataDaily(tbody, status, 7);
return;
}
@@ -863,7 +964,7 @@
<td>${ifNullDash(item.usage)}</td><!-- 용도 -->
<td class="align-right">${ifNullDash(item.quantity)}</td><!-- 수량 -->
<td>${ifNullDash(item.unitText)}</td><!-- 단위 -->
<td class="align-right">${ifNullDash(item.estimatedValue)}</td><!-- 현물평가액 -->
<td class="align-right">${formatNumberWithComma(item.estimatedValue)}</td><!-- 현물평가액 -->
<td>
${item.updatedBy}<br>
(${item.updatedAt})
@@ -882,7 +983,7 @@
$('#farmingCount').text(data.length);
if(data.length === 0) {
noData(tbody, status, 7);
noDataDaily(tbody, status, 7);
return;
}
@@ -902,7 +1003,7 @@
<td>${ifNullDash(item.usage)}</td><!-- 용도 -->
<td class="align-right">${ifNullDash(item.quantity)}</td><!-- 수량 -->
<td>${ifNullDash(item.unitText)}</td><!-- 단위 -->
<td class="align-right">${ifNullDash(item.estimatedValue)}</td><!-- 현물평가액 -->
<td class="align-right">${formatNumberWithComma(item.estimatedValue)}</td><!-- 현물평가액 -->
<td>
${item.updatedBy}<br>
(${item.updatedAt})
@@ -916,6 +1017,7 @@
</script>
<script>
// 임산물 현황 탭 조회
const getForestProductsStatus = () => {
const f = document.reqForm;
@@ -923,16 +1025,21 @@
'/api/household/forestProducts',
{
householdSeq: f.householdSeq.value,
month: f.recordMonth.value
recordMonth: f.recordMonth.value
},
function(response) { // 성공
(response) => { // 성공
console.log("임산물 현황 리스트 조회 : ", response);
const tbody = $('.tab-content.forest-product').find('tbody');
const tbody = $('.tab-content.forest-product tbody');
tbody.empty();
if(response.forestProducts.length === 0) {
noDataMonthly(tbody, response.status, 15);
return;
}
let tmpl = '';
$(response).each((idx, item) => {
$(response.forestProducts).each((idx, item) => {
tmpl +=
`
<tr>
@@ -973,12 +1080,172 @@
</script>
<script>
// nodata 처리
const noData = (target, status, length) => {
// 임가 방문정보 조회
const getVisitInfo = () => {
const f = document.reqForm;
ajaxUtil._ajaxMethod(
'/api/household/visitInfos',
{
householdSeq: f.householdSeq.value,
recordMonth: f.recordMonth.value
},
(response) => { // 성공
console.log("임가 방문정보 조회 : ", response);
const tbody = $('.tab-content.household-visit tbody');
tbody.empty();
if(response.length === 0) {
tbody.append(`<tr><td colspan="6" style="text-align: center;">등록된 내용이 없습니다.</td></tr>`);
return;
}
let tmpl = '';
$(response).each((idx, item) => {
tmpl +=
`
<tr>
<td>
<div class="component-input">
<label class="checkbox-inner">
<input type="checkbox" id="temp_checkbox_000${item.id}" name="temp_checkbox_000${item.id}" value="${item.id}">
</label>
</div>
</td>
<td>${ifNullDash(item.visitDate)}</td> <!-- 방문일 -->
<td>${ifNullDash(managementType[item.managementType])}</td> <!-- 관리분야 -->
<td>${ifNullDash(item.content)}</td> <!-- 내용 -->
<td>
${item.updatedBy}<br>
(${item.updatedAt})
</td><!-- 최종 수정자 -->
<td>${item.isGiftSent ? "전달 완료" : "미전달"}</td> <!-- 답례품 전달 -->
</tr>
`;
});
tbody.append(tmpl);
},
function (code, rstData) { // 실패
console.log("error : ", code);
},
'get',
'json'
);
}
</script>
<script>
// 은행자동이체내역 조회
const getBankAutoTransfer = () => {
const f = document.reqForm;
ajaxUtil._ajaxMethod(
'/api/household/bankAutoTransfer',
{
householdSeq: f.householdSeq.value,
recordMonth: f.recordMonth.value
},
(response) => { // 성공
console.log("은행자동이체내역 조회 : ", response);
gridBankIncomeTable(response.incomes);
gridBankExpenseTable(response.expenses);
},
function (code, rstData) { // 실패
console.log("error : ", code);
},
'get',
'json'
);
}
const gridBankIncomeTable = (data) => {
const tbody = $('#table-bank-income tbody');
tbody.empty();
$('#bankIncomeCount').text(data.length);
if(data.length === 0) {
tbody.append(`<tr><td colspan="8" style="text-align: center;">등록된 내용이 없습니다.</td></tr>`);
return;
}
let tmpl = '';
$(data).each((idx, item) => {
tmpl +=
`
<tr>
<td>
<div class="component-input">
<label class="checkbox-inner">
<input type="checkbox" id="temp_checkbox_000${item.id}" name="temp_checkbox_000${item.id}" value="${item.id}">
</label>
</div>
</td>
<td>${ifNullDash(item.cropText)}</td> <!-- 재배형태 -->
<td class="underline">${ifNullDash(item.categoryText)}</td> <!-- 수입의 종류 -->
<td>${ifNullDash(item.categorySelf)}</td><!-- 대상 -->
<td>${ifNullDash(item.sourcePurpose)}</td><!-- 수입원 -->
<td>${ifNullDash(item.count)}</td><!-- 수량 -->
<td>${ifNullDash(item.unitText)}</td><!-- 단위 -->
<td class="align-right">${formatNumberWithComma(item.price)}</td><!-- 현금(원) -->
</tr>
`;
});
tbody.append(tmpl);
}
const gridBankExpenseTable = (data) => {
const tbody = $('#table-bank-expense tbody');
tbody.empty();
$('#bankExpenseCount').text(data.length);
if(data.length === 0) {
tbody.append(`<tr><td colspan="6" style="text-align: center;">등록된 내용이 없습니다.</td></tr>`);
return;
}
let tmpl = '';
$(data).each((idx, item) => {
tmpl +=
`
<tr>
<td>
<div class="component-input">
<label class="checkbox-inner">
<input type="checkbox" id="temp_checkbox_000${item.id}" name="temp_checkbox_000${item.id}" value="${item.id}">
</label>
</div>
</td>
<td class="underline">${item.categorySelf != null && item.categorySelf !== '' ?
item.categorySelf : ifNullDash(item.categoryText)}</td> <!-- 지출의 종류 -->
<td>${ifNullDash(item.sourcePurpose)}</td><!-- 용도 -->
<td>${ifNullDash(item.count)}</td><!-- 수량 -->
<td>${ifNullDash(item.unitText)}</td><!-- 단위 -->
<td class="align-right">${formatNumberWithComma(item.price)}</td><!-- 현금(원) -->
</tr>
`;
});
tbody.append(tmpl);
}
</script>
<script>
// 일계부 등록 현황 nodata 처리
const noDataDaily = (target, status, length) => {
const noDataText = status === 'TARGET' ? '등록이 필요합니다.' : '등록없음';
$(target).append(`<tr><td colspan="${length}" style="text-align: center;">${noDataText}</td></tr>`);
}
// 임산물 현황 noData 처리
const noDataMonthly = (target, status, length) => {
const noDataText = status === 'NOTHING' ? '등록없음' : '등록이 필요합니다.';
$(target).append(`<tr><td colspan="${length}" style="text-align: center;">${noDataText}</td></tr>`);
}
</script>
</section>