package com.softwarebr.nunu.service.go;

import com.softwarebr.nunu.entity.go.PolicyApply;
import com.brframework.commondb.core.EntityService;

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

public interface PolicyApplyService extends EntityService<PolicyApply, Long, Object> {

    /**
     * 用户申报政策,同个政策不同申报多次
     * @param policyId
     * @param memberId
     * @param content
     * @param contact
     * @param contactPhone
     * @param email
     * @return
     */
    PolicyApply saveApply(Long policyId, Long memberId, String content, String contact, String contactPhone, String email);

     /**
     * 通过政策id查询政策申报记录
     * @param policyId
     * @return
     */
    PolicyApply findByPolicyId(Long policyId);

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

    /**
     * 受理申报
     * @param id
     * @param remark 审核备注
     */
    void policyApplyVerifyAwait(Long id, String remark);

    /**
     * 受理成功
     * @param id
     * @param remark 审核备注
     */
    void policyApplyVerifySuccess(Long id, String remark);
}