Commit 2b61d27c authored by ZWT's avatar ZWT

得到的

parent d197a594
......@@ -46,7 +46,7 @@
AREA_CODE
</sql>
<select id="selectList" parameterType="pps.core.base.entity.BaseWindTurbineView" resultMap="BaseResultMap">
<select id="selectList" parameterType="pps.core.base.entity.BaseWindTurbineView" resultMap="BaseResultMap" databaseId="MySQL">
SELECT
<include refid="Base_Column_List"/>
FROM BASE_WIND_TURBINE
......@@ -63,6 +63,23 @@
STATION_NAME ASC
</select>
<select id="selectList" parameterType="pps.core.base.entity.BaseWindTurbineView" resultMap="BaseResultMap" databaseId="Oracle">
SELECT
<include refid="Base_Column_List"/>
FROM BASE_WIND_TURBINE
WHERE
IS_DELETED = 1
AND OU_ID IN
<foreach collection="ouList" open="(" close=")" separator="," item="item">
#{item}
</foreach>
<if test="stationName != null and stationName != ''">
AND STATION_NAME LIKE '%' || #{stationName} || '%'
</if>
ORDER BY
STATION_NAME ASC
</select>
<resultMap id="ExtResultMap" type="pps.core.base.entity.BaseWindTurbineView" extends="BaseResultMap">
<result column="CITY_CODE" property="cityCode"/>
<result column="CITY_NAME" property="cityName"/>
......
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