명명규칙에 따른 파일명 변경

main
이범준 1 year ago
parent 36521f8b86
commit 91b54549b2

@ -12,11 +12,11 @@ import cokr.xit.foundation.data.DataObject;
/** DAO
* @author leebj
*/
@Mapper("crdnMapper")
public interface CrdnMapper extends AbstractMapper {
@Mapper("crdn06Mapper")
public interface Crdn06Mapper extends AbstractMapper {
/** .<br />
* {@link cokr.xit.fims.crdn.service.CrdnService#getCrdnList(CrdnQuery)}
* {@link cokr.xit.fims.crdn.service.Crdn06Service#getCrdnList(CrdnQuery)}
* @param req
* @return
*/

@ -10,7 +10,7 @@ import cokr.xit.foundation.data.DataObject;
* </ul>
* @author leebj
*/
public interface CrdnService {
public interface Crdn06Service {
/** .
* @param req

@ -7,7 +7,7 @@ import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.dao.CrdnMapper;
import cokr.xit.fims.crdn.dao.Crdn06Mapper;
import cokr.xit.fims.crdn.service.CrdnQuery;
import cokr.xit.foundation.AbstractComponent;
import cokr.xit.foundation.data.DataObject;
@ -15,19 +15,19 @@ import cokr.xit.foundation.data.DataObject;
/** Bean
* @author leebj
*/
@Component("crdnBean")
public class CrdnBean extends AbstractComponent {
@Component("crdn06Bean")
public class Crdn06Bean extends AbstractComponent {
@Resource(name = "crdnMapper")
private CrdnMapper crdnMapper;
@Resource(name = "crdn06Mapper")
private Crdn06Mapper crdn06Mapper;
/** .<br />
* {@link cokr.xit.fims.crdn.service.CrdnService#getCrdnList(CrdnQuery)}
* {@link cokr.xit.fims.crdn.service.Crdn06Service#getCrdnList(CrdnQuery)}
* @param req
* @return
*/
public List<DataObject> getCrdnList(CrdnQuery req) {
return crdnMapper.getCrdnList(req.setOrderBy("CRDN_ID"));
return crdn06Mapper.getCrdnList(req.setOrderBy("CRDN_ID"));
}
/** .
@ -35,6 +35,6 @@ public class CrdnBean extends AbstractComponent {
* @return
*/
public DataObject getCrdnInfo(String crdnId) {
return crdnMapper.getCrdnInfo(crdnId);
return crdn06Mapper.getCrdnInfo(crdnId);
}
}

@ -6,30 +6,29 @@ import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.service.CrdnQuery;
import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.crdn.service.Crdn06Service;
import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject;
/**
* @author leebj
*/
@Service("crdnService")
public class CrdnServiceBean extends AbstractServiceBean implements CrdnService {
@Service("crdn06Service")
public class Crdn06ServiceBean extends AbstractServiceBean implements Crdn06Service {
/** 단속관리 Bean */
@Resource(name="crdnBean")
protected CrdnBean crdnBean;
@Resource(name="crdn06Bean")
protected Crdn06Bean crdn06Bean;
@Override
public List<DataObject> getCrdnList(CrdnQuery req) {
return crdnBean.getCrdnList(req);
return crdn06Bean.getCrdnList(req);
}
@Override
public DataObject getCrdnInfo(String crdnId) {
return crdnBean.getCrdnInfo(crdnId);
return crdn06Bean.getCrdnInfo(crdnId);
}
}

@ -1,51 +0,0 @@
package cokr.xit.fims.crdn.web;
import javax.annotation.Resource;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.service.CrdnQuery;
import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.foundation.web.AbstractController;
public class AbstractCrdn0600Controller extends ApplicationController {
@Resource(name="crdnService")
private CrdnService crdnService;
/** .<br />
* {@link CrdnService#getCrdnList(CrdnQuery)}
* @param req
* @return jsonView
* <pre><code> {
* "crdnList": [ ],
* "crdnStart": ,
* "crdnFetchTotal": ,
* "crdnTotal":
* }</code></pre>
*/
public ModelAndView getCrdnList(CrdnQuery req) {
setFetchSize(req);
return setCollectionInfo(
new ModelAndView("jsonView"),
crdnService.getCrdnList(req),
"crdn"
);
}
/** .
* @param crdnId
* @return fims/crdn/crdnData-info
* <pre><code> {
* "crdnInfo": {...}
* }</code></pre>
*/
public ModelAndView getCrdnInfo(String crdnId) {
ModelAndView mav = new ModelAndView("fims/crdn/crdnData-info");
if (!isEmpty(crdnId)) {
mav.addObject("crdnInfo", crdnService.getCrdnInfo(crdnId));
}
return mav;
}
}

@ -0,0 +1,73 @@
package cokr.xit.fims.crdn.web;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.code.CommonCode;
import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.service.CrdnQuery;
import cokr.xit.fims.crdn.service.Crdn06Service;
@RequestMapping(name="단속관리", value="/crdn/crdn06")
public class AbstractCrdn06Controller extends ApplicationController {
@Resource(name="crdn06Service")
private Crdn06Service crdn06Service;
/** .
* @return fims/crdn/crdnDataInquire-main
*/
@RequestMapping(name="단속 자료 조회 메인", value="/010/main.do")
public ModelAndView crdnDataInquireMain() {
ModelAndView mav = new ModelAndView();
mav.setViewName("fims/crdn/crdnDataInquire-main");
mav.addObject("pageSuffix","crdnDataInquire-main");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM001", "FIM002", "FIM010", "FIM026");
mav.addObject("FIM001List", commonCodes.get("FIM001"));
mav.addObject("FIM002List", commonCodes.get("FIM002"));
mav.addObject("FIM010List", commonCodes.get("FIM010"));
addCodes(commonCodes, mav, "FIM002", "FIM026");
return mav;
}
/** .<br />
* {@link Crdn06Service#getCrdnList(CrdnQuery)}
* @param req
* @return jsonView
* <pre><code> {
* "crdnList": [ ],
* "crdnStart": ,
* "crdnFetchTotal": ,
* "crdnTotal":
* }</code></pre>
*/
public ModelAndView getCrdnList(CrdnQuery req) {
setFetchSize(req);
return setCollectionInfo(
new ModelAndView("jsonView"),
crdn06Service.getCrdnList(req),
"crdn"
);
}
/** .
* @param crdnId
* @return fims/crdn/crdnData-info
* <pre><code> {
* "crdnInfo": {...}
* }</code></pre>
*/
public ModelAndView getCrdnInfo(String crdnId) {
ModelAndView mav = new ModelAndView("fims/crdn/crdnData-info");
if (!isEmpty(crdnId)) {
mav.addObject("crdnInfo", crdn06Service.getCrdnInfo(crdnId));
}
return mav;
}
}

@ -1,80 +0,0 @@
package cokr.xit.fims.crdn.web;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.code.CommonCode;
import cokr.xit.base.code.service.CodeService;
import cokr.xit.fims.crdn.service.CrdnQuery;
import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.foundation.web.AbstractController;
/** .<br />
* { }/crdn/* .
* @author leebj
*/
@Controller
@RequestMapping(name="단속관리", value="/crdn")
public class Crdn0600Controller extends AbstractCrdn0600Controller {
@Resource(name = "codeService")
private CodeService codeService;
/** .
* @return fims/crdn/crdnDataInquire-main
*/
@RequestMapping(name="단속 자료 조회 메인", value="/crdn0600/main.do")
public ModelAndView crdnDataInquireMain() {
ModelAndView mav = new ModelAndView();
mav.setViewName("fims/crdn/crdnDataInquire-main");
mav.addObject("pageSuffix","crdnDataInquire-main");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM001", "FIM002", "FIM010", "FIM026");
mav.addObject("FIM001List", commonCodes.get("FIM001"));
mav.addObject("FIM002List", commonCodes.get("FIM002"));
mav.addObject("FIM010List", commonCodes.get("FIM010"));
addCodes(commonCodes, mav, "FIM002", "FIM026");
return mav;
}
@RequestMapping(name="주정차과태료업무 단속자료 목록", value="/PVS/list.do")
public ModelAndView getPvsCrdnList(CrdnQuery req) {
return getCrdnList(req);
}
@RequestMapping(name="전용차로과태료업무 단속자료 목록", value="/BPV/list.do")
public ModelAndView getBpvCrdnList(CrdnQuery req) {
return getCrdnList(req);
}
@RequestMapping(name="장애인과태료업무 단속자료 목록", value="/DPV/list.do")
public ModelAndView getDpvCrdnList(CrdnQuery req) {
return getCrdnList(req);
}
@RequestMapping(name="전기차과태료업무 단속자료 목록", value="/ECA/list.do")
public ModelAndView getEcaCrdnList(CrdnQuery req) {
return getCrdnList(req);
}
@RequestMapping(name="주정차과태료업무 단속자료 정보", value="/PVS/info.do")
public ModelAndView getPvsCrdnInfo(String crdnId) {
return getCrdnInfo(crdnId);
}
@RequestMapping(name="전용차로과태료업무 단속자료 정보", value="/BPV/info.do")
public ModelAndView getBpvCrdnInfo(String crdnId) {
return getCrdnInfo(crdnId);
}
@RequestMapping(name="장애인과태료업무 단속자료 정보", value="/DPV/info.do")
public ModelAndView getDpvCrdnInfo(String crdnId) {
return getCrdnInfo(crdnId);
}
@RequestMapping(name="전기차과태료업무 단속자료 정보", value="/ECA/info.do")
public ModelAndView getEcaCrdnInfo(String crdnId) {
return getCrdnInfo(crdnId);
}
}

@ -0,0 +1,50 @@
package cokr.xit.fims.crdn.web;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.fims.crdn.service.CrdnQuery;
/** .<br />
* { }/crdn/crdn06 .
* @author leebj
*/
@Controller
public class Crdn06Controller extends AbstractCrdn06Controller {
@RequestMapping(name="주정차과태료업무 단속자료 목록", value="/010/PVS/list.do")
public ModelAndView getPvsCrdnList(CrdnQuery req) {
return getCrdnList(req);
}
@RequestMapping(name="전용차로과태료업무 단속자료 목록", value="/010/BPV/list.do")
public ModelAndView getBpvCrdnList(CrdnQuery req) {
return getCrdnList(req);
}
@RequestMapping(name="장애인과태료업무 단속자료 목록", value="/010/DPV/list.do")
public ModelAndView getDpvCrdnList(CrdnQuery req) {
return getCrdnList(req);
}
@RequestMapping(name="전기차과태료업무 단속자료 목록", value="/010/ECA/list.do")
public ModelAndView getEcaCrdnList(CrdnQuery req) {
return getCrdnList(req);
}
//TODO : 단속자료 상세화면은 여러화면에서 공통으로 사용하므로 통합조회 관련 소스로 이동이 필요함.
@RequestMapping(name="주정차과태료업무 단속자료 정보", value="/미정/PVS/info.do")
public ModelAndView getPvsCrdnInfo(String crdnId) {
return getCrdnInfo(crdnId);
}
@RequestMapping(name="전용차로과태료업무 단속자료 정보", value="/미정/BPV/info.do")
public ModelAndView getBpvCrdnInfo(String crdnId) {
return getCrdnInfo(crdnId);
}
@RequestMapping(name="장애인과태료업무 단속자료 정보", value="/미정/DPV/info.do")
public ModelAndView getDpvCrdnInfo(String crdnId) {
return getCrdnInfo(crdnId);
}
@RequestMapping(name="전기차과태료업무 단속자료 정보", value="/미정/ECA/info.do")
public ModelAndView getEcaCrdnInfo(String crdnId) {
return getCrdnInfo(crdnId);
}
}

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cokr.xit.fims.crdn.dao.CrdnMapper">
<mapper namespace="cokr.xit.fims.crdn.dao.Crdn06Mapper">
<resultMap id="crdnRow" type="cokr.xit.fims.crdn.Crdn">
<!-- TODO -->
@ -18,7 +18,7 @@
, A.CRDN_REG_SE_CD
, A.CRDN_INPT_SE_CD
, A.LINK_ID
, A.CRDN_SE_CD
, '10' AS CRDN_SE_CD
, A.RTPYR_ID
, A.CRDN_YMD
, A.CRDN_TM

@ -227,8 +227,8 @@ crdnControl.onDatasetChange = obj => {
function fnResetAndChangeBiz(sysSeCd){
$("#crdnTbody--${pageSuffix}").html("");
crdnControl.urls.load = wctx.url("/crdn/"+ sysSeCd +"/list.do");
crdnControl.urls.getInfo = wctx.url("/crdn/"+ sysSeCd +"/info.do");
crdnControl.urls.load = wctx.url("/crdn/crdn06/010/"+ sysSeCd +"/list.do");
crdnControl.urls.getInfo = wctx.url("/crdn/crdn미정/미정/"+ sysSeCd +"/info.do"); // TODO : 상세화면은 통합조회 관련 URL로 변경 필요
}
function searchCrdnList(){

Loading…
Cancel
Save