package com.jeesharp.business.modules.food.mapper;

import com.jeesharp.business.modules.food.entity.FoodCompanyRecharge;
import com.jeesharp.framework.mybatis.core.mapper.BaseMapper;
import com.jeesharp.framework.pojo.query.PaginationVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 企业团餐充值记录 Mapper，基础 CRUD 由 MyBatis-Plus 提供。
 *
 * @author jeesharp
 * @since 2026-06-07
 */
@Mapper
public interface FoodCompanyRechargeMapper extends BaseMapper<FoodCompanyRecharge, PaginationVO> {

    FoodCompanyRecharge selectByIdForUpdate(@Param("id") String id, @Param("tenantCode") String tenantCode);

    FoodCompanyRecharge selectByPayOrderIdForUpdate(@Param("payOrderId") String payOrderId);

    FoodCompanyRecharge selectByPayOrderNoForUpdate(@Param("payOrderNo") String payOrderNo);
}
