package cn.huge.module.sy.dao.mapper;
|
|
import cn.huge.module.sy.domain.po.SyHoliday;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import org.apache.ibatis.annotations.Param;
|
import org.springframework.data.domain.PageRequest;
|
import org.springframework.stereotype.Repository;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* @title: 节假日日期配置表持久层业务处理
|
* @Description 此处仅涉及复杂SQL操作,务必不要在此再次写单表的CRUD操作,因为mybatisPlus已经实现。
|
* @company: hugeinfo
|
* @author: liyj
|
* @time: 2025-01-20 10:56:54
|
* @version 1.0.0
|
*/
|
@Repository
|
public interface SyHolidayMapper extends BaseMapper<SyHoliday>{
|
|
/**
|
* 更新对象
|
* @param entity 对象
|
*/
|
void updateSyHoliday(@Param("entity") SyHoliday entity);
|
|
/**
|
* 条件更新对象
|
* @param entity 对象
|
* @param terms 条件
|
*/
|
void updateSyHolidayTerms(@Param("entity") SyHoliday entity, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 根据编号物理删除
|
* @param id 查询条件集合
|
*/
|
void deleteSyHoliday(@Param("id") String id);
|
|
/**
|
* 按条件查询结果集
|
* @param terms 查询条件集合
|
* @return List<SyHoliday>
|
*/
|
List<SyHoliday> listTerms(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 按条件查询实体总数
|
* @param terms 查询条件集合
|
* @return long
|
*/
|
long countTerms(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 按条件查询实体分页结果集
|
* @param page 分页对象
|
* @param terms 查询条件集合
|
* @return List<SyHoliday>
|
*/
|
List<SyHoliday> pageTerms(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
}
|