Commit 30049c8123ee3bb080357345ee3c78df4136b6ef
1 parent
cd3c822986
Exists in
master
and in
6 other branches
add plantform config model
Showing 1 changed file with 112 additions and 0 deletions
platform-dal/src/main/java/com/lyms/platform/pojo/PlantformConfigModel.java
View file @
30049c8
| 1 | +package com.lyms.platform.pojo; | |
| 2 | + | |
| 3 | +import com.lyms.platform.common.result.BaseModel; | |
| 4 | + | |
| 5 | +import java.util.Date; | |
| 6 | + | |
| 7 | +import org.bson.types.ObjectId; | |
| 8 | +import org.springframework.data.annotation.Id; | |
| 9 | +import org.springframework.data.mongodb.core.mapping.Document; | |
| 10 | + | |
| 11 | +/** | |
| 12 | + * 系统配置表 | |
| 13 | + */ | |
| 14 | +@Document(collection = "lyms_plantform_config") | |
| 15 | +public class PlantformConfigModel extends BaseModel { | |
| 16 | + | |
| 17 | + private static final long serialVersionUID = 4605751215073152594L; | |
| 18 | + | |
| 19 | + /** | |
| 20 | + * 主键id | |
| 21 | + */ | |
| 22 | + @Id | |
| 23 | + private ObjectId id; | |
| 24 | + | |
| 25 | + /** | |
| 26 | + * key名称 | |
| 27 | + */ | |
| 28 | + private String key; | |
| 29 | + | |
| 30 | + /** | |
| 31 | + * key值 | |
| 32 | + */ | |
| 33 | + private String value; | |
| 34 | + | |
| 35 | + /** | |
| 36 | + * key的类型 | |
| 37 | + */ | |
| 38 | + private String type; | |
| 39 | + | |
| 40 | + /** | |
| 41 | + * 创建时间 | |
| 42 | + */ | |
| 43 | + private Date createDate; | |
| 44 | + | |
| 45 | + /** | |
| 46 | + * 备注 | |
| 47 | + */ | |
| 48 | + private String remark; | |
| 49 | + | |
| 50 | + /** | |
| 51 | + * mongo的inr操作不支持 字符串 | |
| 52 | + * 用于记录每次自增之后的值 | |
| 53 | + */ | |
| 54 | + private Long incrementValue; | |
| 55 | + | |
| 56 | + public ObjectId getId() { | |
| 57 | + return id; | |
| 58 | + } | |
| 59 | + | |
| 60 | + public void setId(ObjectId id) { | |
| 61 | + this.id = id; | |
| 62 | + } | |
| 63 | + | |
| 64 | + public String getKey() { | |
| 65 | + return key; | |
| 66 | + } | |
| 67 | + | |
| 68 | + public void setKey(String key) { | |
| 69 | + this.key = key; | |
| 70 | + } | |
| 71 | + | |
| 72 | + public String getValue() { | |
| 73 | + return value; | |
| 74 | + } | |
| 75 | + | |
| 76 | + public void setValue(String value) { | |
| 77 | + this.value = value; | |
| 78 | + } | |
| 79 | + | |
| 80 | + public String getType() { | |
| 81 | + return type; | |
| 82 | + } | |
| 83 | + | |
| 84 | + public void setType(String type) { | |
| 85 | + this.type = type; | |
| 86 | + } | |
| 87 | + | |
| 88 | + public Date getCreateDate() { | |
| 89 | + return createDate; | |
| 90 | + } | |
| 91 | + | |
| 92 | + public void setCreateDate(Date createDate) { | |
| 93 | + this.createDate = createDate; | |
| 94 | + } | |
| 95 | + | |
| 96 | + public String getRemark() { | |
| 97 | + return remark; | |
| 98 | + } | |
| 99 | + | |
| 100 | + public void setRemark(String remark) { | |
| 101 | + this.remark = remark; | |
| 102 | + } | |
| 103 | + | |
| 104 | + public Long getIncrementValue() { | |
| 105 | + return incrementValue; | |
| 106 | + } | |
| 107 | + | |
| 108 | + public void setIncrementValue(Long incrementValue) { | |
| 109 | + this.incrementValue = incrementValue; | |
| 110 | + } | |
| 111 | + | |
| 112 | +} |