gongzuming
2024-09-20 e425e5d101e1d48e40674a2a801efb8dd060e8a5
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
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.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);
}