67 lines
1.4 KiB
Java
67 lines
1.4 KiB
Java
|
|
package com.engine.salary.mapper.datacollection;
|
|||
|
|
|
|||
|
|
import com.engine.salary.entity.datacollection.AddUpSituation;
|
|||
|
|
import org.apache.ibatis.annotations.Mapper;
|
|||
|
|
|
|||
|
|
import java.util.List;
|
|||
|
|
|
|||
|
|
@Mapper
|
|||
|
|
public interface AddUpSituationMapper {
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 查询所有记录
|
|||
|
|
*
|
|||
|
|
* @return 返回集合,没有返回空List
|
|||
|
|
*/
|
|||
|
|
List<AddUpSituation> listAll();
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 根据主键查询
|
|||
|
|
*
|
|||
|
|
* @param id 主键
|
|||
|
|
* @return 返回记录,没有返回null
|
|||
|
|
*/
|
|||
|
|
AddUpSituation getById(Long id);
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 新增,插入所有字段
|
|||
|
|
*
|
|||
|
|
* @param addUpSituation 新增的记录
|
|||
|
|
* @return 返回影响行数
|
|||
|
|
*/
|
|||
|
|
int insert(AddUpSituation addUpSituation);
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 新增,忽略null字段
|
|||
|
|
*
|
|||
|
|
* @param addUpSituation 新增的记录
|
|||
|
|
* @return 返回影响行数
|
|||
|
|
*/
|
|||
|
|
int insertIgnoreNull(AddUpSituation addUpSituation);
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 修改,修改所有字段
|
|||
|
|
*
|
|||
|
|
* @param addUpSituation 修改的记录
|
|||
|
|
* @return 返回影响行数
|
|||
|
|
*/
|
|||
|
|
int update(AddUpSituation addUpSituation);
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 修改,忽略null字段
|
|||
|
|
*
|
|||
|
|
* @param addUpSituation 修改的记录
|
|||
|
|
* @return 返回影响行数
|
|||
|
|
*/
|
|||
|
|
int updateIgnoreNull(AddUpSituation addUpSituation);
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 删除记录
|
|||
|
|
*
|
|||
|
|
* @param addUpSituation 待删除的记录
|
|||
|
|
* @return 返回影响行数
|
|||
|
|
*/
|
|||
|
|
int delete(AddUpSituation addUpSituation);
|
|||
|
|
|
|||
|
|
}
|