소스정리, 단속등록 수정

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

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

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

@ -5,49 +5,50 @@ import java.util.Map;
import cokr.xit.base.file.FileInfo;
import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnCvlcpt;
import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.foundation.data.DataObject;
public interface CrdnCvlcptService {
/** .
* @param crdnQuery
* @param query
* @return
*/
List<DataObject> getCrackdownList(CrdnQuery crdnQuery);
List<DataObject> getCrackdownList(CrdnQuery query);
/** .
* @param crdnQuery
* @param query
* @return
*/
DataObject getCivilComplaintOriginalInfo(CrdnQuery crdnQuery);
DataObject getCivilComplaintOriginalInfo(CrdnQuery query);
/** .
* @param crdnQuery
* @param query
* @return
*/
DataObject getAnswerPreview(CrdnQuery crdnQuery);
DataObject getAnswerPreview(CrdnQuery query);
/** .
* @param crdnQuery
* @param query
* @return
*/
DataObject getCivilComplaintReceiptInitialDataInfo(CrdnQuery crdnQuery);
DataObject getCivilComplaintReceiptInitialDataInfo(CrdnQuery query);
/** .
* @param crdnQuery
* @param query
* @return map
* <ul><li>filePath: </li>
* <li>fileName: </li>
* </ul>
*/
Map<String, String> makeFileFromHwpFormat(CrdnQuery crdnQuery);
Map<String, String> makeFileFromHwpFormat(CrdnQuery query);
/** .
* @param crdn , newFileInfoList
* @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 {
/** .
* @param req
* @param query
* <ul><li>pageNum: </li>
* <li>fetchSize: </li>
* </ul>
* @return
*/
List<DataObject> getCrackdownList(CrdnQuery req);
List<DataObject> getCrackdownList(CrdnQuery query);
/** .
* @param crdnIDs ID

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

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

@ -57,37 +57,37 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
protected CrdnSttsHstryBean crdnSttsHstryBean;
@Override
public List<DataObject> getCrackdownList(CrdnQuery req) {
public List<DataObject> getCrackdownList(CrdnQuery query) {
List<DataObject> dataObjectList = new ArrayList<DataObject>();
switch (ifEmpty(req.getGridType(), () -> "")) {
switch (ifEmpty(query.getGridType(), () -> "")) {
case "tagInformationUndefinedData":
dataObjectList = crdn06Mapper.selectTagInformationUndefinedDataList(req.setOrderBy("CRDN_ID"));
dataObjectList = crdn06Mapper.selectTagInformationUndefinedDataList(query.setOrderBy("CRDN_ID"));
break;
case "fineReductionData":
dataObjectList = crdn06Mapper.selectFineReductionDataList(req.setOrderBy("CRDN_ID"));
dataObjectList = crdn06Mapper.selectFineReductionDataList(query.setOrderBy("CRDN_ID"));
break;
case "photo":
dataObjectList = crdn06Mapper.selectPhotoInspectionDataList(req.setOrderBy("VHRNO, CRDN_PLC"));
dataObjectList = crdn06Mapper.selectPhotoInspectionDataList(query.setOrderBy("VHRNO, CRDN_PLC"));
break;
case "sameVehicleMain":
dataObjectList = crdn06Mapper.selectSameVehicleMainList(req.setOrderBy("VHRNO"));
dataObjectList = crdn06Mapper.selectSameVehicleMainList(query.setOrderBy("VHRNO"));
break;
case "sameVehicleSub":
dataObjectList = crdn06Mapper.selectSameVehicleSubList(req.setOrderBy("CRDN_ID"));
dataObjectList = crdn06Mapper.selectSameVehicleSubList(query.setOrderBy("CRDN_ID"));
break;
case "todayInsert":
req.setCurrentUserId(currentUser().getId());
req.setOrderBy("CRDN_ID");
dataObjectList = crdn05Mapper.selectCrackdownList(req);
query.setCurrentUserId(currentUser().getId());
query.setOrderBy("CRDN_ID");
dataObjectList = crdn05Mapper.selectCrackdownList(query);
break;
default:
dataObjectList = crdn06Mapper.selectCrackdownList(req.setOrderBy("CRDN_ID"));
dataObjectList = crdn06Mapper.selectCrackdownList(query.setOrderBy("CRDN_ID"));
break;
}
if(ifEmpty(req.getGridType(), () -> "").equals("tagInformationUndefinedData")
|| ifEmpty(req.getGridType(), () -> "").equals("fineReductionData")) {
if(ifEmpty(query.getGridType(), () -> "").equals("tagInformationUndefinedData")
|| ifEmpty(query.getGridType(), () -> "").equals("fineReductionData")) {
Iterator<DataObject> iterator = dataObjectList.iterator();
while(iterator.hasNext()) {
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));
}
} else if(ifEmpty(req.getGridType(), () -> "").equals("photo")) {
} else if(ifEmpty(query.getGridType(), () -> "").equals("photo")) {
Iterator<DataObject> iterator = dataObjectList.iterator();
while(iterator.hasNext()) {
DataObject dataObject = iterator.next();
@ -110,7 +110,7 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
dataObject.set("PRCS_MTHD", "해당자료에 사진을 등록하시기 바랍니다.");
} else if(dataObject.number("CRDN_CNT").intValue() > 1) {
dataObject.set("INSP_RSLT", "중복자료");
if(req.getTaskSeCd().equals("PVS")) {
if(query.getTaskSeCd().equals("PVS")) {
dataObject.set("PRCS_MTHD", "한건을 시간초과로 처리하십시요.");
} else {
dataObject.set("PRCS_MTHD", "한건을 서손으로 처리하십시요.");
@ -147,11 +147,14 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
crdn.setLevyAmt(basicAmt[0]);
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.web.ApplicationController;
import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnCvlcpt;
import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.service.CrdnCvlcptService;
import cokr.xit.fims.crdn.service.CrdnService;
@ -87,19 +88,19 @@ public class Crdn01Controller extends ApplicationController {
* @return fims/crdn/crdn01050-info
*/
@RequestMapping(name="민원내역 원본 보기", value="/050/info.do")
public ModelAndView getCivilComplaintOriginalInfo(CrdnQuery req, HttpServletRequest request) {
public ModelAndView getCivilComplaintOriginalInfo(HttpServletRequest hReq, CrdnQuery query) {
boolean json = jsonResponse();
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/crdn/crdn01050-info");
mav.addObject("pageName", "crdn01050-info");
String urlTaskSeCd = request.getServletPath().split("/")[1];
String urlTaskSeCd = hReq.getServletPath().split("/")[1];
mav.addObject("taskSeCd", urlTaskSeCd);
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM039");
mav.addObject("FIM039List", commonCodes.get("FIM039"));
DataObject info = crdnCvlcptService.getCivilComplaintOriginalInfo(req);
DataObject info = crdnCvlcptService.getCivilComplaintOriginalInfo(query);
mav.addObject("cvlcptInfo", json ? info : toJson(info));
return mav;
@ -107,7 +108,7 @@ public class Crdn01Controller extends ApplicationController {
/** .<br />
* {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param req
* @param query
* @return jsonView
* <pre><code> {
* "crdnList": [ ],
@ -117,31 +118,31 @@ public class Crdn01Controller extends ApplicationController {
* }</code></pre>
*/
@RequestMapping(name="민원접수자료 목록", value="/010/list.do")
public ModelAndView getCivilComplaintReceiptDataList(CrdnQuery req) {
req.setGridType("receiptData");
setFetchSize(req);
return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCrackdownList(req),"");
public ModelAndView getCivilComplaintReceiptDataList(CrdnQuery query) {
query.setGridType("receiptData");
setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCrackdownList(query),"");
}
/** .<br />
* @return fims/crdn/crdn01020-info
*/
@RequestMapping(name="민원접수 초기자료 조회", value="/020/info.do")
public ModelAndView getCivilComplaintReceiptInitialDataInfo(CrdnQuery req, HttpServletRequest request) {
public ModelAndView getCivilComplaintReceiptInitialDataInfo(HttpServletRequest hReq, CrdnQuery query) {
boolean json = jsonResponse();
String pageName = "crdn01020-info";
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/crdn/"+pageName);
mav.addObject("pageName", pageName);
String urlTaskSeCd = request.getServletPath().split("/")[1];
String urlTaskSeCd = hReq.getServletPath().split("/")[1];
mav.addObject("taskSeCd", urlTaskSeCd);
DataObject info = crdnCvlcptService.getCivilComplaintReceiptInitialDataInfo(req);
DataObject info = crdnCvlcptService.getCivilComplaintReceiptInitialDataInfo(query);
mav.addObject("crdnInfo", json ? info : toJson(info));
mav.addObject("openerPageName", request.getParameter("openerPageName"));
mav.addObject("openerPageName", hReq.getParameter("openerPageName"));
String vltnByTask = "";
@ -180,7 +181,7 @@ public class Crdn01Controller extends ApplicationController {
/** .<br />
* {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param req
* @param query
* @return jsonView
* <pre><code> {
* "crdnList": [ ],
@ -190,15 +191,15 @@ public class Crdn01Controller extends ApplicationController {
* }</code></pre>
*/
@RequestMapping(name="민원답변대상자료 목록", value="/030/list.do")
public ModelAndView selectCivilComplaintAnswerTargetDataList(CrdnQuery req) {
req.setGridType("answerTargetData");
setFetchSize(req);
return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCrackdownList(req), "");
public ModelAndView selectCivilComplaintAnswerTargetDataList(CrdnQuery query) {
query.setGridType("answerTargetData");
setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCrackdownList(query), "");
}
/** .<br />
* {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param req
* @param query
* @return jsonView
* <pre><code> {
* "crdnList": [ ],
@ -208,9 +209,9 @@ public class Crdn01Controller extends ApplicationController {
* }</code></pre>
*/
@RequestMapping(name="민원자료 목록", value="/040/list.do")
public ModelAndView getCivilComplaintList(CrdnQuery req) {
setFetchSize(req);
return setCollectionInfo(new ModelAndView("jsonView"),crdnCvlcptService.getCrackdownList(req),"");
public ModelAndView getCivilComplaintList(CrdnQuery query) {
setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"),crdnCvlcptService.getCrackdownList(query),"");
}
/** .
@ -239,12 +240,12 @@ public class Crdn01Controller extends ApplicationController {
* }</code></pre>
*/
@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;
String[] deleteFileKeyList = req.getParameterValues("deleteFileKeyList");
String[] modifyFileKeyList = req.getParameterValues("modifyFileKeyList");
String[] deleteFileKeyList = hReq.getParameterValues("deleteFileKeyList");
String[] modifyFileKeyList = hReq.getParameterValues("modifyFileKeyList");
List<FileInfo> newFileInfoList = new ArrayList<FileInfo>();
if(newFileList != null || modifyFileList != null) {
@ -273,9 +274,9 @@ public class Crdn01Controller extends ApplicationController {
Map<String, Object> nonQueryRequest = new HashMap<String, Object>();
nonQueryRequest.put("deleteFileKeyList", deleteFileKeyList);
String acceptType = req.getParameter("acceptType");
String acceptType = hReq.getParameter("acceptType");
nonQueryRequest.put("acceptType", acceptType);
saved = crdnCvlcptService.updateCvlcptPrcs(nonQueryRequest, crdn, newFileInfoList);
saved = crdnCvlcptService.updateCvlcptPrcs(nonQueryRequest, crdnCvlcpt, crdn, newFileInfoList);
return new ModelAndView("jsonView")
@ -286,9 +287,9 @@ public class Crdn01Controller extends ApplicationController {
* @return hwp
*/
@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");
mav.addAllObjects(result);
return mav;
@ -298,16 +299,16 @@ public class Crdn01Controller extends ApplicationController {
* @return
*/
@RequestMapping(name="민원답변내용 미리보기", value="/060/info.do")
public ModelAndView answerPreviewInfo(CrdnQuery req, HttpServletRequest request) {
public ModelAndView answerPreviewInfo(HttpServletRequest hReq, CrdnQuery query) {
boolean json = jsonResponse();
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/crdn/crdn01060-info");
mav.addObject("pageName", "crdn01060-info");
String urlTaskSeCd = request.getServletPath().split("/")[1];
String urlTaskSeCd = hReq.getServletPath().split("/")[1];
mav.addObject("taskSeCd", urlTaskSeCd);
req.setTaskSeCd(urlTaskSeCd);
DataObject cvlcptInfo = crdnCvlcptService.getAnswerPreview(req);
query.setTaskSeCd(urlTaskSeCd);
DataObject cvlcptInfo = crdnCvlcptService.getAnswerPreview(query);
mav.addObject("cvlcptInfo", json ? cvlcptInfo : toJson(cvlcptInfo));
return mav;

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

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

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

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

Loading…
Cancel
Save