package com.softwarebr.nunu.dao.go;

import com.softwarebr.nunu.entity.go.PolicyApply;
import com.brframework.commondb.core.CommonRepository;
import org.springframework.stereotype.Repository;

/**
 * @date 2020-02-21 10:49:24
 * @author lilin
 */

@Repository
public interface PolicyApplyDao extends CommonRepository<Long, PolicyApply> {

    PolicyApply findTopByPolicyId(Long policyId);

    /**
     * 统计政策申报人数
     * @param policyId 政策ID
     * @return
     */
    Long countByPolicyId(Long policyId);

}