통계 수정

main
이범준 1 year ago
parent 073f6114e0
commit b4b6f8ce3f

@ -217,8 +217,8 @@ public class StatBean extends AbstractComponent {
String ffnlgCarmdlCd = item.string("FFNLG_CARMDL_CD"); String ffnlgCarmdlCd = item.string("FFNLG_CARMDL_CD");
String vhrno = item.string("VHRNO"); String vhrno = item.string("VHRNO");
result += crdnStngBean.getBusinessYnOfCar(ffnlgCarmdlCd, vhrno); result += crdnStngBean.getBusinessYnOfCar(ffnlgCarmdlCd, vhrno);
} else { } else {
result += colValue; result += colValue;
} }
@ -402,9 +402,12 @@ public class StatBean extends AbstractComponent {
String itemName = ""; String itemName = "";
if(ctgrType.equals("code")){ //공통코드 if(ctgrType.equals("code")){ //공통코드
String converted = codeConverter.codeToValue(dtlCtgr, compositeItemId[i]);
itemName = codeConverter.codeToValue(dtlCtgr, compositeItemId[i]); if(ifEmpty(converted, ()->"").equals("")) {
itemName = compositeItemId[i];
} else {
itemName = converted;
}
} else if(ctgrType.equals("otherCode")) { //비공통코드 } else if(ctgrType.equals("otherCode")) { //비공통코드
if(dtlCtgr.equals("VLTN_CD")) { if(dtlCtgr.equals("VLTN_CD")) {
@ -420,8 +423,12 @@ public class StatBean extends AbstractComponent {
throw new RuntimeException("위반코드 변환 오류"); throw new RuntimeException("위반코드 변환 오류");
} }
itemName = codeConverter.vltnCdToValue(taskSeCd, compositeItemId[i]); String converted = codeConverter.vltnCdToValue(taskSeCd, compositeItemId[i]);
if(ifEmpty(converted, ()->"").equals("")) {
itemName = compositeItemId[i];
} else {
itemName = converted;
}
} else if(dtlCtgr.equals("VLTN_ID") || dtlCtgr.equals("TEAM_ID") } else if(dtlCtgr.equals("VLTN_ID") || dtlCtgr.equals("TEAM_ID")
|| dtlCtgr.equals("SGG_CD") || dtlCtgr.equals("DEPT_CD") || dtlCtgr.equals("USER_ID")) { || dtlCtgr.equals("SGG_CD") || dtlCtgr.equals("DEPT_CD") || dtlCtgr.equals("USER_ID")) {
@ -434,6 +441,8 @@ public class StatBean extends AbstractComponent {
if(findRow != null){ if(findRow != null){
itemName = findRow.string("NAME"); itemName = findRow.string("NAME");
codeConverter.putOtherCode(dtlCtgr, findRow); codeConverter.putOtherCode(dtlCtgr, findRow);
} else {
itemName = compositeItemId[i];
} }
} }
} }

Loading…
Cancel
Save