You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
1.6 KiB
75 lines
1.6 KiB
package com.psdc.mapper;
|
|
|
|
import java.util.List;
|
|
|
|
import com.psdc.entity.PsdcTimer;
|
|
import com.psdc.entity.request.PsdcTimerRequest;
|
|
import com.psdc.entity.vo.PsdcTimerVo;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
|
|
/**
|
|
* 定时控制任务表;(psdc_timer)表数据库访问层
|
|
* @date : 2023-5-10
|
|
*/
|
|
@Mapper
|
|
public interface PsdcTimerMapper{
|
|
/**
|
|
* 通过ID查询单条数据
|
|
*
|
|
* @param timerId 主键
|
|
* @return 实例对象
|
|
*/
|
|
PsdcTimer queryById(Integer timerId);
|
|
|
|
/**
|
|
* 通过ID查询单条数据
|
|
*
|
|
* @param timerId 主键
|
|
* @return 实例对象
|
|
*/
|
|
PsdcTimerVo queryById2(Integer timerId);
|
|
/**
|
|
* 分页查询指定行数据
|
|
*
|
|
* @param psdcTimer 查询条件
|
|
* @param pageable 分页对象
|
|
* @return 对象列表
|
|
*/
|
|
List<PsdcTimerVo> queryAllByLimit(PsdcTimerRequest psdcTimerRequest);
|
|
|
|
/**
|
|
* 新增数据
|
|
*
|
|
* @param psdcTimer 实例对象
|
|
* @return 影响行数
|
|
*/
|
|
int insert(PsdcTimer psdcTimer);
|
|
|
|
|
|
/**
|
|
* 更新数据
|
|
*
|
|
* @param psdcTimer 实例对象
|
|
* @return 影响行数
|
|
*/
|
|
int update(PsdcTimer psdcTimer);
|
|
|
|
/**
|
|
* 更新状态数据
|
|
* @param timerId
|
|
* @param status
|
|
* @return
|
|
*/
|
|
int updateStatus(@Param(value = "timerId") Integer timerId,
|
|
@Param(value = "status") Integer status);
|
|
|
|
/**
|
|
* 通过主键删除数据
|
|
*
|
|
* @param timerId 主键
|
|
* @return 影响行数
|
|
*/
|
|
int deleteById(Integer timerId);
|
|
} |