Browse Source

feat(d2-02-t3): Java DAO加范围字段(HouseWellSetting 2列/TlSetting 4列+曝光默认值)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
huangjie 2 days ago
parent
commit
898aa4c6b4

+ 27 - 0
aivof-tl-control/aivfo-tl-control-entity/src/main/java/com/aivfo/tl/control/entity/dao/TlSetting.java

@@ -313,6 +313,30 @@ public class TlSetting extends BaseEntity implements Serializable {
     @TableField(value = "local_autofocus_enabled")
     private Integer localAutofocusEnabled;
 
+    /**
+     * 设备级水平对焦半幅默认(null=不强制)
+     */
+    @TableField(value = "focus_h_range_default")
+    private Integer focusHRangeDefault;
+
+    /**
+     * 设备级垂直对焦半幅默认(null=不强制)
+     */
+    @TableField(value = "focus_v_range_default")
+    private Integer focusVRangeDefault;
+
+    /**
+     * 对焦曝光下限(默认10)
+     */
+    @TableField(value = "focus_exposure_min")
+    private Integer focusExposureMin;
+
+    /**
+     * 对焦曝光上限(默认800)
+     */
+    @TableField(value = "focus_exposure_max")
+    private Integer focusExposureMax;
+
     @TableField(exist = false)
     private static final long serialVersionUID = 1L;
 
@@ -371,5 +395,8 @@ public class TlSetting extends BaseEntity implements Serializable {
         this.focusLayerDown = 2;
         this.focusPeakRatioThreshold = new BigDecimal("1.200");
         this.localAutofocusEnabled = 0;
+        // 自动对焦重构默认值(对齐 sql DEFAULT):曝光上下限给默认,两个半幅 default 留 null=不强制。
+        this.focusExposureMin = 10;
+        this.focusExposureMax = 800;
     }
 }

+ 12 - 0
aivof-tl-control/aivfo-tl-control-entity/src/main/java/com/aivfo/tl/control/entity/dao/house/HouseWellSetting.java

@@ -88,6 +88,18 @@ public class HouseWellSetting extends BaseEntity implements Serializable {
     @TableField(value = "focus_layer_count")
     private Integer focusLayerCount;
 
+    /**
+     * well级水平对焦半幅覆盖(空=继承设备级)
+     */
+    @TableField(value = "horizontal_focus_range")
+    private Integer horizontalFocusRange;
+
+    /**
+     * well级垂直对焦半幅覆盖(空=继承设备级)
+     */
+    @TableField(value = "vertical_focus_range")
+    private Integer verticalFocusRange;
+
     /**
      * 设置默认值
      *