project init

This commit is contained in:
limqhz
2020-01-29 21:50:10 +08:00
parent 3d215fe181
commit d4c677d2b5
821 changed files with 111343 additions and 73 deletions

View File

@@ -0,0 +1,65 @@
package com.sv.mapper;
import com.common.DeviceDTO;
import com.sv.entity.Device;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* Mapper - 门禁设备
*
* @author zhaoziyu
* @since 2018-08-09
*/
public interface DeviceMapper {
/**
* 新建门禁设备
*
* @param device 门禁设备
*/
void insert(Device device);
/**
* 更新门禁设备
*
* @param device 门禁设备
*/
void update(Device device);
/**
* 删除门禁设备
*
* @param id 编号
* @return 删除数量
*/
int delete(Integer id);
/**
* 删除门禁设备
*
* @param ids 编号数组
* @return 删除数量
*/
int deleteByIds(Integer[] ids);
/**
* 查询门禁设备
*
* @param id 编号
* @return 门禁设备
*/
Device findById(Integer id);
/**
* 查询门禁设备
*
* @return 门禁设备集合
*/
List<Device> findAll();
List<DeviceDTO> findAllDTO();
Integer countByStream(@Param("stream") String stream,@Param("id") Integer id);
}