package com.cloud.attendance.dao;
|
|
import com.cloud.attendance.model.AttRule;
|
import lombok.Data;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.springframework.stereotype.Repository;
|
|
/**
|
* @author lp
|
*/
|
@Repository
|
@Mapper
|
public interface AttRuleDao {
|
/**
|
* 根据主键删除
|
* @param id 主键
|
* @return
|
*/
|
int deleteById(Integer id);
|
|
/**
|
* 添加规则(全字段)
|
* @param record
|
* @return
|
*/
|
int save(AttRule record);
|
|
/**
|
* 添加规则(部分字段)
|
* @param record
|
* @return
|
*/
|
int saveSelective(AttRule record);
|
|
/**
|
* 根据主键查询规则
|
* @param id
|
* @return
|
*/
|
AttRule selectById(Integer id);
|
|
/**
|
* 查询最新可用规则 wp
|
* @return
|
*/
|
public AttRule selectAttRule();
|
|
/**
|
* 根据主键修改(部分字段)
|
* @param record
|
* @return
|
*/
|
int updateByIdSelective(AttRule record);
|
|
/**
|
* 根据主键修改(全字段)
|
* @param record
|
* @return
|
*/
|
int updateById(AttRule record);
|
}
|