zss
2023-09-11 19b596d3c05b1ca7ff80d8b802e7f6e03ad77dad
base-server/src/main/resources/mapper/TechnologyTemplateMapper.xml
@@ -9,11 +9,11 @@
    <!--查询工艺路线列表  左边二级展示-->
    <resultMap id="selectAllTechTemMap" type="map">
        <id property="elname" column="elname"/>
        <id property="name" column="elname"/>
        <collection property="children" resultMap="selectAllTechTemTowMap" javaType="List"/>
    </resultMap>
    <resultMap id="selectAllTechTemTowMap" type="map">
        <result property="father" column="father"/>
        <result property="name" column="father"/>
    </resultMap>
    <select id="selectAllTechTem" resultMap="selectAllTechTemMap">
        select e.name elname,
@@ -24,6 +24,7 @@
        where e.id = et.element_id
        and t.id = tech_tem_id
        and t.state = 1
        and et.state=1
        and type=#{type}
        <if test="message!=null and message!=''">
            and father like concat('%',#{message},'%')
@@ -45,6 +46,7 @@
        select distinct father
        from mom_ocean.technology_template
        where state = 1
          and type = #{type}
    </select>
    <!--根据id查看详情-->