| | |
| | | |
| | | <!--查询工艺路线列表 左边二级展示--> |
| | | <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, |
| | |
| | | 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},'%') |
| | |
| | | select distinct father |
| | | from mom_ocean.technology_template |
| | | where state = 1 |
| | | and type = #{type} |
| | | </select> |
| | | |
| | | <!--根据id查看详情--> |