id
,station_id,user_id,username,phone,real_name,dept_name,email,
sms_type,alarm_level,create_id,update_id,create_time,update_time,is_send_now,delay_data
station_id
,user_id,username,phone,real_name,dept_name,email,
sms_type,alarm_level,create_id,create_time,is_send_now,delay_data
insert into send_sms_config ()
values
(
#{item.stationId},#{item.userId},#{item.username},#{item.phone},#{item.realName},
#{item.deptName},#{item.email},#{item.smsType},#{item.alarmLevel},#{item.createId},now(),#{item.isSendNow},#{item.delayData}
)
update send_sms_config
sms_type = #{vo.smsType},
alarm_level = #{vo.alarmLevel},
update_id = #{vo.updateId},
update_time = #{vo.updateTime},
is_send_now = #{vo.isSendNow},
delay_data = #{vo.delayData},
where id = #{vo.id}
update send_sms_config
username = #{vo.username},
phone = #{vo.phone},
real_name = #{vo.realName},
dept_name = #{vo.deptName},
email = #{vo.email},
update_time = #{vo.updateTime},
where user_id = #{vo.userId}
delete
from send_sms_config
and id in
#{item}