민원상담내역 건수 조회 추가.

main
jjh 10 months ago
parent e34261e97f
commit 1edb612699

@ -75,7 +75,7 @@ public class CvlcptDscsn extends AbstractEntity {
/**
*
*/
private String delYn;
private String delYN;
/**
*

@ -35,6 +35,12 @@ public interface CvlcptDscsnMapper extends AbstractMapper {
*/
List<DataObject> selectCvlcptDscsns(CvlcptDscsnQuery req);
/** .
* @param req
* @return
*/
DataObject selectCvlcptDscsnNocs(CvlcptDscsnQuery req);
/** 1 .
* @param cvlcptDscsnId ID
* @return

@ -30,6 +30,12 @@ public interface Sprt04Service {
*/
List<DataObject> getCvlcptDscsns(CvlcptDscsnQuery req);
/** .
* @param req
* @return
*/
DataObject getCvlcptDscsnNocs(CvlcptDscsnQuery req);
/** .<br />
* @param cvlcptDscsnId ID
* @return

@ -56,6 +56,18 @@ public class Sprt04Bean extends AbstractComponent {
return cvlcptDscsnMapper.selectCvlcptDscsns(req);
}
/** .
* @param req
* @return
*/
public DataObject getCvlcptDscsnNocs(CvlcptDscsnQuery req) {
if (req.getOrderBy() == null) {
req.setOrderBy("CD.CVLCPT_DSCSN_ID DESC");
}
return cvlcptDscsnMapper.selectCvlcptDscsnNocs(req);
}
/** ID .<br />
* @param cvlcptDscsnId ID
* @return

@ -39,6 +39,11 @@ public class Sprt04ServiceBean extends AbstractServiceBean implements Sprt04Serv
return sprt04Bean.getCvlcptDscsns(req);
}
@Override
public DataObject getCvlcptDscsnNocs(CvlcptDscsnQuery req) {
return sprt04Bean.getCvlcptDscsnNocs(req);
}
@Override
public DataObject getCvlcptDscsnInfo(CvlcptDscsnQuery req) {
if (req.getCvlcptDscsnId() != null) {

@ -142,6 +142,24 @@ public class Sprt04Controller extends ApplicationController {
}
}
/** .<br />
* {@link CvlcptDscsnService#getCvlcptDscsnList(CvlcptDscsnQuery)}
* @param req
* @return jsonView
* <pre>{
* "cvlcptDscsnInfo":
* }</pre>
*/
public ModelAndView getCvlcptDscsnNocs(CvlcptDscsnQuery req) {
//
DataObject result = sprt04Service.getCvlcptDscsnNocs(req);
boolean json = jsonResponse();
return new ModelAndView("jsonView")
.addObject("cvlcptDscsnNocs", json ? result : toJson(result));
}
/** ID (info) .
* @param SprtQuery req
* @return fims/sprt/sprt04020-info jsonView

@ -20,7 +20,7 @@
<result property="cvlprNm" column="CVLPR_NM" /> <!-- 민원인 명 -->
<result property="cvlprCttpc" column="CVLPR_CTTPC" /> <!-- 민원인 연락처 -->
<result property="dscsnCn" column="DSCSN_CN" /> <!-- 상담 내용 -->
<result property="delYn" column="DEL_YN" /> <!-- 삭제 여부 -->
<result property="delYN" column="DEL_YN" /> <!-- 삭제 여부 -->
<result property="createdAt" column="REG_DT" /> <!-- 등록 일시 -->
<result property="createdBy" column="RGTR" /> <!-- 등록자 -->
<result property="lastModified" column="MDFCN_DT" /> <!-- 수정 일시 -->
@ -35,7 +35,6 @@
, CD.SGG_CD <!-- 시군구 코드 -->
, CD.TASK_SE_CD <!-- 업무 구분 코드 -->
, CD.CVLCPT_RCPT_SE_CD <!-- 민원 접수 구분 코드 -->
, (SELECT GET_CODE_NM('FIM065', CD.CVLCPT_RCPT_SE_CD) FROM DUAL) AS CVLCPT_RCPT_SE_NM <!-- 민원 접수 구분 명 -->
, CD.CRDN_ID <!-- 단속 ID -->
, CD.VHRNO <!-- 차량번호 -->
, CD.RTPYR_NO <!-- 납부자 번호 -->
@ -47,14 +46,15 @@
, CD.DEL_YN <!-- 삭제 여부 -->
, CD.REG_DT <!-- 등록 일시 -->
, CD.RGTR <!-- 등록자 -->
, (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = CD.RGTR) AS RGTR_NM <!-- 등록자 명 -->
, CD.MDFCN_DT <!-- 수정 일시 -->
, CD.MDFR <!-- 수정자 -->
, (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = CD.MDFR) AS MDFR_NM <!-- 수정자 명 -->
, CD.DEL_DT <!-- 삭제 일시 -->
, CD.DLTR <!-- 삭제자 -->
, (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = CD.DLTR) AS DLTR_NM <!-- 삭제자 명 -->
, CD.DEL_RSN <!-- 삭제 사유 -->
, (SELECT GET_CODE_NM('FIM065', CD.CVLCPT_RCPT_SE_CD) FROM DUAL) AS CVLCPT_RCPT_SE_NM <!-- 민원 접수 구분 명 -->
, (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = CD.RGTR) AS RGTR_NM <!-- 등록자 명 -->
, (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = CD.MDFR) AS MDFR_NM <!-- 수정자 명 -->
, (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = CD.DLTR) AS DLTR_NM <!-- 삭제자 명 -->
FROM TB_CVLCPT_DSCSN CD
</sql>
@ -115,6 +115,23 @@
<include refid="utility.orderBy" />
</select>
<select id="selectCvlcptDscsnNocs" parameterType="map" resultType="dataobject">/* 민원 상담 내용 객체 가져오기(cvlcptDscsnCnMapper.selectCvlcptDscsns) */
SELECT COUNT(*) AS NOCS <!-- 건수 -->
FROM TB_CVLCPT_DSCSN
WHERE SGG_CD = #{sggCd} <!-- 시군구 코드 -->
AND TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
<if test="crdnId != null">
AND CRDN_ID = #{crdnId} <!-- 단속 ID -->
</if>
<if test="vhrno != null">
AND VHRNO = #{vhrno} <!-- 차량번호 -->
</if>
<if test="rtpyrNo != null">
AND RTPYR_NO = #{rtpyrNo} <!-- 납부자 번호 -->
</if>
AND DEL_YN = 'N'
</select>
<insert id="insertCvlcptDscsn" parameterType="map">/* 민원 상담 내용 등록(cvlcptDscsnMapper.insertCvlcptDscsn) */
<selectKey resultType="string" keyProperty="cvlcptDscsn.cvlcptDscsnId" keyColumn="NEW_ID" order="BEFORE">
SELECT CONCAT(DATE_FORMAT(CURRENT_DATE, '%Y'), LPAD(CAST(IFNULL(MAX(SUBSTRING(CVLCPT_DSCSN_ID, 5)) + 1, 1) AS INT), 16, '0')) AS NEW_ID
@ -214,8 +231,8 @@
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
WHERE C.CRDN_ID = #{crdnId} <!-- 단속 ID -->
<choose>
<when test="delYn != null">
AND C.DEL_YN = #{delYn}
<when test="delYN != null">
AND C.DEL_YN = #{delYN}
</when>
<otherwise>
AND C.DEL_YN = 'N'

Loading…
Cancel
Save