新增算法分析日志
This commit is contained in:
parent
51bcf3edc0
commit
ac80a4d040
@ -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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 前端控制器
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhengsl
|
||||||
|
* @since 2025-05-20
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/algorithm/algorithm-logs")
|
||||||
|
public class AlgorithmLogsController {
|
||||||
|
|
||||||
|
}
|
@ -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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @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;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhengsl
|
||||||
|
* @since 2025-05-20
|
||||||
|
*/
|
||||||
|
public interface AlgorithmLogsMapper extends BaseMapper<AlgorithmLogs> {
|
||||||
|
|
||||||
|
}
|
@ -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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhengsl
|
||||||
|
* @since 2025-05-20
|
||||||
|
*/
|
||||||
|
public interface IAlgorithmLogsService extends IService<AlgorithmLogs> {
|
||||||
|
|
||||||
|
}
|
@ -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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhengsl
|
||||||
|
* @since 2025-05-20
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class AlgorithmLogsServiceImpl extends ServiceImpl<AlgorithmLogsMapper, AlgorithmLogs> implements IAlgorithmLogsService {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.yfd.platform.modules.algorithm.mapper.AlgorithmLogsMapper">
|
||||||
|
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue
Block a user