package com.yueqian.xingyun.basedata.mappers;

import com.lframework.starter.web.core.mapper.BaseMapper;
import com.yueqian.xingyun.basedata.entity.Shop;
import com.yueqian.xingyun.basedata.vo.shop.QueryShopVo;
import com.lframework.starter.web.core.annotations.sort.Sort;
import com.lframework.starter.web.core.annotations.sort.Sorts;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 门店 Mapper 接口
 * </p>
 *
 * @author zmj
 */
public interface ShopMapper extends BaseMapper<Shop> {

  /**
   * 查询列表
   * @param vo
   * @return
   */
  @Sorts({
      @Sort(value = "code", alias = "tb", autoParse = true),
      @Sort(value = "name", alias = "tb", autoParse = true),
      @Sort(value = "createTime", alias = "tb", autoParse = true),
  })
  List<Shop> query(@Param("vo") QueryShopVo vo);
}
