package io.renren.modules.business.dao;

import io.renren.modules.business.entity.BusinessAnnualEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 年度总结表
 * 
 * @author jiaqiao
 * @email jiaqiao@163.com
 * @date 2022-10-20 19:38:02
 */
@Mapper
public interface BusinessAnnualDao extends BaseMapper<BusinessAnnualEntity> {

    /**
     * 列表获取所有列表 无翻页
     */
    List<BusinessAnnualEntity> queryList(Map<String, Object> params);

    /**
     * 获取明细表总结表填写人信息
     * @param params
     * @return
     */
    List<BusinessAnnualDao> getWriteList();

    /**
     * 验证统计的数是不是大于0
     * @param yzTime
     * @return
     */
    int countYear(@Param("yzTime") String yzTime,@Param("writeUserId") String writeUserId,@Param("i") String i);

    /**
     * 保存
     * @param businessAnnualEntity
     */
    void newSave(BusinessAnnualEntity businessAnnualEntity);
}
