| | |
| | | `tag_desc` varchar(64) DEFAULT NULL COMMENT '描述', |
| | | `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
| | | `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | PRIMARY KEY (`id`) USING BTREE, |
| | | UNIQUE KEY `uk_api_tag` (`api_id`, `tag_name`) USING BTREE |
| | | ) ENGINE=InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT='接口Tag表'; |
| | | |
| | | -- 指标管理------------ |
| | |
| | | endTime = calendar.getTime(); |
| | | } |
| | | if (startTime == null) { |
| | | calendar.setTime(endTime); |
| | | calendar.add(Calendar.HOUR_OF_DAY, -1); |
| | | startTime = calendar.getTime(); |
| | | } |
| | |
| | | DaPointEntity updatePoint = BeanUtils.toBean(importPoint, DaPointEntity.class); |
| | | updatePoint.setId(existPoint.getId()); |
| | | baseDao.updateById(updatePoint); |
| | | switch (PointTypeEnum.getEumByCode(updatePoint.getPointType())) { |
| | | case MEASURE_POINT: |
| | | DaMeasurePointEntity measurePoint = new DaMeasurePointEntity(); |
| | | measurePoint.setSourceType(importPoint.getSourceType()); |
| | | measurePoint.setSourceId(sourcesIdMap.get(importPoint.getSourceType()).get(importPoint.getSourceName())); |
| | | measurePoint.setTagNo(importPoint.getTagNo()); |
| | | daMeasurePointService.update(measurePoint, new QueryWrapper<DaMeasurePointEntity>().eq("point_id",updatePoint.getId())); |
| | | |
| | | |
| | | break; |
| | | case CALCULATE_POINT: |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | respVO.getUpdatePointnames().add(importPoint.getPointName()); |
| | | }); |
| | | return respVO; |