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, publish_task, create_time, update_time #{parentId}, #{typeId}, #{maId}, #{outNum}, #{outType}, #{createBy}, #{updateBy}, #{remark}, #{companyId}, #{carCode}, #{publishTask}, NOW(), NOW() insert into lease_out_num parent_id, type_id, ma_id, out_num, out_type, create_by, update_by, remark, company_id, car_code, publish_task, create_time, update_time #{parentId}, #{typeId}, #{maId}, #{outNum}, #{outType}, #{createBy}, #{updateBy}, #{remark}, #{companyId}, #{carCode}, #{publishTask}, 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} update ws_ma_info lease_unit = #{leaseUnit}, lease_project = #{leaseProject}, is_back = #{isBack}, out_time = now() where id = #{maId} update lease_out_details update_time = #{createTime}, lease_sign_id = #{leaseSignId}, where id = #{id} delete from lease_out_details where id = #{id} delete from lease_out_details where id in #{id} delete from lease_out_details where parent_id = #{parentId} and type_id = #{typeId} and publish_task = #{publishTask} and ma_id = #{maId}