package com.rj.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rj.entity.LbOrderRow;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LbOrderRowMapper extends BaseMapper<LbOrderRow> {

    /**
     * 按订单 id（主键）插入或更新；跳过租户行拦截，避免 listByIds 因 tenant_id 过滤漏判导致重复插入。
     */
    @InterceptorIgnore(tenantLine = "true")
    int upsertBatch(@Param("list") List<LbOrderRow> list);
}
