통계 수정

main
이범준 1 year ago
parent 24a53a263d
commit 09d42166f8

@ -93,6 +93,10 @@ public class StatQuery extends CmmnQuery {
*/
private int dayRange;
/**
*
*/
private String carGb;
public String getStructureType() {
return ifEmpty(structureType, () -> null);
@ -230,4 +234,13 @@ public class StatQuery extends CmmnQuery {
return self();
}
public String getCarGb() {
return ifEmpty(carGb, () -> null);
}
public <T extends StatQuery> T setCarGb(String carGb) {
this.carGb = carGb;
return self();
}
}

@ -16,6 +16,7 @@ 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.crdn.service.bean.CrdnStngBean;
import cokr.xit.fims.excl.LevyExclQuery;
import cokr.xit.fims.excl.service.OpnnSbmsnService;
import cokr.xit.fims.sndb.SndbQuery;
@ -45,6 +46,8 @@ public class StatServiceBean extends AbstractServiceBean implements StatService
@Resource(name = "statBean")
private StatBean statBean;
@Resource(name = "crdnStngBean")
private CrdnStngBean crdnStngBean;
@Override
public Stat getStatistics(StatQuery statQuery, Map<String, List<CommonCode>> commonCodes) {
@ -198,6 +201,10 @@ public class StatServiceBean extends AbstractServiceBean implements StatService
}
if(!ifEmpty(statQuery.getCarGb(), ()->"").equals("")) {
queryResult.removeIf(item -> !(crdnStngBean.getCarGb(item.string("VHRNO")).equals(statQuery.getCarGb())));
}
//통계 생성
stat = statBean.groupByCartegory(queryResult, statQuery);

@ -378,6 +378,8 @@ $(document).ready(function(){
statQuery.firstDay = formFieldsData.firstDay;
statQuery.lastDay = formFieldsData.lastDay;
statQuery.carGb = formFieldsData.carGb;
//통계 유형
var preset = $("#preset--${pageName}").find(":selected");
if(preset.val() == "totCnt"){

Loading…
Cancel
Save