From c767572a9ff31393eb27d3813753f9fbdd94f293 Mon Sep 17 00:00:00 2001 From: gyb Date: Mon, 16 Mar 2026 09:09:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E6=A0=87=E6=B3=A8?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=88=A0=E9=99=A4=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/db/migration/V3__Create_marker_tables.sql | 2 +- src/main/resources/mapper/airline/AirlineMarkerMapper.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/db/migration/V3__Create_marker_tables.sql b/src/main/resources/db/migration/V3__Create_marker_tables.sql index ec179aa..22dcda2 100644 --- a/src/main/resources/db/migration/V3__Create_marker_tables.sql +++ b/src/main/resources/db/migration/V3__Create_marker_tables.sql @@ -3,7 +3,7 @@ CREATE TABLE IF NOT EXISTS airline_marker ( id BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', marker_name VARCHAR(255) NOT NULL COMMENT '标注名称', marker_type VARCHAR(255) COMMENT '标注类型', - status INT(11) DEFAULT 1 COMMENT '1 启用 0 停用。默认启用。', + status INT(11) NOT NULL DEFAULT 1 COMMENT '1 启用 0 停用。默认启用。', color VARCHAR(255) DEFAULT '#000000' COMMENT '颜色', icon VARCHAR(255) DEFAULT NULL COMMENT '图标', font_size INT(11) DEFAULT 14 COMMENT '字体大小', diff --git a/src/main/resources/mapper/airline/AirlineMarkerMapper.xml b/src/main/resources/mapper/airline/AirlineMarkerMapper.xml index b629102..f3f6d3a 100644 --- a/src/main/resources/mapper/airline/AirlineMarkerMapper.xml +++ b/src/main/resources/mapper/airline/AirlineMarkerMapper.xml @@ -24,8 +24,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - insert into airline_marker (marker_name, marker_type, status, color, icon, font_size, coordinates, description, create_by, create_time, update_by, update_time, remark) - values (#{markerName}, #{markerType}, #{status}, #{color}, #{icon}, #{fontSize}, #{coordinates}, #{description}, #{createBy}, now(), #{updateBy}, now(), #{remark}) + insert into airline_marker (marker_name, marker_type, color, icon, font_size, coordinates, description, create_by, create_time, update_by, update_time, remark) + values (#{markerName}, #{markerType}, #{color}, #{icon}, #{fontSize}, #{coordinates}, #{description}, #{createBy}, now(), #{updateBy}, now(), #{remark})