select thisTab.id, thisTab.head_id, thisTab.create_by, thisTab.create_time, thisTab.notes, thisTab.node from tms_dispatch_order_log AS thisTab
select count(0) from tms_dispatch_order_log as thisTab
and thisTab.head_id = #{headId} and thisTab.notes = #{notes} and thisTab.node = #{node}
insert into tms_dispatch_order_log
head_id,create_by,create_time,notes,node,#{headId},#{createBy},#{createTime},#{notes},#{node},
insert into tms_dispatch_order_log
id,head_id,create_by,create_time,notes,node,
#{item.id},#{item.headId},#{item.createBy},#{item.createTime},#{item.notes},#{item.node},
update tms_dispatch_order_log
head_id = #{headId},create_by = #{createBy},create_time = #{createTime},notes = #{notes},node = #{node},
where id = #{id}
update tms_dispatch_order_log
head_id = #{item.headId},create_by = #{item.createBy},create_time = #{item.createTime},notes = #{item.notes},node = #{item.node},
where id = #{item.id}
delete from tms_dispatch_order_log where id = #{id}
delete from tms_dispatch_order_log where id in
#{id}