|
|
@ -5,19 +5,13 @@ import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
|
|
|
import org.egovframe.rte.fdl.string.EgovStringUtil;
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
|
|
|
|
import cokr.xit.base.crypto.bean.XitAria;
|
|
|
|
import cokr.xit.base.crypto.bean.XitAria;
|
|
|
|
import cokr.xit.base.file.FileInfo;
|
|
|
|
import cokr.xit.base.file.FileInfo;
|
|
|
|
import cokr.xit.base.file.service.bean.FileBean;
|
|
|
|
import cokr.xit.base.file.service.bean.FileBean;
|
|
|
|
import cokr.xit.cp.CleanParkingQuery;
|
|
|
|
|
|
|
|
import cokr.xit.cp.dao.CleanParkingMapper;
|
|
|
|
|
|
|
|
import cokr.xit.fims.crdn.Crdn;
|
|
|
|
import cokr.xit.fims.crdn.Crdn;
|
|
|
|
import cokr.xit.fims.crdn.dao.CrdnStngMapper;
|
|
|
|
|
|
|
|
import cokr.xit.fims.crdn.service.bean.CrdnBean;
|
|
|
|
import cokr.xit.fims.crdn.service.bean.CrdnBean;
|
|
|
|
import cokr.xit.fims.mngt.VltnQuery;
|
|
|
|
|
|
|
|
import cokr.xit.fims.mngt.dao.VltnMapper;
|
|
|
|
|
|
|
|
import cokr.xit.fims.payer.Payer;
|
|
|
|
import cokr.xit.fims.payer.Payer;
|
|
|
|
import cokr.xit.fims.payer.service.bean.PayerBean;
|
|
|
|
import cokr.xit.fims.payer.service.bean.PayerBean;
|
|
|
|
import cokr.xit.fims.rent.Lsct;
|
|
|
|
import cokr.xit.fims.rent.Lsct;
|
|
|
@ -55,15 +49,6 @@ public class LsctBean extends AbstractBean {
|
|
|
|
@Resource(name = "payerBean")
|
|
|
|
@Resource(name = "payerBean")
|
|
|
|
private PayerBean payerBean;
|
|
|
|
private PayerBean payerBean;
|
|
|
|
|
|
|
|
|
|
|
|
@Resource(name = "cleanParkingMapper")
|
|
|
|
|
|
|
|
private CleanParkingMapper cleanParkingMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource(name = "vltnMapper")
|
|
|
|
|
|
|
|
private VltnMapper vltnMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource(name = "crdnStngMapper")
|
|
|
|
|
|
|
|
private CrdnStngMapper crdnStngMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**지정한 조건에 따라 단속 대장 목록을 조회하여 반환한다.
|
|
|
|
/**지정한 조건에 따라 단속 대장 목록을 조회하여 반환한다.
|
|
|
|
* 통합플랫폼으로 사용하지 안을 경우 렌트 소스만 사용하기 위해서 TB_CRDN, TB_PAYER에 직접 등록한다.
|
|
|
|
* 통합플랫폼으로 사용하지 안을 경우 렌트 소스만 사용하기 위해서 TB_CRDN, TB_PAYER에 직접 등록한다.
|
|
|
|
* @param req 임대차계약 대장 조회 조건
|
|
|
|
* @param req 임대차계약 대장 조회 조건
|
|
|
@ -89,39 +74,7 @@ public class LsctBean extends AbstractBean {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 연계 View 테이블 조회
|
|
|
|
// 연계 View 테이블 조회
|
|
|
|
CleanParkingQuery cpQuery = new CleanParkingQuery();
|
|
|
|
List<DataObject> mainList = lsctMapper.selectMainList(req);
|
|
|
|
cpQuery.setSggCd(req.getSggCd());
|
|
|
|
|
|
|
|
cpQuery.setTaskSeCd(req.getTaskSeCd());
|
|
|
|
|
|
|
|
cpQuery.setSchCrdnYmdFrom(req.getSchCrdnYmdFrom());
|
|
|
|
|
|
|
|
cpQuery.setSchCrdnYmdTo(req.getSchCrdnYmdTo());
|
|
|
|
|
|
|
|
cpQuery.setSchVhrno(req.getSchVhrno());
|
|
|
|
|
|
|
|
cpQuery.setOmJnos(req.getOmJnos());
|
|
|
|
|
|
|
|
cpQuery.setOmJno(req.getOmJno());
|
|
|
|
|
|
|
|
cpQuery.setSchEntNm(req.getSchEntNm());
|
|
|
|
|
|
|
|
List<DataObject> mainList = cleanParkingMapper.selectMainList(cpQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(DataObject main : mainList) {
|
|
|
|
|
|
|
|
VltnQuery vQuery = new VltnQuery()
|
|
|
|
|
|
|
|
.setVltnCd(EgovStringUtil.lPad(main.string("MM_LAWGB"), 2, '0'))
|
|
|
|
|
|
|
|
.setSggCd(main.string("MM_SGGCODE"))
|
|
|
|
|
|
|
|
.setTaskSeCd(main.string("MM_TASKGB"));
|
|
|
|
|
|
|
|
List<DataObject> list = vltnMapper.selectVltns(vQuery);
|
|
|
|
|
|
|
|
if(list != null && !list.isEmpty()) {
|
|
|
|
|
|
|
|
main.set("VLTN_ID", list.get(0).get("VLTN_ID"));
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
main.set("VLTN_ID", "");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(DataObject main : mainList) {
|
|
|
|
|
|
|
|
String stdgNm = crdnStngMapper.selectStdgNm(main.string("MM_BDCODE"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(stdgNm != null) {
|
|
|
|
|
|
|
|
main.set("CRDN_STDG_NM", stdgNm);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
main.set("CRDN_STDG_NM", "");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (mainList.size() > 0) {
|
|
|
|
if (mainList.size() > 0) {
|
|
|
|
for (int iLoop = 0; iLoop < mainList.size(); iLoop++) {
|
|
|
|
for (int iLoop = 0; iLoop < mainList.size(); iLoop++) {
|
|
|
@ -318,40 +271,7 @@ public class LsctBean extends AbstractBean {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 연계 View 테이블 조회
|
|
|
|
// 연계 View 테이블 조회
|
|
|
|
CleanParkingQuery cpQuery = new CleanParkingQuery();
|
|
|
|
List<DataObject> mainList = lsctMapper.selectMainList(req);
|
|
|
|
cpQuery.setSggCd(req.getSggCd());
|
|
|
|
|
|
|
|
cpQuery.setTaskSeCd(req.getTaskSeCd());
|
|
|
|
|
|
|
|
cpQuery.setSchCrdnYmdFrom(req.getSchCrdnYmdFrom());
|
|
|
|
|
|
|
|
cpQuery.setSchCrdnYmdTo(req.getSchCrdnYmdTo());
|
|
|
|
|
|
|
|
cpQuery.setSchVhrno(req.getSchVhrno());
|
|
|
|
|
|
|
|
cpQuery.setOmJnos(req.getOmJnos());
|
|
|
|
|
|
|
|
cpQuery.setOmJno(req.getOmJno());
|
|
|
|
|
|
|
|
cpQuery.setSchEntNm(req.getSchEntNm());
|
|
|
|
|
|
|
|
List<DataObject> mainList = cleanParkingMapper.selectMainList(cpQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(DataObject main : mainList) {
|
|
|
|
|
|
|
|
VltnQuery vQuery = new VltnQuery()
|
|
|
|
|
|
|
|
.setVltnCd(EgovStringUtil.lPad(main.string("MM_LAWGB"), 2, '0'))
|
|
|
|
|
|
|
|
.setSggCd(main.string("MM_SGGCODE"))
|
|
|
|
|
|
|
|
.setTaskSeCd(main.string("MM_TASKGB"));
|
|
|
|
|
|
|
|
List<DataObject> list = vltnMapper.selectVltns(vQuery);
|
|
|
|
|
|
|
|
if(list != null && !list.isEmpty()) {
|
|
|
|
|
|
|
|
main.set("VLTN_ID", list.get(0).get("VLTN_ID"));
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
main.set("VLTN_ID", "");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(DataObject main : mainList) {
|
|
|
|
|
|
|
|
String stdgNm = crdnStngMapper.selectStdgNm(main.string("MM_BDCODE"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(stdgNm != null) {
|
|
|
|
|
|
|
|
main.set("CRDN_STDG_NM", stdgNm);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
main.set("CRDN_STDG_NM", "");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (mainList.size() > 0) {
|
|
|
|
if (mainList.size() > 0) {
|
|
|
|
for (int iLoop = 0; iLoop < mainList.size(); iLoop++) {
|
|
|
|
for (int iLoop = 0; iLoop < mainList.size(); iLoop++) {
|
|
|
|