forked from dyf/fys-Multi-tenant
查询设备分组列表
This commit is contained in:
@ -24,7 +24,7 @@ public class DeviceGroup extends TenantEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId(value = "id")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
|
||||
@ -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;
|
||||
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user