package com.gxwebsoft.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.shop.entity.MerchantClerk;
import com.gxwebsoft.shop.param.MerchantClerkParam;

import java.util.List;

/**
 * 商家门店店员表Service
 *
 * @author 科技小王子
 * @since 2022-11-30 16:32:25
 */
public interface MerchantClerkService extends IService<MerchantClerk> {

    /**
     * 分页关联查询
     *
     * @param param 查询参数
     * @return PageResult<MerchantClerk>
     */
    PageResult<MerchantClerk> pageRel(MerchantClerkParam param);

    /**
     * 关联查询全部
     *
     * @param param 查询参数
     * @return List<MerchantClerk>
     */
    List<MerchantClerk> listRel(MerchantClerkParam param);

    /**
     * 根据id查询
     * @param clerkId 商户人员ID
     * @return MerchantClerk
     */
    MerchantClerk getByIdRel(Integer clerkId);

    /**
     * 根据当前登录用户的userId查询所属的商户编号
     * @param loginUserId 商户人员ID
     * @return MerchantClerk
     */
    String getMerchantCodeByClerk(Integer loginUserId);
}
