气象资源表代码
This commit is contained in:
parent
bfcc7cc3aa
commit
31b7510ec7
|
|
@ -0,0 +1,18 @@
|
||||||
|
package com.hivekion.baseData.controller;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 气像资源信息 前端控制器
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author liDongYu
|
||||||
|
* @since 2025-09-14
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/baseData/weatherResource")
|
||||||
|
public class WeatherResourceController {
|
||||||
|
|
||||||
|
}
|
||||||
103
src/main/java/com/hivekion/baseData/entity/WeatherResource.java
Normal file
103
src/main/java/com/hivekion/baseData/entity/WeatherResource.java
Normal file
|
|
@ -0,0 +1,103 @@
|
||||||
|
package com.hivekion.baseData.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 气像资源信息
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author liDongYu
|
||||||
|
* @since 2025-09-14
|
||||||
|
*/
|
||||||
|
@TableName("TBL_WEATHER_RESOURCE")
|
||||||
|
@ApiModel(value = "WeatherResource对象", description = "气像资源信息")
|
||||||
|
public class WeatherResource implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@ApiModelProperty("物理主键")
|
||||||
|
@TableId(value = "id", type = IdType.AUTO)
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
@ApiModelProperty("想定房间编号")
|
||||||
|
private String roomId;
|
||||||
|
|
||||||
|
@ApiModelProperty("想定场景编号")
|
||||||
|
private Integer scenarioId;
|
||||||
|
|
||||||
|
@ApiModelProperty("天气类型")
|
||||||
|
private String weatherType;
|
||||||
|
|
||||||
|
@ApiModelProperty("持续开始时间")
|
||||||
|
private LocalDateTime lastBegTime;
|
||||||
|
|
||||||
|
@ApiModelProperty("持续结束时间")
|
||||||
|
private LocalDateTime lastEndTime;
|
||||||
|
|
||||||
|
public Integer getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Integer id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRoomId() {
|
||||||
|
return roomId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRoomId(String roomId) {
|
||||||
|
this.roomId = roomId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getScenarioId() {
|
||||||
|
return scenarioId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setScenarioId(Integer scenarioId) {
|
||||||
|
this.scenarioId = scenarioId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWeatherType() {
|
||||||
|
return weatherType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWeatherType(String weatherType) {
|
||||||
|
this.weatherType = weatherType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getLastBegTime() {
|
||||||
|
return lastBegTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLastBegTime(LocalDateTime lastBegTime) {
|
||||||
|
this.lastBegTime = lastBegTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LocalDateTime getLastEndTime() {
|
||||||
|
return lastEndTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLastEndTime(LocalDateTime lastEndTime) {
|
||||||
|
this.lastEndTime = lastEndTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "WeatherResource{" +
|
||||||
|
"id = " + id +
|
||||||
|
", roomId = " + roomId +
|
||||||
|
", scenarioId = " + scenarioId +
|
||||||
|
", weatherType = " + weatherType +
|
||||||
|
", lastBegTime = " + lastBegTime +
|
||||||
|
", lastEndTime = " + lastEndTime +
|
||||||
|
"}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.hivekion.baseData.mapper;
|
||||||
|
|
||||||
|
import com.hivekion.baseData.entity.WeatherResource;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 气像资源信息 Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author liDongYu
|
||||||
|
* @since 2025-09-14
|
||||||
|
*/
|
||||||
|
public interface WeatherResourceMapper extends BaseMapper<WeatherResource> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.hivekion.baseData.service;
|
||||||
|
|
||||||
|
import com.hivekion.baseData.entity.WeatherResource;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 气像资源信息 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author liDongYu
|
||||||
|
* @since 2025-09-14
|
||||||
|
*/
|
||||||
|
public interface IWeatherResourceService extends IService<WeatherResource> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
package com.hivekion.baseData.service.impl;
|
||||||
|
|
||||||
|
import com.hivekion.baseData.entity.WeatherResource;
|
||||||
|
import com.hivekion.baseData.mapper.WeatherResourceMapper;
|
||||||
|
import com.hivekion.baseData.service.IWeatherResourceService;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 气像资源信息 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author liDongYu
|
||||||
|
* @since 2025-09-14
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class WeatherResourceServiceImpl extends ServiceImpl<WeatherResourceMapper, WeatherResource> implements IWeatherResourceService {
|
||||||
|
|
||||||
|
}
|
||||||
5
src/main/resources/mapper/tbl/WeatherResourceMapper.xml
Normal file
5
src/main/resources/mapper/tbl/WeatherResourceMapper.xml
Normal file
|
|
@ -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.hivekion.baseData.mapper.WeatherResourceMapper">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
Loading…
Reference in New Issue
Block a user