/*
 * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yami.shop.bean.dto.ShopAuditingInfoDto;
import com.yami.shop.bean.model.ShopAuditing;
import com.yami.shop.bean.param.AuditingInfoParam;
import org.apache.ibatis.annotations.Param;


/**
 * 商家审核信息
 *
 * @author Dwl
 * @date 2019-09-19 14:02:57
 */
public interface ShopAuditingMapper extends BaseMapper<ShopAuditing> {

    /**
     * 根据申请人id查询审核信息
     * @param userId
     * @return
     */
    ShopAuditing getShopAuditingByUserId(String userId);

    /**
     * 店铺审核信息列表
     * @return
     */
    IPage<ShopAuditingInfoDto> auditingInfoList(@Param("page")Page<ShopAuditingInfoDto> page, @Param("map") AuditingInfoParam auditingInfoParam );

}
