select * from company_voice_robotic
insert into company_voice_robotic
name,task_name,add_type,task_id,robot,dialog_id,mode,multiplier,auto_recall,recall_times,cid_group_id,week_day1,start_time1,end_time1,week_day2,start_time2,end_time2,create_time,create_user,company_ai_workflow_id,#{name},#{taskName},#{addType},#{taskId},#{robot},#{dialogId},#{mode},#{multiplier},#{autoRecall},#{recallTimes},#{cidGroupId},#{weekDay1},#{startTime1},#{endTime1},#{weekDay2},#{startTime2},#{endTime2},#{createTime},#{createUser},#{companyAiWorkflowId},
update company_voice_robotic
name = #{name},task_name = #{taskName},task_id = #{taskId},add_type = #{addType},robot = #{robot},dialog_id = #{dialogId},mode = #{mode},multiplier = #{multiplier},auto_recall = #{autoRecall},recall_times = #{recallTimes},cid_group_id = #{cidGroupId},week_day1 = #{weekDay1},start_time1 = #{startTime1},end_time1 = #{endTime1},week_day2 = #{weekDay2},start_time2 = #{startTime2},end_time2 = #{endTime2},create_time = #{createTime},create_user = #{createUser},company_ai_workflow_id = #{companyAiWorkflowId},
where id = #{id}
delete from company_voice_robotic where id = #{id}
delete from company_voice_robotic where id in
#{id}
update company_voice_robotic set task_status = 3 where id = #{id} and task_flow = run_task_flow
update company_voice_robotic
set run_task_flow = CASE
WHEN run_task_flow is null or run_task_flow = '' THEN
'addWx'
ELSE
CONCAT(run_task_flow,',','addWx')
END
where id in
#{id}