influxdb转mysql

This commit is contained in:
wurui
2023-03-28 09:04:15 +08:00
parent 6f19eca420
commit 2bdd236f53
8 changed files with 481 additions and 234 deletions

View File

@@ -0,0 +1,16 @@
package com.njcn.event.mapper.majornetwork;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.event.pojo.po.RmpEventDetailPO;
/**
* <p>
* Mapper 接口
* </p>
*
* @author wr
* @since 2023-03-27
*/
public interface EventDetailMapper extends BaseMapper<RmpEventDetailPO> {
}

View File

@@ -0,0 +1,19 @@
<?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.njcn.event.mapper.majornetwork.EventDetailMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.njcn.event.pojo.po.RmpEventDetailPO">
<id column="event_id" property="eventId" />
<result column="measurement_point_id" property="measurementPointId" />
<result column="event_type" property="eventType" />
<result column="Event_Reason" property="eventReason" />
<result column="start_time" property="startTime" />
<result column="duration" property="duration" />
<result column="feature_amplitude" property="featureAmplitude" />
<result column="phase" property="phase" />
<result column="event_describe" property="eventDescribe" />
<result column="wave_path" property="wavePath" />
</resultMap>
</mapper>