From fa45f3232c4d7c08975cacc668b6eca69b217edb Mon Sep 17 00:00:00 2001
From: Jay <csj123456>
Date: 星期三, 16 十月 2024 15:28:50 +0800
Subject: [PATCH] 让数据库表可以存空值

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/item/entity/IndItemAtomEntity.java |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/item/entity/IndItemAtomEntity.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/item/entity/IndItemAtomEntity.java
index 7fdec90..d9898bb 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/item/entity/IndItemAtomEntity.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/item/entity/IndItemAtomEntity.java
@@ -1,8 +1,6 @@
 package com.iailab.module.data.ind.item.entity;
 
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.*;
 import lombok.Data;
 
 import java.io.Serializable;
@@ -32,20 +30,24 @@
     /**
      * 数据源
      */
+    @TableField(updateStrategy = FieldStrategy.ALWAYS)
     private String dataSource;
 
     /**
      * 数据集
      */
+    @TableField(updateStrategy = FieldStrategy.ALWAYS)
     private String dataSet;
 
     /**
      * 使用字段
      */
+    @TableField(updateStrategy = FieldStrategy.ALWAYS)
     private String usingField;
 
     /**
      * 统计方式
      */
+    @TableField(updateStrategy = FieldStrategy.ALWAYS)
     private String statFunc;
 }
\ No newline at end of file

--
Gitblit v1.9.3