Browse Source

@fun: add is_record_origin

bai 2 years ago
parent
commit
e63c618188

+ 13 - 0
app/src/main/java/com/ys/bdtp/adm/mvvm/model/db/entity/config/ProblemInfoConfigEntity.kt

@@ -8,6 +8,18 @@ import androidx.room.PrimaryKey
  * 问题信息表
  *
  * @author bai
+ *
+ * @param id
+ * @param code 信息点编码
+ * @param name 信息点名称
+ * @param dataSource 数据源取值范围(枚举等),根据dataType的不同而不同
+ * @param dataType 数据类型
+ * @param isMultiple 是否复数,1 是,0 否
+ * @param isRecordOrigin 是否记录原值,1 记录,0 不记
+ * @param unit 单位
+ * @param valid 合法标识
+ * @param ts 时间戳
+ *
  */
 @Entity(tableName = "problem_info_config")
 data class ProblemInfoConfigEntity(
@@ -18,6 +30,7 @@ data class ProblemInfoConfigEntity(
     @ColumnInfo(name = "data_type") val dataType: String? = "",
     @ColumnInfo(name = "is_multiple") val isMultiple: Int = -1,
     @ColumnInfo(name = "problem_type_code") val problemTypeCode: String? = "",
+    @ColumnInfo(name = "is_record_origin") var isRecordOrigin: Int = 0,
     @ColumnInfo(name = "unit") val unit: String? = "",
     @ColumnInfo(name = "valid") val valid: Int = -1,
     @ColumnInfo(name = "ts") val ts: String? = ""