fix: searchModal 엑셀 다운로드 에러 수정

This commit is contained in:
swcho
2025-08-19 16:31:03 +09:00
parent 42c94e8b43
commit 40e0dde0e0
2 changed files with 5 additions and 4 deletions
@@ -61,6 +61,7 @@ export const MsSwagePplExcelCol = {
'ctpvNm': '시도',
'sggNm': '시군구',
'swtrmt_zone_nm': '처리구역',
'instlYmd': '설치일자',
'usgCd': '용도',
'pdmtVl': '관경(mm)',
'prlgVl': '연장(m)',
@@ -620,7 +620,7 @@ const SearchModal: React.FC<SearchModalProps> = ({
// 하수관로
cqlFilters = pplCqlFilters()
headerMapping = MsSwagePplExcelCol;
headerRange = "A1:F1";
headerRange = "A1:M1";
break;
}
case 'tb_il_swage_prcs_fclt': {
@@ -699,6 +699,7 @@ const SearchModal: React.FC<SearchModalProps> = ({
ctpvNm: ctpvMap.get(ctpvCd) ?? item.ctpvNm ?? '-',
sggNm: sggMap.get(sggCd) ?? item.sggNm ?? '-',
swtrmt_zone_nm: formattedItem.swtrmt_zone_nm ?? item.swtrmt_zone_nm ?? '-',
instlYmd: formattedItem.instlYmd ?? item.instlYmd ?? '-',
usgCd: pplUsgCdMap.get(trimmedUsgCd) || item.usgCd || formattedItem.usgCd || '-',
pdmtVl: formattedItem.pdmtVl ?? item.pdmtVl ?? '-',
prlgVl: formattedItem.prlgVl ?? item.prlgVl ?? '-',
@@ -706,7 +707,6 @@ const SearchModal: React.FC<SearchModalProps> = ({
tmptMhlMngNo: formattedItem.tmptMhlMngNo ?? item.tmptMhlMngNo ?? '-',
scendDpth: formattedItem.scendDpth ?? item.scendDpth ?? '-',
scendMhlMngNo: formattedItem.scendMhlMngNo ?? item.scendMhlMngNo ?? '-',
swtrmtFcltNm: formattedItem.swtrmtFcltNm ?? item.swtrmtFcltNm ?? '-',
};
}
case 'tb_il_swage_prcs_fclt': {
@@ -823,7 +823,7 @@ const SearchModal: React.FC<SearchModalProps> = ({
try {
const RequestDTO: Record<string, string> = {
size: '1000000', // 최대 개수 백만건으로 설정
size: '10000',
};
if (var1) RequestDTO.bizInfoNm = var1;
if (var2 != '0' && var2) RequestDTO.bizTypeCd = var2;
@@ -918,7 +918,7 @@ const SearchModal: React.FC<SearchModalProps> = ({
try {
const RequestDTO: Record<string, string> = {
size: '10000', // 최대 개수 백만건으로 설정
size: '10000',
bizId: String(detailBizId),
};