提交RegionalWeatherData相关文件
This commit is contained in:
parent
ce01389d7a
commit
8fb5a164fa
@ -0,0 +1,9 @@
|
|||||||
|
package com.southern.power.grid.dao;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.southern.power.grid.entity.RegionalWeatherData;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface RegionalWeatherDataMapper extends BaseMapper<RegionalWeatherData> {
|
||||||
|
}
|
||||||
@ -0,0 +1,80 @@
|
|||||||
|
package com.southern.power.grid.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@TableName("regional_weather_data")
|
||||||
|
public class RegionalWeatherData {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键ID
|
||||||
|
*/
|
||||||
|
@TableId(type = IdType.AUTO)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 地区编码
|
||||||
|
*/
|
||||||
|
private String orgCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 资料日期
|
||||||
|
*/
|
||||||
|
private String dataTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 小时降水量
|
||||||
|
*/
|
||||||
|
private String hourlyPrecipitation;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 日累计降水量
|
||||||
|
*/
|
||||||
|
private String dailyPrecipitation;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 气温
|
||||||
|
*/
|
||||||
|
private String temperature;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 日内最高气温
|
||||||
|
*/
|
||||||
|
private String hourlyMaxTemperature;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 日内最低气温
|
||||||
|
*/
|
||||||
|
private String hourlyMinTemperature;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 日内极大风速
|
||||||
|
*/
|
||||||
|
private String extremeWindSpeedHourly;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人
|
||||||
|
*/
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改人
|
||||||
|
*/
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改时间
|
||||||
|
*/
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
}
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
package com.southern.power.grid.service;
|
||||||
|
|
||||||
|
public interface IRegionalWeatherDataService {
|
||||||
|
}
|
||||||
@ -0,0 +1,16 @@
|
|||||||
|
package com.southern.power.grid.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.southern.power.grid.dao.RegionalWeatherDataMapper;
|
||||||
|
import com.southern.power.grid.entity.RegionalWeatherData;
|
||||||
|
import com.southern.power.grid.service.IRegionalWeatherDataService;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@Slf4j
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class RegionalWeatherDataServiceImpl extends ServiceImpl<RegionalWeatherDataMapper, RegionalWeatherData>
|
||||||
|
implements IRegionalWeatherDataService {
|
||||||
|
}
|
||||||
8
src/main/resources/mapper/RegionalWeatherDataMapper.xml
Normal file
8
src/main/resources/mapper/RegionalWeatherDataMapper.xml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?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">
|
||||||
|
|
||||||
|
<!-- namespace 必须 = Mapper 接口全类名 -->
|
||||||
|
<mapper namespace="com.southern.power.grid.dao.RegionalWeatherDataMapper">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
Loading…
x
Reference in New Issue
Block a user