insert into notepad_detail(
create_user_id,detail_id,note_id,create_user_name,content
) values (
#{createUserId},#{detailId},#{noteId},#{createUserName},#{content}
)
update notepad_detail t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.create_user_id= #{createUserId}
, t.note_id= #{noteId}
, t.create_user_name= #{createUserName}
, t.content= #{content}
where 1=1
and t.detail_id= #{detailId}