|
|
|
@ -18,6 +18,7 @@ import cokr.xit.base.code.CommonCode;
|
|
|
|
|
import cokr.xit.fims.cmmn.CmmnQuery;
|
|
|
|
|
import cokr.xit.fims.cmmn.CmmnUtil;
|
|
|
|
|
import cokr.xit.fims.cmmn.CodeConverter;
|
|
|
|
|
import cokr.xit.fims.crdn.service.bean.CrdnStngBean;
|
|
|
|
|
import cokr.xit.fims.stat.CodeSubsetInfo;
|
|
|
|
|
import cokr.xit.fims.stat.GroupInfo;
|
|
|
|
|
import cokr.xit.fims.stat.NumberValueInfo;
|
|
|
|
@ -35,6 +36,9 @@ public class StatBean extends AbstractComponent {
|
|
|
|
|
@Resource(name = "statMapper")
|
|
|
|
|
StatMapper statMapper;
|
|
|
|
|
|
|
|
|
|
@Resource(name = "crdnStngBean")
|
|
|
|
|
CrdnStngBean crdnStngBean;
|
|
|
|
|
|
|
|
|
|
/**쿼리에서 날짜와 관련된 파라미터를 설정한다.
|
|
|
|
|
* @param sql처리용 query, dayCol 날짜조회용 컬럼, from 조회시작일, to 조회종료일
|
|
|
|
|
* @return
|
|
|
|
@ -206,7 +210,19 @@ public class StatBean extends AbstractComponent {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
result += colValue;
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
} else if(ctgrType.equals("method")) {
|
|
|
|
|
|
|
|
|
|
if(addOption.equals("businessYnOfCar")){
|
|
|
|
|
|
|
|
|
|
String ffnlgCarmdlCd = item.string("FFNLG_CARMDL_CD");
|
|
|
|
|
String vhrno = item.string("VHRNO");
|
|
|
|
|
|
|
|
|
|
result += crdnStngBean.getBusinessYnOfCar(ffnlgCarmdlCd, vhrno);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
result += colValue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -374,7 +390,8 @@ public class StatBean extends AbstractComponent {
|
|
|
|
|
String dtlCtgr = ifEmpty(groupInfo.getDtlCtgr(), ()-> "");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(ctgrType.equals("") || ctgrType.equals("plain") || ctgrType.equals("date")) { //일반텍스트
|
|
|
|
|
if(ctgrType.equals("") || ctgrType.equals("plain")
|
|
|
|
|
|| ctgrType.equals("date") || ctgrType.equals("method")) { //일반텍스트
|
|
|
|
|
compositeItemName[i] = compositeItemId[i];
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|