Commit f1b24b0e authored by ZWT's avatar ZWT

得到的

parent 53333e98
...@@ -17,7 +17,7 @@ import java.util.Date; ...@@ -17,7 +17,7 @@ import java.util.Date;
* @date 2024/11/27 * @date 2024/11/27
*/ */
@Data @Data
@TableName("space_yesterday_green_rate") @TableName("SPACE_YESTERDAY_GREEN_RATE")
public class SpaceYesterdayGreenRateEnt extends BaseModel implements Serializable { public class SpaceYesterdayGreenRateEnt extends BaseModel implements Serializable {
@XText("井口ID") @XText("井口ID")
......
...@@ -2,77 +2,77 @@ ...@@ -2,77 +2,77 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="pps.core.space.mapper.SpaceYesterdayGreenRateViewMapper"> <mapper namespace="pps.core.space.mapper.SpaceYesterdayGreenRateViewMapper">
<resultMap id="BaseResultMap" type="pps.core.space.entity.SpaceYesterdayGreenRateView"> <resultMap id="BaseResultMap" type="pps.core.space.entity.SpaceYesterdayGreenRateView">
<id column="id" property="id" jdbcType="VARCHAR"/> <id column="ID" property="id"/>
<result column="is_deleted" property="isDeleted" jdbcType="INTEGER"/> <result column="IS_DELETED" property="isDeleted"/>
<result column="create_by_id" property="createById" jdbcType="VARCHAR"/> <result column="CREATE_BY_ID" property="createById"/>
<result column="create_by_name" property="createByName" jdbcType="VARCHAR"/> <result column="CREATE_BY_NAME" property="createByName"/>
<result column="create_time" property="createTime" jdbcType="DATE"/> <result column="CREATE_TIME" property="createTime"/>
<result column="modify_by_id" property="modifyById" jdbcType="VARCHAR"/> <result column="MODIFY_BY_ID" property="modifyById"/>
<result column="modify_by_name" property="modifyByName" jdbcType="VARCHAR"/> <result column="MODIFY_BY_NAME" property="modifyByName"/>
<result column="modify_time" property="modifyTime" jdbcType="DATE"/> <result column="MODIFY_TIME" property="modifyTime"/>
<result column="wellhead_id" property="wellheadId" jdbcType="VARCHAR"/> <result column="WELLHEAD_ID" property="wellheadId"/>
<result column="well_number" property="wellNumber" jdbcType="VARCHAR"/> <result column="WELL_NUMBER" property="wellNumber"/>
<result column="record_date" property="recordDate" jdbcType="DATE"/> <result column="RECORD_DATE" property="recordDate"/>
<result column="start_seq" property="startSeq" jdbcType="INTEGER"/> <result column="START_SEQ" property="startSeq"/>
<result column="well_total_power_actual" property="wellTotalPowerActual" jdbcType="DECIMAL"/> <result column="WELL_TOTAL_POWER_ACTUAL" property="wellTotalPowerActual"/>
<result column="well_total_power_optimize" property="wellTotalPowerOptimize" jdbcType="DECIMAL"/> <result column="WELL_TOTAL_POWER_OPTIMIZE" property="wellTotalPowerOptimize"/>
<result column="well_green_power_actual" property="wellGreenPowerActual" jdbcType="DECIMAL"/> <result column="WELL_GREEN_POWER_ACTUAL" property="wellGreenPowerActual"/>
<result column="well_green_power_optimize" property="wellGreenPowerOptimize" jdbcType="DECIMAL"/> <result column="WELL_GREEN_POWER_OPTIMIZE" property="wellGreenPowerOptimize"/>
<result column="green_power_rate_actual" property="greenPowerRateActual" jdbcType="DECIMAL"/> <result column="GREEN_POWER_RATE_ACTUAL" property="greenPowerRateActual"/>
<result column="green_power_rate_optimize" property="greenPowerRateOptimize" jdbcType="DECIMAL"/> <result column="GREEN_POWER_RATE_OPTIMIZE" property="greenPowerRateOptimize"/>
<result column="line_name" property="lineName" jdbcType="VARCHAR"/> <result column="LINE_NAME" property="lineName"/>
<result column="power_cost_actual" property="powerCostActual" jdbcType="DECIMAL"/> <result column="POWER_COST_ACTUAL" property="powerCostActual"/>
<result column="power_cost_optimize" property="powerCostOptimize" jdbcType="DECIMAL"/> <result column="POWER_COST_OPTIMIZE" property="powerCostOptimize"/>
<result column="city_cost_optimize" property="cityCostOptimize" jdbcType="DECIMAL"/> <result column="CITY_COST_ACTUAL" property="cityCostActual"/>
<result column="city_cost_optimize" property="cityCostOptimize" jdbcType="DECIMAL"/> <result column="CITY_COST_OPTIMIZE" property="cityCostOptimize"/>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id ID
, ,
is_deleted, IS_DELETED,
create_by_id, CREATE_BY_ID,
create_by_name, CREATE_BY_NAME,
create_time, CREATE_TIME,
modify_by_id, MODIFY_BY_ID,
modify_by_name, MODIFY_BY_NAME,
modify_time, MODIFY_TIME,
wellhead_id, WELLHEAD_ID,
well_number, WELL_NUMBER,
record_date, RECORD_DATE,
start_seq, START_SEQ,
well_total_power_actual, WELL_TOTAL_POWER_ACTUAL,
well_total_power_optimize, WELL_TOTAL_POWER_OPTIMIZE,
well_green_power_actual, WELL_GREEN_POWER_ACTUAL,
well_green_power_optimize, WELL_GREEN_POWER_OPTIMIZE,
green_power_rate_actual, GREEN_POWER_RATE_ACTUAL,
green_power_rate_optimize, GREEN_POWER_RATE_OPTIMIZE,
line_name, LINE_NAME,
power_cost_actual, POWER_COST_ACTUAL,
power_cost_optimize, POWER_COST_OPTIMIZE,
city_cost_actual, CITY_COST_ACTUAL,
city_cost_optimize CITY_COST_OPTIMIZE
</sql> </sql>
<select id="selectOne" parameterType="pps.core.space.entity.SpaceYesterdayGreenRateView" resultMap="BaseResultMap"> <select id="selectOne" parameterType="pps.core.space.entity.SpaceYesterdayGreenRateView" resultMap="BaseResultMap">
select SELECT
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
from space_yesterday_green_rate FROM SPACE_YESTERDAY_GREEN_RATE
where WHERE
id=#{id} ID=#{id}
</select> </select>
<select id="selectList" parameterType="pps.core.space.entity.SpaceYesterdayGreenRateView" resultMap="BaseResultMap"> <select id="selectList" parameterType="pps.core.space.entity.SpaceYesterdayGreenRateView" resultMap="BaseResultMap">
select SELECT
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
from space_yesterday_green_rate FROM SPACE_YESTERDAY_GREEN_RATE
where WHERE
id=#{id} ID=#{id}
</select> </select>
<insert id="batchInsert" parameterType="list"> <insert id="batchInsert" parameterType="list">
INSERT INTO space_yesterday_green_rate (id, create_by_id, create_by_name, create_time, modify_by_id, INSERT INTO SPACE_YESTERDAY_GREEN_RATE (ID, CREATE_BY_ID, CREATE_BY_NAME, CREATE_TIME, MODIFY_BY_ID,
modify_by_name, modify_time, wellhead_id, well_number, record_date, start_seq, well_total_power_actual, MODIFY_BY_NAME, MODIFY_TIME, WELLHEAD_ID, WELL_NUMBER, RECORD_DATE, START_SEQ, WELL_TOTAL_POWER_ACTUAL,
well_total_power_optimize, well_green_power_actual, well_green_power_optimize, green_power_rate_actual, WELL_TOTAL_POWER_OPTIMIZE, WELL_GREEN_POWER_ACTUAL, WELL_GREEN_POWER_OPTIMIZE, GREEN_POWER_RATE_ACTUAL,
green_power_rate_optimize, line_name, power_cost_actual, power_cost_optimize, city_cost_actual, GREEN_POWER_RATE_OPTIMIZE, LINE_NAME, POWER_COST_ACTUAL, POWER_COST_OPTIMIZE, CITY_COST_ACTUAL,
city_cost_optimize) CITY_COST_OPTIMIZE)
VALUES VALUES
<foreach collection="list" item="item" separator=","> <foreach collection="list" item="item" separator=",">
( (
......
...@@ -2,21 +2,21 @@ ...@@ -2,21 +2,21 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="pps.core.prediction.mapper.PlantPredictedPowerShortTermViewMapper"> <mapper namespace="pps.core.prediction.mapper.PlantPredictedPowerShortTermViewMapper">
<resultMap id="BaseResultMap" type="pps.core.prediction.entity.PlantPredictedPowerShortTermView"> <resultMap id="BaseResultMap" type="pps.core.prediction.entity.PlantPredictedPowerShortTermView">
<id column="id" property="id" jdbcType="INTEGER"/> <id column="ID" property="id" />
<result column="plant_id" property="plantId" jdbcType="VARCHAR"/> <result column="PLANT_ID" property="plantId"/>
<result column="data_date" property="dataDate" jdbcType="VARCHAR"/> <result column="DATA_DATE" property="dataDate"/>
<result column="power" property="power" jdbcType="DECIMAL"/> <result column="POWER" property="power"/>
<result column="create_time" property="createTime" jdbcType="VARCHAR"/> <result column="CREATE_TIME" property="createTime"/>
<result column="predict_power" property="predictPower" jdbcType="DECIMAL"/> <result column="PREDICT_POWER" property="predictPower"/>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id ID
, ,
plant_id, PLANT_ID,
data_date, DATA_DATE,
power, POWER,
create_time, CREATE_TIME,
predict_power PREDICT_POWER
</sql> </sql>
<select id="selectOne" parameterType="pps.core.prediction.entity.PlantPredictedPowerShortTermView" <select id="selectOne" parameterType="pps.core.prediction.entity.PlantPredictedPowerShortTermView"
resultMap="BaseResultMap"> resultMap="BaseResultMap">
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<resultMap id="ExtResultMap" type="pps.core.prediction.entity.PlantPredictedPowerShortTermView" <resultMap id="ExtResultMap" type="pps.core.prediction.entity.PlantPredictedPowerShortTermView"
extends="BaseResultMap"> extends="BaseResultMap">
<result column="station_name" property="stationName" jdbcType="VARCHAR"/> <result column="STATION_NAME" property="stationName"/>
</resultMap> </resultMap>
<select id="selectPredictionPower30" parameterType="pps.core.prediction.entity.PlantPredictedPowerShortTermView" <select id="selectPredictionPower30" parameterType="pps.core.prediction.entity.PlantPredictedPowerShortTermView"
......
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