package com.cool.store.mapper.decoration;

import com.cool.store.dto.decoration.DecorationListDTO;
import com.cool.store.entity.decoration.ShopDecorationAssignDO;
import com.cool.store.request.decoration.DecorationListRequest;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface ShopDecorationAssignMapper extends Mapper<ShopDecorationAssignDO> {


    /**
     * 查询团队被门店使用次数
     * @param teamId
     * @return
     */
    Integer countByTeamId(Long teamId);

    /**
     * 查询分配装修团队列表
     * @param request
     * @return
     */
    List<DecorationListDTO> listByCondition(DecorationListRequest request);



}