This commit is contained in:
scalelee 2021-12-22 14:17:15 +09:00
commit a4b3a4b33f

View File

@ -61,7 +61,7 @@
<insert id="insertInterest" parameterType="CollectionVO">
/* CollectionDAO.insertInterest 관심자료 추가 */
<selectKey resultType="Integer" keyProperty="mbInterestId" order="BEFORE">
SELECT MAX(MB_INTEREST_ID)+1 FROM MB_INTEREST;
SELECT IFNULL(MAX(MB_INTEREST_ID)+1,1) FROM MB_INTEREST;
</selectKey>
INSERT INTO
MB_INTEREST