id, photo_code, photo_title
delete from photo
where id = #{id,jdbcType=INTEGER}
insert into photo
photo_code,
photo_title,
#{photo_code,jdbcType=INTEGER},
#{photo_title,jdbcType=VARCHAR}
update photo
photo_code = #{photo_code,jdbcType=INTEGER},
photo_title = #{photo_title,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}