2
13693261870
2022-09-16 653761a31dfeb50dd3d007e892d69c90bf0cdafc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?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>