select id, robotic_id, callee_id, wx_client_id, add_wx_done, call_phone_done, send_msg_done, create_time, update_time from company_voice_robotic_business
insert into company_voice_robotic_business
robotic_id,
callee_id,
wx_client_id,
add_wx_done,
call_phone_done,
send_msg_done,
create_time,
update_time,
#{roboticId},
#{calleeId},
#{wxClientId},
#{addWxDone},
#{callPhoneDone},
#{sendMsgDone},
#{createTime},
#{updateTime},
update company_voice_robotic_business
robotic_id = #{roboticId},
callee_id = #{calleeId},
wx_client_id = #{wxClientId},
add_wx_done = #{addWxDone},
call_phone_done = #{callPhoneDone},
send_msg_done = #{sendMsgDone},
create_time = #{createTime},
update_time = #{updateTime},
where id = #{id}
delete from company_voice_robotic_business where id = #{id}
delete from company_voice_robotic_business where id in
#{id}
INSERT INTO company_voice_robotic_business
(robotic_id, callee_id, wx_client_id, add_wx_done, call_phone_done, send_msg_done, create_time, update_time)
VALUES
(
#{item.roboticId},
#{item.calleeId},
#{item.wxClientId},
#{item.addWxDone},
#{item.callPhoneDone},
#{item.sendMsgDone},
#{item.createTime},
#{item.updateTime}
)
update company_voice_robotic_business
set add_wx_done = add_wx_done + 1
set call_phone_done = call_phone_done + 1
set send_msg_done = send_msg_done + 1
where
robotic_id = #{roboticId}
and callee_id = #{callerId}
and wx_client_id = #{wxClientId}