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

import com.jeesharp.business.modules.food.entity.FoodCompanyAccount;
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 FoodCompanyAccountMapper extends BaseMapper<FoodCompanyAccount, PaginationVO> {

    FoodCompanyAccount selectByCompanyId(@Param("companyId") String companyId, @Param("tenantCode") String tenantCode);

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

    FoodCompanyAccount selectByCompanyIdForUpdate(@Param("companyId") String companyId, @Param("tenantCode") String tenantCode);
}
