0
0

查询设备分组列表

This commit is contained in:
2025-08-14 14:21:47 +08:00
parent 1af4b165f2
commit 9c9d18cddc
10 changed files with 227 additions and 12 deletions

View File

@ -24,7 +24,7 @@ public class DeviceGroup extends TenantEntity {
/**
* 主键ID
*/
@TableId(value = "id")
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**

View File

@ -5,6 +5,7 @@ import com.fuyuanshen.common.core.validate.EditGroup;
import com.fuyuanshen.equipment.domain.DeviceGroup;
import com.fuyuanshen.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
@ -55,4 +56,10 @@ public class DeviceGroupBo extends BaseEntity {
private Long isDeleted;
@Schema(name = "页码", example = "1")
private Integer pageNum = 1;
@Schema(name = "每页数据量", example = "10")
private Integer pageSize = 10;
}

View File

@ -1,5 +1,7 @@
package com.fuyuanshen.equipment.domain.vo;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fuyuanshen.equipment.domain.DeviceGroup;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
@ -44,7 +46,7 @@ public class DeviceGroupVo implements Serializable {
* 状态0-禁用1-正常
*/
@ExcelProperty(value = "状态0-禁用1-正常")
private Long status;
private String status;
/**
* 父分组ID
@ -69,4 +71,9 @@ public class DeviceGroupVo implements Serializable {
*/
private List<DeviceGroupVo> children;
/**
* 创建时间
*/
private String createTime;
}