cloudroam
2024-12-04 2432594a4d11b47a503795349defa31872f85789
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.mzl.flower.mapper.flower;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mzl.flower.dto.request.flower.FlowerCategoryQueryDTO;
import com.mzl.flower.dto.response.flower.FlowerCategoryDailyDTO;
import com.mzl.flower.dto.response.flower.FlowerCategoryTreeDTO;
import com.mzl.flower.entity.flower.FlowerCategory;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
 
import java.time.LocalDate;
import java.util.List;
 
@Repository
public interface FlowerCategoryMapper extends BaseMapper<FlowerCategory> {
    List<FlowerCategoryTreeDTO> selectCategoryList(@Param("condition") FlowerCategoryQueryDTO dto);
 
    List<FlowerCategoryTreeDTO> selectTreeList(@Param("condition") FlowerCategoryQueryDTO dto);
 
    void clearParamByParamId(@Param("paramId") Long paramId);
 
    void setParamById(@Param("paramId") Long paramId, @Param("categoryIds") List<Long> categoryIds);
 
    List<FlowerCategoryDailyDTO> selectHomeCategoryDaily(Page page
            , @Param("partnerId") Long partnerId, @Param("day") LocalDate day);
 
 
    @Select("select * from t_flower_category where id = #{id}")
    FlowerCategory selectCategoryById(Long id);
}