민원상담 등록 수정.

main
jjh 1 year ago
parent 0ae3fbec50
commit 6fd78cabdc

@ -116,7 +116,7 @@
</select>
<insert id="insertCvlcptDscsn" parameterType="map">/* 민원 상담 내용 등록(cvlcptDscsnMapper.insertCvlcptDscsn) */
<selectKey resultType="string" keyProperty="cvlcptDscsnCn.cvlcptDscsnId" keyColumn="NEW_ID" order="BEFORE">
<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
FROM TB_CVLCPT_DSCSN
WHERE CVLCPT_DSCSN_ID LIKE CONCAT(DATE_FORMAT(CURRENT_DATE, '%Y'), '%')

@ -300,7 +300,7 @@
let cvlcptDscsnId = ${pageName}Control.dataset.getValue("CVLCPT_DSCSN_ID");
// 민원 상담 ID 가 없다면.. return
if (cvlcptDscsnId == undefined || cvlcptDscsnId == "") {
if (cvlcptDscsnId == null || cvlcptDscsnId == "") {
return;
}

Loading…
Cancel
Save