mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
添加环境因子配置项
This commit is contained in:
@@ -4,6 +4,7 @@ import cn.lihongjie.coal.base.entity.OrgCommonEntity;
|
||||
import cn.lihongjie.coal.emDeviceSupplier.entity.EmDeviceSupplierEntity;
|
||||
import cn.lihongjie.coal.thirdAccount.entity.ThirdAccountEntity;
|
||||
|
||||
import jakarta.persistence.ElementCollection;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
|
||||
@@ -13,6 +14,8 @@ import org.hibernate.annotations.ColumnDefault;
|
||||
import org.hibernate.annotations.Comment;
|
||||
import org.hibernate.annotations.Formula;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@Entity
|
||||
public class EmDeviceEntity extends OrgCommonEntity {
|
||||
@@ -47,4 +50,8 @@ public class EmDeviceEntity extends OrgCommonEntity {
|
||||
+ " and d.code = 'archiveStatus'\n"
|
||||
+ " and i.code = archive_status)")
|
||||
private String archiveStatusName;
|
||||
|
||||
|
||||
@ElementCollection
|
||||
private List<EmDeviceItemConfig> itemConfig;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
package cn.lihongjie.coal.emDevice.entity;
|
||||
|
||||
import jakarta.persistence.Embeddable;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@Embeddable
|
||||
public class EmDeviceItemConfig {
|
||||
|
||||
|
||||
private String code;
|
||||
private String name;
|
||||
private Double minVal;
|
||||
private Double maxVal;
|
||||
|
||||
private Boolean enableAlter;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user