Files
xgy-oa/klp-ems/src/main/java/com/klp/ems/domain/EmsLocation.java
Joshi 4a2e0c37f3 feat(ems): 添加位置坐标字段及区域功能
-树设备挂载 在 EmsLocation 实体及其相关 BO、VO 中新增 x、y 坐标字段
- 更新 Mapper XML 配置以支持新字段映射
- 新增 LocationTreeNodeVo 类用于表示区域树节点结构
- 在 EmsLocationController 中增加 /treeWithDevices 接口
- 在 EmsLocationServiceImpl 中实现 treeWithDevices 方法,
  构建带路径的区域树并在叶子节点挂载设备信息
- 注入 IEmsAlarmDeviceService 服务以查询设备数据
- 修改生产环境数据库端口号与密码配置
2025-10-14 16:59:09 +08:00

57 lines
1005 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.klp.ems.domain;
import com.baomidou.mybatisplus.annotation.*;
import com.klp.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 位置对象 ems_location
*
* @author Joshi
* @date 2025-09-28
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("ems_location")
public class EmsLocation extends BaseEntity {
private static final long serialVersionUID=1L;
/**
*
*/
@TableId(value = "location_id")
private Long locationId;
/**
* 区域名称
*/
private String name;
/**
* 父级区域ID用于构建区域层级
*/
private Long parentId;
/**
* 区域描述
*/
private String description;
/**
* 详细地址
*/
private String address;
/**
* 删除标志0=存在 2=删除)
*/
@TableLogic
private String delFlag;
/**
* 备注
*/
private String remark;
private Integer x;
private Integer y;
}