liriming
2024-10-15 6d7e4de08b4023d7cc7d657345493d3baa4dcb7c
测点列表新增值类型与平滑尺度
已修改5个文件
20 ■■■■ 文件已修改
iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/api/point/DataPointApi.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/tag/controller/admin/TagController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/dto/DaMeasurePointDTO.java 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/entity/DaMeasurePointEntity.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/point/DaPointDao.xml 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/api/point/DataPointApi.java
@@ -37,9 +37,9 @@
    @Operation(summary = "查询多个测点历史值")
    Map<String, List<Map<String, Object>>> queryPointsHistoryValue(@RequestBody ApiPointsValueQueryDTO queryDto);
    @GetMapping(PREFIX + "/query-point/history-value")
    @PostMapping(PREFIX + "/query-point/history-value")
    @Operation(summary = "查询单个测点历史值")
    List<ApiPointValueDTO> queryPointHistoryValue(@RequestParam ApiPointValueQueryDTO queryDto);
    List<ApiPointValueDTO> queryPointHistoryValue(@RequestBody ApiPointValueQueryDTO queryDto);
    @PutMapping(PREFIX + "/write-point/real-value")
    @Operation(summary = "写入单个测点值")
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/tag/controller/admin/TagController.java
@@ -157,7 +157,7 @@
                List<TagOptionDTO> op2 = new ArrayList<>();
                tags.forEach(item1 -> {
                    TagOptionDTO op3 = new TagOptionDTO();
                    op3.setValue(item1.getTagName());
                    op3.setValue(item1.getTagDesc());
                    op3.setLabel(item1.getTagName());
                    op2.add(op3);
                });
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/dto/DaMeasurePointDTO.java
@@ -38,5 +38,8 @@
    private String tagNo;
    @Schema(description = "平滑尺度")
    private String dimension;
    private Integer dimension;
    @Schema(description = "值类型")
    private String valueType;
}
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/entity/DaMeasurePointEntity.java
@@ -49,4 +49,9 @@
     * 平滑尺度
     */
    private Integer dimension;
    /**
     * 值类型
     */
    private String valueType;
}
iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/point/DaPointDao.xml
@@ -25,7 +25,9 @@
      t1.update_time,
      t2.source_type,
      t3.source_name,
      t2.tag_no
      t2.tag_no,
      t2.dimension,
      t2.value_type
      from t_da_point t1
      left join t_da_measure_point t2 on t2.point_id = t1.id
      left join (