|
|
|
@ -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'), '%')
|
|
|
|
|