Commit f1b24b0e authored by ZWT's avatar ZWT

得到的

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