新增辐射逐小时资料接受类

main
田俊彪 6 months ago
parent 101a1efe7c
commit 782fc09bd9

@ -246,6 +246,13 @@
<version>3.0-SNAPSHOT</version> <version>3.0-SNAPSHOT</version>
</dependency> </dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.13.0</version>
</dependency>
<!-- &lt;!&ndash; https://mvnrepository.com/artifact/com.github.junrar/junrar &ndash;&gt;--> <!-- &lt;!&ndash; https://mvnrepository.com/artifact/com.github.junrar/junrar &ndash;&gt;-->
<!-- <dependency>--> <!-- <dependency>-->

@ -0,0 +1,532 @@
package generator.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;
/**
*
* @TableName radi_chn_mul_hor
*/
@TableName(value ="radi_chn_mul_hor")
@Data
public class radi_chn_mul_hor implements Serializable {
/**
*
*/
@TableId(type = IdType.AUTO)
private Integer id;
/**
*
*/
private String station_Id_C;
/**
* /
*/
private String station_levl;
/**
* °
*/
private String lat;
/**
* °
*/
private String lon;
/**
* m
*/
private String alti;
/**
* /
*/
private String admin_Code_CHN;
/**
* 2
*/
private String v_ACODE_4SEARCH;
/**
*
*/
private String town_code;
/**
*
*/
private String city;
/**
*
*/
private String station_Name;
/**
*
*/
private String cnty;
/**
*
*/
private String COUNTRYCODE;
/**
*
*/
private String country;
/**
*
*/
private String netCode;
/**
*
*/
private String province;
/**
*
*/
private String REGIONCODE;
/**
*
*/
private String town;
/**
*
*/
private String d_RETAIN_ID;
/**
*
*/
private String d_SOURCE_ID;
/**
*
*/
private String DATA_ID;
/**
*
*/
private String IYMDHM;
/**
*
*/
private String RYMDHM;
/**
*
*/
private String UPDATE_TIME;
/**
*
*/
private String datetime;
/**
*
*/
private String REP_CORR_ID;
/**
* /()
*/
private String station_Id_d;
/**
*
*/
private String year;
/**
*
*/
private String mon;
/**
*
*/
private String day;
/**
*
*/
private String hour;
/**
*
*/
private String min;
/**
* W.m-2
*/
private String v14311;
/**
* W.m-2
*/
private String v14312;
/**
* W.m-2
*/
private String v14313;
/**
* W.m-2
*/
private String v14314;
/**
* W.m-2
*/
private String v14315;
/**
* W.m-2
*/
private String v14316;
/**
* MJ·m-2
*/
private String v14320;
/**
* W.m-2
*/
private String QRA_Max;
/**
*
*/
private String QRA_Max_OTime;
/**
* MJ·m-2
*/
private String v14308;
/**
* W.m-2
*/
private String NRA_Max;
/**
*
*/
private String NRA_Max_OTime;
/**
* W.m-2
*/
private String NRA_Min;
/**
*
*/
private String NRA_Min_OTime;
/**
* MJ·m-2
*/
private String v14322;
/**
* W.m-2
*/
private String DRA_Max;
/**
*
*/
private String DRA_Max_OTime;
/**
* MJ·m-2
*/
private String v14309;
/**
* W.m-2
*/
private String SRA_Max;
/**
*
*/
private String SRA_Max_OTime;
/**
* MJ·m-2
*/
private String v14306;
/**
* W.m-2
*/
private String RRA_Max;
/**
*
*/
private String RRA_Max_OTime;
/**
* MJ·m-2
*/
private String v14307;
/**
* W.m-2
*/
private String v14316_05;
/**
*
*/
private String UV_Max_OTime;
/**
* h
*/
private String SSH;
/**
*
*/
private String API;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
radi_chn_mul_hor other = (radi_chn_mul_hor) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getStation_Id_C() == null ? other.getStation_Id_C() == null : this.getStation_Id_C().equals(other.getStation_Id_C()))
&& (this.getStation_levl() == null ? other.getStation_levl() == null : this.getStation_levl().equals(other.getStation_levl()))
&& (this.getLat() == null ? other.getLat() == null : this.getLat().equals(other.getLat()))
&& (this.getLon() == null ? other.getLon() == null : this.getLon().equals(other.getLon()))
&& (this.getAlti() == null ? other.getAlti() == null : this.getAlti().equals(other.getAlti()))
&& (this.getAdmin_Code_CHN() == null ? other.getAdmin_Code_CHN() == null : this.getAdmin_Code_CHN().equals(other.getAdmin_Code_CHN()))
&& (this.getV_ACODE_4SEARCH() == null ? other.getV_ACODE_4SEARCH() == null : this.getV_ACODE_4SEARCH().equals(other.getV_ACODE_4SEARCH()))
&& (this.getTown_code() == null ? other.getTown_code() == null : this.getTown_code().equals(other.getTown_code()))
&& (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
&& (this.getStation_Name() == null ? other.getStation_Name() == null : this.getStation_Name().equals(other.getStation_Name()))
&& (this.getCnty() == null ? other.getCnty() == null : this.getCnty().equals(other.getCnty()))
&& (this.getCOUNTRYCODE() == null ? other.getCOUNTRYCODE() == null : this.getCOUNTRYCODE().equals(other.getCOUNTRYCODE()))
&& (this.getCountry() == null ? other.getCountry() == null : this.getCountry().equals(other.getCountry()))
&& (this.getNetCode() == null ? other.getNetCode() == null : this.getNetCode().equals(other.getNetCode()))
&& (this.getProvince() == null ? other.getProvince() == null : this.getProvince().equals(other.getProvince()))
&& (this.getREGIONCODE() == null ? other.getREGIONCODE() == null : this.getREGIONCODE().equals(other.getREGIONCODE()))
&& (this.getTown() == null ? other.getTown() == null : this.getTown().equals(other.getTown()))
&& (this.getD_RETAIN_ID() == null ? other.getD_RETAIN_ID() == null : this.getD_RETAIN_ID().equals(other.getD_RETAIN_ID()))
&& (this.getD_SOURCE_ID() == null ? other.getD_SOURCE_ID() == null : this.getD_SOURCE_ID().equals(other.getD_SOURCE_ID()))
&& (this.getDATA_ID() == null ? other.getDATA_ID() == null : this.getDATA_ID().equals(other.getDATA_ID()))
&& (this.getIYMDHM() == null ? other.getIYMDHM() == null : this.getIYMDHM().equals(other.getIYMDHM()))
&& (this.getRYMDHM() == null ? other.getRYMDHM() == null : this.getRYMDHM().equals(other.getRYMDHM()))
&& (this.getUPDATE_TIME() == null ? other.getUPDATE_TIME() == null : this.getUPDATE_TIME().equals(other.getUPDATE_TIME()))
&& (this.getDatetime() == null ? other.getDatetime() == null : this.getDatetime().equals(other.getDatetime()))
&& (this.getREP_CORR_ID() == null ? other.getREP_CORR_ID() == null : this.getREP_CORR_ID().equals(other.getREP_CORR_ID()))
&& (this.getStation_Id_d() == null ? other.getStation_Id_d() == null : this.getStation_Id_d().equals(other.getStation_Id_d()))
&& (this.getYear() == null ? other.getYear() == null : this.getYear().equals(other.getYear()))
&& (this.getMon() == null ? other.getMon() == null : this.getMon().equals(other.getMon()))
&& (this.getDay() == null ? other.getDay() == null : this.getDay().equals(other.getDay()))
&& (this.getHour() == null ? other.getHour() == null : this.getHour().equals(other.getHour()))
&& (this.getMin() == null ? other.getMin() == null : this.getMin().equals(other.getMin()))
&& (this.getV14311() == null ? other.getV14311() == null : this.getV14311().equals(other.getV14311()))
&& (this.getV14312() == null ? other.getV14312() == null : this.getV14312().equals(other.getV14312()))
&& (this.getV14313() == null ? other.getV14313() == null : this.getV14313().equals(other.getV14313()))
&& (this.getV14314() == null ? other.getV14314() == null : this.getV14314().equals(other.getV14314()))
&& (this.getV14315() == null ? other.getV14315() == null : this.getV14315().equals(other.getV14315()))
&& (this.getV14316() == null ? other.getV14316() == null : this.getV14316().equals(other.getV14316()))
&& (this.getV14320() == null ? other.getV14320() == null : this.getV14320().equals(other.getV14320()))
&& (this.getQRA_Max() == null ? other.getQRA_Max() == null : this.getQRA_Max().equals(other.getQRA_Max()))
&& (this.getQRA_Max_OTime() == null ? other.getQRA_Max_OTime() == null : this.getQRA_Max_OTime().equals(other.getQRA_Max_OTime()))
&& (this.getV14308() == null ? other.getV14308() == null : this.getV14308().equals(other.getV14308()))
&& (this.getNRA_Max() == null ? other.getNRA_Max() == null : this.getNRA_Max().equals(other.getNRA_Max()))
&& (this.getNRA_Max_OTime() == null ? other.getNRA_Max_OTime() == null : this.getNRA_Max_OTime().equals(other.getNRA_Max_OTime()))
&& (this.getNRA_Min() == null ? other.getNRA_Min() == null : this.getNRA_Min().equals(other.getNRA_Min()))
&& (this.getNRA_Min_OTime() == null ? other.getNRA_Min_OTime() == null : this.getNRA_Min_OTime().equals(other.getNRA_Min_OTime()))
&& (this.getV14322() == null ? other.getV14322() == null : this.getV14322().equals(other.getV14322()))
&& (this.getDRA_Max() == null ? other.getDRA_Max() == null : this.getDRA_Max().equals(other.getDRA_Max()))
&& (this.getDRA_Max_OTime() == null ? other.getDRA_Max_OTime() == null : this.getDRA_Max_OTime().equals(other.getDRA_Max_OTime()))
&& (this.getV14309() == null ? other.getV14309() == null : this.getV14309().equals(other.getV14309()))
&& (this.getSRA_Max() == null ? other.getSRA_Max() == null : this.getSRA_Max().equals(other.getSRA_Max()))
&& (this.getSRA_Max_OTime() == null ? other.getSRA_Max_OTime() == null : this.getSRA_Max_OTime().equals(other.getSRA_Max_OTime()))
&& (this.getV14306() == null ? other.getV14306() == null : this.getV14306().equals(other.getV14306()))
&& (this.getRRA_Max() == null ? other.getRRA_Max() == null : this.getRRA_Max().equals(other.getRRA_Max()))
&& (this.getRRA_Max_OTime() == null ? other.getRRA_Max_OTime() == null : this.getRRA_Max_OTime().equals(other.getRRA_Max_OTime()))
&& (this.getV14307() == null ? other.getV14307() == null : this.getV14307().equals(other.getV14307()))
&& (this.getV14316_05() == null ? other.getV14316_05() == null : this.getV14316_05().equals(other.getV14316_05()))
&& (this.getUV_Max_OTime() == null ? other.getUV_Max_OTime() == null : this.getUV_Max_OTime().equals(other.getUV_Max_OTime()))
&& (this.getSSH() == null ? other.getSSH() == null : this.getSSH().equals(other.getSSH()))
&& (this.getAPI() == null ? other.getAPI() == null : this.getAPI().equals(other.getAPI()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getStation_Id_C() == null) ? 0 : getStation_Id_C().hashCode());
result = prime * result + ((getStation_levl() == null) ? 0 : getStation_levl().hashCode());
result = prime * result + ((getLat() == null) ? 0 : getLat().hashCode());
result = prime * result + ((getLon() == null) ? 0 : getLon().hashCode());
result = prime * result + ((getAlti() == null) ? 0 : getAlti().hashCode());
result = prime * result + ((getAdmin_Code_CHN() == null) ? 0 : getAdmin_Code_CHN().hashCode());
result = prime * result + ((getV_ACODE_4SEARCH() == null) ? 0 : getV_ACODE_4SEARCH().hashCode());
result = prime * result + ((getTown_code() == null) ? 0 : getTown_code().hashCode());
result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
result = prime * result + ((getStation_Name() == null) ? 0 : getStation_Name().hashCode());
result = prime * result + ((getCnty() == null) ? 0 : getCnty().hashCode());
result = prime * result + ((getCOUNTRYCODE() == null) ? 0 : getCOUNTRYCODE().hashCode());
result = prime * result + ((getCountry() == null) ? 0 : getCountry().hashCode());
result = prime * result + ((getNetCode() == null) ? 0 : getNetCode().hashCode());
result = prime * result + ((getProvince() == null) ? 0 : getProvince().hashCode());
result = prime * result + ((getREGIONCODE() == null) ? 0 : getREGIONCODE().hashCode());
result = prime * result + ((getTown() == null) ? 0 : getTown().hashCode());
result = prime * result + ((getD_RETAIN_ID() == null) ? 0 : getD_RETAIN_ID().hashCode());
result = prime * result + ((getD_SOURCE_ID() == null) ? 0 : getD_SOURCE_ID().hashCode());
result = prime * result + ((getDATA_ID() == null) ? 0 : getDATA_ID().hashCode());
result = prime * result + ((getIYMDHM() == null) ? 0 : getIYMDHM().hashCode());
result = prime * result + ((getRYMDHM() == null) ? 0 : getRYMDHM().hashCode());
result = prime * result + ((getUPDATE_TIME() == null) ? 0 : getUPDATE_TIME().hashCode());
result = prime * result + ((getDatetime() == null) ? 0 : getDatetime().hashCode());
result = prime * result + ((getREP_CORR_ID() == null) ? 0 : getREP_CORR_ID().hashCode());
result = prime * result + ((getStation_Id_d() == null) ? 0 : getStation_Id_d().hashCode());
result = prime * result + ((getYear() == null) ? 0 : getYear().hashCode());
result = prime * result + ((getMon() == null) ? 0 : getMon().hashCode());
result = prime * result + ((getDay() == null) ? 0 : getDay().hashCode());
result = prime * result + ((getHour() == null) ? 0 : getHour().hashCode());
result = prime * result + ((getMin() == null) ? 0 : getMin().hashCode());
result = prime * result + ((getV14311() == null) ? 0 : getV14311().hashCode());
result = prime * result + ((getV14312() == null) ? 0 : getV14312().hashCode());
result = prime * result + ((getV14313() == null) ? 0 : getV14313().hashCode());
result = prime * result + ((getV14314() == null) ? 0 : getV14314().hashCode());
result = prime * result + ((getV14315() == null) ? 0 : getV14315().hashCode());
result = prime * result + ((getV14316() == null) ? 0 : getV14316().hashCode());
result = prime * result + ((getV14320() == null) ? 0 : getV14320().hashCode());
result = prime * result + ((getQRA_Max() == null) ? 0 : getQRA_Max().hashCode());
result = prime * result + ((getQRA_Max_OTime() == null) ? 0 : getQRA_Max_OTime().hashCode());
result = prime * result + ((getV14308() == null) ? 0 : getV14308().hashCode());
result = prime * result + ((getNRA_Max() == null) ? 0 : getNRA_Max().hashCode());
result = prime * result + ((getNRA_Max_OTime() == null) ? 0 : getNRA_Max_OTime().hashCode());
result = prime * result + ((getNRA_Min() == null) ? 0 : getNRA_Min().hashCode());
result = prime * result + ((getNRA_Min_OTime() == null) ? 0 : getNRA_Min_OTime().hashCode());
result = prime * result + ((getV14322() == null) ? 0 : getV14322().hashCode());
result = prime * result + ((getDRA_Max() == null) ? 0 : getDRA_Max().hashCode());
result = prime * result + ((getDRA_Max_OTime() == null) ? 0 : getDRA_Max_OTime().hashCode());
result = prime * result + ((getV14309() == null) ? 0 : getV14309().hashCode());
result = prime * result + ((getSRA_Max() == null) ? 0 : getSRA_Max().hashCode());
result = prime * result + ((getSRA_Max_OTime() == null) ? 0 : getSRA_Max_OTime().hashCode());
result = prime * result + ((getV14306() == null) ? 0 : getV14306().hashCode());
result = prime * result + ((getRRA_Max() == null) ? 0 : getRRA_Max().hashCode());
result = prime * result + ((getRRA_Max_OTime() == null) ? 0 : getRRA_Max_OTime().hashCode());
result = prime * result + ((getV14307() == null) ? 0 : getV14307().hashCode());
result = prime * result + ((getV14316_05() == null) ? 0 : getV14316_05().hashCode());
result = prime * result + ((getUV_Max_OTime() == null) ? 0 : getUV_Max_OTime().hashCode());
result = prime * result + ((getSSH() == null) ? 0 : getSSH().hashCode());
result = prime * result + ((getAPI() == null) ? 0 : getAPI().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", station_Id_C=").append(station_Id_C);
sb.append(", station_levl=").append(station_levl);
sb.append(", lat=").append(lat);
sb.append(", lon=").append(lon);
sb.append(", alti=").append(alti);
sb.append(", admin_Code_CHN=").append(admin_Code_CHN);
sb.append(", v_ACODE_4SEARCH=").append(v_ACODE_4SEARCH);
sb.append(", town_code=").append(town_code);
sb.append(", city=").append(city);
sb.append(", station_Name=").append(station_Name);
sb.append(", cnty=").append(cnty);
sb.append(", COUNTRYCODE=").append(COUNTRYCODE);
sb.append(", country=").append(country);
sb.append(", netCode=").append(netCode);
sb.append(", province=").append(province);
sb.append(", REGIONCODE=").append(REGIONCODE);
sb.append(", town=").append(town);
sb.append(", d_RETAIN_ID=").append(d_RETAIN_ID);
sb.append(", d_SOURCE_ID=").append(d_SOURCE_ID);
sb.append(", DATA_ID=").append(DATA_ID);
sb.append(", IYMDHM=").append(IYMDHM);
sb.append(", RYMDHM=").append(RYMDHM);
sb.append(", UPDATE_TIME=").append(UPDATE_TIME);
sb.append(", datetime=").append(datetime);
sb.append(", REP_CORR_ID=").append(REP_CORR_ID);
sb.append(", station_Id_d=").append(station_Id_d);
sb.append(", year=").append(year);
sb.append(", mon=").append(mon);
sb.append(", day=").append(day);
sb.append(", hour=").append(hour);
sb.append(", min=").append(min);
sb.append(", v14311=").append(v14311);
sb.append(", v14312=").append(v14312);
sb.append(", v14313=").append(v14313);
sb.append(", v14314=").append(v14314);
sb.append(", v14315=").append(v14315);
sb.append(", v14316=").append(v14316);
sb.append(", v14320=").append(v14320);
sb.append(", QRA_Max=").append(QRA_Max);
sb.append(", QRA_Max_OTime=").append(QRA_Max_OTime);
sb.append(", v14308=").append(v14308);
sb.append(", NRA_Max=").append(NRA_Max);
sb.append(", NRA_Max_OTime=").append(NRA_Max_OTime);
sb.append(", NRA_Min=").append(NRA_Min);
sb.append(", NRA_Min_OTime=").append(NRA_Min_OTime);
sb.append(", v14322=").append(v14322);
sb.append(", DRA_Max=").append(DRA_Max);
sb.append(", DRA_Max_OTime=").append(DRA_Max_OTime);
sb.append(", v14309=").append(v14309);
sb.append(", SRA_Max=").append(SRA_Max);
sb.append(", SRA_Max_OTime=").append(SRA_Max_OTime);
sb.append(", v14306=").append(v14306);
sb.append(", RRA_Max=").append(RRA_Max);
sb.append(", RRA_Max_OTime=").append(RRA_Max_OTime);
sb.append(", v14307=").append(v14307);
sb.append(", v14316_05=").append(v14316_05);
sb.append(", UV_Max_OTime=").append(UV_Max_OTime);
sb.append(", SSH=").append(SSH);
sb.append(", API=").append(API);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}

@ -0,0 +1,20 @@
package generator.mapper;
import generator.domain.radi_chn_mul_hor;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* @author
* @description radi_chn_mul_horMapper
* @createDate 2024-11-27 14:23:48
* @Entity generator.domain.radi_chn_mul_hor
*/
@Mapper
public interface radi_chn_mul_horMapper extends BaseMapper<radi_chn_mul_hor> {
}

@ -0,0 +1,22 @@
package generator.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import generator.domain.radi_chn_mul_hor;
import generator.service.radi_chn_mul_horService;
import generator.mapper.radi_chn_mul_horMapper;
import org.springframework.stereotype.Service;
/**
* @author
* @description radi_chn_mul_horService
* @createDate 2024-11-27 14:23:48
*/
@Service
public class radi_chn_mul_horServiceImpl extends ServiceImpl<radi_chn_mul_horMapper, radi_chn_mul_hor>
implements radi_chn_mul_horService{
}

@ -0,0 +1,13 @@
package generator.service;
import generator.domain.radi_chn_mul_hor;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @author
* @description radi_chn_mul_horService
* @createDate 2024-11-27 14:23:48
*/
public interface radi_chn_mul_horService extends IService<radi_chn_mul_hor> {
}

@ -0,0 +1,92 @@
<?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="generator.mapper.radi_chn_mul_horMapper">
<resultMap id="BaseResultMap" type="generator.domain.radi_chn_mul_hor">
<id property="id" column="id" jdbcType="INTEGER"/>
<result property="station_Id_C" column="Station_Id_C" jdbcType="VARCHAR"/>
<result property="station_levl" column="Station_levl" jdbcType="VARCHAR"/>
<result property="lat" column="Lat" jdbcType="VARCHAR"/>
<result property="lon" column="Lon" jdbcType="VARCHAR"/>
<result property="alti" column="Alti" jdbcType="VARCHAR"/>
<result property="admin_Code_CHN" column="Admin_Code_CHN" jdbcType="VARCHAR"/>
<result property="v_ACODE_4SEARCH" column="V_ACODE_4SEARCH" jdbcType="VARCHAR"/>
<result property="town_code" column="Town_code" jdbcType="VARCHAR"/>
<result property="city" column="City" jdbcType="VARCHAR"/>
<result property="station_Name" column="Station_Name" jdbcType="VARCHAR"/>
<result property="cnty" column="Cnty" jdbcType="VARCHAR"/>
<result property="COUNTRYCODE" column="COUNTRYCODE" jdbcType="VARCHAR"/>
<result property="country" column="Country" jdbcType="VARCHAR"/>
<result property="netCode" column="NetCode" jdbcType="VARCHAR"/>
<result property="province" column="Province" jdbcType="VARCHAR"/>
<result property="REGIONCODE" column="REGIONCODE" jdbcType="VARCHAR"/>
<result property="town" column="Town" jdbcType="VARCHAR"/>
<result property="d_RETAIN_ID" column="D_RETAIN_ID" jdbcType="VARCHAR"/>
<result property="d_SOURCE_ID" column="D_SOURCE_ID" jdbcType="VARCHAR"/>
<result property="DATA_ID" column="DATA_ID" jdbcType="VARCHAR"/>
<result property="IYMDHM" column="IYMDHM" jdbcType="VARCHAR"/>
<result property="RYMDHM" column="RYMDHM" jdbcType="VARCHAR"/>
<result property="UPDATE_TIME" column="UPDATE_TIME" jdbcType="VARCHAR"/>
<result property="datetime" column="Datetime" jdbcType="VARCHAR"/>
<result property="REP_CORR_ID" column="REP_CORR_ID" jdbcType="VARCHAR"/>
<result property="station_Id_d" column="Station_Id_d" jdbcType="VARCHAR"/>
<result property="year" column="Year" jdbcType="VARCHAR"/>
<result property="mon" column="Mon" jdbcType="VARCHAR"/>
<result property="day" column="Day" jdbcType="VARCHAR"/>
<result property="hour" column="Hour" jdbcType="VARCHAR"/>
<result property="min" column="Min" jdbcType="VARCHAR"/>
<result property="v14311" column="V14311" jdbcType="VARCHAR"/>
<result property="v14312" column="V14312" jdbcType="VARCHAR"/>
<result property="v14313" column="V14313" jdbcType="VARCHAR"/>
<result property="v14314" column="V14314" jdbcType="VARCHAR"/>
<result property="v14315" column="V14315" jdbcType="VARCHAR"/>
<result property="v14316" column="V14316" jdbcType="VARCHAR"/>
<result property="v14320" column="V14320" jdbcType="VARCHAR"/>
<result property="QRA_Max" column="QRA_Max" jdbcType="VARCHAR"/>
<result property="QRA_Max_OTime" column="QRA_Max_OTime" jdbcType="VARCHAR"/>
<result property="v14308" column="V14308" jdbcType="VARCHAR"/>
<result property="NRA_Max" column="NRA_Max" jdbcType="VARCHAR"/>
<result property="NRA_Max_OTime" column="NRA_Max_OTime" jdbcType="VARCHAR"/>
<result property="NRA_Min" column="NRA_Min" jdbcType="VARCHAR"/>
<result property="NRA_Min_OTime" column="NRA_Min_OTime" jdbcType="VARCHAR"/>
<result property="v14322" column="V14322" jdbcType="VARCHAR"/>
<result property="DRA_Max" column="DRA_Max" jdbcType="VARCHAR"/>
<result property="DRA_Max_OTime" column="DRA_Max_OTime" jdbcType="VARCHAR"/>
<result property="v14309" column="V14309" jdbcType="VARCHAR"/>
<result property="SRA_Max" column="SRA_Max" jdbcType="VARCHAR"/>
<result property="SRA_Max_OTime" column="SRA_Max_OTime" jdbcType="VARCHAR"/>
<result property="v14306" column="V14306" jdbcType="VARCHAR"/>
<result property="RRA_Max" column="RRA_Max" jdbcType="VARCHAR"/>
<result property="RRA_Max_OTime" column="RRA_Max_OTime" jdbcType="VARCHAR"/>
<result property="v14307" column="V14307" jdbcType="VARCHAR"/>
<result property="v14316_05" column="V14316_05" jdbcType="VARCHAR"/>
<result property="UV_Max_OTime" column="UV_Max_OTime" jdbcType="VARCHAR"/>
<result property="SSH" column="SSH" jdbcType="VARCHAR"/>
<result property="API" column="API" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
id,Station_Id_C,Station_levl,
Lat,Lon,Alti,
Admin_Code_CHN,V_ACODE_4SEARCH,Town_code,
City,Station_Name,Cnty,
COUNTRYCODE,Country,NetCode,
Province,REGIONCODE,Town,
D_RETAIN_ID,D_SOURCE_ID,DATA_ID,
IYMDHM,RYMDHM,UPDATE_TIME,
Datetime,REP_CORR_ID,Station_Id_d,
Year,Mon,Day,
Hour,Min,V14311,
V14312,V14313,V14314,
V14315,V14316,V14320,
QRA_Max,QRA_Max_OTime,V14308,
NRA_Max,NRA_Max_OTime,NRA_Min,
NRA_Min_OTime,V14322,DRA_Max,
DRA_Max_OTime,V14309,SRA_Max,
SRA_Max_OTime,V14306,RRA_Max,
RRA_Max_OTime,V14307,V14316_05,
UV_Max_OTime,SSH,API
</sql>
</mapper>

@ -1,20 +1,22 @@
package com.cuit.solarenergy; package com.cuit.solarenergy;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.cuit.gis.analysis.solarradiation.RasterSolarRadiationOperation; import com.cuit.gis.analysis.solarradiation.RasterSolarRadiationOperation;
import com.cuit.mete.musicutil.MusicQueryParameters; import com.cuit.mete.musicutil.MusicQueryParameters;
import com.cuit.mete.musicutil.RadifEleInterface; import com.cuit.mete.musicutil.RadifEleInterface;
import com.cuit.mete.musicutil.SurfEleInterface; import com.cuit.mete.musicutil.SurfEleInterface;
import com.cuit.mete.musicutil.exception.*; import com.cuit.mete.musicutil.exception.*;
import com.cuit.solarenergy.service.SolarenergyService; import com.cuit.solarenergy.service.SolarenergyService;
import generator.domain.radi_chn_mul_hor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
import java.util.ArrayList; import java.io.IOException;
import java.util.Calendar; import java.util.*;
import java.util.Date;
@SpringBootTest @SpringBootTest
@Slf4j @Slf4j
@ -166,9 +168,18 @@ class SolarenergyApplicationTests {
private int addDataBase(String dataByMusic) { private int addDataBase(String dataByMusic) {
// 将 dataByMusic 转换成对应的类 // 将 dataByMusic 转换成对应的类
ObjectMapper objectMapper = new ObjectMapper();
try {
// 将JSON字符串解析为Map
List<radi_chn_mul_hor> dataList = objectMapper.readValue(dataByMusic, new TypeReference<>() {
});
System.out.println("Parsed data size: " + dataList.size());
return dataList.size();
} catch (IOException e) {
e.printStackTrace();
}
// 将所有数据写入数据库 // 将所有数据写入数据库
return -1;
return 0;
} }

Loading…
Cancel
Save