select
lod.id, lod.parent_id, lod.type_id, lod.ma_id, lod.out_num, lod.out_type, lod.create_by, lod.create_time,
lod.update_by, lod.update_time, lod.remark, lod.company_id, lod.car_code, lod.push_notifications
from
lease_out_details lod
insert into lease_out_details
parent_id,
type_id,
ma_id,
out_num,
out_type,
create_by,
update_by,
remark,
company_id,
car_code,
create_time,
update_time
#{parentId},
#{typeId},
#{maId},
#{outNum},
#{outType},
#{createBy},
#{updateBy},
#{remark},
#{companyId},
#{carCode},
NOW(),
NOW()
update lease_out_details
parent_id = #{parentId},
type_id = #{typeId},
ma_id = #{maId},
out_num = #{outNum},
out_type = #{outType},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
company_id = #{companyId},
car_code = #{carCode},
push_notifications = #{pushNotifications},
where id = #{id}
delete from lease_out_details where id = #{id}
delete from lease_out_details where id in
#{id}