feat: 엑셀에서 시추공 정보(개요) 업로드 시, 시추위치 검증 로직 추가
parent
2e38baf91c
commit
dd9c7fb48e
|
|
@ -6763,10 +6763,21 @@ public class ManageExcelUploadProc03Controller {
|
|||
String fmtMsg = "[기본물성시험정보] %s|";
|
||||
|
||||
RsWrapper excelWpHeader = ExcelUtil.getRsWp(strFile, "기본물성시험정보", 1, 0, 11);
|
||||
String szHasNoBasicPhysicalPropertyTest = excelWpHeader.get("col10",0).trim(); // 기본물성시험 데이터가 없는 사업 여부를 체크한다. TRUE면 기본물성시험 데이터가 없는사업이며, FALSE면 기본물성시험 데이터가 있는 일반적인 사업이다.
|
||||
|
||||
boolean hasNoBasicPhysicalPropertyTest = false;
|
||||
if( szHasNoBasicPhysicalPropertyTest != null && szHasNoBasicPhysicalPropertyTest.equalsIgnoreCase("true") ) {
|
||||
hasNoBasicPhysicalPropertyTest = true;
|
||||
if( excelWpHeader.getLength() == 0 ) {
|
||||
resultMsg += String.format(fmtMsg, "기본물성시험정보 엑셀이 아닙니다.");
|
||||
params.put("resultMsg", resultMsg);
|
||||
return params;
|
||||
} else if( excelWpHeader.get("col10",0) == null ) {
|
||||
resultMsg += String.format(fmtMsg, "엑셀양식이 올바르지 않습니다. 최신 엑셀양식을 확인해주세요.");
|
||||
params.put("resultMsg", resultMsg);
|
||||
return params;
|
||||
} else {
|
||||
String szHasNoBasicPhysicalPropertyTest = excelWpHeader.get("col10",0).trim(); // 기본물성시험 데이터가 없는 사업 여부를 체크한다. TRUE면 기본물성시험 데이터가 없는사업이며, FALSE면 기본물성시험 데이터가 있는 일반적인 사업이다.
|
||||
if( szHasNoBasicPhysicalPropertyTest != null && szHasNoBasicPhysicalPropertyTest.equalsIgnoreCase("true") ) {
|
||||
hasNoBasicPhysicalPropertyTest = true;
|
||||
}
|
||||
}
|
||||
|
||||
try{
|
||||
|
|
@ -7095,6 +7106,11 @@ public class ManageExcelUploadProc03Controller {
|
|||
String _holeAdminDistrict = excel1Wp.get("col2",2).trim();
|
||||
int idx = _holeAdminDistrict.indexOf("시");
|
||||
String _district[] = _holeAdminDistrict.split(" ");
|
||||
|
||||
if( _district.length < 2 ) {
|
||||
params.put("resultMsg", "시추위치는 필수 입니다. 예) 인천 서구 가정동 산 118");
|
||||
return params;
|
||||
}
|
||||
|
||||
List<EgovMap> dis = infoService.getDisList(params);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue