From f1b385dc2d86139bb472f430223d6858db62ce99 Mon Sep 17 00:00:00 2001 From: Coolkid Date: Fri, 26 Jan 2024 15:00:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=9B=91=E6=B5=8B=E6=96=AD?= =?UTF-8?q?=E9=9D=A2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/gunshi/project/xyt/mapper/StMoncrBMapper.java | 2 ++ .../java/com/gunshi/project/xyt/model/StMoncrB.java | 10 ++++++++++ src/main/resources/mapper/StMoncrBMapper.xml | 7 ++++--- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gunshi/project/xyt/mapper/StMoncrBMapper.java b/src/main/java/com/gunshi/project/xyt/mapper/StMoncrBMapper.java index 3c15e47..e85a14d 100644 --- a/src/main/java/com/gunshi/project/xyt/mapper/StMoncrBMapper.java +++ b/src/main/java/com/gunshi/project/xyt/mapper/StMoncrBMapper.java @@ -4,7 +4,9 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.gunshi.project.xyt.entity.basedata.GeneralSearch; import com.gunshi.project.xyt.model.StMoncrB; + import java.util.List; + import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; diff --git a/src/main/java/com/gunshi/project/xyt/model/StMoncrB.java b/src/main/java/com/gunshi/project/xyt/model/StMoncrB.java index 1f9d856..f5d7ffe 100644 --- a/src/main/java/com/gunshi/project/xyt/model/StMoncrB.java +++ b/src/main/java/com/gunshi/project/xyt/model/StMoncrB.java @@ -83,6 +83,14 @@ public class StMoncrB implements Serializable { @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") private Date tm; + /** + * 备注/描述 + */ + @TableField(value = "COMMENTS") + @Schema(description = "备注/描述") + @Size(max = 200,message = "备注/描述长度不能超过200") + private String comments; + public static final String COL_CR_ID = "CR_ID"; public static final String COL_CR_CD = "CR_CD"; @@ -96,4 +104,6 @@ public class StMoncrB implements Serializable { public static final String COL_STATUS = "STATUS"; public static final String COL_TM = "TM"; + + public static final String COL_COMMENTS = "COMMENTS"; } \ No newline at end of file diff --git a/src/main/resources/mapper/StMoncrBMapper.xml b/src/main/resources/mapper/StMoncrBMapper.xml index daae2ea..ee02267 100644 --- a/src/main/resources/mapper/StMoncrBMapper.xml +++ b/src/main/resources/mapper/StMoncrBMapper.xml @@ -11,20 +11,21 @@ + - CR_ID, CR_CD, CR_NM, CR_IMG_ID, SORT_ON, [STATUS], TM + CR_ID, CR_CD, CR_NM, CR_IMG_ID, SORT_ON, [STATUS], TM, COMMENTS insert into dbo.ST_MONCR_B - (CR_ID, CR_CD, CR_NM, CR_IMG_ID, SORT_ON, [STATUS], TM) + (CR_ID, CR_CD, CR_NM, CR_IMG_ID, SORT_ON, [STATUS], TM, COMMENTS) values (#{item.crId,jdbcType=BIGINT}, #{item.crCd,jdbcType=VARCHAR}, #{item.crNm,jdbcType=VARCHAR}, #{item.crImgId,jdbcType=BIGINT}, #{item.sortOn,jdbcType=INTEGER}, #{item.status,jdbcType=INTEGER}, - #{item.tm,jdbcType=TIMESTAMP}) + #{item.tm,jdbcType=TIMESTAMP}, #{item.comments,jdbcType=VARCHAR})