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 { List selectFlowerList(Page page, @Param("condition") FlowerQueryDTO dto); List selectFlowerShowList(Page page, @Param("condition") FlowerShowQueryDTO dto); List selectFlowerCartList(@Param("userId") String userId); List selectFlowerOrderList(@Param("ids") List ids); List selectFlowerSupplierList(Page page, @Param("deleted") int deleted , @Param("supplierId") Long supplierId, @Param("condition") FlowerQueryDTO dto); List myCollect(Page page, @Param("condition") FlowerShowQueryDTO dto); List 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 searchInvalidCollect(@Param("userId")String userId); Integer getUpFlowerStock(); List selectZoneFlowerList(Page page, @Param("condition") FlowerZoneQueryDTO dto); void updateFlowerCategoryInfo(Long category); }