package com.cool.store.mapper;

import com.cool.store.entity.DecorationDesignInfoDO;
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 DecorationDesignInfoMapper extends Mapper<DecorationDesignInfoDO> {


    /**
     * 查询店铺的设计数据
     * @param shopId
     * @return
     */
    DecorationDesignInfoDO selectByShopId(Long shopId);

    List<PreparationCommonPendingVO> getByDesignUserIdAndShopStage(@Param("userId") String userId,@Param("request") DeskRequest deskRequest);
    /**
     * @Auther: wangshuo
     * @Date: 2025/6/16
     * @description:DesignUserId置空
     */
    Integer updateDesignLeaderIdAndDesignUserIdInteger(@Param("shopId") Long shopId,@Param("designLeaderId") String designLeaderId);

    Integer updateDesignUserId(@Param("shopId") Long shopId,@Param("designUserId") String designUserId);
}