SQL调整

This commit is contained in:
wangshilong 2025-02-17 20:40:15 +08:00
parent f9e1df0000
commit 9c41e15957
2 changed files with 27 additions and 27 deletions

View File

@ -24,7 +24,7 @@ public class MinuteLocalTimeDecodeHandler implements DecodeHandler {
if (StringUtils.isNotBlank(value) && NumberUtils.isCreatable(value)) { if (StringUtils.isNotBlank(value) && NumberUtils.isCreatable(value)) {
long totalMinutes = NumberUtils.createLong(value); long totalMinutes = NumberUtils.createLong(value);
long hours = TimeUnit.MINUTES.toHours(totalMinutes); long hours = TimeUnit.MINUTES.toHours(totalMinutes);
long minutes = totalMinutes - TimeUnit.HOURS.toSeconds(hours); long minutes = totalMinutes - TimeUnit.HOURS.toMinutes(hours);
return String.format("%02d:%02d:00", hours, minutes); return String.format("%02d:%02d:00", hours, minutes);
} }
return value; return value;

View File

@ -24,17 +24,17 @@ CREATE TABLE `$TableName$`
`high_pressure_protection` decimal(10, 2) NULL DEFAULT NULL COMMENT '高压保护压力MPa低压集气方式 高压保护设置;', `high_pressure_protection` decimal(10, 2) NULL DEFAULT NULL COMMENT '高压保护压力MPa低压集气方式 高压保护设置;',
`low_pressure_protection` decimal(10, 2) NULL DEFAULT NULL COMMENT '低压保护压力MPa高压集气方式 低压保护设置;', `low_pressure_protection` decimal(10, 2) NULL DEFAULT NULL COMMENT '低压保护压力MPa高压集气方式 低压保护设置;',
`too_fast_count` int NULL DEFAULT NULL COMMENT '过快次数设置;次', `too_fast_count` int NULL DEFAULT NULL COMMENT '过快次数设置;次',
`dangerous_rise_time` varchar(10) NULL DEFAULT NULL COMMENT '危险上升时间;秒', `dangerous_rise_time` varchar(10) NULL DEFAULT NULL COMMENT '危险上升时间;秒HH:mm:ss',
`too_fast_rise_time` varchar(10) NULL DEFAULT NULL COMMENT '过快上升时间;秒', `too_fast_rise_time` varchar(10) NULL DEFAULT NULL COMMENT '过快上升时间;秒HH:mm:ss',
`open_well_time` decimal(10, 2) NULL DEFAULT NULL COMMENT '开井时间设置;小时', `open_well_time` decimal(10, 2) NULL DEFAULT NULL COMMENT '开井时间设置;小时',
`close_well_time` decimal(10, 2) NULL DEFAULT NULL COMMENT '关井时间设置;小时', `close_well_time` decimal(10, 2) NULL DEFAULT NULL COMMENT '关井时间设置;小时',
`open_well_cas_pressure` decimal(10, 2) NULL DEFAULT NULL COMMENT '套压开井压力MPa压力优化微升模式', `open_well_cas_pressure` decimal(10, 2) NULL DEFAULT NULL COMMENT '套压开井压力MPa压力优化微升模式',
`little_rise_cas_pressure` decimal(10, 2) NULL DEFAULT NULL COMMENT '套压微升压力MPa压力优化微升模式', `little_rise_cas_pressure` decimal(10, 2) NULL DEFAULT NULL COMMENT '套压微升压力MPa压力优化微升模式',
`check_stability_time` varchar(10) NULL DEFAULT NULL COMMENT '检测稳定时间;秒', `check_stability_time` varchar(10) NULL DEFAULT NULL COMMENT '检测稳定时间;秒HH:mm:ss',
`min_close_well_time` varchar(10) NULL DEFAULT NULL COMMENT '最小关井时间;分钟', `min_close_well_time` varchar(10) NULL DEFAULT NULL COMMENT '最小关井时间;分钟HH:mm',
`max_close_well_time` varchar(10) NULL DEFAULT NULL COMMENT '最大关井时间;分钟', `max_close_well_time` varchar(10) NULL DEFAULT NULL COMMENT '最大关井时间;分钟HH:mm',
`min_open_well_time` varchar(10) NULL DEFAULT NULL COMMENT '最小开井时间;分钟', `min_open_well_time` varchar(10) NULL DEFAULT NULL COMMENT '最小开井时间;分钟HH:mm',
`max_open_well_time` varchar(10) NULL DEFAULT NULL COMMENT '最大开井时间;分钟', `max_open_well_time` varchar(10) NULL DEFAULT NULL COMMENT '最大开井时间;分钟HH:mm',
`well_depth` int NULL DEFAULT NULL COMMENT '气井深度;米', `well_depth` int NULL DEFAULT NULL COMMENT '气井深度;米',
`produce_mode` int NULL DEFAULT NULL COMMENT '生产制度1-常开2-常关3-柱塞气举', `produce_mode` int NULL DEFAULT NULL COMMENT '生产制度1-常开2-常关3-柱塞气举',
PRIMARY KEY (`id`) USING BTREE, PRIMARY KEY (`id`) USING BTREE,