package com.engine.salary.mapper.datacollection;

import com.engine.salary.entity.datacollection.po.AttendQuoteDataValuePO;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;


public interface AttendQuoteDataValueMapper {

	/**
     * 查询所有记录
     *
     * @return 返回集合，没有返回空List
     */
	List<AttendQuoteDataValuePO> listAll();


	/**
     * 根据主键查询
     *
     * @param id 主键
     * @return 返回记录，没有返回null
     */
	AttendQuoteDataValuePO getById(Long id);
	
	/**
     * 新增，忽略null字段
     *
     * @param AttendQuoteDataValuePO 新增的记录
     * @return 返回影响行数
     */
	int insertIgnoreNull(AttendQuoteDataValuePO AttendQuoteDataValuePO);
	
	/**
     * 修改，修改所有字段
     *
     * @param AttendQuoteDataValuePO 修改的记录
     * @return 返回影响行数
     */
	int update(AttendQuoteDataValuePO AttendQuoteDataValuePO);
	
	/**
     * 修改，忽略null字段
     *
     * @param AttendQuoteDataValuePO 修改的记录
     * @return 返回影响行数
     */
	int updateIgnoreNull(AttendQuoteDataValuePO AttendQuoteDataValuePO);

	int updateDataValueByFiledIdAndEmployeeId(AttendQuoteDataValuePO attendQuoteDataValuePO);
	/**
     * 删除记录
     *
     * @param AttendQuoteDataValuePO 待删除的记录
     * @return 返回影响行数
     */
	int delete(AttendQuoteDataValuePO AttendQuoteDataValuePO);

	/**
	 * 批量删除数据采集-考勤引用数据
	 * @param attendQuoteDataIds
	 */
	void deleteByAttendQuoteDataIds(@Param("attendQuoteDataIds") Collection<Long> attendQuoteDataIds);

	/**
	 * 批量插入数据采集-考勤引用数据
	 * @param values
	 */
	void insertData(@Param("collection") List<AttendQuoteDataValuePO> values);

	List<AttendQuoteDataValuePO> listSome(@Param("param") AttendQuoteDataValuePO param);

	void deleteByAttendIds(@Param("attendIds") Collection<Long> quoteIds);
}