package com.zioinfo.mall.store.mapper;

import com.zioinfo.mall.store.MallStore;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StoreMapper {
    List<MallStore> findAll(@Param("activeOnly") boolean activeOnly);
    MallStore findById(@Param("id") Long id);
    MallStore findByCode(@Param("code") String code);
    int insert(MallStore s);
    int update(MallStore s);
    int setActive(@Param("id") Long id, @Param("active") boolean active);
}
