forked from dyf/fys-Multi-tenant
设备日志
This commit is contained in:
@ -102,4 +102,5 @@ public class DeviceLogController extends BaseController {
|
|||||||
@PathVariable Long[] ids) {
|
@PathVariable Long[] ids) {
|
||||||
return toAjax(deviceLogService.deleteWithValidByIds(List.of(ids), true));
|
return toAjax(deviceLogService.deleteWithValidByIds(List.of(ids), true));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,40 +1,51 @@
|
|||||||
package com.fuyuanshen.equipment.domain;
|
package com.fuyuanshen.equipment.domain;
|
||||||
|
|
||||||
import cn.hutool.core.bean.BeanUtil;
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
import cn.hutool.core.bean.copier.CopyOptions;
|
import com.fuyuanshen.common.mybatis.core.domain.BaseEntity;
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.fuyuanshen.common.tenant.core.TenantEntity;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description:
|
* 设备日志对象 device_log
|
||||||
* @Author: WY
|
*
|
||||||
* @Date: 2025/5/24
|
* @author Lion Li
|
||||||
**/
|
* @date 2025-07-29
|
||||||
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@TableName("device_log")
|
@TableName("device_log")
|
||||||
public class DeviceLog extends TenantEntity {
|
public class DeviceLog extends BaseEntity {
|
||||||
|
|
||||||
@TableId(value = "id", type = IdType.AUTO)
|
@Serial
|
||||||
// @Schema(value = "ID")
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ID
|
||||||
|
*/
|
||||||
|
@TableId(value = "id")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
// @Schema(value = "设备行为")
|
/**
|
||||||
|
* 设备行为
|
||||||
|
*/
|
||||||
private String deviceAction;
|
private String deviceAction;
|
||||||
|
|
||||||
// @Schema(value = "设备名称")
|
/**
|
||||||
|
* 设备名称
|
||||||
|
*/
|
||||||
private String deviceName;
|
private String deviceName;
|
||||||
|
|
||||||
// @Schema(value = "数据来源")
|
/**
|
||||||
|
* 数据来源
|
||||||
|
*/
|
||||||
private String dataSource;
|
private String dataSource;
|
||||||
|
|
||||||
// @Schema(value = "内容")
|
/**
|
||||||
|
* 内容
|
||||||
|
*/
|
||||||
private String content;
|
private String content;
|
||||||
|
|
||||||
public void copy(DeviceLog source){
|
|
||||||
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user