본문 바로가기
Programming Language/Java

주석으로 if문 /*/

by 뒹굴거리는프로도 2018. 4. 11.
반응형
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
                                    /*/
                                    } else if ("LGHT_RADT_STD_MAX".equalsIgnoreCase(infoColumn.getColumnName())) {
                                        // 빛방사허용기준 - 최대/평균
                                        if(cell == null) {
                                            otdpotVO.setLghtRadtStdMax(null);
                                            otdpotVO.setLghtRadtStdAvg(null);
                                        }else{
                                            if (cell.getCellType() == Cell.CELL_TYPE_STRING) {
                                                strVal = cell.getStringCellValue();
 
                                                // 최대/평균이 같은 셀에 포함된 경우, 분리하여 각각 입력
                                                if (strVal.indexOf("/"> 0) {
                                                    strVal = cell.getStringCellValue();
                                                    aStr = strVal.split("[/]");
                                                    otdpotVO.setLghtRadtStdAvg(Integer.valueOf(aStr[0]));
                                                    otdpotVO.setLghtRadtStdMax(Integer.valueOf(aStr[1]));
                                                } else {
                                                    if (NumberUtils.isNumber(strVal)) {
                                                        otdpotVO.setLghtRadtStdMax(Integer.valueOf(strVal));
                                                        otdpotVO.setLghtRadtStdAvg(null);
                                                    } else {
                                                        otdpotVO.setLghtRadtStdMax(null);
                                                        otdpotVO.setLghtRadtStdAvg(null);
                                                    }
                                                }
                                            } else if (cell.getCellType() == Cell.CELL_TYPE_NUMERIC) {
                                                iVal = (Double.valueOf(cell.getNumericCellValue())).intValue();
                                                otdpotVO.setLghtRadtStdMax(iVal);
                                                otdpotVO.setLghtRadtStdAvg(null);
                                            } else {
                                                otdpotVO.setLghtRadtStdMax(null);
                                                otdpotVO.setLghtRadtStdAvg(null);
                                            }
                                        }
                                    /*/
                                    } else if ("LGHT_RADT_STD_MAX".equalsIgnoreCase(infoColumn.getColumnName())) {
                                        otdpotVO.setLghtRadtStdMax((Integer)parseCellValue(infoColumn, cell, evaluator));
                                    } else if ("LGHT_RADT_STD_AVG".equalsIgnoreCase(infoColumn.getColumnName())) {
                                        otdpotVO.setLghtRadtStdAvg((Integer)parseCellValue(infoColumn, cell, evaluator));
                                    //*/
cs
반응형