Commit f34a0b50 authored by ZWT's avatar ZWT

得到的

parent 8cc14c0f
......@@ -204,7 +204,7 @@
</insert>
<select id="selectListByInstitutionIds" parameterType="pps.core.space.entity.SpaceInstitutionWellheadView"
resultMap="BaseResultMap">
resultMap="BaseResultMap" databaseId="MySQL">
SELECT
DISTINCT
INSTITUTION_ID,
......@@ -227,6 +227,30 @@
</foreach>
</select>
<select id="selectListByInstitutionIds" parameterType="pps.core.space.entity.SpaceInstitutionWellheadView"
resultMap="BaseResultMap" databaseId="Oracle">
SELECT
DISTINCT
INSTITUTION_ID,
WELLHEAD_ID,
WELL_NUMBER,
RUN_TYPE_KEY,
NVL( INTERVAL_TYPE_KEY, '999' ) AS INTERVAL_TYPE_KEY,
INTERVAL_DESCRIBE,
NVL( START_SEQ, 0 ) AS START_SEQ,
OPEN_WELL_DAY,
CLOSE_WELL_DAY,
RUN_DURATION
FROM
SPACE_INSTITUTION_WELLHEAD
WHERE
IS_DELETED = 1
AND INSTITUTION_ID IN
<foreach collection="list" open="(" close=")" separator="," item="item">
#{item}
</foreach>
</select>
<resultMap id="ExtResultMap" type="pps.core.space.entity.SpaceInstitutionWellheadView" extends="BaseResultMap">
<result column="SERVICE_RATING" property="serviceRating"/>
</resultMap>
......
......@@ -7,7 +7,7 @@
<result column="HOUR_TIME" property="hourTime"/>
</resultMap>
<select id="selectMidPowerList" resultMap="BaseResultMap">
<select id="selectMidPowerList" resultMap="BaseResultMap" databaseId="MySQL">
SELECT
HOUR( A.CREATE_TIME ) AS HOUR_TIME,
IFNULL( AVG( A.PREDICT_POWER ), 0 ) AS POWER,
......
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