| 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); | 
| } |