工业互联网平台2.0版本后端代码
dongyukun
2025-05-28 cc69f877cb51f4014c664d8002050fa0f9314a81
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/arc/service/impl/ArcDataServiceImpl.java
@@ -157,6 +157,10 @@
    @Override
    public List<ApiArcDataDTO> queryHistoryValue(ApiArcValueQueryDTO queryDTO) {
        ArcSettingEntity settingEntity = arcPointSettingService.selectByCode(queryDTO.getCode());
        if (settingEntity == null) {
            log.error("arcPointSettingCode:" + queryDTO.getCode() + "不存在");
            return new ArrayList<>();
        }
        ArcTypeEnum arcType = ArcTypeEnum.getEumByCode(settingEntity.getType());
        // 时间格式
        SimpleDateFormat dateFormat = arcType.getDateFormat();
@@ -166,7 +170,7 @@
            queryDTO.setEnd(calendar.getTime());
        }
        if (queryDTO.getStart() == null) {
            calendar.add(arcType.getCalendarType(),arcType.getCalendarNum() * 2);
            calendar.add(arcType.getCalendarType(),arcType.getCalendarNum());
            queryDTO.setStart(calendar.getTime());
        }