1면 방해 추가

main
이범준 1 year ago
parent 55796c145e
commit 046912c80e

@ -13,7 +13,7 @@ public interface GlobalStngMapper extends AbstractMapper {
* @param query
* @return
*/
int selectBasicAmt(CrdnQuery query);
String selectBasicAmt(CrdnQuery query);
/** .<br />
* @param institute

@ -116,8 +116,9 @@ public class CrdnStngBean extends AbstractComponent {
query.setDtlAmtDcsnCd("02");
}
int ffnlgAmt = globalStngMapper.selectBasicAmt(query);
if(crdn.getOvtimeYn().equals("Y")) {
int ffnlgAmt = Integer.parseInt(ifEmpty(globalStngMapper.selectBasicAmt(query), () -> "0"));
if(ffnlgAmt > 0 && crdn.getOvtimeYn().equals("Y")) {
ffnlgAmt += 10000;
}
@ -137,7 +138,7 @@ public class CrdnStngBean extends AbstractComponent {
query.setAmtDcsnCd("03");
}
int ffnlgAmt = globalStngMapper.selectBasicAmt(query);
int ffnlgAmt = Integer.parseInt(ifEmpty(globalStngMapper.selectBasicAmt(query), () -> "0"));
amt[0] = ffnlgAmt;
amt[1] = ffnlgAmt;
@ -146,13 +147,13 @@ public class CrdnStngBean extends AbstractComponent {
query.setAmtDcsnCdGroupId("FIM006");
query.setAmtDcsnCd(crdn.getVltnCd());
int ffnlgAmt = globalStngMapper.selectBasicAmt(query);
int ffnlgAmt = Integer.parseInt(ifEmpty(globalStngMapper.selectBasicAmt(query), () -> "0"));
amt[0] = ffnlgAmt;
amt[1] = (int)(ffnlgAmt * 0.8);
} else if(taskSeCd.equals("ECA")) {
int ffnlgAmt = globalStngMapper.selectBasicAmt(query);
int ffnlgAmt = Integer.parseInt(ifEmpty(globalStngMapper.selectBasicAmt(query), () -> "0"));
amt[0] = ffnlgAmt;
amt[1] = (int)(ffnlgAmt * 0.8);
@ -180,8 +181,9 @@ public class CrdnStngBean extends AbstractComponent {
query.setDtlAmtDcsnCdGroupId("FIM058");
//query.setDtlAmtDcsnCd(업종); // TODO : 차주 업종
}
;
int ffnlgAmt = globalStngMapper.selectBasicAmt(query);
int ffnlgAmt = Integer.parseInt(ifEmpty(globalStngMapper.selectBasicAmt(query), () -> "0"));
amt[0] = ffnlgAmt;
boolean isPenaltyAmt = (crdn.getFfnlgCarmdlCd().equals("13") || crdn.getFfnlgCarmdlCd().equals("14")); //과징금
if(isPenaltyAmt) {

@ -2,7 +2,7 @@
<!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.GlobalStngMapper">
<select id="selectBasicAmt" parameterType="cokr.xit.fims.crdn.CrdnQuery" resultType="int">
<select id="selectBasicAmt" parameterType="cokr.xit.fims.crdn.CrdnQuery" resultType="string">
/* 기본금액 조회(globalStngMapper.selectBasicAmt) */
SELECT AMT
FROM TB_AMT_INFO

@ -356,6 +356,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, CC.CVLCPT_APLY_CN <!-- 민원 신청 내용 -->
, CC.CVLCPT_RCPT_YMD <!-- 민원 접수 일자 -->
, CC.CVLCPT_PRCS_PRNMNT_DT <!-- 민원 처리 예정 일시 -->
, CC.DSTRBNC_YN <!-- 방해 여부 -->
, P.RTPYR_NM <!-- 납부자 명 -->
, P.RTPYR_SE_CD <!-- 납부자 구분 코드 -->
, P.RTPYR_NO <!-- 납부자 주민번호 -->
@ -378,6 +379,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, CVLCPT_TRSM_CD = #{cvlcptTrsmCd} /* 민원전송코드 */
, CVLCPT_PRCS_SUMRY = #{cvlcptPrcsSumry} /* 민원처리요약 */
, CVLCPT_PRCS_RSLT_CN = #{cvlcptPrcsRsltCn} /* 민원처리결과내용 */
, DSTRBNC_YN = NULLIF(#{dstrbncYn},'N') /* 방해 여부 */
, CVLCPT_PRCS_PIC = #{modifiedBy} /* 수정자 */
, MDFCN_DT = <include refid="utility.now" /> /* 수정일시 */
, MDFR = #{modifiedBy} /* 수정자 */

@ -62,6 +62,10 @@
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
<label for="dstrbncYn--${pageName}">
<input type="checkbox" id="dstrbncYn--${pageName}" name="dstrbncYn" data-map="DSTRBNC_YN" value="Y" />
1면 방해
</label>
</div>
<div class="col-md-6 select2-primary">
<label for="crdnStdgNm--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">법정동</label>
@ -742,6 +746,14 @@ $(document).ready(function(){
dialog.close("cvlcptInitialDataEditDialog--${openerPageName}");
}
/**************************************************************************
* 초기화(업무별 입력항목)
**************************************************************************/
var clsForTask = "${taskSeCd}".toLowerCase();
//업무별 입력 항목
renderForTask('frmEdit--${pageName}', clsForTask);
/**************************************************************************
* element.on
**************************************************************************/
@ -912,6 +924,17 @@ $(document).ready(function(){
}
});
if("${taskSeCd}" == "DPV"){
$("#vltnCd--${pageName}").on("change", function(){
if(this.value == "01"){
$("label[for='dstrbncYn--${pageName}']").show();
} else {
$("label[for='dstrbncYn--${pageName}']").hide();
$("input[id='dstrbncYn--${pageName}']").prop("checked", false);
}
});
}
$("#refreshEnd--${pageName}").on("refreshEnd", function(){
if(this.dataset.cursorKey != null && this.dataset.cursorKey != ""){
$P.fnGo(this.dataset.cursorKey);
@ -923,11 +946,6 @@ $(document).ready(function(){
/**************************************************************************
* 초기화
**************************************************************************/
var clsForTask = "${taskSeCd}".toLowerCase();
//업무별 입력 항목
renderForTask('frmEdit--${pageName}', clsForTask);
initDatepicker("frmEdit--${pageName}"); //달력 초기화
$("#frmEdit--${pageName}").find(".form-date").each(function(){
@ -959,6 +977,12 @@ $(document).ready(function(){
crdnInfo.CVLCPT_APLY_CN = escapeHTMLEntity(crdnInfo.CVLCPT_APLY_CN);
$P.crdnControl.setData([crdnInfo]);
if($("#taskSeCd--${pageName}").val() == "DPV" && $("#vltnCd--${pageName}").val() == "01"){
$("label[for='dstrbncYn--${pageName}']").show();
} else {
$("label[for='dstrbncYn--${pageName}']").hide();
}
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));

Loading…
Cancel
Save