zss
2023-09-09 d11807a7506cd560df0a22bd712494df381f2bf6
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},'%')