select id, user_id, dd_id, type, create_time, update_time, remark, points_change, current_points from points_transaction insert into points_transaction user_id, dd_id, type, create_time, update_time, remark, points_change, current_points, #{userId}, #{ddId}, #{type}, #{createTime}, #{updateTime}, #{remark}, #{pointsChange}, #{currentPoints}, update points_transaction user_id = #{userId}, dd_id = #{ddId}, type = #{type}, create_time = #{createTime}, update_time = #{updateTime}, remark = #{remark}, points_change = #{pointsChange}, current_points = #{currentPoints}, where id = #{id} delete from points_transaction where id = #{id} delete from points_transaction where id in #{id}