|
|
|
@ -12,13 +12,14 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
import cokr.xit.base.code.CommonCode;
|
|
|
|
|
import cokr.xit.fims.cmmn.CmmnUtil;
|
|
|
|
|
import cokr.xit.fims.cmmn.CrdnSttsHstryQuery;
|
|
|
|
|
import cokr.xit.fims.cmmn.service.CrdnSttsHstryService;
|
|
|
|
|
import cokr.xit.fims.crdn.CrdnQuery;
|
|
|
|
|
import cokr.xit.fims.crdn.service.CrdnService;
|
|
|
|
|
import cokr.xit.fims.excl.LevyExclQuery;
|
|
|
|
|
import cokr.xit.fims.excl.service.OpnnSbmsnService;
|
|
|
|
|
import cokr.xit.fims.sndb.SndbQuery;
|
|
|
|
|
import cokr.xit.fims.sndb.service.SndngService;
|
|
|
|
|
import cokr.xit.fims.stat.GroupInfo;
|
|
|
|
|
import cokr.xit.fims.stat.NumberValueInfo;
|
|
|
|
|
import cokr.xit.fims.stat.Stat;
|
|
|
|
|
import cokr.xit.fims.stat.StatQuery;
|
|
|
|
@ -32,6 +33,9 @@ public class StatServiceBean extends AbstractServiceBean implements StatService
|
|
|
|
|
@Resource(name = "crdnService")
|
|
|
|
|
private CrdnService crdnService;
|
|
|
|
|
|
|
|
|
|
@Resource(name = "crdnSttsHstryService")
|
|
|
|
|
private CrdnSttsHstryService crdnSttsHstryService;
|
|
|
|
|
|
|
|
|
|
@Resource(name = "opnnSbmsnService")
|
|
|
|
|
private OpnnSbmsnService opnnSbmsnService;
|
|
|
|
|
|
|
|
|
@ -131,36 +135,7 @@ public class StatServiceBean extends AbstractServiceBean implements StatService
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String domain = "";
|
|
|
|
|
|
|
|
|
|
List<GroupInfo> GroupInfoList = statQuery.getGroupInfoList();
|
|
|
|
|
|
|
|
|
|
for(GroupInfo groupInfo : GroupInfoList) {
|
|
|
|
|
|
|
|
|
|
String categorization = groupInfo.getRefCol();
|
|
|
|
|
|
|
|
|
|
switch(categorization) {
|
|
|
|
|
case "CRDN_SE_CD" :
|
|
|
|
|
case "등록대상,이첩대상" :
|
|
|
|
|
case "초기자료처리" :
|
|
|
|
|
domain = "crdn";
|
|
|
|
|
break;
|
|
|
|
|
case "SNDNG_SE_CD" :
|
|
|
|
|
domain = "sndb";
|
|
|
|
|
break;
|
|
|
|
|
case "OPNN_SBMSN_STTS_CD" :
|
|
|
|
|
domain = "excl";
|
|
|
|
|
break;
|
|
|
|
|
case "수납상태" :
|
|
|
|
|
domain = "levy";
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!domain.equals("")) {
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
String domain = statQuery.getStatDomain();
|
|
|
|
|
|
|
|
|
|
if(domain.equals("")) {
|
|
|
|
|
throw new RuntimeException("통계 유형 확인 오류");
|
|
|
|
@ -174,20 +149,34 @@ public class StatServiceBean extends AbstractServiceBean implements StatService
|
|
|
|
|
crdnQuery.setTaskSeCd(statQuery.getTaskSeCd());
|
|
|
|
|
|
|
|
|
|
if(daySetting) {
|
|
|
|
|
statBean.daySetting(crdnQuery, crdnQuery.getClass().getName(), dayColumn, firstDay, lastDay);
|
|
|
|
|
statBean.daySetting(crdnQuery, crdnQuery.getClass().getSimpleName(), dayColumn, firstDay, lastDay);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
queryResult = crdnService.getCrackdownList(crdnQuery);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else if(domain.equals("crdnSttsHstry")) {
|
|
|
|
|
|
|
|
|
|
CrdnSttsHstryQuery crdnSttsHstryQuery = new CrdnSttsHstryQuery();
|
|
|
|
|
crdnSttsHstryQuery.setSggCd(statQuery.getSggCd());
|
|
|
|
|
crdnSttsHstryQuery.setTaskSeCd(statQuery.getTaskSeCd());
|
|
|
|
|
|
|
|
|
|
crdnSttsHstryQuery.setUseYN("Y");
|
|
|
|
|
|
|
|
|
|
if(daySetting) {
|
|
|
|
|
statBean.daySetting(crdnSttsHstryQuery, crdnSttsHstryQuery.getClass().getSimpleName(), dayColumn, firstDay, lastDay);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
queryResult = crdnSttsHstryService.getCrdnSttsHstryList(crdnSttsHstryQuery);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else if(domain.equals("sndb")) {
|
|
|
|
|
SndbQuery sndbQuery = new SndbQuery();
|
|
|
|
|
sndbQuery.setSggCd(statQuery.getSggCd());
|
|
|
|
|
sndbQuery.setTaskSeCd(statQuery.getTaskSeCd());
|
|
|
|
|
|
|
|
|
|
if(daySetting) {
|
|
|
|
|
statBean.daySetting(sndbQuery, sndbQuery.getClass().getName(), dayColumn, firstDay, lastDay);
|
|
|
|
|
statBean.daySetting(sndbQuery, sndbQuery.getClass().getSimpleName(), dayColumn, firstDay, lastDay);
|
|
|
|
|
}
|
|
|
|
|
queryResult = sndngService.getSndngList(sndbQuery);
|
|
|
|
|
}
|
|
|
|
@ -198,7 +187,7 @@ public class StatServiceBean extends AbstractServiceBean implements StatService
|
|
|
|
|
levyExclQuery.setTaskSeCd(statQuery.getTaskSeCd());
|
|
|
|
|
|
|
|
|
|
if(daySetting) {
|
|
|
|
|
statBean.daySetting(levyExclQuery, levyExclQuery.getClass().getName(), dayColumn, firstDay, lastDay);
|
|
|
|
|
statBean.daySetting(levyExclQuery, levyExclQuery.getClass().getSimpleName(), dayColumn, firstDay, lastDay);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
queryResult = opnnSbmsnService.getOpnnSbmsnList(levyExclQuery);
|
|
|
|
|