package com.zioinfo.mes.partner.mapper;

import com.zioinfo.mes.partner.MesPartner;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PartnerMapper {
    List<MesPartner> findAll(@Param("partnerType") String partnerType,
                             @Param("status") String status,
                             @Param("keyword") String keyword);
    MesPartner findById(@Param("id") Long id);
    int countByCode(@Param("partnerCode") String partnerCode, @Param("excludeId") Long excludeId);
    int insert(MesPartner p);
    int update(MesPartner p);
    int delete(@Param("id") Long id);
}
