INSERT INTO file_info (name,fix,size,delete_flag,add_id,add_time,file_path) VALUES (#{name},#{fix},#{size},#{delete_flag},#{add_id},#{add_time},#{file_path}) select id from file_info ORDER BY id desc LIMIT 1 UPDATE file_info SET mtime=now() ,name=#{name} ,fix=#{fix} ,size=#{size} ,delete_flag=#{delete_flag} ,add_id=#{add_id} ,add_time=#{add_time} WHERE id=#{id} SELECT o.* FROM file_info o WHERE 1=1 AND o.id IN #{item} AND o.id=#{id} AND o.name = #{name} AND o.fix = #{fix} AND o.size=#{size} AND o.delete_flag=#{delete_flag} AND o.add_id=#{add_id} AND o.add_time=#{add_time}