사업용 차량 구분 메소드 추가

main
이범준 1 year ago
parent b2b12d070f
commit 2bf63c2d70

@ -203,6 +203,27 @@ public class CrdnStngBean extends AbstractComponent {
return amt;
}
/** .
* @param ffnlgCarmdlCd , vhrno
* @return
*/
public String getBusinessYnOfCar(String ffnlgCarmdlCd, String vhrno) {
if(vhrno.equals("")) {
return "차량번호없음";
}
if(ffnlgCarmdlCd.equals("") || ffnlgCarmdlCd.equals("31")) {
return "판단불가";
}
if(vhrno.contains("바") || vhrno.contains("사") || vhrno.contains("아") || vhrno.contains("자")) {
return "영업용";
} else {
return "비영업용";
}
}
/** .
* @param query
* @return

@ -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;
}

@ -104,7 +104,7 @@
data-ref-col="FFNLG_CARMDL_CD" data-ctgr-type="code" data-dtl-ctgr="FIM009"
>차종</option>
<option value="businessCar"
data-ref-col="" data-ctgr-type="" data-dtl-ctgr=""
data-ref-col="" data-ctgr-type="method" data-dtl-ctgr="businessYnOfCar"
>사업용차량구분</option>
<option value="carSe"
data-ref-col="" data-ctgr-type="" data-dtl-ctgr=""

@ -95,7 +95,7 @@
data-ref-col="FFNLG_CARMDL_CD" data-ctgr-type="code" data-dtl-ctgr="FIM009"
>차종</option>
<option value="businessCar"
data-ref-col="" data-ctgr-type="" data-dtl-ctgr=""
data-ref-col="" data-ctgr-type="method" data-dtl-ctgr="businessYnOfCar"
>사업용차량구분</option>
<option value="carSe"
data-ref-col="" data-ctgr-type="" data-dtl-ctgr=""

@ -288,7 +288,15 @@ function fnMakeStatReq(taskSeCd){
dtlCtgr : "FIM047"
}
],
fixedItemId : ["01", "02", "03"],
codeSubsetInfoList : [
{
sourceGroup : "FIM047",
sourceCodes : ["01","02"],
targetCode : "satong",
targetCodeVal : "사전통지서"
}
],
fixedItemId : ["satong", "03", "11"],
namedNumberValueSeperator : "completeAndTotal",
globalAggregate : "count",
taskSeCd : taskSeCd,
@ -445,7 +453,15 @@ function fnMakeStatReq(taskSeCd){
aggregateType : "count"
}
],
fixedItemId : ["01", "02", "03"],
codeSubsetInfoList : [
{
sourceGroup : "FIM047",
sourceCodes : ["01","02"],
targetCode : "satong",
targetCodeVal : "사전통지서"
}
],
fixedItemId : ["satong", "03", "11"],
taskSeCd : taskSeCd,
dayColumn : "SNDNG_YMD",
firstDay : firstDay,

Loading…
Cancel
Save