<?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.landtool.lanbase.modules.res.dao.Res_SymbolLibraryMapper" >
|
<update id="updateByPrimaryKey" parameterType="com.landtool.lanbase.modules.res.entity.Res_SymbolLibrary" >
|
UPDATE RES_SYMBOLLIBRARY
|
SET FHID = #{fhid,jdbcType=VARCHAR},
|
MC = #{mc,jdbcType=VARCHAR},
|
SYMBOL = #{symbol,jdbcType=CLOB},
|
GEOTYPE = #{geotype,jdbcType=VARCHAR}
|
WHERE FHID = #{fhid,jdbcType=VARCHAR} and GEOTYPE = #{geotype,jdbcType=VARCHAR}
|
</update>
|
|
<select id="getByIdAndGeoType" resultType="com.landtool.lanbase.modules.res.entity.Res_SymbolLibrary" parameterType="com.landtool.lanbase.modules.res.entity.Res_SymbolLibrary">
|
select *
|
from RES_SYMBOLLIBRARY
|
where FHID = #{fhid,jdbcType=VARCHAR} and GEOTYPE = #{geotype,jdbcType=VARCHAR}
|
</select>
|
|
<select id="getById" resultType="com.landtool.lanbase.modules.res.entity.Res_SymbolLibrary" parameterType="java.lang.Integer">
|
select *
|
from RES_SYMBOLLIBRARY
|
where OBJECTID = #{objectid,jdbcType=DECIMAL}
|
</select>
|
|
<select id="getAll" resultType="com.landtool.lanbase.modules.res.entity.Res_SymbolLibrary">
|
select *
|
from RES_SYMBOLLIBRARY
|
</select>
|
|
<select id="getListByGeoType" resultType="com.landtool.lanbase.modules.res.entity.Res_SymbolLibrary">
|
select * from RES_SYMBOLLIBRARY where GEOTYPE = #{geotype,jdbcType=VARCHAR}
|
</select>
|
|
<select id="getList" parameterType="com.landtool.lanbase.modules.res.entity.Res_SymbolLibrary" resultType="com.landtool.lanbase.modules.res.entity.Res_SymbolLibrary">
|
select * from RES_SYMBOLLIBRARY
|
<where>
|
1=1
|
<if test="fhid!=null and fhid != '' ">
|
and FHID like '%' || #{fhid} || '%'
|
</if>
|
<if test="mc !=null and mc != '' ">
|
and MC like '%'|| #{mc} || '%'
|
</if>
|
<if test="geotype !=null and geotype != '' ">
|
and GEOTYPE=#{geotype}
|
</if>
|
</where>
|
order by FHID
|
</select>
|
|
<select id="getMC" resultType="java.lang.String">
|
select mc from RES_SYMBOLLIBRARY where mc is not null group by mc
|
</select>
|
</mapper>
|