부과제외 - 부과제외 관리 메뉴 추가.

main
jjh 1 year ago
parent 06624a6f3f
commit f26ec6b864

@ -0,0 +1,83 @@
package cokr.xit.fims.excl;
import cokr.xit.foundation.AbstractEntity;
import java.lang.String;
import lombok.Getter;
import lombok.Setter;
/**
*
* @author JoJH
*/
@Getter
@Setter
public class Excl extends AbstractEntity {
/**
*
*/
private String sggCd;
/**
*
*/
private String TaskSeCd;
/**
*
*/
private String vhrno;
/**
* ID
*/
private String levyExclId;
/**
* ID
*/
private String crdnId;
/**
*
*/
private String levyExclSeCd;
/**
*
*/
private String levyExclYmd;
/**
*
*/
private String levyExclRsnCd;
/**
*
*/
private String etcCn;
/**
*
*/
private String delYn;
/**
*
*/
private String delDt;
/**
*
*/
private String dltr;
/**
*
*/
private String delRsn;
}

@ -0,0 +1,142 @@
package cokr.xit.fims.excl;
import cokr.xit.foundation.component.QueryRequest;
/**
*
* <p> :
*
* <pre>
* ============ ============
* 2023-06-23 JoJH
* ================================
* </pre>
*/
public class ExclQuery extends QueryRequest {
private static final long serialVersionUID = 1L;
// 기본 필수 조회 조건
private String sggCd; // 시군구 코드
private String taskSeCd; // 업무 구분 코드
// 업무 조회 조건
private String levyExclId; // 부과 제외 ID
private String crdnId; // 단속 ID
private String levyExclSeCd; // 부과 제외 구분 코드
private String levyExclYmd; // 부과 제외 일자
private String levyExclRsnCd; // 부과 제외 사유 코드
private String delYn; // 삭제 여부
private String vhrno; // 차량번호
private String rtpyrNo; // 납부자 번호
private String rtpyrNm; // 납부자 명
public String getSggCd() {
return ifEmpty(sggCd, () -> null);
}
public <T extends ExclQuery> T setSggCd(String sggCd) {
this.sggCd = sggCd;
return self();
}
public String getTaskSeCd() {
return ifEmpty(taskSeCd, () -> null);
}
public <T extends ExclQuery> T setTaskSeCd(String taskSeCd) {
this.taskSeCd = taskSeCd;
return self();
}
public String getLevyExclId() {
return ifEmpty(levyExclId, () -> null);
}
public <T extends ExclQuery> T setLevyExclId(String levyExclId) {
this.levyExclId = levyExclId;
return self();
}
public String getCrdnId() {
return ifEmpty(crdnId, () -> null);
}
public <T extends ExclQuery> T setCrdnId(String crdnId) {
this.crdnId = crdnId;
return self();
}
public String getLevyExclSeCd() {
return ifEmpty(levyExclSeCd, () -> null);
}
public <T extends ExclQuery> T setLevyExclSeCd(String levyExclSeCd) {
this.levyExclSeCd = levyExclSeCd;
return self();
}
public String getLevyExclYmd() {
return ifEmpty(levyExclYmd, () -> null);
}
public <T extends ExclQuery> T setLevyExclYmd(String levyExclYmd) {
this.levyExclYmd = levyExclYmd;
return self();
}
public String getLevyExclRsnCd() {
return ifEmpty(levyExclRsnCd, () -> null);
}
public <T extends ExclQuery> T setLevyExclRsnCd(String levyExclRsnCd) {
this.levyExclRsnCd = levyExclRsnCd;
return self();
}
public String getDelYn() {
return ifEmpty(delYn, () -> null);
}
public <T extends ExclQuery> T setDelYn(String delYn) {
this.delYn = delYn;
return self();
}
public String getVhrno() {
return ifEmpty(vhrno, () -> null);
}
public <T extends ExclQuery> T setVhrno(String vhrno) {
this.vhrno = vhrno;
return self();
}
public String getRtpyrNo() {
return ifEmpty(rtpyrNo, () -> null);
}
public <T extends ExclQuery> T setRtpyrNo(String rtpyrNo) {
this.rtpyrNo = rtpyrNo;
return self();
}
public String getRtpyrNm() {
return ifEmpty(rtpyrNm, () -> null);
}
public <T extends ExclQuery> T setRtpyrNm(String rtpyrNm) {
this.rtpyrNm = rtpyrNm;
return self();
}
}

@ -0,0 +1,98 @@
package cokr.xit.fims.excl.dao;
import java.util.List;
import java.util.Map;
import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
import cokr.xit.fims.excl.Excl;
import cokr.xit.fims.excl.ExclQuery;
import cokr.xit.foundation.component.AbstractMapper;
import cokr.xit.foundation.data.DataObject;
/** DAO
*
* <p> :
*
* <pre>
* ============ ============
* 2023-06-23 JoJH
* ================================
* </pre>
*/
@Mapper("excl01Mapper")
public interface Excl01Mapper extends AbstractMapper {
/** .<br />
* @param req
* @return
*/
List<DataObject> selectLevyExclList(ExclQuery req);
/** .
* @param req
* @return
*/
List<Excl> selectLevyExcls(ExclQuery req);
/** .
* @param params
* <ul><li>"levyExcl" - </li>
* <li>"currentUser" - </li>
* </ul>
* @return
*/
int insertLevyExcl(Map<String, Object> params);
/** .
* @param excl
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
default boolean insert(Excl excl) {
return excl != null && insertLevyExcl(params().set("excl", excl)) == 1;
}
/** .
* @param params
* <ul><li>"excl" - </li>
* <li>"currentUser" - </li>
* </ul>
* @return
*/
int updateLevyExcl(Map<String, Object> params);
/** .
* @param excl
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
default boolean update(Excl excl) {
return excl != null && updateLevyExcl(params().set("excl", excl)) == 1;
}
/** .
* @param params
* <ul><li>"excl" - </li>
* <li>"currentUser" - </li>
* </ul>
* @return
*/
int deleteLevyExcl(Map<String, ?> params);
/** .
* @param levyExcl
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
default boolean delete(Excl excl) {
return excl != null && deleteLevyExcl(params().set("excl", excl)) == 1;
}
}

@ -0,0 +1,61 @@
package cokr.xit.fims.excl.service;
import java.util.List;
import cokr.xit.fims.excl.Excl;
import cokr.xit.fims.excl.ExclQuery;
import cokr.xit.foundation.data.DataObject;
/** .
*
* <p> :
*
* <pre>
* ============ ============
* 2023-06-23 JoJH
* ================================
* </pre>
*/
public interface Excl01Service {
/** .
* @param req
* @return
*/
List<DataObject> getLevyExclList(ExclQuery req);
/** .
* @param req
* @return
*/
List<Excl> getLevyExcls(ExclQuery req);
/** .
* @param excl
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
boolean create(Excl excl);
/** .
* @param excl
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
boolean update(Excl excl);
/** .
* @param excl
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
boolean remove(Excl excl);
}

@ -0,0 +1,81 @@
package cokr.xit.fims.excl.service.bean;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import cokr.xit.fims.excl.Excl;
import cokr.xit.fims.excl.ExclQuery;
import cokr.xit.fims.excl.dao.Excl01Mapper;
import cokr.xit.foundation.AbstractComponent;
import cokr.xit.foundation.data.DataObject;
/** Bean
*
* <p> :
*
* <pre>
* ============ ============
* 2023-06-23 JoJH
* ================================
* </pre>
*/
@Component("excl01Bean")
public class Excl01Bean extends AbstractComponent {
/** 부과제외 대장 정보 DAO */
@Resource(name = "excl01Mapper")
private Excl01Mapper excl01Mapper;
/** .
* @param req
* @return
*/
public List<DataObject> getLevyExclList(ExclQuery req) {
return excl01Mapper.selectLevyExclList(req);
}
/** .
* @param req
* @return
*/
public List<Excl> getLevyExcls(ExclQuery req) {
return excl01Mapper.selectLevyExcls(req);
}
/** .
* @param excl
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
public boolean create(Excl excl) {
return excl01Mapper.insert(excl);
}
/** .
* @param excl
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
public boolean update(Excl excl) {
return excl01Mapper.update(excl);
}
/** .
* @param excl
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
public boolean remove(Excl excl) {
return excl01Mapper.delete(excl);
}
}

@ -0,0 +1,57 @@
package cokr.xit.fims.excl.service.bean;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cokr.xit.fims.excl.Excl;
import cokr.xit.fims.excl.ExclQuery;
import cokr.xit.fims.excl.service.Excl01Service;
import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject;
/** .
*
* <p> :
*
* <pre>
* ============ ============
* 2023-06-23 JoJH
* ================================
* </pre>
*/
@Service("excl01Service")
public class Excl01ServiceBean extends AbstractServiceBean implements Excl01Service {
/** 부과제외 대장 정보 Bean */
@Resource(name = "excl01Bean")
protected Excl01Bean excl01Bean;
@Override
public List<DataObject> getLevyExclList(ExclQuery req) {
return excl01Bean.getLevyExclList(req);
}
@Override
public List<Excl> getLevyExcls(ExclQuery req) {
return excl01Bean.getLevyExcls(req);
}
@Override
public boolean create(Excl excl) {
return excl01Bean.create(excl);
}
@Override
public boolean update(Excl excl) {
return excl01Bean.update(excl);
}
@Override
public boolean remove(Excl excl) {
return excl01Bean.remove(excl);
}
}

@ -0,0 +1,119 @@
package cokr.xit.fims.excl.web;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
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.excl.Excl;
import cokr.xit.fims.excl.ExclQuery;
import cokr.xit.fims.excl.service.Excl01Service;
/**
*
* <p> :
*
* <pre>
* ============ ============
* 2023-06-23 JoJH
* ================================
* </pre>
*/
@Controller
@RequestMapping(name="부과제외 대장", value="/excl/excl01")
public class Excl01Controller extends ApplicationController {
/**부과제외 대장 서비스*/
@Resource(name="excl01Service")
protected Excl01Service excl01Service;
/** (excl/excl01/010-main)) .
* {@link #getLevyExclList(ExclQuery) } .
* @return /excl/excl01/010-main
*/
@RequestMapping(name="부과제외 대장 메인", value="/010/main.do")
public ModelAndView main() {
ModelAndView mav = getLevyExclList(new ExclQuery().setPageNum(1));
mav.setViewName("fims/excl/excl01010-main");
mav.addObject("pageName", "excl01010-main");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM054");
mav.addObject("FIM054List", commonCodes.get("FIM054"));
addCodes(commonCodes, mav, "FIM054");
return mav;
}
/** .<br />
* {@link LevyExclService#getLevyExclList(LevyExclQuery)}
* @param req
* @return jsonView
* <pre><code> {
* "levyExclList": [ ]
* "levyExclStart":
* "levyExclFetch":
* "levyExclTotal":
* }</code></pre>
*/
@RequestMapping(name="부과제외 대장 조회", value="/010/list.do")
public ModelAndView getLevyExclList(ExclQuery req) {
List<?> result = excl01Service.getLevyExclList(setFetchSize(req));
return setCollectionInfo(new ModelAndView("jsonView"), result, "excl");
}
/** .
* @param levyExcl
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name="부과제외 대장 등록", value="/010/create.do")
public ModelAndView create(Excl excl) {
boolean saved = excl01Service.create(excl);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** .
* @param levyExcl
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name="부과제외 대장 수정", value="/010/update.do")
public ModelAndView update(Excl excl) {
boolean saved = excl01Service.update(excl);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** .
* @param levyExclIDs
* @return jsonView
* <pre><code> {
* "affected":
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name="부과제외 대장 제거", value="/010/remove.do")
public ModelAndView remove(Excl excl) {
boolean saved = excl01Service.remove(excl);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
}

@ -0,0 +1,337 @@
<?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.excl.dao.Excl01Mapper">
<!-- 부과제외 대장 정보 매퍼
========== 변경 이력 ==========
2023-06-23 JoJH 최초 작성
============================ -->
<resultMap id="exclRow" type="cokr.xit.fims.excl.Excl">
<!-- TB_LEVY_EXCL 부과 제외 대장 -->
<result property="levyExclId" column="LEVY_EXCL_ID" /> <!-- 부과 제외 ID -->
<result property="crdnId" column="CRDN_ID" /> <!-- 단속 ID -->
<result property="levyExclSeCd" column="LEVY_EXCL_SE_CD" /> <!-- 부과 제외 구분 코드 -->
<result property="levyExclYmd" column="LEVY_EXCL_YMD" /> <!-- 부과 제외 일자 -->
<result property="levyExclRsnCd" column="LEVY_EXCL_RSN_CD" /> <!-- 부과 제외 사유 코드 -->
<result property="etcCn" column="ETC_CN" /> <!-- 기타 내용 -->
<result property="delYn" column="DEL_YN" /> <!-- 삭제 여부 -->
<result property="regDt" column="REG_DT" /> <!-- 등록 일시 -->
<result property="RGTR " column="RGTR" /> <!-- 등록자 -->
<result property="mdfcnDt" column="MDFCN_DT" /> <!-- 수정 일시 -->
<result property="mdfr" column="MDFR" /> <!-- 수정자 -->
<result property="delDt" column="DEL_DT" /> <!-- 삭제 일시 -->
<result property="dltr" column="DLTR" /> <!-- 삭제자 -->
<result property="delRsn" column="DEL_RSN" /> <!-- 삭제 사유 -->
<!-- TB_CRDN 단속 대장 -->
<result property="sggCd" column="SGG_CD" />
<result property="taskSeCd" column="TASK_SE_CD" />
<result property="crdnRegSeCd" column="CRDN_REG_SE_CD" />
<result property="crdnInptSeCd" column="CRDN_INPT_SE_CD" />
<result property="linkId" column="LINK_ID" />
<result property="crdnSeCd" column="CRDN_SE_CD" />
<result property="crdnYmd" column="CRDN_YMD" />
<result property="crdnTm" column="CRDN_TM" />
<result property="crdnYmdTm" column="CRDN_YMD_TM" />
<result property="vhrno" column="VHRNO" />
<result property="crdnStdgNm" column="CRDN_STDG_NM" />
<result property="crdnRoadNm" column="CRDN_ROAD_NM" />
<result property="crdnPlc" column="CRDN_PLC" />
<result property="dtlCrdnPlc" column="DTL_CRDN_PLC" />
<result property="TeamId" column="TEAM_ID" />
<result property="vltnId" column="VLTN_ID" />
<result property="crdnSpareaCd" column="CRDN_SPAREA_CD" />
<result property="crdnBgngTm" column="CRDN_BGNG_TM" />
<result property="crdnEndHr" column="CRDN_END_HR" />
<result property="crdnSn" column="CRDN_SN" />
<result property="gpsX" column="GPS_X" />
<result property="gpsY" column="GPS_Y" />
<result property="moscX" column="MOSC_X" />
<result property="moscY" column="MOSC_Y" />
<result property="towngYn" column="TOWNG_YN" />
<result property="atchFileCnt" column="ATCH_FILE_CNT" />
<result property="vin" column="VIN" />
<result property="vhclNm" column="VHCL_NM" />
<result property="vhclColor" column="VHCL_COLOR" />
<result property="useFuelCd" column="USE_FUEL_CD" />
<result property="usgSeCd" column="USG_SE_CD" />
<result property="mxmmLoadQy" column="MXMM_LOAD_QY" />
<result property="tkcarPsncpaCnt" column="TKCAR_PSNCPA_CNT" />
<result property="carmdlAsortNm" column="CARMDL_ASORT_NM" />
<result property="carmdlTypeNm" column="CARMDL_TYPE_NM" />
<result property="carmdlClsfNm" column="CARMDL_CLSF_NM" />
<result property="ersrYmd" column="ERSR_YMD" />
<result property="ffnlgCarmdlCd" column="FFNLG_CARMDL_CD" />
<result property="parkngPsbltyRsltCd" column="PARKNG_PSBLTY_RSLT_CD" />
<result property="vltnNmtm" column="VLTN_NMTM" />
<result property="ovtimeYn" column="OVTIME_YN" />
<result property="rvwSeCd" column="RVW_SE_CD" />
<result property="rvwPrcsScrnNm" column="RVW_PRCS_SCRN_NM" />
<result property="rvwDt" column="RVW_DT" />
<result property="rvwr" column="RVWR" />
<result property="ffnlgAmt" column="FFNLG_AMT" />
<result property="ffnlgRductRt" column="FFNLG_RDUCT_RT" />
<result property="levyAmt" column="LEVY_AMT" />
<result property="advntceBgngYmd" column="ADVNTCE_BGNG_YMD" />
<result property="advntceDudtYmd" column="ADVNTCE_DUDT_YMD" />
<result property="advntceLevyAmt" column="ADVNTCE_LEVY_AMT" />
<result property="opnnSbmsnYn" column="OPNN_SBMSN_YN" />
<result property="levyId" column="LEVY_ID" />
<result property="crdnSttsCd" column="CRDN_STTS_CD" />
<result property="crdnSttsChgDt" column="CRDN_STTS_CHG_DT" />
<result property="adtnAmt" column="ADTN_AMT" />
<result property="minusAmt" column="MINUS_AMT" />
<result property="rcvmtAmt" column="RCVMT_AMT" />
<result property="bfrCrdnId" column="BFR_CRDN_ID" />
<!-- TB_PAYER 납부자 대장 -->
<result property="rtpyrId" column="RTPYR_ID" />
<result property="rtpyrInptSeCd" column="RTPYR_INPT_SE_CD" />
<result property="rtpyrSeCd" column="RTPYR_SE_CD" />
<result property="rtpyrNo" column="RTPYR_NO" />
<result property="rtpyrNm" column="RTPYR_NM" />
<result property="rtpyrCttpcSeCd" column="RTPYR_CTTPC_SE_CD" />
<result property="rtpyrCttpc" column="RTPYR_CTTPC" />
<result property="rtpyrEml" column="RTPYR_EML" />
<result property="rtpyrBrdt" column="RTPYR_BRDT" />
<result property="rtpyrSttsCd" column="RTPYR_STTS_CD" />
<result property="addrSeCd" column="ADDR_SE_CD" />
<result property="zip" column="ZIP" />
<result property="roadNmCd" column="ROAD_NM_CD" />
<result property="udgdSeCd" column="UDGD_SE_CD" />
<result property="bmno" column="BMNO" />
<result property="bsno" column="BSNO" />
<result property="bldgMngNo" column="BLDG_MNG_NO" />
<result property="stdgCd" column="STDG_CD" />
<result property="dongCd" column="DONG_CD" />
<result property="mtnSeCd" column="MTN_SE_CD" />
<result property="mno" column="MNO" />
<result property="sno" column="SNO" />
<result property="spclDong" column="SPCL_DONG" />
<result property="spclHo" column="SPCL_HO" />
<result property="spclAddr" column="SPCL_ADDR" />
<result property="addr" column="ADDR" />
<result property="dtlAddr" column="DTL_ADDR" />
<result property="wholAddr" column="WHOL_ADDR" />
</resultMap>
<sql id="selectInfo">
SELECT LEVY_EXCL_ID <!-- 부과 제외 ID -->
, CRDN_ID <!-- 단속 ID -->
, LEVY_EXCL_SE_CD <!-- 부과 제외 구분 코드 -->
, LEVY_EXCL_YMD <!-- 부과 제외 일자 -->
, LEVY_EXCL_RSN_CD <!-- 부과 제외 사유 코드 -->
, ETC_CN <!-- 기타 내용 -->
, DEL_YN <!-- 삭제 여부 -->
, REG_DT <!-- 등록 일시 -->
, RGTR <!-- 등록자 -->
, MDFCN_DT <!-- 수정 일시 -->
, MDFR <!-- 수정자 -->
, DEL_DT <!-- 삭제 일시 -->
, DLTR <!-- 삭제자 -->
, DEL_RSN <!-- 삭제 사유 -->
FROM TB_LEVY_EXCL
</sql>
<sql id="selectList">
SELECT A.LEVY_EXCL_ID <!-- 부과 제외 ID -->
, A.CRDN_ID <!-- 단속 ID -->
, A.LEVY_EXCL_SE_CD <!-- 부과 제외 구분 코드 -->
, A.LEVY_EXCL_YMD <!-- 부과 제외 일자 -->
, A.LEVY_EXCL_RSN_CD <!-- 부과 제외 사유 코드 -->
, A.ETC_CN <!-- 기타 내용 -->
, A.DEL_YN <!-- 삭제 여부 -->
, A.REG_DT <!-- 등록 일시 -->
, A.RGTR <!-- 등록자 -->
, A.MDFCN_DT <!-- 수정 일시 -->
, A.MDFR <!-- 수정자 -->
, A.DEL_DT <!-- 삭제 일시 -->
, A.DLTR <!-- 삭제자 -->
, A.DEL_RSN <!-- 삭제 사유 -->
, B.SGG_CD
, B.TASK_SE_CD
, B.CRDN_REG_SE_CD
, B.CRDN_INPT_SE_CD
, B.LINK_ID
, B.CRDN_SE_CD
, B.CRDN_YMD
, B.CRDN_TM
, (CONCAT(B.CRDN_YMD, B.CRDN_TM)) AS CRDN_YMD_TM
, B.VHRNO
, B.CRDN_STDG_NM
, B.CRDN_ROAD_NM
, B.CRDN_PLC
, B.DTL_CRDN_PLC
, B.TEAM_ID
, B.VLTN_ID
, B.CRDN_SPAREA_CD
, B.CRDN_BGNG_TM
, B.CRDN_END_HR
, B.CRDN_SN
, B.GPS_X
, B.GPS_Y
, B.MOSC_X
, B.MOSC_Y
, B.TOWNG_YN
, B.ATCH_FILE_CNT
, B.VIN
, B.VHCL_NM
, B.VHCL_COLOR
, B.USE_FUEL_CD
, B.USG_SE_CD
, B.MXMM_LOAD_QY
, B.TKCAR_PSNCPA_CNT
, B.CARMDL_ASORT_NM
, B.CARMDL_TYPE_NM
, B.CARMDL_CLSF_NM
, B.ERSR_YMD
, B.FFNLG_CARMDL_CD
, B.PARKNG_PSBLTY_RSLT_CD
, B.VLTN_NMTM
, B.OVTIME_YN
, B.RVW_SE_CD
, B.RVW_PRCS_SCRN_NM
, B.RVW_DT
, B.RVWR
, B.FFNLG_AMT
, B.FFNLG_RDUCT_RT
, B.LEVY_AMT
, B.ADVNTCE_BGNG_YMD
, B.ADVNTCE_DUDT_YMD
, B.ADVNTCE_LEVY_AMT
, B.OPNN_SBMSN_YN
, B.LEVY_ID
, B.CRDN_STTS_CD
, B.CRDN_STTS_CHG_DT
, B.ADTN_AMT
, B.MINUS_AMT
, B.RCVMT_AMT
, B.BFR_CRDN_ID
, C.RTPYR_ID
, C.RTPYR_INPT_SE_CD
, C.RTPYR_SE_CD
, C.RTPYR_NO
, C.RTPYR_NM
, C.RTPYR_CTTPC_SE_CD
, C.RTPYR_CTTPC
, C.RTPYR_EML
, C.RTPYR_BRDT
, C.RTPYR_STTS_CD
, C.ADDR_SE_CD
, C.ZIP
, C.ROAD_NM_CD
, C.UDGD_SE_CD
, C.BMNO
, C.BSNO
, C.BLDG_MNG_NO
, C.STDG_CD
, C.DONG_CD
, C.MTN_SE_CD
, C.MNO
, C.SNO
, C.SPCL_DONG
, C.SPCL_HO
, C.SPCL_ADDR
, C.ADDR
, C.DTL_ADDR
, C.WHOL_ADDR
FROM TB_LEVY_EXCL A
INNER JOIN TB_CRDN B ON (A.CRDN_ID = B.CRDN_ID)
LEFT OUTER JOIN TB_PAYER C ON (B.RTPYR_ID = C.RTPYR_ID)
</sql>
<select id="selectLevyExclList" parameterType="map" resultType="dataobject">/* 부과제외 대장 목록 조회(excl01Mapper.selectLevyExclList) */
<include refid="utility.paging-prefix" />
<include refid="selectList" />
<where>
<if test = "sggCd != null">
AND B.SGG_CD = #{sggCd}
</if>
<if test = "taskSeCd != null">
AND B.TASK_SE_CD = #{taskSeCd}
</if>
<if test = "levyExclSeCd != null">
AND A.LEVY_EXCL_SE_CD = #{levyExclSeCd}
</if>
<if test = "levyExclYmd != null">
AND A.LEVY_EXCL_YMD = #{levyExclYmd}
</if>
<if test = "levyExclRsnCd != null">
AND A.LEVY_EXCL_RSN_CD = #{levyExclRsnCd}
</if>
<if test = "delYn != null">
AND A.DEL_YN = 'N'
</if>
<if test = "term != null">
AND A.${by} LIKE CONCAT('%', #{term}, '%')
</if>
</where>
<include refid="utility.orderBy" />
<include refid="utility.paging-suffix" />
</select>
<select id="selectLevyExcls" parameterType="map" resultMap="exclRow">/* 부과제외 대장 객체 가져오기(excl01Mapper.selectLevyExcls) */
<include refid="selectInfo" />
<where>
<if test = "levyExclId != null">
AND A.LEVY_EXCL_ID = #{levyExclId}
</if>
</where>
<include refid="utility.orderBy" />
</select>
<insert id="insertLevyExcl" parameterType="map">/* 부과제외 대장 등록(excl01Mapper.insertLevyExcl) */
INSERT INTO TB_LEVY_EXCL (
LEVY_EXCL_ID <!-- 부과 제외 ID -->
, CRDN_ID <!-- 단속 ID -->
, LEVY_EXCL_SE_CD <!-- 부과 제외 구분 코드 -->
, LEVY_EXCL_YMD <!-- 부과 제외 일자 -->
, LEVY_EXCL_RSN_CD <!-- 부과 제외 사유 코드 -->
, ETC_CN <!-- 기타 내용 -->
, DEL_YN <!-- 삭제 여부 -->
, REG_DT <!-- 등록 일시 -->
, RGTR <!-- 등록자 -->
, MDFCN_DT <!-- 수정 일시 -->
, MDFR <!-- 수정자 -->
, DEL_DT <!-- 삭제 일시 -->
, DLTR <!-- 삭제자 -->
, DEL_RSN <!-- 삭제 사유 -->
)
VALUES (
#{levyExclId} <!-- 부과 제외 ID -->
, #{crdnId} <!-- 단속 ID -->
, #{levyExclSeCd} <!-- 부과 제외 구분 코드 -->
, #{levyExclYmd} <!-- 부과 제외 일자 -->
, #{levyExclRsnCd} <!-- 부과 제외 사유 코드 -->
, #{etcCn} <!-- 기타 내용 -->
, #{delYn} <!-- 삭제 여부 -->
, <include refid="utility.now" /> <!-- 등록 일시 -->
, #{currentUser.id} <!-- 등록자 -->
, <include refid="utility.now" /> <!-- 수정 일시 -->
, #{currentUser.id} <!-- 수정자 -->
, #{delDt} <!-- 삭제 일시 -->
, #{dltr} <!-- 삭제자 -->
, #{delRsn} <!-- 삭제 사유 -->
)
</insert>
<update id="updateLevyExcl" parameterType="map">/* 부과제외 대장 수정(excl01Mapper.updateLevyExcl) */
UPDATE TB_LEVY_EXCL
SET LEVY_EXCL_SE_CD = #{levyExclSeCd} <!-- 부과 제외 구분 코드 -->
, LEVY_EXCL_YMD = #{levyExclYmd} <!-- 부과 제외 일자 -->
, LEVY_EXCL_RSN_CD = #{levyExclRsnCd} <!-- 부과 제외 사유 코드 -->
, ETC_CN = #{etcCn} <!-- 기타 내용 -->
, MDFCN_DT = <include refid="utility.now" /> <!-- 수정 일시 -->
, MDFR = #{currentUser.id} <!-- 수정자 -->
WHERE LEVY_EXCL_ID = #{levyExclId} <!-- 부과 제외 ID -->
</update>
<update id="deleteLevyExcl" parameterType="map">/* 부과제외 대장 삭제(excl01Mapper.deleteLevyExcl) */
UPDATE TB_LEVY_EXCL
SET DEL_YN = 'Y' <!-- 삭제 여부 -->
, DEL_DT = <include refid="utility.now" /> <!-- 삭제 일시 -->
, DLTR = #{currentUser.id} <!-- 삭제자 -->
, DEL_RSN = #{delRsn} <!-- 삭제 사유 -->
WHERE LEVY_EXCL_ID = #{levyExclId} <!-- 부과 제외 ID -->
</update>
</mapper>

@ -0,0 +1,300 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<!-- inner page html -->
<div class="content-wrapper">
<div class="container-xxl flex-grow-1 px-0">
<c:set var="prefixName" scope="request">부과제외 자료 조회</c:set>
<div class="card">
<div class="wrapper-list">
<div>
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark">초기화</button>
<span class="container-window-btn-right">
</span>
</div>
<form id="frmSearch--${pageName}" name="frmSearch">
<div class="container-search">
<div class="row">
<div class="col-11">
<div class="row">
<div class="col-12">
<label class="form-label fw-bold form-search-title">시스템구분</label>
<span class="form-search-linebox">
<c:forEach items="${FIM054List}" var="item">
<label>
<input name="taskSeCd" type="radio" value="${item.code}"
class="form-check-input" alt="업무구분"
onchange="pageObject['${pageName}'].fnResetAndChangeBiz(this.value);">
${item.value}
</label>
</c:forEach>
</span>
</div>
<div class="col-12">
<select id="schDateOpt--${pageName}" name="schDateOpt" class="form-select">
<option value="levyExclYmd">부과제외일자</option>
<option value="regDt">등록일자</option>
</select>
<span class="form-search-linebox">
<input id="schDateFrom--${pageName}" class="form-control form-date" data-fmt-type="day" name="schDateFrom" type="text" title="시작 날짜 선택">
<button type="button" class="bx bx-calendar bg-white"></button>
~
<input id="schDateTo--${pageName}" class="form-control form-date" data-fmt-type="day" name="schDateTo" type="text" title="종료 날짜 선택">
<button type="button" class="bx bx-calendar bg-white"></button>
</span>
</div>
<div class="col-12">
<label class="form-label fw-bold form-search-title">차량번호</label>
<input type="text" id="vhrno--${pageName}" name="vhrno" class="form-control" />
</div>
</div>
</div>
<div class="col-1 d-flex align-items-center justify-content-center">
<button type="button" class="btn btn-search btn-square h-px-75" id="btnSearch--${pageName}" title="검색">검색</button>
</div>
</div>
</div>
</form>
<div>
<span class="container-page-btn">
<div id="totCnt--${pageName}">전체 ㅣ <span></span></div>
<span class="container-window-btn-right">
선택 | n건
<a href="#" class="btn btn-blue" id="" title="업무처리1">업무 처리1</a>
<a href="#" class="btn btn-blue" id="" title="업무처리2">업무 처리2</a>
</span>
</span>
</div>
<div class="card-datatable text-nowrap">
<div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="table-responsive--${pageName}" class="table-responsive"
style="max-width: 1200px;overflow-x: scroll;height:400px;overflow-y: scroll;border-width: 1px">
<table id="DataTables_Table_0--${pageName}"
class="datatables-ajax table table-bordered dataTable no-footer"
aria-describedby="DataTables_Table_0_info"
>
<thead>
<tr id="exclTheadTr--${pageName}">
</tr>
</thead>
<tbody id="exclTbody--${pageName}">
</tbody>
</table>
</div>
<div class="d-flex flex-row p-3 justify-content-between">
<label id="exclPaging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
<ul id="exclPaging--${pageName}" class="pagination pagination-primary">
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<jsp:include page="/WEB-INF/jsp/include/bottom.jsp" />
<div class="content-backdrop fade"></div>
</div>
<script>
/**************************************************************************
* Global Variable
**************************************************************************/
pageObject["${pageName}"] = {};
$(document).ready(function(){
var thisPO = pageObject["${pageName}"];
thisPO.exclControl = new DatasetControl({
prefix:"excl",
prefixName:"부과제외",
infoSize:"xl",
urls : {
load : "",
getInfo : ""
},
formats: {
CRDN_YMD_TM : datetimeFormat,
REG_DT : datetimeFormat,
MDFCN_DT : datetimeFormat,
CVLCPT_PRCS_PRNMNT_DT : dateFormat,
CVLCPT_RCPT_YMD : dateFormat,
RCVMT_AMT : numberFormat,
},
keymapper:info => info ? info.LEVY_EXCL_ID : "",
dataGetter:obj => obj.exclList,
appendData:true
});
thisPO.exclControl.onDatasetChange = obj => {
var prefix = obj.infoPrefix;
thisPO.renderExclList(obj);
$("#exclPaging--${pageName}").setPagingInfo({
list: thisPO.exclControl.dataset,
prefix: "exclPaging--${pageName}",
start: obj[prefix+"Start"],
totalSize: obj[prefix+"Total"],
fetchSize: obj[prefix+"Fetch"],
func: "pageObject['${pageName}'].exclControl.load({index})"
});
};
thisPO.fnResetAndChangeBiz = taskSeCd => {
$("#exclTbody--${pageName}").html("");
thisPO.exclControl.urls.load = wctx.url("/excl/excl01/010/list.do");
thisPO.exclControl.urls.getInfo = wctx.url("/sprt/sprt01/020/info.do");
}
thisPO.searchExclList = () => {
thisPO.exclControl.query = thisPO.getParams();
$("#exclTbody--${pageName}").html("");
thisPO.exclControl.load(1);
}
thisPO.scrollExclList = () => {
thisPO.exclControl.load(thisPO.exclControl.query.pageNum + 1);
}
thisPO.renderExclList = data => {
if(!thisPO.exclControl.appendData){
$("#exclTbody--${pageName}").html("");
}
var exclList = thisPO.exclControl.dataset;
var empty = exclList.empty;
var trs = empty ? [ thisPO.tbodyTemplate.notFound ] : exclList.inStrings(thisPO.tbodyTemplate.found);
$("#exclTbody--${pageName}").html(trs.join());
//보안모드
if($("#securityMode--top").is(":checked")){
fn_securityModeToggle(true);
} else {
fn_securityModeToggle(false);
}
}
thisPO.getParams = () => {
var form = $("#frmSearch--${pageName}");
return {
taskSeCd: form.find("[name='taskSeCd']:checked").val()
,vhrno : form.find("[name='vhrno']").val()
,by : form.find("[name='by']").val()
,term : form.find("[name='term']").val()
,schDateOpt: form.find("[name='schDateOpt']").val()
,schDateFrom: form.find("[name='schDateFrom']").val()
,schDateTo: form.find("[name='schDateTo']").val()
,fetchSize: 30
};
}
/* *******************************
* Grid
******************************* */
thisPO.gridColumns = [
{ header: '차량번호', name: 'VHRNO', width: 80, 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: 'ATCH_FILE_CNT', width: 40, className: 'text-center' },
{ header: '수납금액', name: 'RCVMT_AMT', width: 100, className: 'text-end' },
{ header: '위반횟수', name: 'VLTN_NMTM', width: 80, className: 'text-center' },
{ header: '위반장소', name: 'CRDN_PLC', width: 150 },
{ header: '주민번호(전체)', name: 'RTPYR_NO', width: 110, className: 'text-center privacy' },
{ header: '주민번호(마스킹)', name: 'RTPYR_NO_MASK', width: 110, className: 'text-center privacy-mask' },
{ 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: '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 }
];
thisPO.gridOptions = {
by : 'by--${pageName}',
byOutput : 'byOutput--${pageName}',
theadTr: 'exclTheadTr--${pageName}',
rowHeader: 'No.',
trDataKey: '"LEVY_EXCL_ID"',
infoPrefix: "excl",
prefixName : "부과제외",
clickEvent : "pageObject['${pageName}'].exclControl.setCurrent('{LEVY_EXCL_ID}')",
dblClickEvent : "pageObject['${pageName}'].exclControl.getInfo({})",
columns: thisPO.gridColumns
};
thisPO.tbodyTemplate = {};
//그리드 정보 초기화
thisPO.tbodyTemplate = initGrid(thisPO.gridOptions);
//달력 초기화
initDatepicker("frmSearch--${pageName}");
$('#schDateFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date);
$('#schDateTo--${pageName}').datepicker('setDate', new Date());
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
thisPO.fnResetAndChangeBiz(defaultBizValue);
//스크롤 이벤트 추가
$("#table-responsive--${pageName}").scroll(function(){
var el = $(this);
if(el.scrollTop() == 0){
return;
}
if((el[0].scrollHeight - el.scrollTop() + 15) == el.outerHeight()){
thisPO.scrollCrdnList();
}
});
$('#btnSearch--${pageName}').on('click', () => thisPO.searchExclList());
$('#btnMenualRegist--${pageName}').on('click', () => {
});
$('#btnExtrRegist--${pageName}').on('click', () => {
});
//보안모드
if($("#securityMode--top").is(":checked")){
fn_securityModeToggle(true);
} else {
fn_securityModeToggle(false);
}
});
</script>
Loading…
Cancel
Save