feat: 현재 : [SPS검층] 입력 시 단위와 미리보기 출력 시 단위가 불일치 개선
parent
34964aca84
commit
a4af6edf60
|
|
@ -256,6 +256,33 @@ public class CommonController {
|
|||
file4.addField("project_code", projectCode);
|
||||
file4.addField("hole_code", boreholeWaveHolecode[i]);
|
||||
file4.addField("image1", imagePath);
|
||||
|
||||
params.put("TEST_INFO_CODE", "BOREHOLE_WAVE");
|
||||
params.put("HOLE_CODE", boreholeWaveHolecode[i]);
|
||||
// 전단탄성계수 단위를 구한다.
|
||||
params.put("INI_UNIT", "N/㎡");
|
||||
params.put("ITEM_INFO_CODE", "BH_SHEAR_MODULUS");
|
||||
String bhShearModulus = masterService.getInfoUnit(params);
|
||||
|
||||
// 영률 단위를 구한다.
|
||||
params.put("INI_UNIT", "N/㎡");
|
||||
params.put("ITEM_INFO_CODE", "BH_YOUNGS_MODULUS");
|
||||
String bhYoungsModulus = masterService.getInfoUnit(params);
|
||||
|
||||
// 밀도 단위를 구한다.
|
||||
params.replace("INI_UNIT", "g/㎥");
|
||||
params.replace("ITEM_INFO_CODE", "BH_DENSITY");
|
||||
String bhDensity = masterService.getInfoUnit(params);
|
||||
|
||||
// 구한 단위를 JSON에 넣는다.
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
jsonObject.put(boreholeWaveHolecode[i] + "_BH_SHEAR_MODULUS", bhShearModulus );
|
||||
jsonObject.put(boreholeWaveHolecode[i] + "_BH_YOUNGS_MODULUS", bhYoungsModulus );
|
||||
jsonObject.put(boreholeWaveHolecode[i] + "_BH_DENSITY", bhDensity );
|
||||
|
||||
String referenceMap = jsonObject.toString();
|
||||
|
||||
file4.addField("reference_map", referenceMap);
|
||||
}
|
||||
}
|
||||
if(tableName.equals("TEMP_DENSITY")) {
|
||||
|
|
@ -1364,6 +1391,35 @@ public class CommonController {
|
|||
file35.addField("project_code", projectCode);
|
||||
file35.addField("hole_code", boreholeWaveHolecode[i]);
|
||||
file35.addField("image1", imagePath);
|
||||
|
||||
params.put("TEST_INFO_CODE", "BOREHOLE_WAVE");
|
||||
params.put("HOLE_CODE", boreholeWaveHolecode[i]);
|
||||
|
||||
// 전단탄성계수 단위를 구한다.
|
||||
params.put("INI_UNIT", "N/㎡");
|
||||
params.put("ITEM_INFO_CODE", "BH_SHEAR_MODULUS");
|
||||
String bhShearModulus = masterService.getInfoUnit(params);
|
||||
|
||||
// 영률 단위를 구한다.
|
||||
params.put("INI_UNIT", "N/㎡");
|
||||
params.put("ITEM_INFO_CODE", "BH_YOUNGS_MODULUS");
|
||||
String bhYoungsModulus = masterService.getInfoUnit(params);
|
||||
|
||||
// 밀도 단위를 구한다.
|
||||
params.replace("INI_UNIT", "g/㎥");
|
||||
params.replace("ITEM_INFO_CODE", "BH_DENSITY");
|
||||
String bhDensity = masterService.getInfoUnit(params);
|
||||
|
||||
// 구한 단위를 JSON에 넣는다.
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
jsonObject.put(boreholeWaveHolecode[i] + "_BH_SHEAR_MODULUS", bhShearModulus );
|
||||
jsonObject.put(boreholeWaveHolecode[i] + "_BH_YOUNGS_MODULUS", bhYoungsModulus );
|
||||
jsonObject.put(boreholeWaveHolecode[i] + "_BH_DENSITY", bhDensity );
|
||||
|
||||
String referenceMap = jsonObject.toString();
|
||||
|
||||
file35.addField("reference_map", referenceMap);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue