단속 관리 수정

main
이범준 1 year ago
parent 3f21f9df1b
commit ea42b3d58c

@ -17,8 +17,8 @@ public class CrdnQuery extends CmmnQuery {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
//조회유형 //조회유형
private String view; private String viewType;
private String grid; private String gridType;
private String inspectionDataType; private String inspectionDataType;
//현재정보 //현재정보
@ -60,21 +60,21 @@ public class CrdnQuery extends CmmnQuery {
private String vhrno; private String vhrno;
private String cvlcptPrcsPicNm; private String cvlcptPrcsPicNm;
public String getView() { public String getViewType() {
return ifEmpty(view, () -> null); return ifEmpty(viewType, () -> null);
} }
public <T extends CrdnQuery> T setView(String view) { public <T extends CrdnQuery> T setViewType(String viewType) {
this.view = view; this.viewType = viewType;
return self(); return self();
} }
public String getGrid() { public String getGridType() {
return ifEmpty(grid, () -> null); return ifEmpty(gridType, () -> null);
} }
public <T extends CrdnQuery> T setGrid(String grid) { public <T extends CrdnQuery> T setGridType(String gridType) {
this.grid = grid; this.gridType = gridType;
return self(); return self();
} }

@ -17,21 +17,21 @@ import cokr.xit.foundation.data.DataObject;
public interface Crdn01Mapper extends AbstractMapper { public interface Crdn01Mapper extends AbstractMapper {
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.bean.Crdn01ServiceBean#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)}
* @param query * @param query
* @return * @return
*/ */
List<DataObject> selectCivilComplaintList(CrdnQuery query); List<DataObject> selectCivilComplaintList(CrdnQuery query);
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.bean.Crdn01ServiceBean#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)}
* @param query * @param query
* @return * @return
*/ */
List<DataObject> selectCivilComplaintReceiptDataList(CrdnQuery query); List<DataObject> selectCivilComplaintReceiptDataList(CrdnQuery query);
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.bean.Crdn01ServiceBean#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)}
* @param query * @param query
* @return * @return
*/ */
@ -41,7 +41,7 @@ public interface Crdn01Mapper extends AbstractMapper {
* @param params * @param params
* @return * @return
*/ */
int removeCivilComplaint(Map<String, Object> map); int remove(Map<String, Object> map);
/** . /** .
* @param query * @param query
@ -71,6 +71,6 @@ public interface Crdn01Mapper extends AbstractMapper {
* @param crdn * @param crdn
* @return * @return
*/ */
int saveCivilComplaint(Crdn crdn); int save(Crdn crdn);
} }

@ -16,7 +16,7 @@ import cokr.xit.foundation.data.DataObject;
public interface Crdn05Mapper extends AbstractMapper { public interface Crdn05Mapper extends AbstractMapper {
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.bean.Crdn05ServiceBean#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return * @return
*/ */

@ -17,35 +17,35 @@ import cokr.xit.foundation.data.DataObject;
public interface Crdn06Mapper extends AbstractMapper { public interface Crdn06Mapper extends AbstractMapper {
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.bean.Crdn06ServiceBean#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return * @return
*/ */
List<DataObject> selectCrackdownList(CrdnQuery req); List<DataObject> selectCrackdownList(CrdnQuery req);
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.bean.Crdn06ServiceBean#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return * @return
*/ */
List<DataObject> selectPhotoInspectionDataList(CrdnQuery setOrderBy); List<DataObject> selectPhotoInspectionDataList(CrdnQuery setOrderBy);
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.bean.Crdn06ServiceBean#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return * @return
*/ */
List<DataObject> selectSameVehicleMainList(CrdnQuery setOrderBy); List<DataObject> selectSameVehicleMainList(CrdnQuery setOrderBy);
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.bean.Crdn06ServiceBean#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return * @return
*/ */
List<DataObject> selectSameVehicleSubList(CrdnQuery setOrderBy); List<DataObject> selectSameVehicleSubList(CrdnQuery setOrderBy);
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.bean.Crdn06ServiceBean#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return * @return
*/ */
@ -58,7 +58,7 @@ public interface Crdn06Mapper extends AbstractMapper {
int updateTagInformation(Crdn crdn); int updateTagInformation(Crdn crdn);
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.bean.Crdn06ServiceBean#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return * @return
*/ */

@ -2,6 +2,11 @@ package cokr.xit.fims.crdn.service;
import java.util.List; import java.util.List;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.file.FileInfo;
import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
@ -16,4 +21,34 @@ public interface CrdnService {
*/ */
List<DataObject> getCrackdownList(CrdnQuery req); List<DataObject> getCrackdownList(CrdnQuery req);
/** .
* @param crdnIDs ID
* @return
*/
boolean remove(String... crdnIDs);
/** .
* @param crdn , newFileList
* @return
*/
boolean create(Crdn crdn, MultipartFile[] newFileList);
/** .
* @param crdn , newFileInfoList
* @return
*/
boolean save(Crdn crdn, List<FileInfo> newFileInfoList);
/** .
* @param crdnQuery
* @return mav
*/
ModelAndView makeFileFromHwpFormat(CrdnQuery crdnQuery);
DataObject getCivilComplaintOriginalInfo(CrdnQuery req);
DataObject getAnswerPreview(CrdnQuery req);
DataObject getCivilComplaintReceiptInitialDataInfo(CrdnQuery req);
} }

@ -24,7 +24,7 @@ public class Crdn01Bean extends AbstractComponent {
@Resource(name = "crdn01Mapper") @Resource(name = "crdn01Mapper")
private Crdn01Mapper crdn01Mapper; private Crdn01Mapper crdn01Mapper;
public boolean removeCivilComplaint(String... crdnIDs) { public boolean remove(String... crdnIDs) {
if (isEmpty(crdnIDs)) return false; if (isEmpty(crdnIDs)) return false;
Map<String, Object> paramMap = new HashMap<String, Object>(); Map<String, Object> paramMap = new HashMap<String, Object>();
@ -32,11 +32,11 @@ public class Crdn01Bean extends AbstractComponent {
paramMap.put("crdnIDs", crdnIdList); paramMap.put("crdnIDs", crdnIdList);
paramMap.put("removedBy", UserInfo.current().getId()); paramMap.put("removedBy", UserInfo.current().getId());
return crdn01Mapper.removeCivilComplaint(paramMap) == 1 ? true : false; return crdn01Mapper.remove(paramMap) == 1 ? true : false;
} }
public DataObject getCivilComplaintOriginalInfo(CrdnQuery crdnQuery) { public DataObject getCivilComplaintOriginalInfo(CrdnQuery crdnQuery) {
if(ifEmpty(crdnQuery.getView(), () -> "").equals("hwp")) { if(ifEmpty(crdnQuery.getViewType(), () -> "").equals("hwp")) {
return crdn01Mapper.selectCivilComplaintOriginalInfoHwp(crdnQuery); return crdn01Mapper.selectCivilComplaintOriginalInfoHwp(crdnQuery);
} }
return crdn01Mapper.selectCivilComplaintOriginalInfo(crdnQuery); return crdn01Mapper.selectCivilComplaintOriginalInfo(crdnQuery);

@ -1,28 +0,0 @@
package cokr.xit.fims.crdn.service.bean;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject;
/**
* @author leebj
*/
@Service("crdn02Service")
public class Crdn02ServiceBean extends AbstractServiceBean implements CrdnService {
/** 민원 개별 등록 Bean */
@Resource(name="crdn02Bean")
protected Crdn02Bean crdn02Bean;
@Override
public List<DataObject> getCrackdownList(CrdnQuery req) {
return null; //crdn02Mapper.
}
}

@ -1,131 +0,0 @@
package cokr.xit.fims.crdn.service.bean;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import cokr.xit.base.file.FileInfo;
import cokr.xit.base.file.service.bean.FileBean;
import cokr.xit.base.file.web.FileInfoFactory;
import cokr.xit.fims.cmmn.CrdnSttsHstry;
import cokr.xit.fims.cmmn.service.bean.CrdnSttsHstryBean;
import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.dao.Crdn05Mapper;
import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.excl.Excl01;
import cokr.xit.fims.excl.service.bean.Excl01Bean;
import cokr.xit.foundation.UserInfo;
import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject;
/**
* @author leebj
*/
@Service("crdn05Service")
public class Crdn05ServiceBean extends AbstractServiceBean implements CrdnService {
@Resource(name="crdn05Mapper")
protected Crdn05Mapper crdn05Mapper;
/** 단속 자료 등록 Bean */
@Resource(name="crdn05Bean")
protected Crdn05Bean crdn05Bean;
@Resource(name="fileBean")
private FileBean fileBean;
@Resource(name="excl01Bean")
private Excl01Bean excl01Bean;
@Resource(name="crdnSttsHstryBean")
private CrdnSttsHstryBean crdnSttsHstryBean;
@Override
public List<DataObject> getCrackdownList(CrdnQuery req) {
req.setCurrentUserId(currentUser().getId());
req.setOrderBy("CRDN_ID");
return crdn05Mapper.selectCrackdownList(req);
}
public boolean create(Crdn crdn, MultipartFile[] newFileList) {
List<FileInfo> fileInfoList = new ArrayList<FileInfo>();
if(newFileList != null) {
fileInfoList = new FileInfoFactory().makeFileInfos(null, newFileList);
crdn.setAtchFileCnt(fileInfoList.size());
} else {
crdn.setAtchFileCnt(0);
}
int[] basicAmt = crdn05Bean.getBasicAmt(crdn);
crdn.setFfnlgAmt(basicAmt[0]);
crdn.setLevyAmt(basicAmt[0]);
crdn.setAdvntceLevyAmt(basicAmt[1]);
if(ifEmpty(crdn.getDoGuidance(), () -> "").equals("on")) {
crdn.setCrdnSttsCd("83");
} else {
crdn.setCrdnSttsCd("01");
}
crdn.setInstitute(UserInfo.current().getInstitute());
boolean result = crdn05Bean.insertCrdn(crdn);
SimpleDateFormat yyyyMMdd = new SimpleDateFormat("yyyyMMdd");
Date curTime = new Date();
String strCurrentDate = yyyyMMdd.format(curTime);
String taskDtlId = crdn.getCrdnId();
if(crdn.getCrdnSttsCd().equals("83")) {
// 부과제외(TB_LEVY_EXCL) 대장 등록
Excl01 excl01 = new Excl01();
excl01.setSggCd(""); // TODO:시군구
excl01.setTaskSeCd(crdn.getTaskSeCd());
excl01.setCrdnId(crdn.getCrdnId());
excl01.setLevyExclYmd(strCurrentDate);
excl01.setLevyExclSeCd("2");
excl01.setLevyExclRsnCd("192");
excl01.setEtcCn("");
result = excl01Bean.create(excl01);
if (!result) {
return false;
}
taskDtlId = excl01.getLevyExclId();
}
// 단속상태이력(TB_CRDN_STTS_HSTRY) 대장 등록
CrdnSttsHstry crdnSttsHstry = new CrdnSttsHstry();
crdnSttsHstry.setCrdnId(crdn.getCrdnId());
crdnSttsHstry.setBfrSttsCd("");
crdnSttsHstry.setBfrSttsChgDt("");
crdnSttsHstry.setCrdnSttsCd(crdn.getCrdnSttsCd());
crdnSttsHstry.setTaskDtlId(taskDtlId);
crdnSttsHstry.setEtcCn("");
result = crdnSttsHstryBean.create(crdnSttsHstry);
if (!result) {
return false;
}
if(!fileInfoList.isEmpty()) {
fileInfoList.forEach(fileInfo -> fileInfo.setInfoType(Crdn.INF_TYPE).setInfoKey(crdn.getCrdnId()));
fileBean.create(fileInfoList);
}
return result;
}
}

@ -1,100 +0,0 @@
package cokr.xit.fims.crdn.service.bean;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.dao.Crdn06Mapper;
import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject;
/**
* @author leebj
*/
@Service("crdn06Service")
public class Crdn06ServiceBean extends AbstractServiceBean implements CrdnService {
@Resource(name="crdn06Mapper")
protected Crdn06Mapper crdn06Mapper;
/** 단속관리 Bean */
@Resource(name="crdn06Bean")
protected Crdn06Bean crdn06Bean;
@Override
public List<DataObject> getCrackdownList(CrdnQuery req) {
List<DataObject> dataObjectList = new ArrayList<DataObject>();
switch (ifEmpty(req.getGrid(), () -> "")) {
case "tagInformationUndefinedData":
dataObjectList = crdn06Mapper.selectTagInformationUndefinedDataList(req.setOrderBy("CRDN_ID"));
break;
case "fineReductionData":
dataObjectList = crdn06Mapper.selectFineReductionDataList(req.setOrderBy("CRDN_ID"));
break;
case "photo":
dataObjectList = crdn06Mapper.selectPhotoInspectionDataList(req.setOrderBy("VHRNO, CRDN_PLC"));
break;
case "sameVehicleMain":
dataObjectList = crdn06Mapper.selectSameVehicleMainList(req.setOrderBy("VHRNO"));
break;
case "sameVehicleSub":
dataObjectList = crdn06Mapper.selectSameVehicleSubList(req.setOrderBy("CRDN_ID"));
break;
default:
dataObjectList = crdn06Mapper.selectCrackdownList(req.setOrderBy("CRDN_ID"));
break;
}
if(ifEmpty(req.getGrid(), () -> "").equals("tagInformationUndefinedData")
|| ifEmpty(req.getGrid(), () -> "").equals("fineReductionData")) {
Iterator<DataObject> iterator = dataObjectList.iterator();
while(iterator.hasNext()) {
DataObject dataObject = iterator.next();
String state = dataObject.string("CRDN_STTS_CD");
int advntceLevyAmt = dataObject.number("ADVNTCE_LEVY_AMT").intValue();
int levyAmt = dataObject.number("LEVY_AMT").intValue();
int minusAmt = dataObject.number("MINUS_AMT").intValue();
int adtnAmt = dataObject.number("ADTN_AMT").intValue();
int rcvmtAmt = dataObject.number("RCVMT_AMT").intValue();
dataObject.set("BLNC", crdn06Bean.getBalance(state,advntceLevyAmt,levyAmt,minusAmt,adtnAmt,rcvmtAmt));
}
} else if(ifEmpty(req.getGrid(), () -> "").equals("photo")) {
Iterator<DataObject> iterator = dataObjectList.iterator();
while(iterator.hasNext()) {
DataObject dataObject = iterator.next();
if(dataObject.number("ATCH_FILE_CNT").intValue() < 1) {
dataObject.set("INSP_RSLT", "사진없음");
dataObject.set("PRCS_MTHD", "해당자료에 사진을 등록하시기 바랍니다.");
} else if(dataObject.number("CRDN_CNT").intValue() > 1) {
dataObject.set("INSP_RSLT", "중복자료");
if(req.getTaskSeCd().equals("PVS")) {
dataObject.set("PRCS_MTHD", "한건을 시간초과로 처리하십시요.");
} else {
dataObject.set("PRCS_MTHD", "한건을 서손으로 처리하십시요.");
}
} else {
dataObject.set("INSP_RSLT", "정상자료");
dataObject.set("PRCS_MTHD", "정상자료");
}
}
}
return dataObjectList;
}
public boolean update(Crdn crdn) {
return crdn06Bean.update(crdn);
}
}

@ -4,6 +4,7 @@ import java.io.File;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.Iterator;
import java.util.List; import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@ -12,19 +13,28 @@ import javax.annotation.Resource;
import org.assertj.core.util.Arrays; import org.assertj.core.util.Arrays;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.ResourceUtils; import org.springframework.util.ResourceUtils;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.file.FileInfo; import cokr.xit.base.file.FileInfo;
import cokr.xit.base.file.service.FileQuery; import cokr.xit.base.file.service.FileQuery;
import cokr.xit.base.file.service.bean.FileBean; import cokr.xit.base.file.service.bean.FileBean;
import cokr.xit.base.file.web.FileInfoFactory;
import cokr.xit.fims.cmmn.CmmnUtil; import cokr.xit.fims.cmmn.CmmnUtil;
import cokr.xit.fims.cmmn.CrdnSttsHstry;
import cokr.xit.fims.cmmn.hwp.AddingParagraphBetweenHWPFile; import cokr.xit.fims.cmmn.hwp.AddingParagraphBetweenHWPFile;
import cokr.xit.fims.cmmn.hwp.InsertingImageCell; import cokr.xit.fims.cmmn.hwp.InsertingImageCell;
import cokr.xit.fims.cmmn.service.bean.CrdnSttsHstryBean;
import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.dao.Crdn01Mapper; import cokr.xit.fims.crdn.dao.Crdn01Mapper;
import cokr.xit.fims.crdn.dao.Crdn05Mapper;
import cokr.xit.fims.crdn.dao.Crdn06Mapper;
import cokr.xit.fims.crdn.service.CrdnService; import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.excl.Excl01;
import cokr.xit.fims.excl.service.bean.Excl01Bean;
import cokr.xit.fims.sprt.Sprt; import cokr.xit.fims.sprt.Sprt;
import cokr.xit.foundation.UserInfo;
import cokr.xit.foundation.component.AbstractServiceBean; import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
import kr.dogfoot.hwplib.object.HWPFile; import kr.dogfoot.hwplib.object.HWPFile;
@ -32,53 +42,129 @@ import kr.dogfoot.hwplib.reader.HWPReader;
import kr.dogfoot.hwplib.tool.objectfinder.FieldFinder; import kr.dogfoot.hwplib.tool.objectfinder.FieldFinder;
import kr.dogfoot.hwplib.writer.HWPWriter; import kr.dogfoot.hwplib.writer.HWPWriter;
/** @Service("crdnService")
* @author leebj public class CrdnServiceBean extends AbstractServiceBean implements CrdnService {
*/
@Service("crdn01Service")
public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnService {
@Resource(name="crdn01Mapper") @Resource(name="crdn01Mapper")
protected Crdn01Mapper crdn01Mapper; protected Crdn01Mapper crdn01Mapper;
@Resource(name="crdn05Mapper")
protected Crdn05Mapper crdn05Mapper;
@Resource(name="crdn06Mapper")
protected Crdn06Mapper crdn06Mapper;
@Resource(name="fileBean") @Resource(name="fileBean")
private FileBean fileBean; private FileBean fileBean;
/** 민원관리 Bean */
@Resource(name="crdn01Bean") @Resource(name="crdn01Bean")
protected Crdn01Bean crdn01Bean; protected Crdn01Bean crdn01Bean;
@Resource(name="crdn02Bean")
protected Crdn02Bean crdn02Bean;
@Resource(name="crdn05Bean")
protected Crdn05Bean crdn05Bean;
@Resource(name="crdn06Bean") @Resource(name="crdn06Bean")
protected Crdn06Bean crdn06Bean; protected Crdn06Bean crdn06Bean;
@Resource(name="excl01Bean")
protected Excl01Bean excl01Bean;
@Resource(name="crdnSttsHstryBean")
protected CrdnSttsHstryBean crdnSttsHstryBean;
@Override @Override
public List<DataObject> getCrackdownList(CrdnQuery req) { public List<DataObject> getCrackdownList(CrdnQuery req) {
switch (ifEmpty(req.getGrid(), () -> "")) { List<DataObject> dataObjectList = new ArrayList<DataObject>();
switch (ifEmpty(req.getGridType(), () -> "")) {
case "tagInformationUndefinedData":
dataObjectList = crdn06Mapper.selectTagInformationUndefinedDataList(req.setOrderBy("CRDN_ID"));
break;
case "fineReductionData":
dataObjectList = crdn06Mapper.selectFineReductionDataList(req.setOrderBy("CRDN_ID"));
break;
case "photo":
dataObjectList = crdn06Mapper.selectPhotoInspectionDataList(req.setOrderBy("VHRNO, CRDN_PLC"));
break;
case "sameVehicleMain":
dataObjectList = crdn06Mapper.selectSameVehicleMainList(req.setOrderBy("VHRNO"));
break;
case "sameVehicleSub":
dataObjectList = crdn06Mapper.selectSameVehicleSubList(req.setOrderBy("CRDN_ID"));
break;
case "receiptData": case "receiptData":
return crdn01Mapper.selectCivilComplaintReceiptDataList(req.setOrderBy("CVLCPT_RCPT_YMD")); dataObjectList = crdn01Mapper.selectCivilComplaintReceiptDataList(req.setOrderBy("CVLCPT_RCPT_YMD"));
break;
case "answerTargetData": case "answerTargetData":
return crdn01Mapper.selectCivilComplaintAnswerTargetDataList(req.setOrderBy("CRDN_ID")); dataObjectList = crdn01Mapper.selectCivilComplaintAnswerTargetDataList(req.setOrderBy("CRDN_ID"));
break;
case "todayInsert":
req.setCurrentUserId(currentUser().getId());
req.setOrderBy("CRDN_ID");
dataObjectList = crdn05Mapper.selectCrackdownList(req);
break;
default: default:
return crdn01Mapper.selectCivilComplaintList(req.setOrderBy("CRDN_ID")); dataObjectList = crdn06Mapper.selectCrackdownList(req.setOrderBy("CRDN_ID"));
break;
} }
if(ifEmpty(req.getGridType(), () -> "").equals("tagInformationUndefinedData")
|| ifEmpty(req.getGridType(), () -> "").equals("fineReductionData")) {
Iterator<DataObject> iterator = dataObjectList.iterator();
while(iterator.hasNext()) {
DataObject dataObject = iterator.next();
String state = dataObject.string("CRDN_STTS_CD");
int advntceLevyAmt = dataObject.number("ADVNTCE_LEVY_AMT").intValue();
int levyAmt = dataObject.number("LEVY_AMT").intValue();
int minusAmt = dataObject.number("MINUS_AMT").intValue();
int adtnAmt = dataObject.number("ADTN_AMT").intValue();
int rcvmtAmt = dataObject.number("RCVMT_AMT").intValue();
dataObject.set("BLNC", crdn06Bean.getBalance(state,advntceLevyAmt,levyAmt,minusAmt,adtnAmt,rcvmtAmt));
}
} else if(ifEmpty(req.getGridType(), () -> "").equals("photo")) {
Iterator<DataObject> iterator = dataObjectList.iterator();
while(iterator.hasNext()) {
DataObject dataObject = iterator.next();
if(dataObject.number("ATCH_FILE_CNT").intValue() < 1) {
dataObject.set("INSP_RSLT", "사진없음");
dataObject.set("PRCS_MTHD", "해당자료에 사진을 등록하시기 바랍니다.");
} else if(dataObject.number("CRDN_CNT").intValue() > 1) {
dataObject.set("INSP_RSLT", "중복자료");
if(req.getTaskSeCd().equals("PVS")) {
dataObject.set("PRCS_MTHD", "한건을 시간초과로 처리하십시요.");
} else {
dataObject.set("PRCS_MTHD", "한건을 서손으로 처리하십시요.");
}
} else {
dataObject.set("INSP_RSLT", "정상자료");
dataObject.set("PRCS_MTHD", "정상자료");
}
}
}
return dataObjectList;
} }
public DataObject getCivilComplaintOriginalInfo(CrdnQuery req) { @Override
return crdn01Bean.getCivilComplaintOriginalInfo(req); public boolean remove(String... crdnIDs) {
return crdn01Bean.remove(crdnIDs);
} }
public boolean removeCivilComplaint(String... crdnIDs) { @Override
return crdn01Bean.removeCivilComplaint(crdnIDs); public DataObject getCivilComplaintOriginalInfo(CrdnQuery req) {
return crdn01Bean.getCivilComplaintOriginalInfo(req);
} }
@Override
public ModelAndView makeFileFromHwpFormat(CrdnQuery crdnQuery) { public ModelAndView makeFileFromHwpFormat(CrdnQuery crdnQuery) {
String baseFormatFilePath = ("classpath:format/cvlcptOrgnl_text.hwp"); String baseFormatFilePath = ("classpath:format/cvlcptOrgnl_text.hwp");
String attachFormatFilePath = ("classpath:format/cvlcptOrgnl_photo.hwp"); String attachFormatFilePath = ("classpath:format/cvlcptOrgnl_photo.hwp");
crdnQuery.setView("hwp"); crdnQuery.setViewType("hwp");
DataObject dataObject = crdn01Bean.getCivilComplaintOriginalInfo(crdnQuery); DataObject dataObject = crdn01Bean.getCivilComplaintOriginalInfo(crdnQuery);
SimpleDateFormat ymdhmsFormat = new SimpleDateFormat("yyyyMMddHHmmss"); SimpleDateFormat ymdhmsFormat = new SimpleDateFormat("yyyyMMddHHmmss");
SimpleDateFormat ymdFormat = new SimpleDateFormat("yyyyMMdd"); SimpleDateFormat ymdFormat = new SimpleDateFormat("yyyyMMdd");
@ -183,12 +269,13 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic
} }
} }
@Override
public DataObject getAnswerPreview(CrdnQuery req) { public DataObject getAnswerPreview(CrdnQuery req) {
return crdn01Mapper.selectAnswerPreview(req); return crdn01Mapper.selectAnswerPreview(req);
} }
@Override
public DataObject getCivilComplaintReceiptInitialDataInfo(CrdnQuery req) { public DataObject getCivilComplaintReceiptInitialDataInfo(CrdnQuery req) {
//민원조회 //민원조회
DataObject dataObject = crdn01Mapper.selectCivilComplaintReceiptInitialDataInfo(req); DataObject dataObject = crdn01Mapper.selectCivilComplaintReceiptInitialDataInfo(req);
@ -229,8 +316,8 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic
return dataObject; return dataObject;
} }
public boolean saveCivilComplaint(Crdn crdn, List<FileInfo> newFileInfoList) { @Override
public boolean save(Crdn crdn, List<FileInfo> newFileInfoList) {
int fileInsertEffected = 0; int fileInsertEffected = 0;
int fileDeleteEffected = 0; int fileDeleteEffected = 0;
@ -245,8 +332,81 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic
crdn.setFileChgCnt(fileInsertEffected - fileDeleteEffected); crdn.setFileChgCnt(fileInsertEffected - fileDeleteEffected);
return crdn06Bean.update(crdn); return crdn06Bean.update(crdn);
} }
@Override
public boolean create(Crdn crdn, MultipartFile[] newFileList) {
List<FileInfo> fileInfoList = new ArrayList<FileInfo>();
if(newFileList != null) {
fileInfoList = new FileInfoFactory().makeFileInfos(null, newFileList);
crdn.setAtchFileCnt(fileInfoList.size());
} else {
crdn.setAtchFileCnt(0);
}
int[] basicAmt = crdn05Bean.getBasicAmt(crdn);
crdn.setFfnlgAmt(basicAmt[0]);
crdn.setLevyAmt(basicAmt[0]);
crdn.setAdvntceLevyAmt(basicAmt[1]);
if(ifEmpty(crdn.getDoGuidance(), () -> "").equals("on")) {
crdn.setCrdnSttsCd("83");
} else {
crdn.setCrdnSttsCd("01");
}
crdn.setInstitute(UserInfo.current().getInstitute());
boolean result = crdn05Bean.insertCrdn(crdn);
SimpleDateFormat yyyyMMdd = new SimpleDateFormat("yyyyMMdd");
Date curTime = new Date();
String strCurrentDate = yyyyMMdd.format(curTime);
String taskDtlId = crdn.getCrdnId();
if(crdn.getCrdnSttsCd().equals("83")) {
// 부과제외(TB_LEVY_EXCL) 대장 등록
Excl01 excl01 = new Excl01();
excl01.setSggCd(""); // TODO:시군구
excl01.setTaskSeCd(crdn.getTaskSeCd());
excl01.setCrdnId(crdn.getCrdnId());
excl01.setLevyExclYmd(strCurrentDate);
excl01.setLevyExclSeCd("2");
excl01.setLevyExclRsnCd("192");
excl01.setEtcCn("");
result = excl01Bean.create(excl01);
if (!result) {
return false;
}
taskDtlId = excl01.getLevyExclId();
}
// 단속상태이력(TB_CRDN_STTS_HSTRY) 대장 등록
CrdnSttsHstry crdnSttsHstry = new CrdnSttsHstry();
crdnSttsHstry.setCrdnId(crdn.getCrdnId());
crdnSttsHstry.setBfrSttsCd("");
crdnSttsHstry.setBfrSttsChgDt("");
crdnSttsHstry.setCrdnSttsCd(crdn.getCrdnSttsCd());
crdnSttsHstry.setTaskDtlId(taskDtlId);
crdnSttsHstry.setEtcCn("");
result = crdnSttsHstryBean.create(crdnSttsHstry);
if (!result) {
return false;
}
if(!fileInfoList.isEmpty()) {
fileInfoList.forEach(fileInfo -> fileInfo.setInfoType(Crdn.INF_TYPE).setInfoKey(crdn.getCrdnId()));
fileBean.create(fileInfoList);
}
return result;
}
} }

@ -19,7 +19,7 @@ import cokr.xit.base.file.web.FileInfoFactory;
import cokr.xit.base.web.ApplicationController; import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.service.bean.Crdn01ServiceBean; import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.foundation.UserInfo; import cokr.xit.foundation.UserInfo;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
@ -29,8 +29,8 @@ import cokr.xit.foundation.data.DataObject;
*/ */
public class Crdn01Controller extends ApplicationController { public class Crdn01Controller extends ApplicationController {
@Resource(name="crdn01Service") @Resource(name="crdnService")
private Crdn01ServiceBean crdn01Service; private CrdnService crdnService;
/** . /** .
* @return fims/crdn/crdn01010-main * @return fims/crdn/crdn01010-main
@ -94,14 +94,14 @@ public class Crdn01Controller extends ApplicationController {
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM039"); Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM039");
mav.addObject("FIM039List", commonCodes.get("FIM039")); mav.addObject("FIM039List", commonCodes.get("FIM039"));
DataObject info = crdn01Service.getCivilComplaintOriginalInfo(req); DataObject info = crdnService.getCivilComplaintOriginalInfo(req);
mav.addObject("cvlcptInfo", json ? info : toJson(info)); mav.addObject("cvlcptInfo", json ? info : toJson(info));
return mav; return mav;
} }
/** .<br /> /** .<br />
* {@link Crdn01ServiceBean#getCrackdownList(CrdnQuery)} * {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
@ -113,9 +113,9 @@ public class Crdn01Controller extends ApplicationController {
*/ */
@RequestMapping(name="민원접수자료 목록", value="/010/list.do") @RequestMapping(name="민원접수자료 목록", value="/010/list.do")
public ModelAndView getCivilComplaintReceiptDataList(CrdnQuery req) { public ModelAndView getCivilComplaintReceiptDataList(CrdnQuery req) {
req.setGrid("receiptData"); req.setGridType("receiptData");
setFetchSize(req); setFetchSize(req);
return setCollectionInfo(new ModelAndView("jsonView"),crdn01Service.getCrackdownList(req),""); return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(req),"");
} }
/** .<br /> /** .<br />
@ -132,7 +132,7 @@ public class Crdn01Controller extends ApplicationController {
String urlTaskSeCd = request.getServletPath().split("/")[1]; String urlTaskSeCd = request.getServletPath().split("/")[1];
mav.addObject("taskSeCd", urlTaskSeCd); mav.addObject("taskSeCd", urlTaskSeCd);
DataObject info = crdn01Service.getCivilComplaintReceiptInitialDataInfo(req); DataObject info = crdnService.getCivilComplaintReceiptInitialDataInfo(req);
mav.addObject("crdnInfo", json ? info : toJson(info)); mav.addObject("crdnInfo", json ? info : toJson(info));
@ -141,7 +141,7 @@ public class Crdn01Controller extends ApplicationController {
} }
/** .<br /> /** .<br />
* {@link Crdn01ServiceBean#getCrackdownList(CrdnQuery)} * {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
@ -153,13 +153,13 @@ public class Crdn01Controller extends ApplicationController {
*/ */
@RequestMapping(name="민원답변대상자료 목록", value="/030/list.do") @RequestMapping(name="민원답변대상자료 목록", value="/030/list.do")
public ModelAndView selectCivilComplaintAnswerTargetDataList(CrdnQuery req) { public ModelAndView selectCivilComplaintAnswerTargetDataList(CrdnQuery req) {
req.setGrid("answerTargetData"); req.setGridType("answerTargetData");
setFetchSize(req); setFetchSize(req);
return setCollectionInfo(new ModelAndView("jsonView"), crdn01Service.getCrackdownList(req), ""); return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(req), "");
} }
/** .<br /> /** .<br />
* {@link Crdn01ServiceBean#getCrackdownList(CrdnQuery)} * {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
@ -172,7 +172,7 @@ public class Crdn01Controller extends ApplicationController {
@RequestMapping(name="민원자료 목록", value="/040/list.do") @RequestMapping(name="민원자료 목록", value="/040/list.do")
public ModelAndView getCivilComplaintList(CrdnQuery req) { public ModelAndView getCivilComplaintList(CrdnQuery req) {
setFetchSize(req); setFetchSize(req);
return setCollectionInfo(new ModelAndView("jsonView"),crdn01Service.getCrackdownList(req),""); return setCollectionInfo(new ModelAndView("jsonView"),crdnService.getCrackdownList(req),"");
} }
/** . /** .
@ -186,7 +186,7 @@ public class Crdn01Controller extends ApplicationController {
@RequestMapping(name="민원자료 제거", value="/010/remove.do") @RequestMapping(name="민원자료 제거", value="/010/remove.do")
public ModelAndView removeCivilComplaint(String[] IDs) { public ModelAndView removeCivilComplaint(String[] IDs) {
boolean saved = crdn01Service.removeCivilComplaint(IDs); boolean saved = crdnService.remove(IDs);
return new ModelAndView("jsonView") return new ModelAndView("jsonView")
.addObject("saved", saved); .addObject("saved", saved);
@ -229,7 +229,7 @@ public class Crdn01Controller extends ApplicationController {
} }
} }
saved = crdn01Service.saveCivilComplaint(crdn, newFileInfoList); saved = crdnService.save(crdn, newFileInfoList);
return new ModelAndView("jsonView") return new ModelAndView("jsonView")
.addObject("saved", saved); .addObject("saved", saved);
@ -243,7 +243,7 @@ public class Crdn01Controller extends ApplicationController {
return crdn01Service.makeFileFromHwpFormat(crdnQuery); return crdnService.makeFileFromHwpFormat(crdnQuery);
} }
/** . /** .
@ -259,7 +259,7 @@ public class Crdn01Controller extends ApplicationController {
mav.addObject("taskSeCd", urlTaskSeCd); mav.addObject("taskSeCd", urlTaskSeCd);
req.setTaskSeCd(urlTaskSeCd); req.setTaskSeCd(urlTaskSeCd);
DataObject cvlcptInfo = crdn01Service.getAnswerPreview(req); DataObject cvlcptInfo = crdnService.getAnswerPreview(req);
mav.addObject("cvlcptInfo", json ? cvlcptInfo : toJson(cvlcptInfo)); mav.addObject("cvlcptInfo", json ? cvlcptInfo : toJson(cvlcptInfo));
return mav; return mav;

@ -5,7 +5,7 @@ import javax.annotation.Resource;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.web.ApplicationController; import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.service.bean.Crdn02ServiceBean; import cokr.xit.fims.crdn.service.CrdnService;
/** .<br /> /** .<br />
* { }/crdn/crdn02 . * { }/crdn/crdn02 .
@ -13,8 +13,8 @@ import cokr.xit.fims.crdn.service.bean.Crdn02ServiceBean;
*/ */
public class Crdn02Controller extends ApplicationController { public class Crdn02Controller extends ApplicationController {
@Resource(name="crdn02Service") @Resource(name="crdnService")
private Crdn02ServiceBean crdn02Service; private CrdnService crdnService;
/** . /** .
* @return fims/crdn/crdn02010-main * @return fims/crdn/crdn02010-main

@ -15,7 +15,7 @@ import cokr.xit.base.code.CommonCode;
import cokr.xit.base.web.ApplicationController; import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.service.bean.Crdn05ServiceBean; import cokr.xit.fims.crdn.service.CrdnService;
/** .<br /> /** .<br />
* { }/crdn/crdn05 . * { }/crdn/crdn05 .
@ -23,8 +23,8 @@ import cokr.xit.fims.crdn.service.bean.Crdn05ServiceBean;
*/ */
public class Crdn05Controller extends ApplicationController { public class Crdn05Controller extends ApplicationController {
@Resource(name="crdn05Service") @Resource(name="crdnService")
private Crdn05ServiceBean crdn05Service; private CrdnService crdnService;
/** . /** .
* @return fims/crdn/crdn05010-main * @return fims/crdn/crdn05010-main
@ -50,7 +50,7 @@ public class Crdn05Controller extends ApplicationController {
} }
/** . /** .
* {@link Crdn05ServiceBean#getCrackdownList(CrdnQuery)} * {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
@ -63,7 +63,8 @@ public class Crdn05Controller extends ApplicationController {
@RequestMapping(name="당일 입력 단속자료 목록 조회", value="/010/list.do") @RequestMapping(name="당일 입력 단속자료 목록 조회", value="/010/list.do")
public ModelAndView getTodayCrdnDataList(CrdnQuery req) { public ModelAndView getTodayCrdnDataList(CrdnQuery req) {
setFetchSize(req); setFetchSize(req);
return setCollectionInfo(new ModelAndView("jsonView"),crdn05Service.getCrackdownList(req),""); req.setGridType("todayInsert");
return setCollectionInfo(new ModelAndView("jsonView"),crdnService.getCrackdownList(req),"");
} }
/** . /** .
@ -125,7 +126,7 @@ public class Crdn05Controller extends ApplicationController {
crdn.setCrdnRegSeCd("01"); crdn.setCrdnRegSeCd("01");
crdn.setCrdnInptSeCd("03");//TODO : 사용자 기관의 시청,구청 구분 crdn.setCrdnInptSeCd("03");//TODO : 사용자 기관의 시청,구청 구분
saved = crdn05Service.create(crdn, newFileList); saved = crdnService.create(crdn, newFileList);
return new ModelAndView("jsonView") return new ModelAndView("jsonView")

@ -11,7 +11,7 @@ import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.code.CommonCode; import cokr.xit.base.code.CommonCode;
import cokr.xit.base.web.ApplicationController; import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.service.bean.Crdn06ServiceBean; import cokr.xit.fims.crdn.service.CrdnService;
/** .<br /> /** .<br />
* { }/crdn/crdn06 . * { }/crdn/crdn06 .
@ -19,8 +19,8 @@ import cokr.xit.fims.crdn.service.bean.Crdn06ServiceBean;
*/ */
public class Crdn06Controller extends ApplicationController { public class Crdn06Controller extends ApplicationController {
@Resource(name="crdn06Service") @Resource(name="crdnService")
private Crdn06ServiceBean crdn06Service; private CrdnService crdnService;
/** . /** .
* @return fims/crdn/crdn06010-main * @return fims/crdn/crdn06010-main
@ -86,7 +86,7 @@ public class Crdn06Controller extends ApplicationController {
} }
/** .<br /> /** .<br />
* {@link Crdn06ServiceBean#getCrackdownList(CrdnQuery)} * {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
@ -99,11 +99,11 @@ public class Crdn06Controller extends ApplicationController {
@RequestMapping(name="단속자료 목록", value="/010/list.do") @RequestMapping(name="단속자료 목록", value="/010/list.do")
public ModelAndView getCrackdownList(CrdnQuery req) { public ModelAndView getCrackdownList(CrdnQuery req) {
setFetchSize(req); setFetchSize(req);
return setCollectionInfo(new ModelAndView("jsonView"),crdn06Service.getCrackdownList(req),""); return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(req),"");
} }
/** .<br /> /** .<br />
* {@link Crdn06ServiceBean#getCrackdownList(CrdnQuery)} * {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
@ -116,16 +116,16 @@ public class Crdn06Controller extends ApplicationController {
@RequestMapping(name="검사자료 목록", value="/020/list.do") @RequestMapping(name="검사자료 목록", value="/020/list.do")
public ModelAndView getInspectionDataList(CrdnQuery req) { public ModelAndView getInspectionDataList(CrdnQuery req) {
switch(req.getInspectionDataType()) { switch(req.getInspectionDataType()) {
case "photo" -> req.setGrid("photo"); case "photo" -> req.setGridType("photo");
case "sameVehicleMain" -> req.setGrid("sameVehicleMain"); case "sameVehicleMain" -> req.setGridType("sameVehicleMain");
case "sameVehicleSub" -> req.setGrid("sameVehicleSub"); case "sameVehicleSub" -> req.setGridType("sameVehicleSub");
} }
setFetchSize(req); setFetchSize(req);
return setCollectionInfo(new ModelAndView("jsonView"),crdn06Service.getCrackdownList(req),""); return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(req),"");
} }
/** .<br /> /** .<br />
* {@link Crdn06ServiceBean#getCrackdownList(CrdnQuery)} * {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
@ -137,8 +137,8 @@ public class Crdn06Controller extends ApplicationController {
*/ */
@RequestMapping(name="감경자료 목록", value="/040/list.do") @RequestMapping(name="감경자료 목록", value="/040/list.do")
public ModelAndView getFineReductionDataList(CrdnQuery req) { public ModelAndView getFineReductionDataList(CrdnQuery req) {
req.setGrid("fineReductionData"); req.setGridType("fineReductionData");
setFetchSize(req); setFetchSize(req);
return setCollectionInfo(new ModelAndView("jsonView"),crdn06Service.getCrackdownList(req),""); return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(req),"");
} }
} }

@ -7,7 +7,7 @@ import javax.annotation.Resource;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.service.bean.Crdn05ServiceBean; import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.excl.Excl03; import cokr.xit.fims.excl.Excl03;
import cokr.xit.fims.excl.Excl03Query; import cokr.xit.fims.excl.Excl03Query;
import cokr.xit.fims.excl.service.Excl03Service; import cokr.xit.fims.excl.service.Excl03Service;
@ -31,8 +31,8 @@ public class Excl03ServiceBean extends AbstractServiceBean implements Excl03Serv
@Resource(name = "excl03Bean") @Resource(name = "excl03Bean")
private Excl03Bean excl03Bean; private Excl03Bean excl03Bean;
@Resource(name="crdn05Service") @Resource(name="crdnService")
private Crdn05ServiceBean crdn05Service; private CrdnService crdnService;
@Override @Override
public List<DataObject> getCrackdownReRegistrationList(Excl03Query req) { public List<DataObject> getCrackdownReRegistrationList(Excl03Query req) {
@ -120,7 +120,7 @@ public class Excl03ServiceBean extends AbstractServiceBean implements Excl03Serv
crdn.setDelYn("N"); crdn.setDelYn("N");
// 단속 대장 입력 // 단속 대장 입력
retSuccess = crdn05Service.create(crdn, null); retSuccess = crdnService.create(crdn, null);
if (!retSuccess) { if (!retSuccess) {
// 예외를 발생시켜서 오류메세지를 보내고 DB Rollback // 예외를 발생시켜서 오류메세지를 보내고 DB Rollback
throw new RuntimeException("재부과 등록 중 단속대장 등록에 실패하였습니다."); throw new RuntimeException("재부과 등록 중 단속대장 등록에 실패하였습니다.");

@ -9,7 +9,7 @@ import org.springframework.web.servlet.ModelAndView;
import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.service.bean.Crdn06ServiceBean; import cokr.xit.fims.crdn.service.CrdnService;
@Controller @Controller
public class DpvController { public class DpvController {
@ -29,11 +29,11 @@ public class DpvController {
@Controller @Controller
@RequestMapping(name="장애인과태료업무 단속업무", value="/DPV/crdn/crdn06") @RequestMapping(name="장애인과태료업무 단속업무", value="/DPV/crdn/crdn06")
class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller { class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller {
@Resource(name="crdn06Service") @Resource(name="crdnService")
private Crdn06ServiceBean crdn06Service; private CrdnService crdnService;
/** .<br /> /** .<br />
* {@link Crdn06Service#getCrackdownList(CrdnQuery)} * {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
@ -45,9 +45,9 @@ public class DpvController {
*/ */
@RequestMapping(name="장애인과태료업무 표지정보미확인자료 목록", value="/030/list.do") @RequestMapping(name="장애인과태료업무 표지정보미확인자료 목록", value="/030/list.do")
public ModelAndView getTagInformationUndefinedDataList(CrdnQuery req) { public ModelAndView getTagInformationUndefinedDataList(CrdnQuery req) {
req.setGrid("tagInformationUndefinedData"); req.setGridType("tagInformationUndefinedData");
setFetchSize(req); setFetchSize(req);
return setCollectionInfo(new ModelAndView("jsonView"),crdn06Service.getCrackdownList(req),""); return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(req),"");
} }
/** . /** .
@ -60,7 +60,7 @@ public class DpvController {
@PostMapping(name = "표지정보 미확인 자료 수정", value = "/030/update.do") @PostMapping(name = "표지정보 미확인 자료 수정", value = "/030/update.do")
public ModelAndView update(Crdn crdn) { public ModelAndView update(Crdn crdn) {
crdn.setUpdateInfomation("tagInformationUndefinedData"); crdn.setUpdateInfomation("tagInformationUndefinedData");
boolean saved = crdn06Service.update(crdn); boolean saved = crdnService.save(crdn, null);
return new ModelAndView("jsonView") return new ModelAndView("jsonView")
.addObject("saved", saved); .addObject("saved", saved);
} }

@ -266,8 +266,8 @@ AND (SELECT VLTN_ARTCL FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) LIKE CONCAT(
</select> </select>
<update id="removeCivilComplaint" parameterType="map"> <update id="remove" parameterType="map">
/* 민원자료 삭제(crdn01Mapper.removeCivilComplaint) */ /* 민원자료 삭제(crdn01Mapper.remove) */
UPDATE TB_CRDN UPDATE TB_CRDN
SET DEL_YN = 'Y' SET DEL_YN = 'Y'
, DEL_DT = <include refid="utility.now" /> /* 삭제일시 */ , DEL_DT = <include refid="utility.now" /> /* 삭제일시 */

Loading…
Cancel
Save