|
|
@@ -0,0 +1,307 @@
|
|
|
+package com.yingyangfly.baselib.db;
|
|
|
+
|
|
|
+import android.text.TextUtils;
|
|
|
+
|
|
|
+import androidx.room.Entity;
|
|
|
+import androidx.room.PrimaryKey;
|
|
|
+
|
|
|
+import com.alibaba.fastjson.annotation.JSONField;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author 王鹏鹏
|
|
|
+ */
|
|
|
+@Entity(tableName = "Examination")
|
|
|
+public class ExaminationRecord {
|
|
|
+
|
|
|
+ @JSONField(serialize = false)
|
|
|
+ @PrimaryKey(autoGenerate = true)
|
|
|
+ private int examinationRecordId;
|
|
|
+
|
|
|
+ @JSONField(serialize = false)
|
|
|
+ private String createBy;
|
|
|
+
|
|
|
+ @JSONField(serialize = false)
|
|
|
+ private String createTime;
|
|
|
+
|
|
|
+ @JSONField(serialize = false)
|
|
|
+ private String described;
|
|
|
+
|
|
|
+ @JSONField(serialize = false)
|
|
|
+ private String examType;
|
|
|
+
|
|
|
+ @JSONField(serialize = false)
|
|
|
+ private String examinationCount;
|
|
|
+
|
|
|
+ @JSONField(serialize = false)
|
|
|
+ private String examinationScore;
|
|
|
+
|
|
|
+ @JSONField(serialize = false)
|
|
|
+ private String limit;
|
|
|
+
|
|
|
+ @JSONField(serialize = false)
|
|
|
+ private String orgCode;
|
|
|
+
|
|
|
+ @JSONField(serialize = false)
|
|
|
+ private String orgName;
|
|
|
+
|
|
|
+ @JSONField(serialize = false)
|
|
|
+ private String page;
|
|
|
+
|
|
|
+ @JSONField(serialize = false)
|
|
|
+ private String status;
|
|
|
+
|
|
|
+ @JSONField(serialize = false)
|
|
|
+ private String updateBy;
|
|
|
+
|
|
|
+ @JSONField(serialize = false)
|
|
|
+ private String updateTime;
|
|
|
+
|
|
|
+ private String id;
|
|
|
+ private String title;
|
|
|
+ private String correctOptionId;
|
|
|
+ private String questionOptionName;
|
|
|
+ private String examinationId;
|
|
|
+ private String examinationTitle;
|
|
|
+ private String score;
|
|
|
+ private String usedTime;
|
|
|
+
|
|
|
+
|
|
|
+ public int getExaminationRecordId() {
|
|
|
+ return examinationRecordId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setExaminationRecordId(int examinationRecordId) {
|
|
|
+ this.examinationRecordId = examinationRecordId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getId() {
|
|
|
+ if (TextUtils.isEmpty(id)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setId(String id) {
|
|
|
+ this.id = id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getCreateBy() {
|
|
|
+ if (TextUtils.isEmpty(createBy)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return createBy;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCreateBy(String createBy) {
|
|
|
+ this.createBy = createBy;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getCreateTime() {
|
|
|
+ if (TextUtils.isEmpty(createTime)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return createTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCreateTime(String createTime) {
|
|
|
+ this.createTime = createTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getDescribed() {
|
|
|
+ if (TextUtils.isEmpty(described)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return described;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDescribed(String described) {
|
|
|
+ this.described = described;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getExamType() {
|
|
|
+ if (TextUtils.isEmpty(examType)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return examType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setExamType(String examType) {
|
|
|
+ this.examType = examType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getExaminationCount() {
|
|
|
+ if (TextUtils.isEmpty(examinationCount)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return examinationCount;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setExaminationCount(String examinationCount) {
|
|
|
+ this.examinationCount = examinationCount;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getExaminationScore() {
|
|
|
+ if (TextUtils.isEmpty(examinationScore)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return examinationScore;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setExaminationScore(String examinationScore) {
|
|
|
+ this.examinationScore = examinationScore;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getLimit() {
|
|
|
+ if (TextUtils.isEmpty(limit)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return limit;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setLimit(String limit) {
|
|
|
+ this.limit = limit;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getOrgCode() {
|
|
|
+ if (TextUtils.isEmpty(orgCode)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return orgCode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setOrgCode(String orgCode) {
|
|
|
+ this.orgCode = orgCode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getOrgName() {
|
|
|
+ if (TextUtils.isEmpty(orgName)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return orgName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setOrgName(String orgName) {
|
|
|
+ this.orgName = orgName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getPage() {
|
|
|
+ if (TextUtils.isEmpty(page)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return page;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPage(String page) {
|
|
|
+ this.page = page;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getStatus() {
|
|
|
+ if (TextUtils.isEmpty(status)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return status;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setStatus(String status) {
|
|
|
+ this.status = status;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getTitle() {
|
|
|
+ if (TextUtils.isEmpty(title)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return title;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTitle(String title) {
|
|
|
+ this.title = title;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getUpdateBy() {
|
|
|
+ if (TextUtils.isEmpty(updateBy)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return updateBy;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUpdateBy(String updateBy) {
|
|
|
+ this.updateBy = updateBy;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getUpdateTime() {
|
|
|
+ if (TextUtils.isEmpty(updateTime)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return updateTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUpdateTime(String updateTime) {
|
|
|
+ this.updateTime = updateTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getCorrectOptionId() {
|
|
|
+ if (TextUtils.isEmpty(correctOptionId)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return correctOptionId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCorrectOptionId(String correctOptionId) {
|
|
|
+ this.correctOptionId = correctOptionId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getExaminationTitle() {
|
|
|
+ if (TextUtils.isEmpty(examinationTitle)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return examinationTitle;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setExaminationTitle(String examinationTitle) {
|
|
|
+ this.examinationTitle = examinationTitle;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getScore() {
|
|
|
+ if (TextUtils.isEmpty(score)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return score;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setScore(String score) {
|
|
|
+ this.score = score;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getUsedTime() {
|
|
|
+ if (TextUtils.isEmpty(usedTime)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return usedTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUsedTime(String usedTime) {
|
|
|
+ this.usedTime = usedTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getQuestionOptionName() {
|
|
|
+ if (TextUtils.isEmpty(questionOptionName)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return questionOptionName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setQuestionOptionName(String questionOptionName) {
|
|
|
+ this.questionOptionName = questionOptionName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getExaminationId() {
|
|
|
+ if (TextUtils.isEmpty(examinationId)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return examinationId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setExaminationId(String examinationId) {
|
|
|
+ this.examinationId = examinationId;
|
|
|
+ }
|
|
|
+}
|