zss
2023-08-09 38128b9d40636d1387a5614a35d9be6927a5e3e6
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
<?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.yuanchu.mom.mapper.TechnologyTemplateMapper">
    <select id="seleType" resultType="java.lang.Integer">
        select distinct type
        from mom_ocean.technology_template
        where state = 1
    </select>
    <select id="selTech" resultType="java.util.Map">
        select name,
        element,
        base,
        control,
        note
        from mom_ocean.technology_template t
        <where>
            state=1
            <if test="type!=null">
                and type=#{type}
            </if>
            <if test="element!=null">
                and element=#{element}
            </if>
            <if test="father!=null">
                and father=#{father}
            </if>
        </where>
        group by father
    </select>
</mapper>