陶杰
2024-08-22 ee9032d9baf5f33e376d2d2699136e0a7b26bec7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.mzl.flower.mapper.partner;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mzl.flower.dto.request.partner.QueryPartnerDTO;
import com.mzl.flower.dto.request.supplier.QuerySupplierDTO;
import com.mzl.flower.dto.response.partner.PartnerDTO;
import com.mzl.flower.dto.response.supplier.SupplierDTO;
import com.mzl.flower.entity.partner.Partner;
import com.mzl.flower.entity.supplier.Supplier;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
 
import java.util.List;
 
@Repository
public interface PartnerMapper extends BaseMapper<Partner> {
    List<PartnerDTO> queryPartner(@Param("dto") QueryPartnerDTO dto, Page page);
 
    PartnerDTO getCurrentPartner(@Param("userId")String userId);
 
    Partner getByIdOrUserId(@Param("partnerUserId") String partnerUserId);
}