package com.ga.core.mapper.product;

import com.ga.core.vo.product.ProductResp;
import com.ga.core.vo.product.ProductVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductMapper {
    List<ProductResp> selectList(@Param("companyId") Long companyId,
                                 @Param("insuranceType") String insuranceType,
                                 @Param("keyword") String keyword,
                                 @Param("isActive") String isActive);
    ProductResp selectDetailById(@Param("productId") Long productId);
    ProductVO selectById(@Param("productId") Long productId);
    int existsByCode(@Param("companyId") Long companyId, @Param("productCode") String productCode);
    int insert(ProductVO vo);
    int update(ProductVO vo);
    int deleteById(@Param("productId") Long productId);
}
