Cui Zhi Feng
2024-08-27 b1d43929c07b6e5090c693d448b0bdf6489405fa
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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.FlowerQueryDTO;
import com.mzl.flower.dto.request.flower.FlowerShowQueryDTO;
import com.mzl.flower.dto.request.flower.FlowerZoneQueryDTO;
import com.mzl.flower.dto.response.flower.FlowerCartListDTO;
import com.mzl.flower.dto.response.flower.FlowerListDTO;
import com.mzl.flower.dto.response.flower.FlowerShowListDTO;
import com.mzl.flower.dto.response.flower.FlowerSupplierListDTO;
import com.mzl.flower.entity.flower.Flower;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
 
import java.util.List;
 
@Repository
public interface FlowerMapper extends BaseMapper<Flower> {
 
    List<FlowerListDTO> selectFlowerList(Page page, @Param("condition") FlowerQueryDTO dto);
 
    List<FlowerShowListDTO> selectFlowerShowList(Page page, @Param("condition") FlowerShowQueryDTO dto);
 
    List<FlowerCartListDTO> selectFlowerCartList(@Param("userId") String userId);
 
    List<FlowerCartListDTO> selectFlowerOrderList(@Param("ids") List<Long> ids);
 
    List<FlowerSupplierListDTO> selectFlowerSupplierList(Page page, @Param("deleted") int deleted
            , @Param("supplierId") Long supplierId, @Param("condition") FlowerQueryDTO dto);
 
    List<FlowerShowListDTO> myCollect(Page page, @Param("condition") FlowerShowQueryDTO dto);
 
    List<FlowerShowListDTO> myBrowseHistory(Page page, @Param("condition") FlowerShowQueryDTO dto);
 
    void addFlowerStock(@Param("id") Long id, @Param("num") Integer num);
 
    void updateFlowerSales(@Param("id") Long id, @Param("num") Integer num);
 
    List<Long> searchInvalidCollect(@Param("userId")String userId);
 
    Integer getUpFlowerStock();
 
    List<FlowerListDTO> selectZoneFlowerList(Page page, @Param("condition") FlowerZoneQueryDTO dto);
 
    void updateFlowerCategoryInfo(Long category);
}