단속 중복 체크 추가

main
mjkhan21 6 months ago
parent 43bb16039d
commit 2e9bd98f8a

@ -98,7 +98,7 @@ public class CrdnBean extends AbstractBean {
//단속 대장 등록
boolean result = createLedger(crdn);
if (!result)
throw new RuntimeException("단속자료 등록 중 단속자료 등록에 실패하였습니다.");
throw new RuntimeException("중복된 단속자료입니다.");
String taskDtlId = crdn.getCrdnId();
LevyExcl excl01 = TaskProcessor.get().getLevyExcl(crdn);

@ -58,8 +58,8 @@ INSERT INTO TB_CRDN (
, DEL_DT <!-- 삭제 일시 -->
, DLTR <!-- 삭제자 -->
, DEL_RSN <!-- 삭제 사유 -->
) VALUES (
#{crdnId} <!-- 단속 ID -->
)
SELECT #{crdnId} <!-- 단속 ID -->
, #{sggCd} <!-- 시군구 코드 -->
, #{crdnRegSeCd} <!-- 단속 등록 구분 코드 -->
, #{crdnInptSeCd} <!-- 단속 입력 구분 코드 -->
@ -109,7 +109,13 @@ INSERT INTO TB_CRDN (
, #{removedAt} <!-- 삭제 일시 -->
, #{removedBy} <!-- 삭제자 -->
, #{delRsn} <!-- 삭제 사유 -->
)
FROM DUAL
<if test='"RVS" == taskSeCd'>WHERE NOT EXISTS (
SELECT *
FROM TB_CRDN
WHERE VHRNO = #{vhrno}
AND CRDN_YMD = #{crdnYmd}
)</if>
</insert>
<insert id="insertCrdnAddition" parameterType="cokr.xit.fims.crdn.Crdn">

Loading…
Cancel
Save