weaver-hrm-salary/src/com/engine/salary/mapper/formula/FormulaMapper.java

63 lines
1.3 KiB
Java
Raw Normal View History

2022-04-14 10:03:49 +08:00
package com.engine.salary.mapper.formula;
2022-04-14 20:46:17 +08:00
import com.engine.salary.entity.salaryformula.po.FormulaPO;
import org.apache.ibatis.annotations.Param;
2022-04-14 10:03:49 +08:00
import java.util.Collection;
2023-02-23 14:52:24 +08:00
import java.util.Date;
2022-04-14 10:03:49 +08:00
import java.util.List;
public interface FormulaMapper {
/**
* 查询所有记录
*
* @return 返回集合没有返回空List
*/
List<FormulaPO> listAll();
/**
* 条件查询
*
* @return 返回集合没有返回空List
*/
List<FormulaPO> listSome(FormulaPO formula);
/**
* 根据主键查询
*
* @param id 主键
* @return 返回记录没有返回null
*/
FormulaPO getById(Long id);
/**
* 新增忽略null字段
*
* @param formula 新增的记录
* @return 返回影响行数
*/
int insertIgnoreNull(FormulaPO formula);
/**
* 修改忽略null字段
*
* @param formula 修改的记录
* @return 返回影响行数
*/
int updateIgnoreNull(FormulaPO formula);
/**
* 删除记录
*
* @param formula 待删除的记录
* @return 返回影响行数
*/
int delete(FormulaPO formula);
2022-04-14 20:46:17 +08:00
List<FormulaPO> listByIds(@Param("ids")Collection<Long> ids);
2023-02-16 09:16:00 +08:00
2023-02-23 14:52:24 +08:00
void deleteNotIn(@Param("ids")List<Long> ids,@Param("yesterday") Date yesterday);
2022-04-14 10:03:49 +08:00
}