diff --git a/riis-system/src/main/java/com/yfd/platform/modules/algorithm/controller/AlgorithmLogsController.java b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/controller/AlgorithmLogsController.java new file mode 100644 index 0000000..8c528ec --- /dev/null +++ b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/controller/AlgorithmLogsController.java @@ -0,0 +1,20 @@ +package com.yfd.platform.modules.algorithm.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; + +/** + *

+ * 前端控制器 + *

+ * + * @author zhengsl + * @since 2025-05-20 + */ +@RestController +@RequestMapping("/algorithm/algorithm-logs") +public class AlgorithmLogsController { + +} diff --git a/riis-system/src/main/java/com/yfd/platform/modules/algorithm/domain/AlgorithmLogs.java b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/domain/AlgorithmLogs.java new file mode 100644 index 0000000..9736221 --- /dev/null +++ b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/domain/AlgorithmLogs.java @@ -0,0 +1,108 @@ +package com.yfd.platform.modules.algorithm.domain; + +import com.baomidou.mybatisplus.annotation.TableName; +import java.time.LocalDateTime; +import java.io.Serializable; + +import com.fasterxml.jackson.annotation.JsonFormat; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author zhengsl + * @since 2025-05-20 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("iis_algorithm_logs") +public class AlgorithmLogs implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * id + */ + private String id; + + /** + * 算法分类id + */ + private String algorithmId; + + /** + * 变电站编号 + */ + private String stationCode; + + /** + * 变电站名称 + */ + private String stationName; + + /** + * 区域id + */ + private String areaId; + + /** + * 区域名称 + */ + private String areaName; + + /** + * 间隔id + */ + private String bayId; + + /** + * 间隔名称 + */ + private String bayName; + + /** + * 主设备id + */ + private String mainDeviceId; + + /** + * 主设备类型 + */ + private String deviceType; + + /** + * 主设备名称 + */ + private String mainDeviceName; + + /** + * 部件id + */ + private String componentId; + + /** + * 部件名称 + */ + private String componentName; + + /** + * 参数详情;json格式:{key1:value1,key2:value2....} + */ + private String paramsValue; + + /** + * 分析结果 + */ + private String analysisResult; + + /** + * 分析时间 + */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") + private LocalDateTime analysisTime; + + +} diff --git a/riis-system/src/main/java/com/yfd/platform/modules/algorithm/mapper/AlgorithmLogsMapper.java b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/mapper/AlgorithmLogsMapper.java new file mode 100644 index 0000000..d29637c --- /dev/null +++ b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/mapper/AlgorithmLogsMapper.java @@ -0,0 +1,16 @@ +package com.yfd.platform.modules.algorithm.mapper; + +import com.yfd.platform.modules.algorithm.domain.AlgorithmLogs; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * Mapper 接口 + *

+ * + * @author zhengsl + * @since 2025-05-20 + */ +public interface AlgorithmLogsMapper extends BaseMapper { + +} diff --git a/riis-system/src/main/java/com/yfd/platform/modules/algorithm/service/IAlgorithmLogsService.java b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/service/IAlgorithmLogsService.java new file mode 100644 index 0000000..21d3460 --- /dev/null +++ b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/service/IAlgorithmLogsService.java @@ -0,0 +1,16 @@ +package com.yfd.platform.modules.algorithm.service; + +import com.yfd.platform.modules.algorithm.domain.AlgorithmLogs; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 服务类 + *

+ * + * @author zhengsl + * @since 2025-05-20 + */ +public interface IAlgorithmLogsService extends IService { + +} diff --git a/riis-system/src/main/java/com/yfd/platform/modules/algorithm/service/impl/AlgorithmLogsServiceImpl.java b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/service/impl/AlgorithmLogsServiceImpl.java new file mode 100644 index 0000000..702c36f --- /dev/null +++ b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/service/impl/AlgorithmLogsServiceImpl.java @@ -0,0 +1,20 @@ +package com.yfd.platform.modules.algorithm.service.impl; + +import com.yfd.platform.modules.algorithm.domain.AlgorithmLogs; +import com.yfd.platform.modules.algorithm.mapper.AlgorithmLogsMapper; +import com.yfd.platform.modules.algorithm.service.IAlgorithmLogsService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author zhengsl + * @since 2025-05-20 + */ +@Service +public class AlgorithmLogsServiceImpl extends ServiceImpl implements IAlgorithmLogsService { + +} diff --git a/riis-system/src/main/resources/mapper/algorithm/AlgorithmLogsMapper.xml b/riis-system/src/main/resources/mapper/algorithm/AlgorithmLogsMapper.xml new file mode 100644 index 0000000..dc632b9 --- /dev/null +++ b/riis-system/src/main/resources/mapper/algorithm/AlgorithmLogsMapper.xml @@ -0,0 +1,5 @@ + + + + +