Compare commits

...

2 Commits

1 changed files with 6 additions and 6 deletions

View File

@ -46,12 +46,12 @@
<insert id="BoardComment.insertBoardComment" parameterType="boardCommentVO"> <insert id="BoardComment.insertBoardComment" parameterType="boardCommentVO">
INSERT INTO INSERT INTO
H3_BD_${id}_COMT ( H3_BD_${id}_COMT (
BC_SEQ, BC_NAME, BC_CONTENT, BC_REGDATE, BC_BD_SEQ, BC_IP, BC_MB_ID BC_NAME, BC_CONTENT, BC_REGDATE, BC_BD_SEQ, BC_IP, BC_MB_ID
) VALUES ( ) VALUES (
H3_BD_${id}_COMT_SEQ.NEXTVAL, #{userName}, #{content}, NOW(), #{parentSeq}, '10.123.141.123', #{userId} #{userName}, #{content}, NOW(), #{parentSeq}, #{ip}, #{userId}
) )
<selectKey resultType="int" keyProperty="seq" order="AFTER"> <selectKey resultType="int" keyProperty="seq" order="AFTER">
SELECT H3_BD_${id}_COMT_SEQ.CURRVAL FROM DUAL SELECT currval(#{id}||'_bc_seq') as seq
</selectKey> </selectKey>
</insert> </insert>