|
|
|
@ -12,9 +12,9 @@ import cokr.xit.fims.crdn.Crdn;
|
|
|
|
|
import cokr.xit.fims.crdn.CrdnQuery;
|
|
|
|
|
import cokr.xit.fims.crdn.ExmptnVhcl;
|
|
|
|
|
import cokr.xit.fims.crdn.Team;
|
|
|
|
|
import cokr.xit.fims.crdn.dao.CrdnStngMapper;
|
|
|
|
|
import cokr.xit.fims.crdn.dao.CrdnTeamMapper;
|
|
|
|
|
import cokr.xit.fims.crdn.dao.ExmptnVhclMapper;
|
|
|
|
|
import cokr.xit.fims.crdn.dao.GlobalStngMapper;
|
|
|
|
|
import cokr.xit.fims.crdn.receive.eqpmnt.LayoutDescriptor;
|
|
|
|
|
import cokr.xit.foundation.AbstractComponent;
|
|
|
|
|
import cokr.xit.foundation.data.DataObject;
|
|
|
|
@ -31,8 +31,8 @@ public class CrdnStngBean extends AbstractComponent {
|
|
|
|
|
public static String[] CAR_GROUP2 = {"11","13"}; //승용자동차등
|
|
|
|
|
public static String[] CAR_GROUP3 = {"31"}; //이륜자동차등
|
|
|
|
|
|
|
|
|
|
@Resource(name = "globalStngMapper")
|
|
|
|
|
private GlobalStngMapper globalStngMapper;
|
|
|
|
|
@Resource(name = "crdnStngMapper")
|
|
|
|
|
private CrdnStngMapper crdnStngMapper;
|
|
|
|
|
|
|
|
|
|
@Resource(name = "crdnTeamMapper")
|
|
|
|
|
private CrdnTeamMapper crdnTeamMapper;
|
|
|
|
@ -120,7 +120,7 @@ public class CrdnStngBean extends AbstractComponent {
|
|
|
|
|
query.setDtlAmtDcsnCd("02");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int ffnlgCrdnAmt = Integer.parseInt(ifEmpty(globalStngMapper.selectBasicAmt(query), () -> "0"));
|
|
|
|
|
int ffnlgCrdnAmt = Integer.parseInt(ifEmpty(crdnStngMapper.selectBasicAmt(query), () -> "0"));
|
|
|
|
|
|
|
|
|
|
if(ffnlgCrdnAmt > 0 && ifEmpty(crdn.getOvtimeYn(), ()-> "").equals("Y")) {
|
|
|
|
|
ffnlgCrdnAmt += 10000;
|
|
|
|
@ -142,7 +142,7 @@ public class CrdnStngBean extends AbstractComponent {
|
|
|
|
|
query.setAmtDcsnCd("03");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int ffnlgCrdnAmt = Integer.parseInt(ifEmpty(globalStngMapper.selectBasicAmt(query), () -> "0"));
|
|
|
|
|
int ffnlgCrdnAmt = Integer.parseInt(ifEmpty(crdnStngMapper.selectBasicAmt(query), () -> "0"));
|
|
|
|
|
amt[0] = ffnlgCrdnAmt;
|
|
|
|
|
amt[1] = ffnlgCrdnAmt;
|
|
|
|
|
|
|
|
|
@ -151,7 +151,7 @@ public class CrdnStngBean extends AbstractComponent {
|
|
|
|
|
query.setAmtDcsnCdGroupId("FIM006");
|
|
|
|
|
query.setAmtDcsnCd(crdn.getVltnCd());
|
|
|
|
|
|
|
|
|
|
int ffnlgCrdnAmt = Integer.parseInt(ifEmpty(globalStngMapper.selectBasicAmt(query), () -> "0"));
|
|
|
|
|
int ffnlgCrdnAmt = Integer.parseInt(ifEmpty(crdnStngMapper.selectBasicAmt(query), () -> "0"));
|
|
|
|
|
amt[0] = ffnlgCrdnAmt;
|
|
|
|
|
amt[1] = (int)(ffnlgCrdnAmt * 0.8);
|
|
|
|
|
|
|
|
|
@ -160,7 +160,7 @@ public class CrdnStngBean extends AbstractComponent {
|
|
|
|
|
query.setAmtDcsnCdGroupId("FIM061");
|
|
|
|
|
query.setAmtDcsnCd(crdn.getVltnCd());
|
|
|
|
|
|
|
|
|
|
int ffnlgCrdnAmt = Integer.parseInt(ifEmpty(globalStngMapper.selectBasicAmt(query), () -> "0"));
|
|
|
|
|
int ffnlgCrdnAmt = Integer.parseInt(ifEmpty(crdnStngMapper.selectBasicAmt(query), () -> "0"));
|
|
|
|
|
amt[0] = ffnlgCrdnAmt;
|
|
|
|
|
amt[1] = (int)(ffnlgCrdnAmt * 0.8);
|
|
|
|
|
|
|
|
|
@ -190,7 +190,7 @@ public class CrdnStngBean extends AbstractComponent {
|
|
|
|
|
}
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
int ffnlgCrdnAmt = Integer.parseInt(ifEmpty(globalStngMapper.selectBasicAmt(query), () -> "0"));
|
|
|
|
|
int ffnlgCrdnAmt = Integer.parseInt(ifEmpty(crdnStngMapper.selectBasicAmt(query), () -> "0"));
|
|
|
|
|
amt[0] = ffnlgCrdnAmt;
|
|
|
|
|
boolean isPenaltyAmt = (crdn.getFfnlgCarmdlCd().equals("13") || crdn.getFfnlgCarmdlCd().equals("14")); //과징금
|
|
|
|
|
if(isPenaltyAmt) {
|
|
|
|
@ -406,13 +406,13 @@ public class CrdnStngBean extends AbstractComponent {
|
|
|
|
|
* @return 연계파일 레이아웃 정보
|
|
|
|
|
*/
|
|
|
|
|
public List<LayoutDescriptor> getLinkFileLayoutMetadata(CrdnQuery query) {
|
|
|
|
|
return globalStngMapper.selectLinkFileLayoutMetadata(query);
|
|
|
|
|
return crdnStngMapper.selectLinkFileLayoutMetadata(query);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public LayoutDescriptor getLinkFileLayoutMetadata(String fileLayoutId) {
|
|
|
|
|
CrdnQuery query = new CrdnQuery();
|
|
|
|
|
query.setFileLayoutId(fileLayoutId);
|
|
|
|
|
List<LayoutDescriptor> list = globalStngMapper.selectLinkFileLayoutMetadata(query);
|
|
|
|
|
List<LayoutDescriptor> list = crdnStngMapper.selectLinkFileLayoutMetadata(query);
|
|
|
|
|
return list == null ? null : list.get(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|