모바일 / 지류 추가

This commit is contained in:
주수현
2025-07-08 16:30:16 +09:00
parent 4e3140e59c
commit 043881b72c
2 changed files with 11 additions and 2 deletions

View File

@@ -82,7 +82,8 @@ class ExcelUploadCreateHouseholdDao implements ExcelUploadCreateHouseholdPortOut
household.setIndustryDetail(getCellValue(row.getCell(11))); // 규모 / 세부품목 household.setIndustryDetail(getCellValue(row.getCell(11))); // 규모 / 세부품목
household.setResearcherSeq(getResearcherSeq(row.getCell(12))); // 조사원 household.setResearcherSeq(getResearcherSeq(row.getCell(12))); // 조사원
household.setIsPanel(getIsPanel(row.getCell(13))); // 유지여부 household.setIsPanel(getIsPanel(row.getCell(13))); // 유지여부
household.setMemo(getCellValue(row.getCell(14))); // 비고 household.setUsageType(getUsageType(row.getCell(14))); // 구분
household.setMemo(getCellValue(row.getCell(15))); // 비고
CreateHouseholdOutCmd cmd = new CreateHouseholdOutCmd( CreateHouseholdOutCmd cmd = new CreateHouseholdOutCmd(
null, null,
@@ -102,7 +103,7 @@ class ExcelUploadCreateHouseholdDao implements ExcelUploadCreateHouseholdPortOut
household.getIndustryDetail(), household.getIndustryDetail(),
household.getResearcherSeq(), household.getResearcherSeq(),
household.getIsPanel(), household.getIsPanel(),
null, household.getUsageType(),
null, null,
household.getMemo(), household.getMemo(),
List.of("ROLE_GENERAL") List.of("ROLE_GENERAL")
@@ -188,4 +189,11 @@ class ExcelUploadCreateHouseholdDao implements ExcelUploadCreateHouseholdPortOut
return researcherMapper.selectResearcherId(cell.getStringCellValue()); return researcherMapper.selectResearcherId(cell.getStringCellValue());
} }
private String getUsageType(Cell cell){
if (cell == null) return "MOBILE";
String usageType = cell.getStringCellValue().trim();
if("모바일".equals(usageType) ) return "MOBILE";
if("지류".equals(usageType) ) return "PAPER";
return "MOBILE";
}
} }

View File

@@ -24,5 +24,6 @@ public class ExcelCreateHouseholdVO {
private String industryDetail; private String industryDetail;
private Long researcherSeq; private Long researcherSeq;
private Boolean isPanel; private Boolean isPanel;
private String usageType;
private String memo; private String memo;
} }