명명규칙에 따른 메소드명 변경

main
이범준 1 year ago
parent 91b54549b2
commit 68f8b141c4

@ -16,21 +16,14 @@ import cokr.xit.foundation.data.DataObject;
public interface Crdn06Mapper extends AbstractMapper { public interface Crdn06Mapper extends AbstractMapper {
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.Crdn06Service#getCrdnList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.Crdn06Service#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return * @return
*/ */
List<DataObject> getCrdnList(CrdnQuery req); List<DataObject> getCrackdownList(CrdnQuery req);
List<DataObject> getCrdns(CrdnQuery req); List<DataObject> getCrackdowns(CrdnQuery req);
/** .
* @param crdnId
* @return
*/
default DataObject getCrdnInfo(String crdnId) {
List<DataObject> list = getCrdnList(new CrdnQuery().setCrdnId(crdnId));
return !list.isEmpty() ? list.get(0) : null;
}
} }

@ -6,7 +6,7 @@ import cokr.xit.fims.crdn.Crdn;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
/** . /** .
* <ul><li>{@link #getCrdnList(CrdnQuery) }</li> * <ul><li>{@link #getCrackdownList(CrdnQuery) }</li>
* </ul> * </ul>
* @author leebj * @author leebj
*/ */
@ -19,12 +19,8 @@ public interface Crdn06Service {
* </ul> * </ul>
* @return * @return
*/ */
List<DataObject> getCrdnList(CrdnQuery req); List<DataObject> getCrackdownList(CrdnQuery req);
/** .
* @param crdnId
* @return
*/
DataObject getCrdnInfo(String crdnId);
} }

@ -22,19 +22,13 @@ public class Crdn06Bean extends AbstractComponent {
private Crdn06Mapper crdn06Mapper; private Crdn06Mapper crdn06Mapper;
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.Crdn06Service#getCrdnList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.Crdn06Service#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return * @return
*/ */
public List<DataObject> getCrdnList(CrdnQuery req) { public List<DataObject> getCrackdownList(CrdnQuery req) {
return crdn06Mapper.getCrdnList(req.setOrderBy("CRDN_ID")); return crdn06Mapper.getCrackdownList(req.setOrderBy("CRDN_ID"));
} }
/** .
* @param crdnId
* @return
*/
public DataObject getCrdnInfo(String crdnId) {
return crdn06Mapper.getCrdnInfo(crdnId);
}
} }

@ -22,13 +22,10 @@ public class Crdn06ServiceBean extends AbstractServiceBean implements Crdn06Serv
protected Crdn06Bean crdn06Bean; protected Crdn06Bean crdn06Bean;
@Override @Override
public List<DataObject> getCrdnList(CrdnQuery req) { public List<DataObject> getCrackdownList(CrdnQuery req) {
return crdn06Bean.getCrdnList(req); return crdn06Bean.getCrackdownList(req);
} }
@Override
public DataObject getCrdnInfo(String crdnId) {
return crdn06Bean.getCrdnInfo(crdnId);
}
} }

@ -13,20 +13,20 @@ import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.service.CrdnQuery; import cokr.xit.fims.crdn.service.CrdnQuery;
import cokr.xit.fims.crdn.service.Crdn06Service; import cokr.xit.fims.crdn.service.Crdn06Service;
@RequestMapping(name="단속관리", value="/crdn/crdn06") @RequestMapping(name="단속 자료 조회", value="/crdn/crdn06")
public class AbstractCrdn06Controller extends ApplicationController { public class AbstractCrdn06Controller extends ApplicationController {
@Resource(name="crdn06Service") @Resource(name="crdn06Service")
private Crdn06Service crdn06Service; private Crdn06Service crdn06Service;
/** . /** .
* @return fims/crdn/crdnDataInquire-main * @return fims/crdn/crdn06010-main
*/ */
@RequestMapping(name="단속 자료 조회 메인", value="/010/main.do") @RequestMapping(name="단속 자료 조회 메인", value="/010/main.do")
public ModelAndView crdnDataInquireMain() { public ModelAndView crackdownDataInquireMain() {
ModelAndView mav = new ModelAndView(); ModelAndView mav = new ModelAndView();
mav.setViewName("fims/crdn/crdnDataInquire-main"); mav.setViewName("fims/crdn/crdn06010-main");
mav.addObject("pageSuffix","crdnDataInquire-main"); mav.addObject("pageSuffix", "crdn06010-main");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM001", "FIM002", "FIM010", "FIM026"); Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM001", "FIM002", "FIM010", "FIM026");
mav.addObject("FIM001List", commonCodes.get("FIM001")); mav.addObject("FIM001List", commonCodes.get("FIM001"));
@ -37,7 +37,7 @@ public class AbstractCrdn06Controller extends ApplicationController {
} }
/** .<br /> /** .<br />
* {@link Crdn06Service#getCrdnList(CrdnQuery)} * {@link Crdn06Service#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
@ -47,27 +47,14 @@ public class AbstractCrdn06Controller extends ApplicationController {
* "crdnTotal": * "crdnTotal":
* }</code></pre> * }</code></pre>
*/ */
public ModelAndView getCrdnList(CrdnQuery req) { public ModelAndView getCrackdownList(CrdnQuery req) {
setFetchSize(req); setFetchSize(req);
return setCollectionInfo( return setCollectionInfo(
new ModelAndView("jsonView"), new ModelAndView("jsonView"),
crdn06Service.getCrdnList(req), crdn06Service.getCrackdownList(req),
"crdn" "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;
}
} }

@ -13,38 +13,22 @@ import cokr.xit.fims.crdn.service.CrdnQuery;
public class Crdn06Controller extends AbstractCrdn06Controller { public class Crdn06Controller extends AbstractCrdn06Controller {
@RequestMapping(name="주정차과태료업무 단속자료 목록", value="/010/PVS/list.do") @RequestMapping(name="주정차과태료업무 단속자료 목록", value="/010/PVS/list.do")
public ModelAndView getPvsCrdnList(CrdnQuery req) { public ModelAndView getPvsCrackdownList(CrdnQuery req) {
return getCrdnList(req); return getCrackdownList(req);
} }
@RequestMapping(name="전용차로과태료업무 단속자료 목록", value="/010/BPV/list.do") @RequestMapping(name="전용차로과태료업무 단속자료 목록", value="/010/BPV/list.do")
public ModelAndView getBpvCrdnList(CrdnQuery req) { public ModelAndView getBpvCrackdownList(CrdnQuery req) {
return getCrdnList(req); return getCrackdownList(req);
} }
@RequestMapping(name="장애인과태료업무 단속자료 목록", value="/010/DPV/list.do") @RequestMapping(name="장애인과태료업무 단속자료 목록", value="/010/DPV/list.do")
public ModelAndView getDpvCrdnList(CrdnQuery req) { public ModelAndView getDpvCrackdownList(CrdnQuery req) {
return getCrdnList(req); return getCrackdownList(req);
} }
@RequestMapping(name="전기차과태료업무 단속자료 목록", value="/010/ECA/list.do") @RequestMapping(name="전기차과태료업무 단속자료 목록", value="/010/ECA/list.do")
public ModelAndView getEcaCrdnList(CrdnQuery req) { public ModelAndView getEcaCrackdownList(CrdnQuery req) {
return getCrdnList(req); return getCrackdownList(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);
}
} }

@ -10,7 +10,7 @@
<result property="modifiedBy" column="MDFR"/> <result property="modifiedBy" column="MDFR"/>
</resultMap> </resultMap>
<sql id="selectCrdns"> <sql id="selectCrackdowns">
<include refid="utility.paging-prefix"/> <include refid="utility.paging-prefix"/>
SELECT A.CRDN_ID SELECT A.CRDN_ID
, A.SGG_CD , A.SGG_CD
@ -91,14 +91,14 @@
<include refid="utility.paging-suffix"/> <include refid="utility.paging-suffix"/>
</sql> </sql>
<select id="getCrdnList" parameterType="map" resultType="dataobject"> <select id="getCrackdownList" parameterType="map" resultType="dataobject">
/* 단속자료 목록 조회(crdnMapper.getCrdnList) */ /* 단속자료 목록 조회(crdnMapper.getCrackdownList) */
<include refid="selectCrdns"/> <include refid="selectCrackdowns"/>
</select> </select>
<select id="getCrdns" parameterType="map" resultMap="crdnRow"> <select id="getCrackdowns" parameterType="map" resultMap="crdnRow">
/* 단속자료 가져오기 (crdnMapper.getCrdns) */ /* 단속자료 가져오기 (crdnMapper.getCrackdowns) */
<include refid="selectCrdns"/> <include refid="selectCrackdowns"/>
</select> </select>
</mapper> </mapper>

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