id ,src_id,file_name,file_path,url, type,create_time,version,owner_user,owner_org,update_log,bucket delete from picture where id = #{id,jdbcType=INTEGER} delete from picture and src_id in #{item} and type = #{type} delete from picture and id in #{item} insert into picture ( id, src_id, file_name, url , type, create_time) values ( #{id,jdbcType=INTEGER}, #{srcId,jdbcType=INTEGER}, #{fileName,jdbcType=VARCHAR} , #{url,jdbcType=VARCHAR} , #{type,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}) insert into picture id, src_id, file_name, file_path, url, type, create_time, version, owner_user, owner_org, update_log, bucket, #{id,jdbcType=INTEGER}, #{srcId,jdbcType=INTEGER}, #{fileName,jdbcType=VARCHAR}, #{filePath,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{version}, #{ownerUser}, #{ownerOrg}, #{updateLog}, #{bucket}, update picture src_id = #{srcId,jdbcType=INTEGER}, file_name = #{fileName,jdbcType=VARCHAR}, url = #{url,jdbcType=VARCHAR}, type = #{type,jdbcType=INTEGER}, create_time = #{createTime,jdbcType=TIMESTAMP}, where id = #{id,jdbcType=INTEGER} update picture set src_id = #{srcId,jdbcType=INTEGER}, file_name = #{fileName,jdbcType=VARCHAR}, url = #{url,jdbcType=VARCHAR}, type = #{type,jdbcType=INTEGER}, create_time = #{createTime,jdbcType=TIMESTAMP} where id = #{id,jdbcType=INTEGER} update picture set src_id = null and id in #{item}