select log_id,watch_log_id, remark,out_batch_no,status,update_time,course_id, user_id, video_id, company_user_id, company_id, amount, create_time, qw_user_id,period_id,result,app_id,batch_id from fs_course_red_packet_log insert into fs_course_red_packet_log course_id, user_id, video_id, company_user_id, company_id, amount, create_time, qw_user_id, out_batch_no, status, update_time, watch_log_id, remark, period_id, result, batch_id, app_id, #{courseId}, #{userId}, #{videoId}, #{companyUserId}, #{companyId}, #{amount}, #{createTime}, #{qwUserId}, #{outBatchNo}, #{status}, #{updateTime}, #{watchLogId}, #{remark}, #{periodId}, #{result}, #{batchId}, #{appId}, update fs_course_red_packet_log course_id = #{courseId}, user_id = #{userId}, video_id = #{videoId}, company_user_id = #{companyUserId}, company_id = #{companyId}, amount = #{amount}, create_time = #{createTime}, qw_user_id = #{qwUserId}, out_batch_no = #{outBatchNo}, status = #{status}, update_time = #{updateTime}, watch_log_id = #{watchLogId}, period_id = #{periodId}, remark = #{remark}, batch_id = #{batchId}, app_id = #{appId}, where log_id = #{logId} delete from fs_course_red_packet_log where log_id = #{logId} delete from fs_course_red_packet_log where log_id in #{logId}