/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.workfullmanage.dao;

import com.jeeplus.common.persistence.CrudDao;
import com.jeeplus.common.persistence.annotation.MyBatisDao;
import com.jeeplus.modules.workfullmanage.entity.WorkFullPay;

/**
 * 工程计量支付DAO接口
 * @author mapengbo
 * @version 2017-11-03
 */
@MyBatisDao
public interface WorkFullPayDao extends CrudDao<WorkFullPay> {

    /**
     * 查询记录数
     * @return
     */
	public int queryCount(WorkFullPay workFullPay);

    /**
     * 查询累计支付金额
     * @return
     */
	public String querySum(WorkFullPay workFullPay);

    /**
     * 更新流程实例ID
     * @return
     */
    public int updateProcessInstanceId(WorkFullPay workFullPay);

    /**
     * 根据流程实例ID获取WorkReimbursement
     * @param processInstanceId
     * @return
     */
    public WorkFullPay getByProcessInstanceId(String processInstanceId);

    /**
     * 获取第一条记录
     * @param workFullPay
     * @return
     */
    public WorkFullPay getFirstRecord(WorkFullPay workFullPay);

    /**
     * 查询是否存在状态不为已通过的数据
     * @param workFullPay
     * @return
     */
    public int getStatusNotFour(WorkFullPay workFullPay);
}