package com.ruoyi.web.modules.finance.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.web.modules.finance.domain.BizShopPayAccount;
import com.ruoyi.web.modules.finance.vo.PayAccountListRowVO;
import com.ruoyi.web.modules.finance.vo.PayAccountOptionVO;

public interface BizShopPayAccountMapper
{
    List<PayAccountListRowVO> selectByShopId(Long shopId);

    List<PayAccountOptionVO> selectOptionsByShopId(Long shopId);

    BizShopPayAccount selectByIdAndShop(@Param("accountId") Long accountId, @Param("shopId") Long shopId);

    int countBankByShopId(Long shopId);

    int countByShopIdAndAccountNo(@Param("shopId") Long shopId, @Param("accountNo") String accountNo);

    int insert(BizShopPayAccount account);

    int update(BizShopPayAccount account);

    int logicDelete(@Param("accountId") Long accountId, @Param("shopId") Long shopId,
            @Param("updateBy") String updateBy, @Param("updateTime") java.util.Date updateTime);
}
