79 lines
1.5 KiB
Plaintext
79 lines
1.5 KiB
Plaintext
package com.sercurityControl.proteam.mapper;
|
|
|
|
import com.sercurityControl.proteam.domain.vo.DeviceTypeVo;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 设备类型接口层
|
|
*/
|
|
@Repository(value = "DeviceTypeMapper")
|
|
public interface DeviceTypeMapper {
|
|
|
|
/**
|
|
* 查询全部设备类型
|
|
* @param deviceTypeVo
|
|
* @return
|
|
*/
|
|
List<DeviceTypeVo> getTypeList(DeviceTypeVo deviceTypeVo);
|
|
|
|
/**
|
|
*
|
|
* @param param
|
|
* @return
|
|
*/
|
|
List<DeviceTypeVo> getPTypeSelected(@Param("pId") String param);
|
|
|
|
/**
|
|
* 名称不能重复
|
|
* @param typeVo
|
|
* @return
|
|
*/
|
|
Integer getNumByType(DeviceTypeVo typeVo);
|
|
|
|
/**
|
|
* 编码不能重复
|
|
* @param typeVo
|
|
* @return
|
|
*/
|
|
Integer getNumByCode(DeviceTypeVo typeVo);
|
|
|
|
/**
|
|
* x新增设备类型
|
|
* @param typeVo
|
|
* @return
|
|
*/
|
|
Integer addDeviceType(DeviceTypeVo typeVo);
|
|
|
|
/**
|
|
*
|
|
* @param keyId
|
|
* @return
|
|
*/
|
|
DeviceTypeVo getDeviceTypeDetail(@Param("keyId") String keyId);
|
|
|
|
/**
|
|
* 设备类型修改
|
|
* @param typeVo
|
|
* @return
|
|
*/
|
|
Integer updateDeviceType(DeviceTypeVo typeVo);
|
|
|
|
/**
|
|
* 查询子节点
|
|
* @param keyId
|
|
* @return
|
|
*/
|
|
Integer getNumByPId(String keyId);
|
|
|
|
/**
|
|
* 删除设备类型
|
|
* @param keyId
|
|
* @return
|
|
*/
|
|
Integer deleteType(String keyId);
|
|
}
|