From 40662806c2738a259edb87761b3ac3ae4a0001c4 Mon Sep 17 00:00:00 2001
From: jiaosong <jiaosong6760@dingtalk.com>
Date: 星期四, 07 十二月 2023 16:16:21 +0800
Subject: [PATCH] #答题日志数据转换 字段映射修改

---
 server/dmvisit_service/src/main/java/com/doumee/dao/business/model/ProblemLog.java |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/server/dmvisit_service/src/main/java/com/doumee/dao/business/model/ProblemLog.java b/server/dmvisit_service/src/main/java/com/doumee/dao/business/model/ProblemLog.java
index d7740aa..a7ef88d 100644
--- a/server/dmvisit_service/src/main/java/com/doumee/dao/business/model/ProblemLog.java
+++ b/server/dmvisit_service/src/main/java/com/doumee/dao/business/model/ProblemLog.java
@@ -1,5 +1,8 @@
 package com.doumee.dao.business.model;
 
+import com.alibaba.fastjson.JSONObject;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.doumee.config.mybatis.JSONObjectHandler;
 import com.doumee.core.annotation.excel.ExcelColumn;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
@@ -18,7 +21,7 @@
  */
 @Data
 @ApiModel("璁垮绛旈璁板綍琛�")
-@TableName("`problem_log`")
+@TableName(value = "`problem_log`",autoResultMap = true)
 public class ProblemLog {
 
     @TableId(type = IdType.AUTO)
@@ -70,12 +73,18 @@
 
     @ApiModelProperty(value = "绛旈鏄庣粏锛宩son瀛樺偍")
     @ExcelColumn(name="绛旈鏄庣粏锛宩son瀛樺偍")
-    private String content;
+    @TableField(value = "content", typeHandler = JSONObjectHandler.class)
+    private JSONObject content;
 
     @ApiModelProperty(value = "绛旈浜哄鍚�")
     @ExcelColumn(name="绛旈浜哄鍚�")
     private String name;
 
+    @ApiModelProperty(value = "绫诲瀷 0鍔冲姟璁垮 1鏅�氳瀹�  2鍐呴儴浜哄憳")
+    @ExcelColumn(name="绫诲瀷 0鍔冲姟璁垮 1鏅�氳瀹�  2鍐呴儴浜哄憳")
+    @TableField(exist = false)
+    private Integer type;
+
     @ApiModelProperty(value = "绛旈浜烘墜鏈哄悗")
     @ExcelColumn(name="绛旈浜烘墜鏈哄悗")
     private String phone;

--
Gitblit v1.9.3