소스정리, 단속등록 수정

main
이범준 1 year ago
parent bfc371546b
commit 2c7dae3782

@ -18,10 +18,10 @@ public interface Crdn05Mapper extends AbstractMapper {
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param query
* @return * @return
*/ */
List<DataObject> selectCrackdownList(CrdnQuery req); List<DataObject> selectCrackdownList(CrdnQuery query);
/** . /** .
* @param params * @param params

@ -7,7 +7,6 @@ import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
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.foundation.component.AbstractMapper; import cokr.xit.foundation.component.AbstractMapper;
import cokr.xit.foundation.component.QueryRequest;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
/** DAO /** DAO
@ -21,35 +20,35 @@ public interface Crdn06Mapper extends AbstractMapper {
* @param query * @param query
* @return * @return
*/ */
List<DataObject> selectCrackdownList(CrdnQuery crdnQuery); List<DataObject> selectCrackdownList(CrdnQuery query);
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)}
* @param query * @param query
* @return * @return
*/ */
List<DataObject> selectPhotoInspectionDataList(CrdnQuery crdnQuery); List<DataObject> selectPhotoInspectionDataList(CrdnQuery query);
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)}
* @param query * @param query
* @return * @return
*/ */
List<DataObject> selectSameVehicleMainList(CrdnQuery crdnQuery); List<DataObject> selectSameVehicleMainList(CrdnQuery query);
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)}
* @param query * @param query
* @return * @return
*/ */
List<DataObject> selectSameVehicleSubList(CrdnQuery crdnQuery); List<DataObject> selectSameVehicleSubList(CrdnQuery query);
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)}
* @param query * @param query
* @return * @return
*/ */
List<DataObject> selectTagInformationUndefinedDataList(CrdnQuery crdnQuery); List<DataObject> selectTagInformationUndefinedDataList(CrdnQuery query);
/** . /** .
* @param crdn * @param crdn
@ -62,7 +61,7 @@ public interface Crdn06Mapper extends AbstractMapper {
* @param query * @param query
* @return * @return
*/ */
List<DataObject> selectFineReductionDataList(QueryRequest crdnQuery); List<DataObject> selectFineReductionDataList(CrdnQuery query);
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.bean.Crdn06Bean#update(Crdn)} * {@link cokr.xit.fims.crdn.service.bean.Crdn06Bean#update(Crdn)}

@ -59,7 +59,7 @@ public interface CrdnCvlcptMapper extends AbstractMapper {
* @param query * @param query
* @return * @return
*/ */
DataObject selectCivilComplaintReceiptInitialDataInfo(CrdnQuery req); DataObject selectCivilComplaintReceiptInitialDataInfo(CrdnQuery query);
/** . /** .
* @param cvlcpt * @param cvlcpt

@ -5,49 +5,50 @@ import java.util.Map;
import cokr.xit.base.file.FileInfo; import cokr.xit.base.file.FileInfo;
import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnCvlcpt;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
public interface CrdnCvlcptService { public interface CrdnCvlcptService {
/** . /** .
* @param crdnQuery * @param query
* @return * @return
*/ */
List<DataObject> getCrackdownList(CrdnQuery crdnQuery); List<DataObject> getCrackdownList(CrdnQuery query);
/** . /** .
* @param crdnQuery * @param query
* @return * @return
*/ */
DataObject getCivilComplaintOriginalInfo(CrdnQuery crdnQuery); DataObject getCivilComplaintOriginalInfo(CrdnQuery query);
/** . /** .
* @param crdnQuery * @param query
* @return * @return
*/ */
DataObject getAnswerPreview(CrdnQuery crdnQuery); DataObject getAnswerPreview(CrdnQuery query);
/** . /** .
* @param crdnQuery * @param query
* @return * @return
*/ */
DataObject getCivilComplaintReceiptInitialDataInfo(CrdnQuery crdnQuery); DataObject getCivilComplaintReceiptInitialDataInfo(CrdnQuery query);
/** . /** .
* @param crdnQuery * @param query
* @return map * @return map
* <ul><li>filePath: </li> * <ul><li>filePath: </li>
* <li>fileName: </li> * <li>fileName: </li>
* </ul> * </ul>
*/ */
Map<String, String> makeFileFromHwpFormat(CrdnQuery crdnQuery); Map<String, String> makeFileFromHwpFormat(CrdnQuery query);
/** . /** .
* @param crdn , newFileInfoList * @param crdn , newFileInfoList
* @return * @return
*/ */
boolean updateCvlcptPrcs(Map<String, Object> nonQueryRequest, Crdn crdn, List<FileInfo> newFileInfoList); boolean updateCvlcptPrcs(Map<String, Object> nonQueryRequest, CrdnCvlcpt crdnCvlcpt, Crdn crdn, List<FileInfo> newFileInfoList);
} }

@ -11,13 +11,13 @@ import cokr.xit.foundation.data.DataObject;
public interface CrdnService { public interface CrdnService {
/** . /** .
* @param req * @param query
* <ul><li>pageNum: </li> * <ul><li>pageNum: </li>
* <li>fetchSize: </li> * <li>fetchSize: </li>
* </ul> * </ul>
* @return * @return
*/ */
List<DataObject> getCrackdownList(CrdnQuery req); List<DataObject> getCrackdownList(CrdnQuery query);
/** . /** .
* @param crdnIDs ID * @param crdnIDs ID

@ -41,11 +41,11 @@ public class CrdnCvlcptBean extends AbstractComponent {
return crdn05Mapper.removeCrdn(paramMap) == 1 ? true : false; return crdn05Mapper.removeCrdn(paramMap) == 1 ? true : false;
} }
public DataObject getCivilComplaintOriginalInfo(CrdnQuery crdnQuery) { public DataObject getCivilComplaintOriginalInfo(CrdnQuery query) {
if(ifEmpty(crdnQuery.getViewType(), () -> "").equals("hwp")) { if(ifEmpty(query.getViewType(), () -> "").equals("hwp")) {
return crdnCvlcptMapper.selectCivilComplaintOriginalInfoHwp(crdnQuery); return crdnCvlcptMapper.selectCivilComplaintOriginalInfoHwp(query);
} }
return crdnCvlcptMapper.selectCivilComplaintOriginalInfo(crdnQuery); return crdnCvlcptMapper.selectCivilComplaintOriginalInfo(query);
} }
public boolean updateCvlcptPrcs(CrdnCvlcpt cvlcpt) { public boolean updateCvlcptPrcs(CrdnCvlcpt cvlcpt) {

@ -54,17 +54,17 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
protected Crdn06Mapper crdn06Mapper; protected Crdn06Mapper crdn06Mapper;
@Override @Override
public List<DataObject> getCrackdownList(CrdnQuery crdnQuery) { public List<DataObject> getCrackdownList(CrdnQuery query) {
List<DataObject> dataObjectList = new ArrayList<DataObject>(); List<DataObject> dataObjectList = new ArrayList<DataObject>();
switch (ifEmpty(crdnQuery.getGridType(), () -> "")) { switch (ifEmpty(query.getGridType(), () -> "")) {
case "receiptData": case "receiptData":
dataObjectList = crdnCvlcptMapper.selectCivilComplaintReceiptDataList(crdnQuery.setOrderBy("CVLCPT_RCPT_YMD")); dataObjectList = crdnCvlcptMapper.selectCivilComplaintReceiptDataList(query.setOrderBy("CVLCPT_RCPT_YMD"));
break; break;
case "answerTargetData": case "answerTargetData":
dataObjectList = crdnCvlcptMapper.selectCivilComplaintAnswerTargetDataList(crdnQuery.setOrderBy("CRDN_ID")); dataObjectList = crdnCvlcptMapper.selectCivilComplaintAnswerTargetDataList(query.setOrderBy("CRDN_ID"));
break; break;
default: default:
dataObjectList = crdnCvlcptMapper.selectCivilComplaintList(crdnQuery.setOrderBy("CRDN_ID")); dataObjectList = crdnCvlcptMapper.selectCivilComplaintList(query.setOrderBy("CRDN_ID"));
break; break;
} }
@ -73,12 +73,12 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
} }
@Override @Override
public Map<String, String> makeFileFromHwpFormat(CrdnQuery crdnQuery) { public Map<String, String> makeFileFromHwpFormat(CrdnQuery query) {
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.setViewType("hwp"); query.setViewType("hwp");
DataObject dataObject = crdnCvlcptBean.getCivilComplaintOriginalInfo(crdnQuery); DataObject dataObject = crdnCvlcptBean.getCivilComplaintOriginalInfo(query);
SimpleDateFormat ymdhmsFormat = new SimpleDateFormat("yyyyMMddHHmmss"); SimpleDateFormat ymdhmsFormat = new SimpleDateFormat("yyyyMMddHHmmss");
SimpleDateFormat ymdFormat = new SimpleDateFormat("yyyyMMdd"); SimpleDateFormat ymdFormat = new SimpleDateFormat("yyyyMMdd");
SimpleDateFormat ymdHypenFormat = new SimpleDateFormat("yyyy-MM-dd"); SimpleDateFormat ymdHypenFormat = new SimpleDateFormat("yyyy-MM-dd");
@ -185,24 +185,24 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
} }
@Override @Override
public DataObject getCivilComplaintOriginalInfo(CrdnQuery req) { public DataObject getCivilComplaintOriginalInfo(CrdnQuery query) {
return crdnCvlcptBean.getCivilComplaintOriginalInfo(req); return crdnCvlcptBean.getCivilComplaintOriginalInfo(query);
} }
@Override @Override
public DataObject getAnswerPreview(CrdnQuery req) { public DataObject getAnswerPreview(CrdnQuery query) {
return crdnCvlcptMapper.selectAnswerPreview(req); return crdnCvlcptMapper.selectAnswerPreview(query);
} }
@Override @Override
public DataObject getCivilComplaintReceiptInitialDataInfo(CrdnQuery req) { public DataObject getCivilComplaintReceiptInitialDataInfo(CrdnQuery query) {
//민원조회 //민원조회
DataObject dataObject = crdnCvlcptMapper.selectCivilComplaintReceiptInitialDataInfo(req); DataObject dataObject = crdnCvlcptMapper.selectCivilComplaintReceiptInitialDataInfo(query);
//첨부파일 조회 //첨부파일 조회
FileQuery fileQuery = new FileQuery(); FileQuery fileQuery = new FileQuery();
fileQuery.setInfoType(Crdn.INF_TYPE); fileQuery.setInfoType(Crdn.INF_TYPE);
fileQuery.setInfoKeys(req.getCrdnId()); fileQuery.setInfoKeys(query.getCrdnId());
List<DataObject> fileList = fileBean.getFileList(fileQuery); List<DataObject> fileList = fileBean.getFileList(fileQuery);
if(fileList != null && !fileList.isEmpty()) { if(fileList != null && !fileList.isEmpty()) {
dataObject.set("fileList", fileList); dataObject.set("fileList", fileList);
@ -260,9 +260,7 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
String acceptType = (String)nonQueryRequest.get("acceptType"); String acceptType = (String)nonQueryRequest.get("acceptType");
if(acceptType.equals("someAccept")) { if(acceptType.equals("someAccept") || acceptType.equals("nonAccept")) {
///call 부과제외
} else if(acceptType.equals("nonAccept")) {
///call 부과제외 ///call 부과제외
} }

@ -57,37 +57,37 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
protected CrdnSttsHstryBean crdnSttsHstryBean; protected CrdnSttsHstryBean crdnSttsHstryBean;
@Override @Override
public List<DataObject> getCrackdownList(CrdnQuery req) { public List<DataObject> getCrackdownList(CrdnQuery query) {
List<DataObject> dataObjectList = new ArrayList<DataObject>(); List<DataObject> dataObjectList = new ArrayList<DataObject>();
switch (ifEmpty(req.getGridType(), () -> "")) { switch (ifEmpty(query.getGridType(), () -> "")) {
case "tagInformationUndefinedData": case "tagInformationUndefinedData":
dataObjectList = crdn06Mapper.selectTagInformationUndefinedDataList(req.setOrderBy("CRDN_ID")); dataObjectList = crdn06Mapper.selectTagInformationUndefinedDataList(query.setOrderBy("CRDN_ID"));
break; break;
case "fineReductionData": case "fineReductionData":
dataObjectList = crdn06Mapper.selectFineReductionDataList(req.setOrderBy("CRDN_ID")); dataObjectList = crdn06Mapper.selectFineReductionDataList(query.setOrderBy("CRDN_ID"));
break; break;
case "photo": case "photo":
dataObjectList = crdn06Mapper.selectPhotoInspectionDataList(req.setOrderBy("VHRNO, CRDN_PLC")); dataObjectList = crdn06Mapper.selectPhotoInspectionDataList(query.setOrderBy("VHRNO, CRDN_PLC"));
break; break;
case "sameVehicleMain": case "sameVehicleMain":
dataObjectList = crdn06Mapper.selectSameVehicleMainList(req.setOrderBy("VHRNO")); dataObjectList = crdn06Mapper.selectSameVehicleMainList(query.setOrderBy("VHRNO"));
break; break;
case "sameVehicleSub": case "sameVehicleSub":
dataObjectList = crdn06Mapper.selectSameVehicleSubList(req.setOrderBy("CRDN_ID")); dataObjectList = crdn06Mapper.selectSameVehicleSubList(query.setOrderBy("CRDN_ID"));
break; break;
case "todayInsert": case "todayInsert":
req.setCurrentUserId(currentUser().getId()); query.setCurrentUserId(currentUser().getId());
req.setOrderBy("CRDN_ID"); query.setOrderBy("CRDN_ID");
dataObjectList = crdn05Mapper.selectCrackdownList(req); dataObjectList = crdn05Mapper.selectCrackdownList(query);
break; break;
default: default:
dataObjectList = crdn06Mapper.selectCrackdownList(req.setOrderBy("CRDN_ID")); dataObjectList = crdn06Mapper.selectCrackdownList(query.setOrderBy("CRDN_ID"));
break; break;
} }
if(ifEmpty(req.getGridType(), () -> "").equals("tagInformationUndefinedData") if(ifEmpty(query.getGridType(), () -> "").equals("tagInformationUndefinedData")
|| ifEmpty(req.getGridType(), () -> "").equals("fineReductionData")) { || ifEmpty(query.getGridType(), () -> "").equals("fineReductionData")) {
Iterator<DataObject> iterator = dataObjectList.iterator(); Iterator<DataObject> iterator = dataObjectList.iterator();
while(iterator.hasNext()) { while(iterator.hasNext()) {
DataObject dataObject = iterator.next(); DataObject dataObject = iterator.next();
@ -100,7 +100,7 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
dataObject.set("BLNC", crdn06Bean.getBalance(state,advntceLevyAmt,levyAmt,minusAmt,adtnAmt,rcvmtAmt)); dataObject.set("BLNC", crdn06Bean.getBalance(state,advntceLevyAmt,levyAmt,minusAmt,adtnAmt,rcvmtAmt));
} }
} else if(ifEmpty(req.getGridType(), () -> "").equals("photo")) { } else if(ifEmpty(query.getGridType(), () -> "").equals("photo")) {
Iterator<DataObject> iterator = dataObjectList.iterator(); Iterator<DataObject> iterator = dataObjectList.iterator();
while(iterator.hasNext()) { while(iterator.hasNext()) {
DataObject dataObject = iterator.next(); DataObject dataObject = iterator.next();
@ -110,7 +110,7 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
dataObject.set("PRCS_MTHD", "해당자료에 사진을 등록하시기 바랍니다."); dataObject.set("PRCS_MTHD", "해당자료에 사진을 등록하시기 바랍니다.");
} else if(dataObject.number("CRDN_CNT").intValue() > 1) { } else if(dataObject.number("CRDN_CNT").intValue() > 1) {
dataObject.set("INSP_RSLT", "중복자료"); dataObject.set("INSP_RSLT", "중복자료");
if(req.getTaskSeCd().equals("PVS")) { if(query.getTaskSeCd().equals("PVS")) {
dataObject.set("PRCS_MTHD", "한건을 시간초과로 처리하십시요."); dataObject.set("PRCS_MTHD", "한건을 시간초과로 처리하십시요.");
} else { } else {
dataObject.set("PRCS_MTHD", "한건을 서손으로 처리하십시요."); dataObject.set("PRCS_MTHD", "한건을 서손으로 처리하십시요.");
@ -147,11 +147,14 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
crdn.setLevyAmt(basicAmt[0]); crdn.setLevyAmt(basicAmt[0]);
crdn.setAdvntceLevyAmt(basicAmt[1]); crdn.setAdvntceLevyAmt(basicAmt[1]);
if(ifEmpty(crdn.getCrdnSttsCd(), () -> "").equals("")){
//if(납부자정보) {
//crdn.setCrdnSttsCd("21");
//} else {
crdn.setCrdnSttsCd("01");
//}
if(ifEmpty((String)nonQueryRequest.get("doGuidance"), () -> "").equals("on")) {
crdn.setCrdnSttsCd("83");
} else {
crdn.setCrdnSttsCd("01");
} }

@ -19,6 +19,7 @@ import cokr.xit.base.file.FileInfo.Relation;
import cokr.xit.base.file.web.FileInfoFactory; 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.CrdnCvlcpt;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.service.CrdnCvlcptService; import cokr.xit.fims.crdn.service.CrdnCvlcptService;
import cokr.xit.fims.crdn.service.CrdnService; import cokr.xit.fims.crdn.service.CrdnService;
@ -87,19 +88,19 @@ public class Crdn01Controller extends ApplicationController {
* @return fims/crdn/crdn01050-info * @return fims/crdn/crdn01050-info
*/ */
@RequestMapping(name="민원내역 원본 보기", value="/050/info.do") @RequestMapping(name="민원내역 원본 보기", value="/050/info.do")
public ModelAndView getCivilComplaintOriginalInfo(CrdnQuery req, HttpServletRequest request) { public ModelAndView getCivilComplaintOriginalInfo(HttpServletRequest hReq, CrdnQuery query) {
boolean json = jsonResponse(); boolean json = jsonResponse();
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/crdn/crdn01050-info"); ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/crdn/crdn01050-info");
mav.addObject("pageName", "crdn01050-info"); mav.addObject("pageName", "crdn01050-info");
String urlTaskSeCd = request.getServletPath().split("/")[1]; String urlTaskSeCd = hReq.getServletPath().split("/")[1];
mav.addObject("taskSeCd", urlTaskSeCd); mav.addObject("taskSeCd", urlTaskSeCd);
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 = crdnCvlcptService.getCivilComplaintOriginalInfo(req); DataObject info = crdnCvlcptService.getCivilComplaintOriginalInfo(query);
mav.addObject("cvlcptInfo", json ? info : toJson(info)); mav.addObject("cvlcptInfo", json ? info : toJson(info));
return mav; return mav;
@ -107,7 +108,7 @@ public class Crdn01Controller extends ApplicationController {
/** .<br /> /** .<br />
* {@link CrdnService#getCrackdownList(CrdnQuery)} * {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param query
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
* "crdnList": [ ], * "crdnList": [ ],
@ -117,31 +118,31 @@ public class Crdn01Controller extends ApplicationController {
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="민원접수자료 목록", value="/010/list.do") @RequestMapping(name="민원접수자료 목록", value="/010/list.do")
public ModelAndView getCivilComplaintReceiptDataList(CrdnQuery req) { public ModelAndView getCivilComplaintReceiptDataList(CrdnQuery query) {
req.setGridType("receiptData"); query.setGridType("receiptData");
setFetchSize(req); setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCrackdownList(req),""); return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCrackdownList(query),"");
} }
/** .<br /> /** .<br />
* @return fims/crdn/crdn01020-info * @return fims/crdn/crdn01020-info
*/ */
@RequestMapping(name="민원접수 초기자료 조회", value="/020/info.do") @RequestMapping(name="민원접수 초기자료 조회", value="/020/info.do")
public ModelAndView getCivilComplaintReceiptInitialDataInfo(CrdnQuery req, HttpServletRequest request) { public ModelAndView getCivilComplaintReceiptInitialDataInfo(HttpServletRequest hReq, CrdnQuery query) {
boolean json = jsonResponse(); boolean json = jsonResponse();
String pageName = "crdn01020-info"; String pageName = "crdn01020-info";
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/crdn/"+pageName); ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/crdn/"+pageName);
mav.addObject("pageName", pageName); mav.addObject("pageName", pageName);
String urlTaskSeCd = request.getServletPath().split("/")[1]; String urlTaskSeCd = hReq.getServletPath().split("/")[1];
mav.addObject("taskSeCd", urlTaskSeCd); mav.addObject("taskSeCd", urlTaskSeCd);
DataObject info = crdnCvlcptService.getCivilComplaintReceiptInitialDataInfo(req); DataObject info = crdnCvlcptService.getCivilComplaintReceiptInitialDataInfo(query);
mav.addObject("crdnInfo", json ? info : toJson(info)); mav.addObject("crdnInfo", json ? info : toJson(info));
mav.addObject("openerPageName", request.getParameter("openerPageName")); mav.addObject("openerPageName", hReq.getParameter("openerPageName"));
String vltnByTask = ""; String vltnByTask = "";
@ -180,7 +181,7 @@ public class Crdn01Controller extends ApplicationController {
/** .<br /> /** .<br />
* {@link CrdnService#getCrackdownList(CrdnQuery)} * {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param query
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
* "crdnList": [ ], * "crdnList": [ ],
@ -190,15 +191,15 @@ public class Crdn01Controller extends ApplicationController {
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="민원답변대상자료 목록", value="/030/list.do") @RequestMapping(name="민원답변대상자료 목록", value="/030/list.do")
public ModelAndView selectCivilComplaintAnswerTargetDataList(CrdnQuery req) { public ModelAndView selectCivilComplaintAnswerTargetDataList(CrdnQuery query) {
req.setGridType("answerTargetData"); query.setGridType("answerTargetData");
setFetchSize(req); setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCrackdownList(req), ""); return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCrackdownList(query), "");
} }
/** .<br /> /** .<br />
* {@link CrdnService#getCrackdownList(CrdnQuery)} * {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param query
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
* "crdnList": [ ], * "crdnList": [ ],
@ -208,9 +209,9 @@ public class Crdn01Controller extends ApplicationController {
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="민원자료 목록", value="/040/list.do") @RequestMapping(name="민원자료 목록", value="/040/list.do")
public ModelAndView getCivilComplaintList(CrdnQuery req) { public ModelAndView getCivilComplaintList(CrdnQuery query) {
setFetchSize(req); setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"),crdnCvlcptService.getCrackdownList(req),""); return setCollectionInfo(new ModelAndView("jsonView"),crdnCvlcptService.getCrackdownList(query),"");
} }
/** . /** .
@ -239,12 +240,12 @@ public class Crdn01Controller extends ApplicationController {
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="민원 정보 수정", value="/020/save.do") @RequestMapping(name="민원 정보 수정", value="/020/save.do")
public ModelAndView saveCivilComplaintProcess(HttpServletRequest req, Crdn crdn, MultipartFile[] newFileList, MultipartFile[] modifyFileList) { public ModelAndView saveCivilComplaintProcess(HttpServletRequest hReq, CrdnCvlcpt crdnCvlcpt, Crdn crdn, MultipartFile[] newFileList, MultipartFile[] modifyFileList) {
boolean saved = false; boolean saved = false;
String[] deleteFileKeyList = req.getParameterValues("deleteFileKeyList"); String[] deleteFileKeyList = hReq.getParameterValues("deleteFileKeyList");
String[] modifyFileKeyList = req.getParameterValues("modifyFileKeyList"); String[] modifyFileKeyList = hReq.getParameterValues("modifyFileKeyList");
List<FileInfo> newFileInfoList = new ArrayList<FileInfo>(); List<FileInfo> newFileInfoList = new ArrayList<FileInfo>();
if(newFileList != null || modifyFileList != null) { if(newFileList != null || modifyFileList != null) {
@ -273,9 +274,9 @@ public class Crdn01Controller extends ApplicationController {
Map<String, Object> nonQueryRequest = new HashMap<String, Object>(); Map<String, Object> nonQueryRequest = new HashMap<String, Object>();
nonQueryRequest.put("deleteFileKeyList", deleteFileKeyList); nonQueryRequest.put("deleteFileKeyList", deleteFileKeyList);
String acceptType = req.getParameter("acceptType"); String acceptType = hReq.getParameter("acceptType");
nonQueryRequest.put("acceptType", acceptType); nonQueryRequest.put("acceptType", acceptType);
saved = crdnCvlcptService.updateCvlcptPrcs(nonQueryRequest, crdn, newFileInfoList); saved = crdnCvlcptService.updateCvlcptPrcs(nonQueryRequest, crdnCvlcpt, crdn, newFileInfoList);
return new ModelAndView("jsonView") return new ModelAndView("jsonView")
@ -286,9 +287,9 @@ public class Crdn01Controller extends ApplicationController {
* @return hwp * @return hwp
*/ */
@RequestMapping(name="민원내역 원본 한글 파일 생성", value="/050/makeFileFromHwpFormat.do") @RequestMapping(name="민원내역 원본 한글 파일 생성", value="/050/makeFileFromHwpFormat.do")
public ModelAndView makeFileFromHwpFormat(CrdnQuery crdnQuery, HttpServletRequest request) { public ModelAndView makeFileFromHwpFormat(CrdnQuery query) {
Map<String,String> result = crdnCvlcptService.makeFileFromHwpFormat(crdnQuery); Map<String,String> result = crdnCvlcptService.makeFileFromHwpFormat(query);
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
mav.addAllObjects(result); mav.addAllObjects(result);
return mav; return mav;
@ -298,16 +299,16 @@ public class Crdn01Controller extends ApplicationController {
* @return * @return
*/ */
@RequestMapping(name="민원답변내용 미리보기", value="/060/info.do") @RequestMapping(name="민원답변내용 미리보기", value="/060/info.do")
public ModelAndView answerPreviewInfo(CrdnQuery req, HttpServletRequest request) { public ModelAndView answerPreviewInfo(HttpServletRequest hReq, CrdnQuery query) {
boolean json = jsonResponse(); boolean json = jsonResponse();
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/crdn/crdn01060-info"); ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/crdn/crdn01060-info");
mav.addObject("pageName", "crdn01060-info"); mav.addObject("pageName", "crdn01060-info");
String urlTaskSeCd = request.getServletPath().split("/")[1]; String urlTaskSeCd = hReq.getServletPath().split("/")[1];
mav.addObject("taskSeCd", urlTaskSeCd); mav.addObject("taskSeCd", urlTaskSeCd);
req.setTaskSeCd(urlTaskSeCd); query.setTaskSeCd(urlTaskSeCd);
DataObject cvlcptInfo = crdnCvlcptService.getAnswerPreview(req); DataObject cvlcptInfo = crdnCvlcptService.getAnswerPreview(query);
mav.addObject("cvlcptInfo", json ? cvlcptInfo : toJson(cvlcptInfo)); mav.addObject("cvlcptInfo", json ? cvlcptInfo : toJson(cvlcptInfo));
return mav; return mav;

@ -55,7 +55,7 @@ public class Crdn05Controller extends ApplicationController {
/** . /** .
* {@link CrdnService#getCrackdownList(CrdnQuery)} * {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param query
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
* "crdnList": [ ], * "crdnList": [ ],
@ -65,10 +65,10 @@ public class Crdn05Controller extends ApplicationController {
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="당일 입력 단속자료 목록 조회", value="/010/list.do") @RequestMapping(name="당일 입력 단속자료 목록 조회", value="/010/list.do")
public ModelAndView getTodayCrdnDataList(CrdnQuery req) { public ModelAndView getTodayCrdnDataList(CrdnQuery query) {
setFetchSize(req); setFetchSize(query);
req.setGridType("todayInsert"); query.setGridType("todayInsert");
return setCollectionInfo(new ModelAndView("jsonView"),crdnService.getCrackdownList(req),""); return setCollectionInfo(new ModelAndView("jsonView"),crdnService.getCrackdownList(query),"");
} }
/** . /** .
@ -76,11 +76,11 @@ public class Crdn05Controller extends ApplicationController {
* @return fims/crdn/crdn05030-info * @return fims/crdn/crdn05030-info
*/ */
@RequestMapping(name="단속자료 수기 등록 화면", value="/030/info.do") @RequestMapping(name="단속자료 수기 등록 화면", value="/030/info.do")
public ModelAndView getManualRegistrationScreen(HttpServletRequest request) { public ModelAndView getManualRegistrationScreen(HttpServletRequest hReq) {
ModelAndView mav = new ModelAndView("fims/crdn/crdn05030-info"); ModelAndView mav = new ModelAndView("fims/crdn/crdn05030-info");
mav.addObject("pageName", "crdn05030-info"); mav.addObject("pageName", "crdn05030-info");
String urlTaskSeCd = request.getServletPath().split("/")[1]; String urlTaskSeCd = hReq.getServletPath().split("/")[1];
mav.addObject("taskSeCd", urlTaskSeCd); mav.addObject("taskSeCd", urlTaskSeCd);
String vltnByTask = ""; String vltnByTask = "";
@ -126,7 +126,7 @@ public class Crdn05Controller extends ApplicationController {
* }</code></pre> * }</code></pre>
*/ */
@PostMapping(name="단속자료 수기 등록", value="/030/create.do") @PostMapping(name="단속자료 수기 등록", value="/030/create.do")
public ModelAndView createCrdnDataByManual(HttpServletRequest req, Crdn crdn, MultipartFile[] newFileList) { public ModelAndView createCrdnDataByManual(HttpServletRequest hReq, Crdn crdn, MultipartFile[] newFileList) {
boolean saved = false; boolean saved = false;
crdn.setCrdnRegSeCd("01"); crdn.setCrdnRegSeCd("01");
@ -137,10 +137,11 @@ public class Crdn05Controller extends ApplicationController {
fileInfoList = new FileInfoFactory().makeFileInfos(null, newFileList); fileInfoList = new FileInfoFactory().makeFileInfos(null, newFileList);
} }
String doGuidance = ifEmpty(hReq.getParameter("doGuidance"), () -> "");
if(doGuidance.equals("on")) {
crdn.setCrdnSttsCd("83");
}
Map<String, Object> nonQueryRequest = new HashMap<String, Object>(); Map<String, Object> nonQueryRequest = new HashMap<String, Object>();
nonQueryRequest.put("doGuidance", req.getParameter("doGuidance"));
saved = crdnService.create(nonQueryRequest , crdn, fileInfoList); saved = crdnService.create(nonQueryRequest , crdn, fileInfoList);

@ -87,7 +87,7 @@ public class Crdn06Controller extends ApplicationController {
/** .<br /> /** .<br />
* {@link CrdnService#getCrackdownList(CrdnQuery)} * {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param query
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
* "crdnList": [ ], * "crdnList": [ ],
@ -97,14 +97,14 @@ public class Crdn06Controller extends ApplicationController {
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="단속자료 목록", value="/010/list.do") @RequestMapping(name="단속자료 목록", value="/010/list.do")
public ModelAndView getCrackdownList(CrdnQuery req) { public ModelAndView getCrackdownList(CrdnQuery query) {
setFetchSize(req); setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(req),""); return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),"");
} }
/** .<br /> /** .<br />
* {@link CrdnService#getCrackdownList(CrdnQuery)} * {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param query
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
* "crdnList": [ ], * "crdnList": [ ],
@ -114,19 +114,19 @@ public class Crdn06Controller extends ApplicationController {
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="검사자료 목록", value="/020/list.do") @RequestMapping(name="검사자료 목록", value="/020/list.do")
public ModelAndView getInspectionDataList(CrdnQuery req) { public ModelAndView getInspectionDataList(CrdnQuery query) {
switch(req.getInspectionDataType()) { switch(query.getInspectionDataType()) {
case "photo" -> req.setGridType("photo"); case "photo" -> query.setGridType("photo");
case "sameVehicleMain" -> req.setGridType("sameVehicleMain"); case "sameVehicleMain" -> query.setGridType("sameVehicleMain");
case "sameVehicleSub" -> req.setGridType("sameVehicleSub"); case "sameVehicleSub" -> query.setGridType("sameVehicleSub");
} }
setFetchSize(req); setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(req),""); return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),"");
} }
/** .<br /> /** .<br />
* {@link CrdnService#getCrackdownList(CrdnQuery)} * {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param req * @param query
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
* "crdnList": [ ], * "crdnList": [ ],
@ -136,9 +136,9 @@ public class Crdn06Controller extends ApplicationController {
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="감경자료 목록", value="/040/list.do") @RequestMapping(name="감경자료 목록", value="/040/list.do")
public ModelAndView getFineReductionDataList(CrdnQuery req) { public ModelAndView getFineReductionDataList(CrdnQuery query) {
req.setGridType("fineReductionData"); query.setGridType("fineReductionData");
setFetchSize(req); setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(req),""); return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),"");
} }
} }

@ -32,9 +32,9 @@ public class Sprt03ServiceBean extends AbstractServiceBean implements Sprt03Serv
public DataObject getVideoInfo(String crdnId) { public DataObject getVideoInfo(String crdnId) {
DataObject fileInfo = new DataObject(); DataObject fileInfo = new DataObject();
CrdnQuery crdnQuery = new CrdnQuery(); CrdnQuery query = new CrdnQuery();
crdnQuery.setCrdnId(crdnId); query.setCrdnId(crdnId);
DataObject cvlcptInfo = crdnCvlcptMapper.selectCivilComplaintReceiptInitialDataInfo(crdnQuery); DataObject cvlcptInfo = crdnCvlcptMapper.selectCivilComplaintReceiptInitialDataInfo(query);
String linkTblNm = cvlcptInfo.string("LINK_TBL_NM"); String linkTblNm = cvlcptInfo.string("LINK_TBL_NM");
if(!linkTblNm.equals("")) { if(!linkTblNm.equals("")) {
FileQuery fileQuery = new FileQuery(); FileQuery fileQuery = new FileQuery();

@ -47,10 +47,10 @@ public class DpvController {
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="장애인과태료업무 표지정보미확인자료 목록", value="/030/list.do") @RequestMapping(name="장애인과태료업무 표지정보미확인자료 목록", value="/030/list.do")
public ModelAndView getTagInformationUndefinedDataList(CrdnQuery req) { public ModelAndView getTagInformationUndefinedDataList(CrdnQuery query) {
req.setGridType("tagInformationUndefinedData"); query.setGridType("tagInformationUndefinedData");
setFetchSize(req); setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(req),""); return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),"");
} }
/** . /** .

Loading…
Cancel
Save