cloudroam
2024-10-15 e0e1694d28c1eeb2edddfde6a738dd6259b0ad1d
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
48
49
50
51
52
53
54
55
56
57
58
59
60
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);
 
    List<Long> searchInvalidHistory(@Param("userId") String userId);
 
 
    void updateBatchTypeRank(@Param("list") List<Flower> flowerList);
 
    void deleteBatchPhysics(@Param("list")  List<Long> ids);
 
    void restoreFlowerBatch(@Param("list") List<Long> ids);
 
    List<Flower> getDeletdFlowByIds(@Param("list") List<Long> ids);
 
    void updateTypeRankNull(@Param("category") Long category, @Param("level") String level);
}