feat(biz): 新增动环设备信息管理功能
- 创建动环设备信息服务接口 ILcPowerEnvDeviceService - 定义动环设备实体类 LcPowerEnvDeviceEntity,包含设备基本信息和监控数据 - 添加动环设备信息 Mapper 接口 LcPowerEnvDeviceMapper,继承 BaseMapper - 实现动环设备信息服务类 LcPowerEnvDeviceServiceImpl - 配置 MyBatis 注解和 Jackson 序列化支持 - 继承基础租户实体类 BaseTenantEntity - 使用 Lombok 简化实体类代码编写 - 添加完整的字段注释和类文档说明
This commit is contained in:
@@ -0,0 +1,74 @@
|
|||||||
|
package com.jeelowcode.module.biz.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import com.jeelowcode.framework.utils.model.global.BaseTenantEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 动环设备信息表
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode
|
||||||
|
@TableName("lc_power_env_device")
|
||||||
|
public class LcPowerEnvDeviceEntity extends BaseTenantEntity {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
@TableId(value = "id", type = IdType.ASSIGN_ID)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 动环编号
|
||||||
|
*/
|
||||||
|
private String deviceUid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备编号
|
||||||
|
*/
|
||||||
|
private String deviceCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备类型编号
|
||||||
|
*/
|
||||||
|
private String deviceTypeCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备类型名称
|
||||||
|
*/
|
||||||
|
private String deviceTypeName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 楼宇编号
|
||||||
|
*/
|
||||||
|
private String buildingId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 楼宇名称
|
||||||
|
*/
|
||||||
|
private String buildingName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 园区编号
|
||||||
|
*/
|
||||||
|
private String campusId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 园区名称
|
||||||
|
*/
|
||||||
|
private String campusName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 最新监控数据
|
||||||
|
*/
|
||||||
|
private String monitorData;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
package com.jeelowcode.module.biz.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.jeelowcode.module.biz.entity.LcPowerEnvDeviceEntity;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 动环设备信息 Mapper
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface LcPowerEnvDeviceMapper extends BaseMapper<LcPowerEnvDeviceEntity> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
package com.jeelowcode.module.biz.service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 动环设备信息服务接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
*/
|
||||||
|
public interface ILcPowerEnvDeviceService {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package com.jeelowcode.module.biz.service.impl;
|
||||||
|
|
||||||
|
import com.jeelowcode.module.biz.service.ILcPowerEnvDeviceService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 动环设备信息服务实现类
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
*/
|
||||||
|
@Slf4j
|
||||||
|
@Service
|
||||||
|
public class LcPowerEnvDeviceServiceImpl implements ILcPowerEnvDeviceService {
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user