package com.cool.store.mapper;

import com.cool.store.entity.DecorationMeasureDO;
import com.cool.store.request.DeskRequest;
import com.cool.store.vo.desk.PreparationCommonPendingVO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface DecorationMeasureMapper extends Mapper<DecorationMeasureDO> {

    /**
     * 查询店铺的测量数据
     *
     * @param shopId
     * @return
     */
    DecorationMeasureDO selectByShopId(Long shopId);

    List<PreparationCommonPendingVO> selectByMeasureUserIdAndShopStage(@Param("measureUserId") String measureUserId,@Param("request") DeskRequest deskRequest);

    List<PreparationCommonPendingVO> getShopIdListByDesignUserIdAndShopStage(@Param("userId") String userId,@Param("request") DeskRequest deskRequest);

    List<PreparationCommonPendingVO> getShopIdListByDesignUserIdOrQuotationAndShopStage(@Param("userId") String userId,@Param("request")DeskRequest deskRequest);
}