모바일 / 지류 추가
This commit is contained in:
@@ -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";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user