SettingPaymentMethodMapper.java 1.43 KB
package com.diligrp.etrade.admin.dao;

import com.diligrp.etrade.admin.domain.SettingPaymentMethodDto;
import com.diligrp.etrade.admin.model.SettingPaymentMethod;
import com.diligrp.etrade.core.mybatis.MybatisMapperSupport;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author dili
 * @description 针对表【setting_payment_method(支付方式设置)】的数据库操作Mapper
 * @createDate 2023-08-24 11:03:32
 * @Entity com.diligrp.etrade.admin.model.SettingPaymentMethod
 */
@Repository
public interface SettingPaymentMethodMapper extends MybatisMapperSupport {

    int deleteByPrimaryKey(Long id);

    int insert(SettingPaymentMethod record);

    int insertSelective(SettingPaymentMethod record);

    SettingPaymentMethod selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SettingPaymentMethod record);

    int updateByPrimaryKey(SettingPaymentMethod record);

    List<SettingPaymentMethodDto> selectAllType();

    List<SettingPaymentMethodDto> selectTypeByMarketId(Long marketId);

    List<SettingPaymentMethodDto> selectTypeByMarketIds(@Param("marketIds") List<Long> marketIds);

    /**
     * 批量新增数据
     *
     * @param entities List<SettingPaymentMethod> 实例对象列表
     * @return 影响行数
     */
    int insertBatch(@Param("entities") List<SettingPaymentMethod> entities);

    int deleteBy(SettingPaymentMethod record);
}