You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.9 KiB
XML
42 lines
1.9 KiB
XML
<?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="com.cuit.solarenergy.mapper.GeoserverinfoBaseMapper">
|
|
|
|
<resultMap id="BaseResultMap" type="com.cuit.solarenergy.entity.GeoserverinfoBase">
|
|
<id property="id" column="ID" jdbcType="BIGINT"/>
|
|
<result property="geoserverworkspaces" column="GeoServerWorkspaces" jdbcType="VARCHAR"/>
|
|
<result property="geoserverlayers" column="GeoServerLayers" jdbcType="VARCHAR"/>
|
|
<result property="geoserverstyles" column="GeoServerStyles" jdbcType="VARCHAR"/>
|
|
<result property="srs" column="Srs" jdbcType="VARCHAR"/>
|
|
<result property="bbox" column="bbox" jdbcType="VARCHAR"/>
|
|
<result property="latlonbbox" column="latlonbbox" jdbcType="VARCHAR"/>
|
|
<result property="url" column="url" jdbcType="VARCHAR"/>
|
|
<result property="createdate" column="createdate" jdbcType="TIMESTAMP"/>
|
|
<result property="streamCode" column="stream_code" jdbcType="VARCHAR"/>
|
|
<result property="datacode" column="datacode" jdbcType="VARCHAR"/>
|
|
</resultMap>
|
|
|
|
<sql id="Base_Column_List">
|
|
ID,GeoServerWorkspaces,GeoServerLayers,
|
|
GeoServerStyles,Srs,bbox,
|
|
latlonbbox,url,createdate,
|
|
stream_code,datacode
|
|
</sql>
|
|
|
|
<select id="selectByStreamCodeDataCode" resultMap="BaseResultMap">
|
|
select
|
|
<include refid="Base_Column_List"/>
|
|
from t_geoserverinfo_base gb
|
|
<where>
|
|
<if test="streamCode != null and streamCode != '' ">
|
|
AND (gb.stream_code = #{streamCode} OR gb.stream_code IS NULL)
|
|
</if>
|
|
<if test="dataCode != null and dataCode != '' ">
|
|
AND gb.datacode = #{dataCode}
|
|
</if>
|
|
</where>
|
|
</select>
|
|
</mapper>
|