package com.softwarebr.nunu.dao.ser;

import com.softwarebr.nunu.entity.ser.Platform;
import com.brframework.commondb.core.CommonRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @date 2020-02-24 13:22:47
 * @author lilin
 */

@Repository
public interface PlatformDao extends CommonRepository<Long, Platform> {


    /**
     * 查询平台认证信息
     * @param publisher
     * @return
     */
    Platform findTopByPublisherOrderByCreateDateDesc(Long publisher);

    /**
     * 查询已上架服务平台
     * @param status
     * @return
     */
    List<Platform> findByStatus(Integer status);

}