Commit 6708b15a authored by ZWT's avatar ZWT

得到的

parent e3fedbdf
package pps.core.prediction.entity;
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 lombok.Data;
import xstartup.annotation.XText;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* 储能预测电量数据(模拟数据测试用)
*
* @author ZWT
* @date 2023/09/20
*/
@Data
@TableName("STORAGE_PREDICTED_POWER_DATA")
public class StoragePredictedPowerDataEnt implements Serializable {
@TableId(type = IdType.AUTO)
private Integer id;
@XText("储能设备id")
@TableField
private String storageId;
@XText("日期")
@TableField
private String dataDate;
@XText("年")
@TableField
private String yearTime;
@XText("月")
@TableField
private String monthTime;
@XText("日")
@TableField
private String dayTime;
@XText("时")
@TableField
private String hourTime;
@XText("分")
@TableField
private String minTime;
@XText("预测功率")
@TableField
private BigDecimal power;
@XText("创建时间")
@TableField
private Date createTime;
}
package pps.core.prediction.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import xstartup.annotation.XText;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* 储能预测电量数据(模拟数据测试用)
*
* @author ZWT
* @date 2023/09/20
*/
@Data
public class StoragePredictedPowerDataView implements Serializable {
@TableField
private Integer id;
@XText("储能设备id")
@TableField
private String storageId;
@XText("日期")
@TableField
private String dataDate;
@XText("年")
@TableField
private String yearTime;
@XText("月")
@TableField
private String monthTime;
@XText("日")
@TableField
private String dayTime;
@XText("时")
@TableField
private String hourTime;
@XText("分")
@TableField
private String minTime;
@XText("预测功率")
@TableField
private BigDecimal power;
@XText("创建时间")
@TableField
private Date createTime;
}
package pps.core.prediction.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
import pps.core.prediction.entity.StoragePredictedPowerDataEnt;
/**
* 储能预测电量数据(模拟数据测试用)
*
* @author ZWT
* @date 2023/09/20
*/
@Repository(value = "pps.core.prediction.mapper.StoragePredictedPowerDataMapper")
public interface StoragePredictedPowerDataMapper extends BaseMapper<StoragePredictedPowerDataEnt> {
}
package pps.core.prediction.mapper;
import org.springframework.stereotype.Repository;
import pps.core.prediction.entity.StoragePredictedPowerDataView;
import java.util.List;
/**
* 储能预测电量数据(模拟数据测试用)
*
* @author ZWT
* @date 2023/09/20
*/
@Repository(value = "pps.core.prediction.mapper.StoragePredictedPowerDataViewMapper")
public interface StoragePredictedPowerDataViewMapper {
StoragePredictedPowerDataView selectOne(StoragePredictedPowerDataView record);
List<StoragePredictedPowerDataView> selectList(StoragePredictedPowerDataView record);
}
<?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="pps.core.prediction.mapper.StoragePredictedPowerDataViewMapper">
<resultMap id="BaseResultMap" type="pps.core.prediction.entity.StoragePredictedPowerDataView">
<id column="ID" property="id"/>
<result column="STORAGE_ID" property="storageId"/>
<result column="DATA_DATE" property="dataDate"/>
<result column="YEAR_TIME" property="yearTime"/>
<result column="MONTH_TIME" property="monthTime"/>
<result column="DAY_TIME" property="dayTime"/>
<result column="HOUR_TIME" property="hourTime"/>
<result column="MIN_TIME" property="minTime"/>
<result column="POWER" property="power"/>
<result column="CREATE_TIME" property="createTime"/>
</resultMap>
<sql id="Base_Column_List">
ID
,
STORAGE_ID,
DATA_DATE,
YEAR_TIME,
MONTH_TIME,
DAY_TIME,
HOUR_TIME,
MIN_TIME,
POWER,
CREATE_TIME
</sql>
<select id="selectOne" parameterType="pps.core.prediction.entity.StoragePredictedPowerDataView"
resultMap="BaseResultMap">
SELECT
<include refid="Base_Column_List"/>
FROM STORAGE_PREDICTED_POWER_DATA
WHERE
ID=#{id}
</select>
<select id="selectList" parameterType="pps.core.prediction.entity.StoragePredictedPowerDataView"
resultMap="BaseResultMap">
SELECT
<include refid="Base_Column_List"/>
FROM STORAGE_PREDICTED_POWER_DATA
WHERE
ID=#{id}
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment