package com.doumee.service.business;
|
|
import com.doumee.core.haikang.model.param.request.TransparentChannelSingleRequest;
|
import com.doumee.service.business.third.model.PageData;
|
import com.doumee.service.business.third.model.PageWrap;
|
import com.doumee.dao.business.model.Device;
|
import java.util.List;
|
|
/**
|
* 设备信息表Service定义
|
* @author 江蹄蹄
|
* @date 2023/11/30 15:33
|
*/
|
public interface DeviceService {
|
|
/**
|
* 创建
|
*
|
* @param device 实体对象
|
* @return Integer
|
*/
|
Integer create(Device device);
|
|
/**
|
* 主键删除
|
*
|
* @param id 主键
|
*/
|
void deleteById(Integer id);
|
|
/**
|
* 删除
|
*
|
* @param device 实体对象
|
*/
|
void delete(Device device);
|
|
/**
|
* 批量主键删除
|
*
|
* @param ids 主键集
|
*/
|
void deleteByIdInBatch(List<Integer> ids);
|
|
/**
|
* 主键更新
|
*
|
* @param device 实体对象
|
*/
|
void updateById(Device device);
|
|
/**
|
* 批量主键更新
|
*
|
* @param devices 实体集
|
*/
|
void updateByIdInBatch(List<Device> devices);
|
|
/**
|
* 主键查询
|
*
|
* @param id 主键
|
* @return Device
|
*/
|
Device findById(Integer id);
|
|
/**
|
* 条件查询单条记录
|
*
|
* @param device 实体对象
|
* @return Device
|
*/
|
Device findOne(Device device);
|
|
/**
|
* 条件查询
|
*
|
* @param device 实体对象
|
* @return List<Device>
|
*/
|
List<Device> findList(Device device);
|
|
/**
|
* 根据条件查询,所有门禁的ID和名称
|
* @param device
|
* @return
|
*/
|
List<Device> findIdAndNameList(Device device);
|
|
/**
|
* 分页查询
|
*
|
* @param pageWrap 分页对象
|
* @return PageData<Device>
|
*/
|
PageData<Device> findPage(PageWrap<Device> pageWrap);
|
|
/**
|
* 条件统计
|
*
|
* @param device 实体对象
|
* @return long
|
*/
|
long count(Device device);
|
|
void setLedContent(TransparentChannelSingleRequest body);
|
void allLedDefualtContent();
|
}
|