sql명 변경

main
이범준 1 year ago
parent c042d0e1d2
commit f79d10c122

@ -20,9 +20,9 @@ public interface Crdn06Mapper extends AbstractMapper {
* @param req * @param req
* @return * @return
*/ */
List<DataObject> getCrackdownList(CrdnQuery req); List<DataObject> selectCrackdownList(CrdnQuery req);
List<DataObject> getCrackdowns(CrdnQuery req); List<DataObject> selectCrackdowns(CrdnQuery req);

@ -27,7 +27,7 @@ public class Crdn06Bean extends AbstractComponent {
* @return * @return
*/ */
public List<DataObject> getCrackdownList(CrdnQuery req) { public List<DataObject> getCrackdownList(CrdnQuery req) {
return crdn06Mapper.getCrackdownList(req.setOrderBy("CRDN_ID")); return crdn06Mapper.selectCrackdownList(req.setOrderBy("CRDN_ID"));
} }

@ -45,11 +45,11 @@ public class Crdn06Controller extends ApplicationController {
mav.setViewName("fims/crdn/crdn06030-main"); mav.setViewName("fims/crdn/crdn06030-main");
mav.addObject("pageName","crdn06030-main"); mav.addObject("pageName","crdn06030-main");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM001", "FIM002", "FIM010", "FIM026"); Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM001", "FIM002", "FIM003", "FIM010", "FIM026");
mav.addObject("FIM001List", commonCodes.get("FIM001")); mav.addObject("FIM001List", commonCodes.get("FIM001"));
mav.addObject("FIM002List", commonCodes.get("FIM002")); mav.addObject("FIM002List", commonCodes.get("FIM002"));
mav.addObject("FIM010List", commonCodes.get("FIM010")); mav.addObject("FIM010List", commonCodes.get("FIM010"));
addCodes(commonCodes, mav, "FIM002", "FIM026"); addCodes(commonCodes, mav, "FIM002", "FIM003", "FIM010", "FIM026");
return mav; return mav;
} }

@ -18,6 +18,6 @@ public interface Sprt01Mapper extends AbstractMapper {
* @param crdnId * @param crdnId
* @return * @return
*/ */
DataObject getTotalDataInfo(String crdnId); DataObject selectTotalDataInfo(String crdnId);
} }

@ -22,7 +22,7 @@ public class Sprt01Bean extends AbstractComponent {
* @return * @return
*/ */
public DataObject getTotalDataInfo(String crdnId) { public DataObject getTotalDataInfo(String crdnId) {
return sprt01Mapper.getTotalDataInfo(crdnId); return sprt01Mapper.selectTotalDataInfo(crdnId);
} }
} }

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

@ -2,8 +2,8 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cokr.xit.fims.sprt.dao.Sprt01Mapper"> <mapper namespace="cokr.xit.fims.sprt.dao.Sprt01Mapper">
<select id="getTotalDataInfo" parameterType="String" resultType="dataobject"> <select id="selectTotalDataInfo" parameterType="String" resultType="dataobject">
/* 개별총정보 조회(sprt01Mapper.getTotalDataList) */ /* 개별총정보 조회(sprt01Mapper.selectTotalDataInfo) */
SELECT * SELECT *
FROM TB_CRDN FROM TB_CRDN
WHERE CRDN_ID = #{crdnId} WHERE CRDN_ID = #{crdnId}

@ -136,6 +136,8 @@
* Global Variable * Global Variable
**************************************************************************/ **************************************************************************/
var FIM002 = new CommonCodes(${FIM002}); var FIM002 = new CommonCodes(${FIM002});
var FIM003 = new CommonCodes(${FIM003});
var FIM010 = new CommonCodes(${FIM010});
var FIM026 = new CommonCodes(${FIM026}); var FIM026 = new CommonCodes(${FIM026});
pageObject["${pageName}"] = {}; pageObject["${pageName}"] = {};
@ -161,8 +163,10 @@ $(document).ready(function(){
RCVMT_AMT : numberFormat, RCVMT_AMT : numberFormat,
CRDN_SE_CD: FIM002, CRDN_SE_CD : FIM002,
CRDN_REG_SE_CD: FIM026 CRDN_INPT_SE_CD : FIM003,
CRDN_STTS_CD : FIM010,
CRDN_REG_SE_CD : FIM026
}, },
keymapper:info => info ? info.CRDN_ID : "", keymapper:info => info ? info.CRDN_ID : "",
dataGetter:obj => obj.crdnList, dataGetter:obj => obj.crdnList,
@ -240,27 +244,20 @@ $(document).ready(function(){
* Grid * Grid
******************************* */ ******************************* */
thisPO.gridColumns = [ thisPO.gridColumns = [
{ header: '차량번호', name: 'VHRNO', width: 80, className: 'text-center' }, { header: '자료출처', name: 'CRDN_INPT_SE_CD', width: 100, className: 'text-center' },
{ header: '단속구분(신고방법)', name: 'CRDN_SE_CD', width: 100, className: 'text-center' },
{ header: '위반일시', name: 'CRDN_YMD_TM', width: 120, className: 'text-center' }, { header: '위반일시', name: 'CRDN_YMD_TM', width: 120, className: 'text-center' },
{ header: '차량번호', name: 'VHRNO', width: 80, className: 'text-center' },
{ header: '법정동', name: 'CRDN_STDG_NM', width: 80, className: 'text-center' },
{ header: '신고/단속자', name: 'CVLCPT_APLCNT_NM000', width: 80, className: 'text-center' },
{ header: '잔액', name: 'UNKNOWN2', width: 80, className: 'text-end' },
{ header: '영상매체', name: 'UNKNOWN3', width: 80, className: 'text-center' },
{ header: '사진건수', name: 'ATCH_FILE_CNT', width: 40, className: 'text-center' }, { header: '사진건수', name: 'ATCH_FILE_CNT', width: 40, className: 'text-center' },
{ header: '수납금액', name: 'RCVMT_AMT', width: 100, className: 'text-end' }, { header: '발행번호', name: 'CRDN_SN', width: 80, className: 'text-center' },
{ header: '위반횟수', name: 'VLTN_NMTM', width: 80, className: 'text-center' }, { header: '표지확인', name: 'UNKNOWN5', width: 80, className: 'text-center' },
{ header: '위반장소', name: 'CRDN_PLC', width: 150 }, { header: '처리상태', name: 'CRDN_STTS_CD', width: 80, className: 'text-center' },
{ header: '특기사항', name: 'ETC_CN', width: 80, className: 'text-center' },
{ header: '서손사유', name: 'ETC_CN', width: 80, className: 'text-center' },
{ header: '처리상태명', name: 'CRDN_STTS_NM', width: 80},
{ header: '민원접수번호', name: 'CVLCPT_RCPT_NO', width: 150, className: 'text-center' },
{ header: '민원접수일자', name: 'CVLCPT_RCPT_YMD', width: 80, className: 'text-center' },
{ header: '처리기한', name: 'CVLCPT_PRCS_PRNMNT_DT', width: 80, className: 'text-center' },
{ header: '신고자', name: 'CVLCPT_APLCNT_NM', width: 80, className: 'text-center' },
{ header: '등록구분', name: 'CRDN_REG_SE_CD', width: 50, className: 'text-center' },
{ header: '등록일시', name: 'REG_DT', width: 150, className: 'text-center' }, { header: '등록일시', name: 'REG_DT', width: 150, className: 'text-center' },
{ header: '최종처리일시', name: 'MDFCN_DT', width: 150, className: 'text-center' }, { header: '최종처리일시', name: 'MDFCN_DT', width: 150, className: 'text-center' },
{ header: '상태', name: 'CRDN_STTS_CD', hidden: true },
{ header: '서손ID', name: 'LEVY_EXCL_ID', hidden: true },
{ header: '소유자ID', name: 'RTPYR_ID', hidden: true },
{ header: '서손사유코드', name: 'LEVY_EXCL_RSN_CD', hidden: true },
{ header: 'interfaceSeqN', name: 'INTERFACE_SEQN', hidden: true } { header: 'interfaceSeqN', name: 'INTERFACE_SEQN', hidden: true }
]; ];
thisPO.gridOptions = { thisPO.gridOptions = {

Loading…
Cancel
Save